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 org.macports.build 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 pastie.org because it's really big.)

http://pastie.org/3120533

I have xcode and the ios/mac toolchain installed.

link|improve this question
libintl.h is missing, what is the output of port provides /opt/local/include/libintl.h? – Tim Jan 3 at 20:34
port provides /opt/local/include/libintl.h /opt/local/include/libintl.h is provided by: gettext – Cykey Jan 3 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/_opt_local_var_macports_sources_rsync.macports.org‌​_release_tarballs_ports_cross_arm-elf-binutils/arm-elf-binutils/work/binutils-2.2‌​1.52.0.2/bfd/sysdep.h is referencing libintl.h, after installing gettext, ensure /opt/local/include/libintl.h exists. – Tim Jan 3 at 21:01
You may need to fix sysdep.h or create a link to the actual libintl.h file. – Tim Jan 3 at 21:02
It is already installed an I have the libintl.h file in /opt/local/include/libintl.h – Cykey Jan 3 at 21:04
feedback

1 Answer

up vote 1 down vote accepted

try:

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

then run the build again

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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