New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #33642 (closed defect: fixed)

Opened 14 months ago

Last modified 14 months ago

avr-binutils fails to build due to wrong include path

Reported by: bernhard@… Owned by: g5pw@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: g5pw@…
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

config.log.tar.bz2 (50.1 KB) - added by bernhard@… 14 months ago.
config.log files
main.log (196.1 KB) - added by bernhard@… 14 months ago.

Change History

Changed 14 months ago by bernhard@…

config.log files

comment:1 Changed 14 months ago by ryandesign@…

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

comment:2 Changed 14 months ago by g5pw@…

  • Status changed from new to assigned

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

comment:3 Changed 14 months ago by g5pw@…

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

Changed 14 months ago by bernhard@…

comment:4 Changed 14 months ago by g5pw@…

  • Cc g5pw@… added

Cc Me!

comment:5 Changed 14 months ago by g5pw@…

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

comment:6 Changed 14 months ago by bernhard@…

Mac OS 10.7.3 Xcode 4.2

comment:7 Changed 14 months ago by g5pw@…

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

comment:8 Changed 14 months ago by bernhard@…

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 14 months ago by g5pw@…

  • Status changed from assigned to closed
  • Resolution set to fixed

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.