[GHC] #7652: Testing freezes on FreeBSD 9.1.

#7652: Testing freezes on FreeBSD 9.1. --------------------------+------------------------------------------------- Reporter: kazu-yamamoto | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: FreeBSD | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: --------------------------+------------------------------------------------- "gmake THREADS=10 fast" in the testsuite/tests directory does not finish. The following processes use CPU 100%: * 367_letnoesca * throwto001 * Chan002 * ghc-stage2 compiling conc070.hs The following process is waiting for something forever: * signals004 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7652 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7652: Testing freezes on FreeBSD 9.1. ---------------------------------+------------------------------------------ Reporter: kazu-yamamoto | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: FreeBSD Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Changes (by simonmar): * difficulty: => Unknown Old description:
"gmake THREADS=10 fast" in the testsuite/tests directory does not finish.
The following processes use CPU 100%: * 367_letnoesca * throwto001 * Chan002 * ghc-stage2 compiling conc070.hs
The following process is waiting for something forever: * signals004
New description: "gmake THREADS=10 fast" in the testsuite/tests directory does not finish. The following processes use CPU 100%: * 367_letnoesca * throwto001 * Chan002 * ghc-stage2 compiling conc070.hs The following process is waiting for something forever: * signals004 -- Comment: `367_letnoescape(llvm)` is currently failing: #7297. It should fail by a timeone; if the timeout script is not working on FreeBSD that needs looking into. `throwto001` and `Chan002` are worrying, they shouldn't hang. `ghc-stage2` compiling `conc070.hs` is probably `conc070(ghci)`. It shouldn't fail either. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7652#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7652: Testing freezes on FreeBSD 9.1. ---------------------------------+------------------------------------------ Reporter: kazu-yamamoto | Owner: pgj Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: FreeBSD Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Changes (by pgj): * cc: pgj@… (added) * owner: => pgj Comment: Take. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7652#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7652: Testing freezes on FreeBSD 9.1. ---------------------------------+------------------------------------------ Reporter: kazu-yamamoto | Owner: pgj Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: FreeBSD Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Comment(by kazu-yamamoto): It seems to me that "timeout.py" cannot receive SIGALM. Since I could not find an easy way to call "sigprocmask", I used timeout.hs instead and put "unblockSignals fullSignalSet". In this case, testing can finish. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7652#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7652: Testing freezes on FreeBSD 9.1. ---------------------------------+------------------------------------------ Reporter: kazu-yamamoto | Owner: pgj Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Keywords: | Os: FreeBSD Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Changes (by igloo): * priority: normal => high * milestone: => 7.8.1 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7652#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7652: Testing freezes on FreeBSD 9.1. ---------------------------------+------------------------------------------ Reporter: kazu-yamamoto | Owner: pgj Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Keywords: | Os: FreeBSD Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Comment(by pgj): It looks like the FreeBSD port of Python (`lang/python27`) differs from Linux in how it handles threads due to [http://svnweb.freebsd.org/ports?view=revision&revision=230031 some changes] in the run-time system, and this seems to be the problem here. So I found if I build `lang/python27` with the (non-default) `PTH` option enabled then it works as expected, the testsuite finishes. Please verify if this solves the problem for you. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7652#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7652: Testing freezes on FreeBSD 9.1. ---------------------------------+------------------------------------------ Reporter: kazu-yamamoto | Owner: pgj Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Keywords: | Os: FreeBSD Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Comment(by kazu-yamamoto): Thank you for your effort. I have installed python 2.7 with pth. Unfortunately, "validate" stops when configuring the terminfo library: {{{ % config_args="--prefix=/ghc-head --with-iconv-includes=/usr/local/include --with-iconv-libraries=/usr/local/lib --with-gmp- includes=/usr/local/include --with-gmp-libraries=/usr/local/lib --with- gcc=/usr/local/bin/gcc47 --with-gcc-4.2=/usr/local/bin/gcc47 --with- system-libffi --with-ffi-includes=/usr/local/include --with-ffi- libraries=/usr/local/lib" THREADS=10 sh validate "inplace/bin/ghc-cabalghc-cabal" configure --with-ghc="/usr/local/bin/ghc" --wit h-ghc-pkg="/usr/local/bin/ghc-pkg" --package- db=/usr/home/kazu/work/ghc/librari es/bootstrapping.conf --disable-library-for-ghci --enable-library-vanilla --disa ble-library-profiling --disable-shared --configure-option=CFLAGS="-Wall -fno-sta ck-protector -Werror=unused-but-set-variable -Wno-error=inline" --configure-o ption=LDFLAGS=" -Wl,--hash-size=31 -Wl,--reduce-memory-overheads " --configure- option=CPPFLAGS=" " --configure-option=--with-iconv- includes="/usr/local/inclu de" --configure-option=--with-iconv-libraries="/usr/local/lib" --configure-optio n=--with-gmp-includes="/usr/local/include" --configure-option=--with-gmp- librari es="/usr/local/lib" --constraint "Cabal == 1.17.0" --constraint "hpc == 0.6. 0.1" --constraint "bin-package-db == 0.0.0.0" --constraint "hoopl == 3.10.0. 0" --constraint "transformers == 0.3.0.0" --constraint "terminfo == 0.3.2.5" --with-gcc="cc" --configure-option=--with-cc="cc" --with-ar="/usr/bin/ar" --wit h-ranlib="true" --with-alex="/usr/local/bin/alex" --with- happy="/usr/local/bin/h appy" -- dist-boot libraries/terminfo Configuring terminfo-0.3.2.5... configure: WARNING: unrecognized options: --with-compiler, --with-iconv- includes , --with-iconv-libraries, --with-gmp-includes, --with-gmp-libraries, --with-gcc checking for gcc... cc checking whether the C compiler works... no configure: error: in `/usr/home/kazu/work/ghc/libraries/terminfo': configure: error: C compiler cannot create executables configure: error: in `/usr/home/kazu/work/ghc/libraries/terminfo': configure: error: C compiler cannot create executables See `config.log' for more details gmake[1]: *** [libraries/terminfo/dist-boot/package-data.mk] Error 77 gmake: *** [all] Error 2 }}} gcc47 is not inherited to terminfo. This is strange. Before DLL, these configuration options works fine to "validate". Note that "build" works fine with these configuration options. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7652#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7652: Testing freezes on FreeBSD 9.1. ---------------------------------+------------------------------------------ Reporter: kazu-yamamoto | Owner: pgj Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Keywords: | Os: FreeBSD Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Comment(by kazu-yamamoto): After commenting out of {{{ SRC_CC_WARNING_OPTS += -Werror=unused-but-set-variable }}} in mk/validate-settings.mk, "validate" finished. Thank you for letting me know this. We should write an document about python on FreeBSD. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7652#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7652: Testing freezes on FreeBSD 9.1. ---------------------------------+------------------------------------------ Reporter: kazu-yamamoto | Owner: pgj Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Keywords: | Os: FreeBSD Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Comment(by pgj): Replying to [comment:7 kazu-yamamoto]:
After commenting out of {{{ SRC_CC_WARNING_OPTS += -Werror=unused-but-set-variable }}} in mk/validate-settings.mk, "validate" finished.
I am not sure that this is the right solution as `gcc47` shall support this flag. I believe this is just a consequence of the problem you have mentioned here: `gcc`, i.e. the base compiler is invoked instead of `gcc47`. The base `gcc` does not support the flag as it is of version 4.2.1. Note that invoking `cc` is the same as invoking `gcc` (4.2.1). By the way, you may want to try setting the `CC` environment variable to `/usr/local/bin/gcc47` as well.
We should write an document about python on FreeBSD.
I have tracked down the source of the problem: it turned out the aforementioned modification for the run-time system [http://lists.freebsd.org/pipermail/freebsd-python/2013-April/005376.html is not needed] so if you just remove the associated patch and rebuild your `lang/python27` port without `PTH` everything shall just work. I am hoping to see this issue fixed in the Ports Collection so users will not be affected by this any more. However, I can mention this in the [wiki:Building/Preparation/FreeBSD FreeBSD Building Guide]. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7652#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7652: Testing freezes on FreeBSD 9.1. ---------------------------------+------------------------------------------ Reporter: kazu-yamamoto | Owner: pgj Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Keywords: | Os: FreeBSD Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Comment(by kazu-yamamoto): I confirmed that after removing files/patch-Python_thread__pthread.h, python 2.7 without pth can finish "validate". I think we can close this issue. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7652#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7652: Testing freezes on FreeBSD 9.1. ----------------------------+----------------------------------------------- Reporter: kazu-yamamoto | Owner: pgj Type: bug | Status: closed Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: wontfix | Keywords: Os: FreeBSD | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: ----------------------------+----------------------------------------------- Changes (by pgj): * status: new => closed * resolution: => wontfix Comment: Close the ticket per the submitter's request. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7652#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC