Opened 13 years ago

Closed 13 years ago

#33418 closed defect (fixed)

avr-binutils 2.22 - Compile error: Undeclared "LONG_MIN"

Reported by: marc.sowen@… Owned by: g5pw (Aljaž Srebrnič)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: titus@…, g5pw (Aljaž Srebrnič)
Port: avr-binutils

Description

After upgrading to Xcode 4.3 and MacPort 2.0.4, I can't seem to compile avr-binutils. I get this error:

cc -no-cpp-precomp -c -DHAVE_CONFIG_H -pipe -O2 -arch x86_64  -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-binutils/avr-binutils/work/binutils-2.22/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-binutils/avr-binutils/work/binutils-2.22/libiberty/fibheap.c -o fibheap.o
clang: warning: argument unused during compilation: '-no-cpp-precomp'
checking whether ftello64 is declared... /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-binutils/avr-binutils/work/binutils-2.22/libiberty/fibheap.c:151:7: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration]
      free (heapa);
      ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-binutils/avr-binutils/work/binutils-2.22/libiberty/fibheap.c:220:30: error: use of undeclared identifier 'LONG_MIN'
  if (okey == key && okey != FIBHEAPKEY_MIN)
                             ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-binutils/avr-binutils/work/binutils-2.22/libiberty/fibheap.c:38:24: note: expanded from macro 'FIBHEAPKEY_MIN'
#define FIBHEAPKEY_MIN  LONG_MIN
                        ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-binutils/avr-binutils/work/binutils-2.22/libiberty/fibheap.c:261:36: error: use of undeclared identifier 'LONG_MIN'
  fibheap_replace_key (heap, node, FIBHEAPKEY_MIN);
                                   ^

Attachments (2)

main.log (156.2 KB) - added by marc.sowen@… 13 years ago.
avr-bintuils.xcode43.diff (495 bytes) - added by marc.sowen@… 13 years ago.

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by marc.sowen@…

Attachment: main.log added

Changed 13 years ago by marc.sowen@…

Attachment: avr-bintuils.xcode43.diff added

comment:1 Changed 13 years ago by marc.sowen@…

It works with llvm-gcc. See patch.

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

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

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

Cc: g5pw@… added

Cc Me!

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

Hello! Can you confirm this issue as resolved in r90721 ?

comment:5 in reply to:  4 ; Changed 13 years ago by marc.sowen@…

Replying to g5pw@…:

Hello! Can you confirm this issue as resolved in r90721 ?

Sorry for the delay. Yes, it works now. You may close the ticket!

comment:6 in reply to:  5 Changed 13 years ago by g5pw (Aljaž Srebrnič)

Resolution: fixed
Status: newclosed

Replying to marc.sowen@…:

Replying to g5pw@…:

Hello! Can you confirm this issue as resolved in r90721 ?

Sorry for the delay. Yes, it works now. You may close the ticket!

Thank you!

Note: See TracTickets for help on using tickets.