Opened 15 years ago

Closed 6 years ago

Last modified 6 years ago

#24577 closed defect (fixed)

i386-elf-gcc @4.3.2 configure error with build_arch i386

Reported by: orphen.leiliu@… Owned by:
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: wcmiii@…, MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), vinc17@…, mojca (Mojca Miklavec)
Port: i386-elf-gcc

Description (last modified by jmroot (Joshua Root))

Snow Leopard 10.6.3; Xcode 3.2.2; Macports 1.8.2


There is no problem with build_arch x86_64. Error followed.

The all ports were build with build_arch i386.

Attachments (1)

config.log (20.5 KB) - added by orphen.leiliu@… 15 years ago.

Download all attachments as: .zip

Change History (12)

Changed 15 years ago by orphen.leiliu@…

Attachment: config.log added

comment:1 Changed 15 years ago by orphen.leiliu@…

I'm sorry for the format.

The follow is better.

localhost ~ $ sudo port -d install i386-elf-gcc
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/cross/i386-elf-gcc
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/cross/i386-elf-gcc
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.3.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Requested variant darwin is not provided by port i386-elf-gcc.
DEBUG: Requested variant ipv6 is not provided by port i386-elf-gcc.
DEBUG: Requested variant i386 is not provided by port i386-elf-gcc.
DEBUG: Requested variant doc is not provided by port i386-elf-gcc.
DEBUG: Requested variant no_x11 is not provided by port i386-elf-gcc.
DEBUG: Requested variant macosx is not provided by port i386-elf-gcc.
DEBUG: Requested variant svn is not provided by port i386-elf-gcc.
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/cross/i386-elf-binutils
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: i386-elf-binutils 2.18.50.0.9_0 exists in the ports tree
DEBUG: i386-elf-binutils 2.18.50.0.9_0 +darwin_10 is the latest installed
DEBUG: i386-elf-binutils 2.18.50.0.9_0 +darwin_10 is active
DEBUG: Merging existing variants darwin_10 into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/cross/i386-elf-binutils
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.3.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: adding the default universal variant
DEBUG: Requested variant darwin is not provided by port i386-elf-binutils.
DEBUG: Requested variant i386 is not provided by port i386-elf-binutils.
DEBUG: Requested variant macosx is not provided by port i386-elf-binutils.
DEBUG: Executing variant darwin_10 provides darwin_10
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: gettext 0.17_4 exists in the ports tree
DEBUG: gettext 0.17_4  is the latest installed
DEBUG: gettext 0.17_4  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.3.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/archcheck-1.0.tcl
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port gettext.
DEBUG: Requested variant i386 is not provided by port gettext.
DEBUG: Requested variant macosx is not provided by port gettext.
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: libiconv 1.13.1_0 exists in the ports tree
DEBUG: libiconv 1.13.1_0  is the latest installed
DEBUG: libiconv 1.13.1_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.3.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port libiconv.
DEBUG: Requested variant i386 is not provided by port libiconv.
DEBUG: Requested variant macosx is not provided by port libiconv.
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: gperf 3.0.4_0 exists in the ports tree
DEBUG: gperf 3.0.4_0  is the latest installed
DEBUG: gperf 3.0.4_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.3.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port gperf.
DEBUG: Requested variant i386 is not provided by port gperf.
DEBUG: Requested variant macosx is not provided by port gperf.
DEBUG: No need to upgrade! gperf 3.0.4_0 >= gperf 3.0.4_0
DEBUG: No need to upgrade! libiconv 1.13.1_0 >= libiconv 1.13.1_0
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: ncurses 5.7_0 exists in the ports tree
DEBUG: ncurses 5.7_0 +darwin_10 is the latest installed
DEBUG: ncurses 5.7_0 +darwin_10 is active
DEBUG: Merging existing variants darwin_10 into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.3.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port ncurses.
DEBUG: Requested variant i386 is not provided by port ncurses.
DEBUG: Requested variant macosx is not provided by port ncurses.
DEBUG: Executing variant darwin_10 provides darwin_10
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncursesw
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: ncursesw 5.7_0 exists in the ports tree
DEBUG: ncursesw 5.7_0 +darwin_10 is the latest installed
DEBUG: ncursesw 5.7_0 +darwin_10 is active
DEBUG: Merging existing variants darwin_10 into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncursesw
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.3.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port ncursesw.
DEBUG: Requested variant i386 is not provided by port ncursesw.
DEBUG: Requested variant macosx is not provided by port ncursesw.
DEBUG: Executing variant darwin_10 provides darwin_10
DEBUG: No need to upgrade! ncursesw 5.7_0 >= ncursesw 5.7_0
DEBUG: No need to upgrade! ncurses 5.7_0 >= ncurses 5.7_0
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: expat 2.0.1_0 exists in the ports tree
DEBUG: expat 2.0.1_0  is the latest installed
DEBUG: expat 2.0.1_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.3.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Requested variant darwin is not provided by port expat.
DEBUG: Requested variant i386 is not provided by port expat.
DEBUG: Requested variant macosx is not provided by port expat.
DEBUG: No need to upgrade! expat 2.0.1_0 >= expat 2.0.1_0
DEBUG: No need to upgrade! gettext 0.17_4 >= gettext 0.17_4
DEBUG: No need to upgrade! i386-elf-binutils 2.18.50.0.9_0 >= i386-elf-binutils 2.18.50.0.9_0
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gmp
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: gmp 5.0.1_0 exists in the ports tree
DEBUG: gmp 5.0.1_0  is the latest installed
DEBUG: gmp 5.0.1_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gmp
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.3.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port gmp.
DEBUG: Requested variant i386 is not provided by port gmp.
DEBUG: Requested variant macosx is not provided by port gmp.
DEBUG: No need to upgrade! gmp 5.0.1_0 >= gmp 5.0.1_0
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/mpfr
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: mpfr 2.4.2-p1_0 exists in the ports tree
DEBUG: mpfr 2.4.2-p1_0  is the latest installed
DEBUG: mpfr 2.4.2-p1_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/mpfr
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.3.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port mpfr.
DEBUG: Requested variant i386 is not provided by port mpfr.
DEBUG: Requested variant macosx is not provided by port mpfr.
DEBUG: No need to upgrade! mpfr 2.4.2-p1_0 >= mpfr 2.4.2-p1_0
--->  Computing dependencies for i386-elf-gcc
DEBUG: Searching for dependency: i386-elf-binutils
DEBUG: Found Dependency: receipt exists for i386-elf-binutils
DEBUG: Searching for dependency: gmp
DEBUG: Found Dependency: receipt exists for gmp
DEBUG: Searching for dependency: mpfr
DEBUG: Found Dependency: receipt exists for mpfr
DEBUG: Searching for dependency: gettext
DEBUG: Found Dependency: receipt exists for gettext
DEBUG: Executing org.macports.main (i386-elf-gcc)
DEBUG: Skipping completed org.macports.fetch (i386-elf-gcc)
DEBUG: Skipping completed org.macports.checksum (i386-elf-gcc)
DEBUG: setting option extract.cmd to /usr/bin/bzip2
DEBUG: Skipping completed org.macports.extract (i386-elf-gcc)
DEBUG: Skipping completed org.macports.patch (i386-elf-gcc)
--->  Configuring i386-elf-gcc
DEBUG: Using compiler 'Mac OS X gcc 4.2'
DEBUG: Executing proc-pre-org.macports.configure-configure-0
DEBUG: Executing org.macports.configure (i386-elf-gcc)
DEBUG: Environment: AS_FOR_TARGET='i386-elf-as' CFLAGS='-O2' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' F90FLAGS='-O2 -m32' LD_FOR_TARGET='i386-elf-ld' RANLIB_FOR_TARGET='i386-elf-ranlib' LDFLAGS='-L/opt/local/lib' FCFLAGS='-O2 -m32' OBJC='/usr/bin/gcc-4.2' INSTALL='/usr/bin/install -c' AR_FOR_TARGET='i386-elf-ar' NM_FOR_TARGET='i386-elf-nm' FFLAGS='-O2 -m32' OBJCFLAGS='-O2' CC='cc -no-cpp-precomp -I/opt/local/include'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-gcc/work/build" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-gcc/work/gcc-4.3.2/configure --prefix=/opt/local --infodir='/opt/local/share/info' --mandir='/opt/local/share/man' --target=i386-elf --program-prefix=i386-elf- --program-suffix=-4.3.2 --without-included-gettext --enable-obsolete --with-newlib --disable-libgfortran --with-gxx-include-dir=/opt/local/i386-elf/include/c++/4.3.2/ --enable-languages="c,c++,objc"'
checking build system type... i386-apple-darwin10.3.0
checking host system type... i386-apple-darwin10.3.0
checking target system type... i386-pc-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... cc -no-cpp-precomp -I/opt/local/include
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc -no-cpp-precomp -I/opt/local/include accepts -g... yes
checking for cc -no-cpp-precomp -I/opt/local/include option to accept ANSI C... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/g++-4.2 accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-gcc/work/build" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-gcc/work/gcc-4.3.2/configure --prefix=/opt/local --infodir='/opt/local/share/info' --mandir='/opt/local/share/man' --target=i386-elf --program-prefix=i386-elf- --program-suffix=-4.3.2 --without-included-gettext --enable-obsolete --with-newlib --disable-libgfortran --with-gxx-include-dir=/opt/local/i386-elf/include/c++/4.3.2/ --enable-languages="c,c++,objc" " returned error 1
DEBUG: Backtrace: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-gcc/work/build" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-gcc/work/gcc-4.3.2/configure --prefix=/opt/local --infodir='/opt/local/share/info' --mandir='/opt/local/share/man' --target=i386-elf --program-prefix=i386-elf- --program-suffix=-4.3.2 --without-included-gettext --enable-obsolete --with-newlib --disable-libgfortran --with-gxx-include-dir=/opt/local/i386-elf/include/c++/4.3.2/ --enable-languages="c,c++,objc" " returned error 1
    while executing
"$procedure $targetname"
Warning: the following items did not execute (for i386-elf-gcc): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
localhost ~ $ sudo port installed
The following ports are currently installed:
  bash-completion @1.1_6 (active)
  cscope @15.7a_0 (active)
  ctags @5.8_0 (active)
  curl @7.20.0_0+ssl (active)
  curl-ca-bundle @7.20.0_3 (active)
  expat @2.0.1_0 (active)
  findutils @4.4.2_0 (active)
  gettext @0.17_4 (active)
  git-core @1.7.0.4_0 (active)
  gmp @5.0.1_0 (active)
  gperf @3.0.4_0 (active)
  gsed @4.2.1_0 (active)
  i386-elf-binutils @2.18.50.0.9_0+darwin_10 (active)
  libiconv @1.13.1_0 (active)
  libidn @1.16_0 (active)
  mpfr @2.4.2-p1_0 (active)
  ncurses @5.7_0+darwin_10 (active)
  ncursesw @5.7_0+darwin_10 (active)
  openssl @0.9.8n_0+darwin (active)
  p5-error @0.17016_0 (active)
  perl5 @5.8.9_0 (active)
  perl5.8 @5.8.9_3 (active)
  pkgconfig @0.23_1 (active)
  popt @1.15_0 (active)
  rsync @3.0.7_0 (active)
  zlib @1.2.4_1 (active)
localhost ~ $ 

comment:2 Changed 15 years ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: i386-elf-gcc mpfr removed
Owner: changed from macports-tickets@… to stepan@…

Please remember to cc the maintainer.

comment:3 Changed 15 years ago by wcmiii@…

Cc: wcmiii@… added

Cc Me!

comment:4 Changed 15 years ago by stepan@…

When compiling GMP you need to add "ABI=32" to its configure run.

In a custom gcc build script I did this:

        if [ `uname` = "Darwin" ]; then
                # generally the OS X compiler can create x64 binaries.
                # Per default it generated i386 binaries in 10.5 and x64
                # binaries in 10.6 (even if the kernel is 32bit)
                # For some weird reason, 10.5 autodetects an ABI=64 though
                # so we're setting the ABI explicitly here.
                OPTIONS="ABI=32"
                touch .architecture_check.c
                gcc .architecture_check.c -c -o .architecture_check.o
                ARCH=`file .architecture_check.o |cut -f5 -d\ `
                test  "$ARCH" = "x86_64" && OPTIONS="ABI=64"
                rm .architecture_check.c .architecture_check.o
        fi

        ../${GMP_DIR}/configure --disable-shared --prefix=$TARGETDIR $OPTIONS \
                || touch .failed

Then, MPFR needs to be compiled with GMP's CFLAGS:

# Now set CFLAGS to match GMP CFLAGS.
HOSTCFLAGS=`grep __GMP_CFLAGS $DESTDIR$TARGETDIR/include/gmp.h |cut -d\" -f2`
[..]
../${MPFR_DIR}/configure --disable-shared --prefix=$TARGETDIR \
        --infodir=$TARGETDIR/info \
        --with-gmp=$DESTDIR$TARGETDIR CFLAGS="$HOSTCFLAGS" || touch .failed

comment:5 Changed 15 years ago by stepan@…

How can I add mcalhoun and vinc17 to CC here? Their packages are involved in the issue.

comment:6 Changed 14 years ago by mf2k (Frank Schima)

Cc: mcalhoun@… vinc17@… added

comment:7 in reply to:  4 Changed 14 years ago by vinc17@…

Replying to stepan@…:

# For some weird reason, 10.5 autodetects an ABI=64 though # so we're setting the ABI explicitly here.

It is well known that GMP doesn't necessarily use the default ABI. The reason is that it is generally faster. But I think that's a bad reason since this yields compatibility problems with other installed software.

Then, MPFR needs to be compiled with GMP's CFLAGS:

# Now set CFLAGS to match GMP CFLAGS.
HOSTCFLAGS=`grep __GMP_CFLAGS $DESTDIR$TARGETDIR/include/gmp.h |cut -d\" -f2`

This shouldn't be necessary: the MPFR configure script uses the GMP CFLAGS by default. If for some reason, the MPFR autodetection of CFLAGS doesn't work, I'd like to know...

comment:8 Changed 10 years ago by jmroot (Joshua Root)

Summary: i386-elf-gcc configure error with build_arch i386i386-elf-gcc @4.3.2 configure error with build_arch i386

Is this still a problem with 4.7.2?

comment:9 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Owner: stepan@… deleted
Status: newassigned

comment:10 Changed 6 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: assignedclosed

I updated the port to 8.2.0 which compiled successfully on i386/10.6. I'm not sure how to reproduce the problem (what should I do to reproduce it). The reporter didn't respond about whether or not this is still a problem, so I'm closing the ticket under assumption that it is.

comment:11 Changed 6 years ago by mojca (Mojca Miklavec)

Cc: mojca added
Note: See TracTickets for help on using tickets.