#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)
Change History (12)
Changed 15 years ago by orphen.leiliu@…
Attachment: | config.log added |
---|
comment:1 Changed 15 years ago by orphen.leiliu@…
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:4 follow-up: 7 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 15 years ago by mf2k (Frank Schima)
Cc: | mcalhoun@… vinc17@… added |
---|
comment:7 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 i386 → i386-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: | new → assigned |
comment:10 Changed 6 years ago by mojca (Mojca Miklavec)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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 |
---|
I'm sorry for the format.
The follow is better.