Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

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/_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 '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
add comment

1 Answer

up vote 1 down vote accepted

try:

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

then run the build again

share|improve this answer
add comment

Your Answer

 
discard

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.