[MacPorts] #28376: gcc44: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.

MacPorts noreply at macports.org
Fri Apr 15 21:26:48 PDT 2011


#28376: gcc44: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
--------------------------------+-------------------------------------------
 Reporter:  tseidl42@…          |       Owner:  mww@…           
     Type:  defect              |      Status:  new             
 Priority:  Normal              |   Milestone:                  
Component:  ports               |     Version:  1.9.2           
 Keywords:                      |        Port:  gcc44           
--------------------------------+-------------------------------------------

Comment(by Richard.Beare@…):

 I am also seeing this problem on a 32 bit build on 64bit capable snow
 leopard system. For some reason the configure call for gcc seems to want
 to find a 64 bit mpfr:

 :debug:configure Assembled command: 'cd
 "/opt/local32/var/macports/build/_opt_local32_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/work/build"
 && ../gcc-4.4.5/configure --prefix=/opt/local32 --build=i386-apple-
 darwin10 --enable-languages=c,c++,objc,obj-c++,java,fortran
 --libdir=/opt/local32/lib/gcc44 --includedir=/opt/local32/include/gcc44
 --infodir=/opt/local32/share/info --mandir=/opt/local32/share/man --with-
 local-prefix=/opt/local32 --with-system-zlib --disable-nls --program-
 suffix=-mp-4.4 --with-gxx-include-dir=/opt/local32/include/gcc44/c++/
 --with-gmp=/opt/local32 --with-mpfr=/opt/local32 --enable-stage1-checking
 --disable-multilib --enable-fully-dynamic-string'

 then


 mpfr.hconfigure:4701: /usr/bin/gcc-4.2 -o conftest -pipe -O2
 -I/opt/local32/include -I/opt/local32/include -I/opt/local32/include
 -L/opt/local32/lib conftest.c  -L/op
 t/local32/lib -L/opt/local32/lib -lmpfr -lgmp >&5ld: warning: in
 /opt/local32/lib/libmpfr.dylib, file was built for i386 which is
  not the architecture being linked (x86_64)ld: warning: in
 /opt/local32/lib/libgmp.dylib, file was built for i386 which is
 not the architecture being linked (x86_64)
 Undefined symbols:
   "_mpfr_subnormalize", referenced from:
       _main in ccXpXese.o
   "_mpfr_erfc", referenced from:
       _main in ccXpXese.o
   "_mpfr_atan2", referenced from:
       _main in ccXpXese.o
   "_mpfr_init", referenced from:
       _main in ccXpXese.o
       _main in ccXpXese.o
 ld: symbol(s) not found

 So for some reason the architecture isn't being passed to the right parts
 of the gcc configure process.

 I have
 build_arch                      i386

 on macports.conf


 Resolution of this issue would be welcome. I'm attempting to build a 32bit
 version of Octave for use with the PsychToolbox and can't find any
 prebuilt 32 bit versions around.

 Thanks

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


More information about the macports-tickets mailing list