Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66033 - dev-libs/gmp-4.1.2 fails to build under gcc 3.4.2
Summary: dev-libs/gmp-4.1.2 fails to build under gcc 3.4.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-01 08:44 UTC by Robert T Childers
Modified: 2015-04-08 06:57 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
[PATCH 1/6] Fix GCC 3.4 issues in gmp-4.1.2 (01-gmp-gcc34.patch,739 bytes, patch)
2004-10-02 12:21 UTC, tklauser
Details | Diff
[PATCH 2/6] Fix GCC 3.4 issues in gmp-4.1.2 (02-gmp-gcc34.patch,725 bytes, patch)
2004-10-02 12:22 UTC, tklauser
Details | Diff
[PATCH 3/6] Fix GCC 3.4 issues in gmp-4.1.2 (03-gmp-gcc34.patch,840 bytes, patch)
2004-10-02 12:23 UTC, tklauser
Details | Diff
[PATCH 4/6] Fix GCC 3.4 issues in gmp-4.1.2 (04-gmp-gcc34.patch,783 bytes, patch)
2004-10-02 12:23 UTC, tklauser
Details | Diff
[PATCH 5/6] Fix GCC 3.4 issues in gmp-4.1.2 (05-gmp-gcc34.patch,840 bytes, patch)
2004-10-02 12:24 UTC, tklauser
Details | Diff
[PATCH 6/6] Fix GCC 3.4 issues in gmp-4.1.2 (06-gmp-gcc34.patch,690 bytes, patch)
2004-10-02 12:25 UTC, tklauser
Details | Diff
All-in-one patch (includes all of the above 6 patches) (gmp-4.1.2-gcc34.patch,4.93 KB, patch)
2004-10-27 02:49 UTC, tklauser
Details | Diff
all-in-one, no copyright changes (gmp-4.1.2-gcc34.patch,3.39 KB, patch)
2004-11-05 16:04 UTC, Marien Zwart (RETIRED)
Details | Diff
patch to make the ebuild patch (patch,268 bytes, patch)
2004-11-05 16:05 UTC, Marien Zwart (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert T Childers 2004-10-01 08:44:37 UTC
gmp-4.1.2 failed to build while using gcc 3.4.2 but built just fine under gcc 3.3.4. 

Reproducible: Always
Steps to Reproduce:
1.gcc-config i686-pc-linux-gnu-3.4.2
2.emerge gmp
3.

Actual Results:  
gmp 4.1.2 failed to build

Expected Results:  
it should have compiled.

/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-D__GMP_WITHIN_GMP -I..    -march=athlon -O2
-pipe -c -o add.lo `test -f add.c || echo './'`add.c
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-D__GMP_WITHIN_GMP -I..    -march=athlon -O2
-pipe -c -o add_ui.lo `test -f add_ui.c || echo './'`add_ui.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -march=athlon -O2 -pipe
-c add_ui.c  -fPIC -DPIC -o .li
bs/add_ui.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -march=athlon -O2 -pipe
-c add.c  -fPIC -DPIC -o .libs/
add.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -march=athlon -O2 -pipe
-c add_ui.c -o add_ui.o >/dev/n
ull 2>&1
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-D__GMP_WITHIN_GMP -I..    -march=athlon -O2
-pipe -c -o abs.lo `test -f abs.c || echo './'`abs.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -march=athlon -O2 -pipe
-c add.c -o add.o >/dev/null 2>
&1
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-D__GMP_WITHIN_GMP -I..    -march=athlon -O2
-pipe -c -o aorsmul.lo `test -f aorsmul.c || echo './'`aorsmul.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -march=athlon -O2 -pipe
-c abs.c  -fPIC -DPIC -o .libs/
abs.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -march=athlon -O2 -pipe
-c abs.c -o abs.o >/dev/null 2>
&1
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-D__GMP_WITHIN_GMP -I..    -march=athlon -O2
-pipe -c -o aorsmul_i.lo `test -f aorsmul_i.c || echo './'`aorsmul_i.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -march=athlon -O2 -pipe
-c aorsmul.c  -fPIC -DPIC -o .l
ibs/aorsmul.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -march=athlon -O2 -pipe
-c aorsmul.c -o aorsmul.o >/dev
/null 2>&1
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -march=athlon -O2 -pipe
-c aorsmul_i.c  -fPIC -DPIC -o
.libs/aorsmul_i.o
make[2]: *** [aorsmul.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -march=athlon -O2 -pipe
-c aorsmul_i.c -o aorsmul_i.o >
/dev/null 2>&1
make[2]: *** [aorsmul_i.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/gmp-4.1.2/work/gmp-4.1.2/mpz'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gmp-4.1.2/work/gmp-4.1.2'
make: *** [all] Error 2
Comment 1 tklauser 2004-10-02 12:09:49 UTC
gmp-4.1.3 fixes this issue. I think it should be masked as stable though.

I'm putting together a patch, which backports the fixes to gmp-4.1.2.
Comment 2 tklauser 2004-10-02 12:21:11 UTC
Created attachment 40936 [details, diff]
[PATCH 1/6] Fix GCC 3.4 issues in gmp-4.1.2

PATCH 1 of 6
backported from gmp-4.1.3
Comment 3 tklauser 2004-10-02 12:22:45 UTC
Created attachment 40938 [details, diff]
[PATCH 2/6] Fix GCC 3.4 issues in gmp-4.1.2

Patch 2 of 6
backported from gmp-4.1.3
Comment 4 tklauser 2004-10-02 12:23:14 UTC
Created attachment 40939 [details, diff]
[PATCH 3/6] Fix GCC 3.4 issues in gmp-4.1.2

Patch 3 of 6
backported from gmp-4.1.3
Comment 5 tklauser 2004-10-02 12:23:52 UTC
Created attachment 40940 [details, diff]
[PATCH 4/6] Fix GCC 3.4 issues in gmp-4.1.2

Patch 4 of 6
backported from gmp-4.1.3
Comment 6 tklauser 2004-10-02 12:24:20 UTC
Created attachment 40941 [details, diff]
[PATCH 5/6] Fix GCC 3.4 issues in gmp-4.1.2

Patch 5 of 6
backported from gmp-4.1.3
Comment 7 tklauser 2004-10-02 12:25:08 UTC
Created attachment 40942 [details, diff]
[PATCH 6/6] Fix GCC 3.4 issues in gmp-4.1.2

Patch 6 of 6
backported from gmp-4.1.3

Sorry for the split, but it was easier to create the patches like that.
Comment 8 tklauser 2004-10-27 02:49:49 UTC
Created attachment 42678 [details, diff]
All-in-one patch (includes all of the above 6 patches)
Comment 9 Marien Zwart (RETIRED) gentoo-dev 2004-11-05 16:04:14 UTC
Created attachment 43368 [details, diff]
all-in-one, no copyright changes

Half of the patch consisted of copyright updates. That seemed a bit excessive
so I removed them. Both patched do the exact same thing otherwise.
Comment 10 Marien Zwart (RETIRED) gentoo-dev 2004-11-05 16:05:07 UTC
Created attachment 43369 [details, diff]
patch to make the ebuild patch

Trivial patch to make the ebuild apply the previous patch.
Comment 11 Marien Zwart (RETIRED) gentoo-dev 2004-11-05 16:11:37 UTC
gmp-4.1.2 didn't compile on my gcc 3.4 box without the patch. It does with the patch. It hasn't finished yet but it seems to compile with the patch on gcc 3.3 too. So this seems like a safe compile fix.

But I'm not sure how relevant this is anymore. gmp-4.1.3 and 4.1.4 don't need any patching and one of those is stable on everything but mips and alpha.
Comment 12 Bryan Østergaard (RETIRED) gentoo-dev 2004-11-05 18:15:15 UTC
I just marked 4.1.3 stable on alpha. Mips, it looks like this bug can be closed if you bump gmp.
Comment 13 SpanKY gentoo-dev 2004-12-06 20:17:53 UTC
4.1.4 is mips stable now