Re: [GHC] #7281: GHC 7.4.2 build fails on Fedora17
#7281: GHC 7.4.2 build fails on Fedora17 --+- Reporter: PaulJohnson| Owner: judah.jacobson@… Type: bug| Status: new Priority: high | Milestone: 7.8.1 Component: libraries (other) | Version: 7.4.2 Keywords: | Os: Linux Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown|Testcase: Blockedby: |Blocking: Related: | --+- Comment(by judahj): Replying to [comment:7 igloo]: I've applied this change as 6dde36fa0c347dbbb92affe932c5c79d030867db in GHC's 7.6 branch. Judah, could you apply it in the terminfo main repo please? Then I'll pull it into GHC HEAD. Done, thanks; apologies for the delay. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7281#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #7281: GHC 7.4.2 build fails on Fedora17
#7281: GHC 7.4.2 build fails on Fedora17 --+- Reporter: PaulJohnson| Owner: judah.jacobson@… Type: bug| Status: new Priority: high | Milestone: 7.8.1 Component: libraries (other) | Version: 7.4.2 Keywords: | Os: Linux Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown|Testcase: Blockedby: |Blocking: Related: | --+- Changes (by igloo): * component: Compiler = libraries (other) * milestone: 7.6.2 = 7.8.1 Comment: I've applied this change as 6dde36fa0c347dbbb92affe932c5c79d030867db in GHC's 7.6 branch. Judah, could you apply it in the terminfo main repo please? Then I'll pull it into GHC HEAD. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7281#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #7281: GHC 7.4.2 build fails on Fedora17
#7281: GHC 7.4.2 build fails on Fedora17 ---+ Reporter: PaulJohnson | Owner: judah.jacobson@… Type: bug | Status: new Priority: high| Milestone: 7.6.2 Component: Compiler| Version: 7.4.2 Keywords: | Os: Linux Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown |Testcase: Blockedby: |Blocking: Related: | ---+ Comment(by PaulJohnson): Sorry to take so long to check this. I can confirm that this fix allows GHC 7.4.2 to compile on Fedora 17. {{{ [paj@eiffel terminfo]$ diff configure.ac~ configure.ac 42,45c42,46 AC_CHECK_LIB(ncursesw, setupterm, HaveLibCurses=YES; LibCurses=ncursesw, [AC_CHECK_LIB(ncurses, setupterm, HaveLibCurses=YES; LibCurses=ncurses, [AC_CHECK_LIB(curses, setupterm, HaveLibCurses=YES; LibCurses=curses, HaveLibCurses=NO; LibCurses=not-installed)])]) --- AC_CHECK_LIB(tinfo, setupterm, HaveLibCurses=YES; LibCurses=tinfo, [AC_CHECK_LIB(ncursesw, setupterm, HaveLibCurses=YES; LibCurses=ncursesw, [AC_CHECK_LIB(ncurses, setupterm, HaveLibCurses=YES; LibCurses=ncurses, [AC_CHECK_LIB(curses, setupterm, HaveLibCurses=YES; LibCurses=curses, HaveLibCurses=NO; LibCurses=not-installed)])])]) }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7281#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #7281: GHC 7.4.2 build fails on Fedora17
#7281: GHC 7.4.2 build fails on Fedora17 ---+ Reporter: PaulJohnson | Owner: Type: bug | Status: new Priority: high| Milestone: 7.6.2 Component: Compiler| Version: 7.4.2 Keywords: | Os: Linux Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown |Testcase: Blockedby: |Blocking: Related: | ---+ Description changed by igloo: Old description: On Fedora 17 the build fails when attempting to run configure. The relevant section says: checking for ncurses.h... yes checking for setupterm in -lncursesw... no checking for setupterm in -lncurses... no checking for setupterm in -lcurses... no configure: error: in `/home/paj/packages/ghc-7.4.2/libraries/terminfo': configure: error: curses library not found, so this package cannot be built The relevant section from config.log says: configure~:3285: gcc -o conftest -g -O2 conftest.c -lncursesw 5 /usr/bin/ld: /tmp/cc1CCCaI.o: undefined reference to symbol 'setupterm' /usr/bin/ld: note: 'setupterm' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line /lib64/libtinfo.so.5: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status I've set the architecture to x86_64 because thats what I run, but I expect it would happen on other Fedora 17s as well. New description: On Fedora 17 the build fails when attempting to run configure. The relevant section says: {{{ checking for ncurses.h... yes checking for setupterm in -lncursesw... no checking for setupterm in -lncurses... no checking for setupterm in -lcurses... no configure: error: in `/home/paj/packages/ghc-7.4.2/libraries/terminfo': configure: error: curses library not found, so this package cannot be built }}} The relevant section from config.log says: {{{ configure~:3285: gcc -o conftest -g -O2 conftest.c -lncursesw 5 /usr/bin/ld: /tmp/cc1CCCaI.o: undefined reference to symbol 'setupterm' /usr/bin/ld: note: 'setupterm' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line /lib64/libtinfo.so.5: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status }}} I've set the architecture to x86_64 because thats what I run, but I expect it would happen on other Fedora 17s as well. -- -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7281#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #7281: GHC 7.4.2 build fails on Fedora17
#7281: GHC 7.4.2 build fails on Fedora17 ---+ Reporter: PaulJohnson | Owner: judah.jacobson@… Type: bug | Status: new Priority: high| Milestone: 7.6.2 Component: Compiler| Version: 7.4.2 Keywords: | Os: Linux Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown |Testcase: Blockedby: |Blocking: Related: | ---+ Changes (by igloo): * owner: = judah.jacobson@… Comment: Hmm, the nightly builders have libtinfo, so odd that they didn't run into this. Judah, this looks like a bug in the terminfo configure script; could you take a look please? -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7281#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #7281: GHC 7.4.2 build fails on Fedora17
#7281: GHC 7.4.2 build fails on Fedora17 ---+ Reporter: PaulJohnson | Owner: judah.jacobson@… Type: bug | Status: new Priority: high| Milestone: 7.6.2 Component: Compiler| Version: 7.4.2 Keywords: | Os: Linux Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown |Testcase: Blockedby: |Blocking: Related: | ---+ Comment(by judahj): It seems that ncurses was changed recently (?) to allow splitting off the terminfo-specific functionality into a separate library. The fix should be pretty simple; just edit configure.ac and change AC_CHECK_LIB(ncursesw, setupterm, HaveLibCurses=YES; LibCurses=ncursesw, [AC_CHECK_LIB(ncurses, setupterm, HaveLibCurses=YES; LibCurses=ncurses, [AC_CHECK_LIB(curses, setupterm, HaveLibCurses=YES; LibCurses=curses, HaveLibCurses=NO; LibCurses=not-installed)])]) adding an extra line to try tinfo first, and otherwise fall back to the above curses variants. Unfortunately, I don't have a system with libtinfo to test this on. Can someone please confirm whether that fixes the problem? -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7281#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #7281: GHC 7.4.2 build fails on Fedora17
#7281: GHC 7.4.2 build fails on Fedora17 ---+ Reporter: PaulJohnson | Owner: judah.jacobson@… Type: bug | Status: new Priority: high| Milestone: 7.6.2 Component: Compiler| Version: 7.4.2 Keywords: | Os: Linux Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown |Testcase: Blockedby: |Blocking: Related: | ---+ Comment(by judahj): Replying to [comment:4 judahj]: Sorry, messed up the formatting: {{{ AC_CHECK_LIB(ncursesw, setupterm, HaveLibCurses=YES; LibCurses=ncursesw, [AC_CHECK_LIB(ncurses, setupterm, HaveLibCurses=YES; LibCurses=ncurses, [AC_CHECK_LIB(curses, setupterm, HaveLibCurses=YES; LibCurses=curses, HaveLibCurses=NO; LibCurses=not-installed)])]) }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7281#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #7281: GHC 7.4.2 build fails on Fedora17
#7281: GHC 7.4.2 build fails on Fedora17 ---+ Reporter: PaulJohnson | Owner: Type: bug | Status: new Priority: high| Milestone: 7.6.2 Component: Compiler| Version: 7.4.2 Keywords: | Os: Linux Architecture: x86_64 (amd64) | Failure: Building GHC failed Difficulty: Unknown |Testcase: Blockedby: |Blocking: Related: | ---+ Changes (by simonmar): * priority: normal = high * difficulty: = Unknown * milestone: = 7.6.2 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7281#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
[GHC] #7281: GHC 7.4.2 build fails on Fedora17
#7281: GHC 7.4.2 build fails on Fedora17 -+-- Reporter: PaulJohnson | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.4.2| Keywords: Os: Linux| Architecture: x86_64 (amd64) Failure: Building GHC failed | Testcase: Blockedby: | Blocking: Related: | -+-- On Fedora 17 the build fails when attempting to run configure. The relevant section says: checking for ncurses.h... yes checking for setupterm in -lncursesw... no checking for setupterm in -lncurses... no checking for setupterm in -lcurses... no configure: error: in `/home/paj/packages/ghc-7.4.2/libraries/terminfo': configure: error: curses library not found, so this package cannot be built The relevant section from config.log says: configure~:3285: gcc -o conftest -g -O2 conftest.c -lncursesw 5 /usr/bin/ld: /tmp/cc1CCCaI.o: undefined reference to symbol 'setupterm' /usr/bin/ld: note: 'setupterm' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line /lib64/libtinfo.so.5: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status I've set the architecture to x86_64 because thats what I run, but I expect it would happen on other Fedora 17s as well. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7281 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs