1

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.

Skyhawk
  • 14,200
  • 4
  • 53
  • 95
Cykey
  • 13
  • 2
  • libintl.h is missing, what is the output of `port provides /opt/local/include/libintl.h`? – Tim Jan 03 '12 at 20:34
  • port provides /opt/local/include/libintl.h /opt/local/include/libintl.h is provided by: gettext – Cykey Jan 03 '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.21.52.0.2/bfd/sysdep.h is referencing libintl.h, after installing gettext, ensure /opt/local/include/libintl.h exists. – Tim Jan 03 '12 at 21:01
  • You may need to fix sysdep.h or create a link to the actual libintl.h file. – Tim Jan 03 '12 at 21:02
  • It is already installed an I have the libintl.h file in /opt/local/include/libintl.h – Cykey Jan 03 '12 at 21:04

1 Answers1

1

try:

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

then run the build again

Mark Henderson
  • 68,823
  • 31
  • 180
  • 259
MikeA
  • 26
  • 1