[GHC] #10901: failing build of ghc in openSUSE with ncurses-6.0

#10901: failing build of ghc in openSUSE with ncurses-6.0
-------------------------------------+-------------------------------------
Reporter: mimi.vx | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build | Version: 7.10.2
System |
Keywords: | Operating System: Linux
Architecture: | Type of failure: Building GHC
Unknown/Multiple | failed
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Revisions: |
-------------------------------------+-------------------------------------
build of GHC-7.10.2 in openSUSE:Factory always fails with:
{{{
[ 530s] "/usr/bin/ghc" -o utils/ghc-pkg/dist/build/tmp/ghc-pkg -hisuf hi
-osuf o -hcsuf hc -static -H32m -O -package-db
libraries/bootstrapping.conf -hide-all-packages -i -iutils/ghc-pkg/.
-iutils/ghc-pkg/dist/build -iutils/ghc-pkg/dist/build/autogen -Iutils/ghc-
pkg/dist/build -Iutils/ghc-pkg/dist/build/autogen -optP-include
-optPutils/ghc-pkg/dist/build/autogen/cabal_macros.h -package
Cabal-1.22.4.0 -package base-4.7.0.1 -package bin-package-db-0.0.0.0
-package binary-0.7.5.0 -package bytestring-0.10.4.0 -package
containers-0.5.5.1 -package directory-1.2.1.0 -package filepath-1.3.0.2
-package process-1.2.0.0 -package terminfo-0.4.0.1 -package unix-2.7.0.1
-XHaskell2010 -no-user-package-db -rtsopts -odir utils/ghc-
pkg/dist/build -hidir utils/ghc-pkg/dist/build -stubdir utils/ghc-
pkg/dist/build
-optl-L'/home/abuild/rpmbuild/BUILD/ghc-7.10.2/libraries/terminfo/dist-
boot/build' -optl-L'/home/abuild/rpmbuild/BUILD/ghc-7.10.2/libraries/bin-
package-db/dist-boot/build'
-optl-L'/home/abuild/rpmbuild/BUILD/ghc-7.10.2/libraries/Cabal/Cabal/dist-
boot/build' -optl-L'/usr/lib/ghc-7.8.3/process-1.2.0.0'
-optl-L'/usr/lib/ghc-7.8.3/pretty-1.1.1.1'
-optl-L'/usr/lib/ghc-7.8.3/directory-1.2.1.0'
-optl-L'/usr/lib/ghc-7.8.3/unix-2.7.0.1'
-optl-L'/usr/lib/ghc-7.8.3/time-1.4.2' -optl-L'/usr/lib/ghc-7.8.3/old-
locale-1.0.0.6' -optl-L'/usr/lib/ghc-7.8.3/filepath-1.3.0.2'
-optl-L'/home/abuild/rpmbuild/BUILD/ghc-7.10.2/libraries/binary/dist-
boot/build' -optl-L'/usr/lib/ghc-7.8.3/containers-0.5.5.1'
-optl-L'/usr/lib/ghc-7.8.3/bytestring-0.10.4.0'
-optl-L'/usr/lib/ghc-7.8.3/deepseq-1.3.0.2'
-optl-L'/usr/lib/ghc-7.8.3/array-0.5.0.0'
-optl-L'/usr/lib/ghc-7.8.3/base-4.7.0.1' -optl-L'/usr/lib/ghc-7.8.3
/integer-simple-0.1.1.0' -optl-L'/usr/lib/ghc-7.8.3/ghc-prim-0.3.1.0'
-optl-L'/usr/lib/ghc-7.8.3/rts-1.0' -optl-ltinfo -optl-lrt -optl-lutil
-optl-ldl -optl-lpthread -optl-lm -optl-lrt -optl-ldl -static -H32m -O
-package-db libraries/bootstrapping.conf -hide-all-packages -i -iutils
/ghc-pkg/. -iutils/ghc-pkg/dist/build -iutils/ghc-pkg/dist/build/autogen
-Iutils/ghc-pkg/dist/build -Iutils/ghc-pkg/dist/build/autogen -optP-
include -optPutils/ghc-pkg/dist/build/autogen/cabal_macros.h -package
Cabal-1.22.4.0 -package base-4.7.0.1 -package bin-package-db-0.0.0.0
-package binary-0.7.5.0 -package bytestring-0.10.4.0 -package
containers-0.5.5.1 -package directory-1.2.1.0 -package filepath-1.3.0.2
-package process-1.2.0.0 -package terminfo-0.4.0.1 -package unix-2.7.0.1
-XHaskell2010 -no-user-package-db -rtsopts utils/ghc-
pkg/dist/build/Main.o utils/ghc-pkg/dist/build/Version.o
[ 531s] /home/abuild/rpmbuild/BUILD/ghc-7.10.2/libraries/terminfo/dist-
boot/build/libHSterminfo-0.4.0.1.a(Base.o): In function `c8bd_info':
[ 531s] /tmp/ghc13028_0/ghc13028_6.o:(.text+0x1a1a): undefined reference
to `cur_term'
[ 531s] /tmp/ghc13028_0/ghc13028_6.o:(.text+0x1a1e): undefined reference
to `cur_term'
[ 531s] /home/abuild/rpmbuild/BUILD/ghc-7.10.2/libraries/terminfo/dist-
boot/build/libHSterminfo-0.4.0.1.a(Base.o): In function `c8bw_info':
[ 531s] /tmp/ghc13028_0/ghc13028_6.o:(.text+0x1b2a): undefined reference
to `cur_term'
[ 531s] /tmp/ghc13028_0/ghc13028_6.o:(.text+0x1b2e): undefined reference
to `cur_term'
[ 531s] /home/abuild/rpmbuild/BUILD/ghc-7.10.2/libraries/terminfo/dist-
boot/build/libHSterminfo-0.4.0.1.a(Base.o): In function `s7EW_info':
[ 531s] /tmp/ghc13028_0/ghc13028_6.o:(.text+0x1d02): undefined reference
to `cur_term'
[ 531s] /home/abuild/rpmbuild/BUILD/ghc-7.10.2/libraries/terminfo/dist-
boot/build/libHSterminfo-0.4.0.1.a(Base.o):/tmp/ghc13028_0/ghc13028_6.o:(.text+0x1d06):
more undefined references to `cur_term' follow
[ 531s] collect2: error: ld returned 1 exit status
[ 531s] utils/ghc-pkg/ghc.mk:46: recipe for target 'utils/ghc-
pkg/dist/build/tmp/ghc-pkg' failed
[ 531s] make[1]: *** [utils/ghc-pkg/dist/build/tmp/ghc-pkg] Error 1
[ 531s] make[1]: *** Waiting for unfinished jobs....
[ 536s] <

#10901: failing build of ghc in openSUSE with ncurses-6.0 -------------------------------------+------------------------------------- Reporter: mimi.vx | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.10.2 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by mimi.vx): ncurses 6.0 doesn't export function cur_term, {{{ $ readelf -a libncurses.so.6 | grep cur_term 000000228328 006d00000007 R_X86_64_JUMP_SLO 0000000000000000 _nc_cur_term + 0 109: 0000000000000000 0 FUNC GLOBAL DEFAULT UND _nc_cur_term@NCURSES6_TINFO_5.7.20081102 (24) $ readelf -a libncurses.so.5 | grep cur_term 000000225f70 003900000006 R_X86_64_GLOB_DAT 0000000000000000 cur_term + 0 57: 0000000000000000 0 OBJECT GLOBAL DEFAULT UND cur_term@NCURSES_TINFO_5.0.19991023 (29) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10901#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10901: failing build of ghc in openSUSE with ncurses-6.0 -------------------------------------+------------------------------------- Reporter: mimi.vx | Owner: Type: bug | Status: upstream Priority: normal | Milestone: Component: Build System | Version: 7.10.2 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thomie): * status: new => upstream Comment: Thanks for opening https://github.com/judah/terminfo/issues/7. It should be fixed there first, after which we can update the terminfo submodule in the ghc repository. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10901#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10901: failing build of ghc in openSUSE with ncurses-6.0 -------------------------------------+------------------------------------- Reporter: mimi.vx | Owner: Type: bug | Status: upstream Priority: normal | Milestone: Component: Build System | Version: 7.10.2 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by mimi.vx): proposed patch by Scot Bahling - https://github.com/mimi1vx/terminfo/commit/68674ed51d94bdee6ea3ea10c1494352c... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10901#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10901: failing build of ghc in openSUSE with ncurses-6.0 -------------------------------------+------------------------------------- Reporter: mimi.vx | Owner: Type: bug | Status: upstream Priority: highest | Milestone: 8.0.1 Component: Build System | Version: 7.10.2 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * priority: normal => highest * milestone: => 8.0.1 Comment: The patch is merged upstream. Let's not forget to update the submodule before the 8.0 release. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10901#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10901: failing build of ghc in openSUSE with ncurses-6.0 -------------------------------------+------------------------------------- Reporter: mimi.vx | Owner: Type: bug | Status: closed Priority: highest | Milestone: 8.0.1 Component: Build System | Version: 7.10.2 Resolution: fixed | Keywords: Operating System: Linux | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: upstream => closed * resolution: => fixed Comment: This is fixed as we updated `terminfo` and `haskeline`. Closing. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10901#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC