Got a mail from a user Tobias Hommel <tobi@keksbude.net>: -----8<------ I had a problem compiling ghc-6.10.4 today, configure gave an error. Actually I found a fix for this on the net: ... #01:47:11 <Baconizer> ./configure gets to "checking for ld," then unexpected EOF at line 11121 #01:53:09 <int-e> Baconizer: try http://int-e.home.tlink.de/haskell/ghc-6.10.4-autoconf.diff #01:54:24 <int-e> (the syntax error is that the generated configure script contains fifi instead of fi fi in some places, with autoconf 2.64) ... and it works. Maybe you could apply this fix to the official ebuild. I attached a diff patch and the fixed ebuild. Maybe a test for autoconf is needed, as it may break with other versions of autoconf than 2.64. I only tested it with autoconf-2.64. ----->8------ Patch exist in the overlay, tested both with autoconf 2.64 which had the issue and autoconf 2.63 which previously worked fine. Both works great with the patch. Waiting to push to portage.
*** Bug 295486 has been marked as a duplicate of this bug. ***
cc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c AreaBelow.c -o AreaBelow.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c AuxFile.c -o AuxFile.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c Axes.c -o Axes.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c Curves.c -o Curves.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c Deviation.c -o Deviation.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c Dimensions.c -o Dimensions.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c Error.c -o Error.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c HpFile.c -o HpFile.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c Key.c -o Key.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c Main.c -o Main.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c Marks.c -o Marks.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c PsFile.c -o PsFile.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c Reorder.c -o Reorder.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c Scale.c -o Scale.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c Shade.c -o Shade.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c TopTwenty.c -o TopTwenty.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c TraceElement.c -o TraceElement.o gcc -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall -c Utilities.c -o Utilities.o gcc -o hp2ps -O -march=nocona -O2 -pipe -Wa,--noexecstack -I../../includes -Wall AreaBelow.o AuxFile.o Axes.o Curves.o Deviation.o Dimensions.o Error.o HpFile.o Key.o Main.o Marks.o PsFile.o Reorder.o Scale.o Shade.o TopTwenty.o TraceElement.o Utilities.o Deviation.o: In function `Deviation': Deviation.c:(.text+0x3c6): undefined reference to `sqrt' collect2: ld returned 1 exit status make[2]: *** [hp2ps] Error 1 Failed making all in hp2ps: 1 make[1]: *** [all] Error 1 make: *** [stage1] Error 1
Right. renato gallo, that's been reported as bug #293208, and I see you're following that one too. It will not go quicker to solve it by posting the output of one bug into the bug report of another.
Fixed and committed to portage. Please reopen if it did not fix the issue.
If this new build is supposed to be part of the standard Portage Tree, I'm not seeing it. Latest sync still indicates 6.10.3 as latest. (running into this bug and wanting to fix)
Your tree must be out of sync: $ls /gentoo/gentoo-tree/dev-lang/ghc/ ChangeLog ghc-6.10.4-r1.ebuild ghc-6.6.1.ebuild ghc-6.8.2-r1.ebuild files/ ghc-6.2.2.ebuild ghc-6.6.ebuild Manifest ghc-6.10.4.ebuild ghc-6.4.2.ebuild ghc-6.8.2.ebuild metadata.xml (Yes, mine is in a non-standard location); I just synced this about 10 minutes ago.