Opened 13 years ago

Closed 13 years ago

#33642 closed defect (fixed)

avr-binutils fails to build due to wrong include path

Reported by: bwalle (Bernhard Walle) Owned by: g5pw (Aljaž Srebrnič)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: g5pw (Aljaž Srebrnič)
Port: avr-binutils

Description

When installing avr-bintuils, I get following error: 

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_avr-binutils/avr-binutils/work/binutils-2.22/bfd/sysdep.h:173:10: fatal error: 'libintl.h' file not found
#include <libintl.h>
         ^
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_avr-binutils/avr-binutils/work/binutils-2.22/bfd/bfdio.c:26:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_avr-binutils/avr-binutils/work/binutils-2.22/bfd/sysdep.h:173:10: fatal error: 'libintl.h' file not found
#include <libintl.h>
         ^
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_avr-binutils/avr-binutils/work/binutils-2.22/bfd/archive.c:130:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_avr-binutils/avr-binutils/work/binutils-2.22/bfd/sysdep.h:173:10: fatal error: 'libintl.h' file not found
#include <libintl.h>
         ^
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_avr-binutils/avr-binutils/work/binutils-2.22/bfd/archures.c:24:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_avr-binutils/avr-binutils/work/binutils-2.22/bfd/sysdep.h:173:10: fatal error: 'libintl.h' file not found
#include <libintl.h>
         ^
1 error generated.
1 error generated.

libintl is there, but in /opt/local/include, of course.

Attachments (2)

config.log.tar.bz2 (50.1 KB) - added by bwalle (Bernhard Walle) 13 years ago.
config.log files
main.log (196.1 KB) - added by bwalle (Bernhard Walle) 13 years ago.

Download all attachments as: .zip

Change History (11)

Changed 13 years ago by bwalle (Bernhard Walle)

Attachment: config.log.tar.bz2 added

config.log files

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to g5pw@…

comment:2 Changed 13 years ago by g5pw (Aljaž Srebrnič)

Status: newassigned

Thanks for the feedback! It actually builds on my machine, I'll dig in your logs and fix asap ;)

comment:3 Changed 13 years ago by g5pw (Aljaž Srebrnič)

Could you please attach the whole main.log? Thanks!

Changed 13 years ago by bwalle (Bernhard Walle)

Attachment: main.log added

comment:4 Changed 13 years ago by g5pw (Aljaž Srebrnič)

Cc: g5pw@… added

Cc Me!

comment:5 Changed 13 years ago by g5pw (Aljaž Srebrnič)

Hmm... Interesting... Can you provide your OS / Xcode version? Thanks!

comment:6 Changed 13 years ago by bwalle (Bernhard Walle)

Mac OS 10.7.3 Xcode 4.2

comment:7 Changed 13 years ago by g5pw (Aljaž Srebrnič)

Well, could you update xcode and see if the problem persists? Thank you!

comment:8 Changed 13 years ago by bwalle (Bernhard Walle)

That works indeed. Well, when I installed MacPorts a few weeks ago on Lion, the documentation explicitly mentioned that I should not use Xcode 4.3. That seems to have changed now and it works.

Thanks for the help!

comment:9 Changed 13 years ago by g5pw (Aljaž Srebrnič)

Resolution: fixed
Status: assignedclosed

Glad to hear that! I'm sorry I forced you to update, but it's simpler than to write exceptions in portfiles. It looks like Xcode 4.2's clang is ignoring che CPATH variable...

Glad to be of help!

Note: See TracTickets for help on using tickets.