[MacPorts] #33418: avr-binutils 2.22 - Compile error: Undeclared "LONG_MIN"

MacPorts noreply at macports.org
Wed Feb 29 12:33:09 PST 2012


#33418: avr-binutils 2.22 - Compile error: Undeclared "LONG_MIN"
---------------------------------------+------------------------------------
 Reporter:  marc.sowen@…               |       Owner:  macports-tickets@…                   
     Type:  defect                     |      Status:  new                                  
 Priority:  Normal                     |   Milestone:                                       
Component:  ports                      |     Version:  2.0.4                                
 Keywords:                             |        Port:  avr-binutils                         
---------------------------------------+------------------------------------
 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);
                                    ^
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/33418>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list