Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install arm-elf-binutils on my Mac using MacPorts.

I get the following error:

--->  Computing dependencies for arm-elf-gcc
--->  Dependencies to be installed: arm-elf-binutils
--->  Building arm-elf-binutils
Error: Target returned: shell command failed (see log for details)
Error: Failed to install arm-elf-binutils
Log for arm-elf-binutils is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_arm-elf-binutils/arm-elf-binutils/main.log
Error: The following dependencies were not installed: arm-elf-binutils
Error: Status 1 encountered during processing.
To report a bug, see 

Yes, I am using sudo.

Here's the log: (I put it on because it's really big.)

I have xcode and the ios/mac toolchain installed.

share|improve this question
libintl.h is missing, what is the output of port provides /opt/local/include/libintl.h? – Tim Jan 3 '12 at 20:34
port provides /opt/local/include/libintl.h /opt/local/include/libintl.h is provided by: gettext – Cykey Jan 3 '12 at 20:57
Good start, that is the output I would expect. Assuming it is not installed, get gettext installed first. The file /opt/local/var/macports/build/‌​_release_tarballs_ports_cross_arm-elf-binutils/arm-elf-binutils/work/binutils-2.2‌​ is referencing libintl.h, after installing gettext, ensure /opt/local/include/libintl.h exists. – Tim Jan 3 '12 at 21:01
You may need to fix sysdep.h or create a link to the actual libintl.h file. – Tim Jan 3 '12 at 21:02
It is already installed an I have the libintl.h file in /opt/local/include/libintl.h – Cykey Jan 3 '12 at 21:04
up vote 1 down vote accepted


sudo ln -s /opt/local/include/libintl.h /usr/include/.

then run the build again

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.