Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: [gold] configure: error: curses library not found, so this package cannot be built
https://bugzilla.redhat.com/show_bug.cgi?id=635581
Summary: [gold] configure: error: curses library not found, so this package cannot be built Product: Fedora Version: rawhide Platform: All OS/Version: Linux Status: NEW Severity: medium Priority: low Component: ghc AssignedTo: petersen@redhat.com ReportedBy: mnowak@redhat.com QAContact: extras-qa@fedoraproject.org CC: petersen@redhat.com, bos@serpentine.com, loupgaroublond@gmail.com, fedora-haskell-list@redhat.com Classification: Fedora Target Release: ---
Description of problem:
ghc-6.12.3-5.fc15.src.rpm rebuild with gold (the alternative linker in binutils) fails because configure script won't find curses:
DEBUG: ncurses.x86_64 0:5.7-8.20100703.fc14 DEBUG: ncurses-base.x86_64 0:5.7-8.20100703.fc14 DEBUG: ncurses-libs.x86_64 0:5.7-8.20100703.fc14 DEBUG: ncurses-base.x86_64 0:5.7-8.20100703.fc14 DEBUG: ncurses-libs.x86_64 0:5.7-8.20100703.fc14 DEBUG: /usr/bin/yum --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ resolvedep ccache 'libffi-devel' 'gmp-devel' 'ghc-rpm-macros >= 0.8.0' 'ncurses-devel' 'python' 'docbook-style-xsl' 'ghc' 'libxslt' 'hscolour' 'happy' DEBUG: Executing command: /usr/bin/yum --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ resolvedep ccache 'libffi-devel' 'gmp-devel' 'ghc-rpm-macros >= 0.8.0' 'ncurses-devel' 'python' 'docbook-style-xsl' 'ghc' 'libxslt' 'hscolour' 'happy' --setopt=tsflags=nocontexts DEBUG: 0:ncurses-devel-5.7-8.20100703.fc14.x86_64 DEBUG: /usr/bin/yum --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ install ccache 'libffi-devel' 'gmp-devel' 'ghc-rpm-macros >= 0.8.0' 'ncurses-devel' 'python' 'docbook-style-xsl' 'ghc' 'libxslt' 'hscolour' 'happy' DEBUG: Executing command: /usr/bin/yum --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ install ccache 'libffi-devel' 'gmp-devel' 'ghc-rpm-macros >= 0.8.0' 'ncurses-devel' 'python' 'docbook-style-xsl' 'ghc' 'libxslt' 'hscolour' 'happy' --setopt=tsflags=nocontexts DEBUG: ncurses-devel x86_64 5.7-8.20100703.fc14 fedora 663 k DEBUG: libxslt.x86_64 0:1.1.26-3.fc14 ncurses-devel.x86_64 0:5.7-8.20100703.fc14 DEBUG: checking ncurses.h usability... yes DEBUG: checking ncurses.h presence... yes DEBUG: checking for ncurses.h... yes DEBUG: checking for setupterm in -lncursesw... no DEBUG: checking for setupterm in -lncurses... no
Version-Release number of selected component (if applicable):
ghc-6.12.3-5.fc15
How reproducible:
always (x86_64)
Steps to Reproduce: 1. alternatives --config ld 2. set gold 3. rebuild ghc srpm
Actual results:
Expected results:
DEBUG: ncurses.x86_64 0:5.7-8.20100703.fc14 DEBUG: ncurses-base.x86_64 0:5.7-8.20100703.fc14 DEBUG: ncurses-base.x86_64 0:5.7-8.20100703.fc14 DEBUG: ncurses-libs.x86_64 0:5.7-8.20100703.fc14
DEBUG: /usr/bin/yum --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ resolvedep ccache 'libffi-devel' 'gmp-devel' 'ghc-rpm-macros >= 0.8.0' 'ncurses-devel' 'python' 'docbook-style-xsl' 'ghc' 'libxslt' 'hscolour' 'happy' DEBUG: Executing command: /usr/bin/yum --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ resolvedep ccache 'libffi-devel' 'gmp-devel' 'ghc-rpm-macros >= 0.8.0' 'ncurses-devel' 'python' 'docbook-style-xsl' 'ghc' 'libxslt' 'hscolour' 'happy' --setopt=tsflags=nocontexts DEBUG: 0:ncurses-devel-5.7-8.20100703.fc14.x86_64 DEBUG: /usr/bin/yum --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ install ccache 'libffi-devel' 'gmp-devel' 'ghc-rpm-macros >= 0.8.0' 'ncurses-devel' 'python' 'docbook-style-xsl' 'ghc' 'libxslt' 'hscolour' 'happy' DEBUG: Executing command: /usr/bin/yum --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ install ccache 'libffi-devel' 'gmp-devel' 'ghc-rpm-macros >= 0.8.0' 'ncurses-devel' 'python' 'docbook-style-xsl' 'ghc' 'libxslt' 'hscolour' 'happy' --setopt=tsflags=nocontexts DEBUG: ncurses-devel x86_64 5.7-8.20100703.fc14 fedora 663 k DEBUG: libxslt.x86_64 0:1.1.26-3.fc14 ncurses-devel.x86_64 0:5.7-8.20100703.fc14 DEBUG: checking ncurses.h usability... yes DEBUG: checking ncurses.h presence... yes DEBUG: checking for ncurses.h... yes DEBUG: checking for setupterm in -lncursesw... yes
Additional info:
Since gold might be the default linker (per http://fedoraproject.org/wiki/Features/GoldLinkerDefault) this problem might be worth fixing.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=635581
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Flag| |needinfo?(mnowak@redhat.com | |)
--- Comment #1 from Jens Petersen petersen@redhat.com 2010-09-20 21:18:07 EDT --- Could you please attach the full buildlog?
I tried on F14 with gold and it seems to find ncurses fine.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=635581
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|[gold] configure: error: |[gold] ghc split-objs |curses library not found, |breaks with gold linker |so this package cannot be | |built |
--- Comment #2 from Jens Petersen petersen@redhat.com 2010-09-20 22:24:19 EDT --- Well as above I can't reproduce the ncurses issue on F14 (perhaps that only happens on F15?).
However later in the build I ran into:
"inplace/bin/ghc-stage1" -H32m -O -package-name ghc-prim-0.2.0.0 -hide-all-packages -i -ilibraries/ghc-prim/. -ilibraries/ghc-prim/dist-install/build -ilibraries/ghc-prim/dist-install/build/autogen -Ilibraries/ghc-prim/dist-install/build -Ilibraries/ghc-prim/dist-install/build/autogen -Ilibraries/ghc-prim/. -optP-include -optPlibraries/ghc-prim/dist-install/build/autogen/cabal_macros.h -package rts-1.0 -split-objs -package-name ghc-prim -XCPP -XMagicHash -XForeignFunctionInterface -XUnliftedFFITypes -XUnboxedTuples -XEmptyDataDecls -XNoImplicitPrelude -O2 -XGenerics -fno-warn-deprecated-flags -odir libraries/ghc-prim/dist-install/build -hidir libraries/ghc-prim/dist-install/build -stubdir libraries/ghc-prim/dist-install/build -hisuf hi -osuf o -hcsuf hc -c libraries/ghc-prim/./GHC/Generics.hs -o libraries/ghc-prim/dist-install/build/GHC/Generics.o /usr/bin/ld: error: cannot find libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__1.o /usr/bin/ld: error: cannot find libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/.o::Generics(void) /usr/bin/ld: error: cannot find libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__3.o /usr/bin/ld: error: cannot find libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__4.o /usr/bin/ld: error: cannot find libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__5.o /usr/bin/ld: error: cannot find libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__6.o /usr/bin/ld: error: cannot find libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__7.o /usr/bin/ld: error: cannot find libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__8.o /usr/bin/ld: error: cannot find libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__9.o /usr/bin/ld: error: cannot find libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__10.o /usr/bin/ld: error: cannot find libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__11.o /usr/bin/ld: error: cannot find libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__12.o /usr/bin/ld: error: cannot find libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__13.o /usr/bin/ld: error: cannot find libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__14.o /usr/bin/ld: error: cannot find libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__15.o /usr/bin/ld: error: cannot find libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__16.o collect2: ld returned 1 exit status make[1]: *** [libraries/ghc-prim/dist-install/build/GHC/Generics.o] Error 1 make: *** [all] Error 2
I see a link script:
[ghc-6.12.3]$ ls libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/ Generics__1.o Generics__12.o Generics__15.o Generics__3.o Generics__6.o Generics__9.o Generics__10.o Generics__13.o Generics__16.o Generics__4.o Generics__7.o ld.script Generics__11.o Generics__14.o Generics__2.o Generics__5.o Generics__8.o [petersen@localhost ghc-6.12.3]$ less libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/ld.script [petersen@localhost ghc-6.12.3]$ cat libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/ld.script INPUT(libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__1.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__2.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__3.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__4.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__5.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__6.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__7.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__8.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__9.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__10.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__11.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__12.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__13.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__14.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__15.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/Generics__16.o)
Checking the verbose ghc output the problem occurs here with :
/usr/bin/gcc -nostdlib -nodefaultlibs -Wl,-r -Wl,-x -o libraries/ghc-prim/dist-install/build/GHC/Generics.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/ld.script
Editing the linking script generated by ghc-split:
[ghc-6.12.3]$ sed -i.orig -e "s%libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/%%g" libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/ld.script [ghc-6.12.3]$ /usr/bin/gcc -nostdlib -nodefaultlibs -Wl,-r -Wl,-x -o libraries/ghc-prim/dist-install/build/GHC/Generics.o libraries/ghc-prim/dist-install/build/GHC/Generics_o_split/ld.script [ghc-6.12.3]$
So question that arises is should ld.gold support relative paths in link scripts or should ghc be changes to just like the local objects?
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=635581
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|[gold] ghc split-objs |[gold] problems building |breaks with gold linker |ghc with gold linker
--- Comment #3 from Jens Petersen petersen@redhat.com 2010-09-20 22:51:14 EDT --- The above sed change only works with ld.gold not ld.bfd. So it seems to be a ld.gold change of behaviour or regression compared to ld.bfd. I would be willing to patch ghc for Fedora if ld.gold and ld.bfd can agree on at least one of the versions of link scripts working.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=635581
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flag|needinfo?(mnowak@redhat.com | |) |
--- Comment #4 from Jens Petersen petersen@redhat.com 2010-09-20 23:21:28 EDT --- Ah I reproduced the ncurses problem with binutils-2.20.51.0.11-1.fc15. Interesting that binutils-2.20.51.0.7-5.fc14 is ok.
That is known issue with the libncurses*.so link script "hacks" in Fedora. I already have a workaround patch for ghc-terminfo (in package review) which could be applied to ghc's internal copy of terminfo too.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=635581
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |635935
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=635581
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks|635935 | Depends on| |635935
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=635581
--- Comment #5 from Jens Petersen petersen@redhat.com 2010-09-21 03:20:39 EDT --- Note that the ncurses issue is not ghc specific: I tested less and w3m for example and they also fail to configure ncurses. less builds with ncurses, but w3m fails to link.
I guess ld.gold is not compatible with current ld.scripts.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=635581
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |635965
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=635581
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks|635965 | Depends on| |635965
--- Comment #6 from Jens Petersen petersen@redhat.com 2010-09-21 03:31:30 EDT --- I filed bug 635965 for the ld.gold ncurses issue.
Perhaps this bug could be closed.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=635581
Michal Nowak mnowak@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |DEFERRED Last Closed| |2010-09-21 04:17:17
--- Comment #7 from Michal Nowak mnowak@redhat.com 2010-09-21 04:17:17 EDT --- Yes, we can close this one since it's not ghc specific. Thanks for investigation, Jens.
https://bugzilla.redhat.com/show_bug.cgi?id=635581 Bug 635581 depends on bug 635935, which changed state.
Bug 635935 Summary: [gold] ld.script with relative paths breaks with ld.gold linker https://bugzilla.redhat.com/show_bug.cgi?id=635935
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |EOL
https://bugzilla.redhat.com/show_bug.cgi?id=635581 Bug 635581 depends on bug 635965, which changed state.
Bug 635965 Summary: [gold] ld.gold does not work with ncurses linker script https://bugzilla.redhat.com/show_bug.cgi?id=635965
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |EOL
haskell-devel@lists.fedoraproject.org