[GHC] #11574: schedule: re-entered unsafely on minimal hello world program on arm

#11574: schedule: re-entered unsafely on minimal hello world program on arm -------------------------------------+------------------------------------- Reporter: andrewufrank | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- i installed ghc 7.10.3 from jessie-backports (together with the corresponding LLVM 1:3.5.2.3~bpo8+2) and get for the minimal main = putStrLn "hello" program the error message {{{testthree: schedule: re-entered unsafely. Perhaps a 'foreign import unsafe' should be 'safe'? }} i am not certain if this is related: cabal install for the same minimal program (with a minimal cabal file) hangs. cabal install -v gives {{{ /home/frank/.cabal/setup-exe-cache/setup-Simple-Cabal-1.22.5.0-arm-linux- ghc-7.10.3 configure --verbose=2 --ghc --prefix=/home/frank/.cabal --bindir=/home/frank/.cabal/bin --libdir=/home/frank/.cabal/lib --libsubdir=arm-linux-ghc-7.10.3/testthree-0.0.6-3AgAf9bDkWJGZdbGLvO875 --libexecdir=/home/frank/.cabal/libexec --datadir=/home/frank/.cabal/share --datasubdir=arm-linux-ghc-7.10.3/testthree-0.0.6 --docdir=/home/frank/.cabal/share/doc/arm-linux-ghc-7.10.3/testthree-0.0.6 --htmldir=/home/frank/.cabal/share/doc/arm-linux- ghc-7.10.3/testthree-0.0.6/html --haddockdir=/home/frank/.cabal/share/doc/arm-linux- ghc-7.10.3/testthree-0.0.6/html --sysconfdir=/home/frank/.cabal/etc --user --extra-prog-path=/home/frank/.cabal/bin --dependency=base=base-4.8.2.0-2f1f71a7fcf013cd47fd21f489064f9a --disable-tests --exact-configuration --disable-benchmarks Redirecting build log to {handle: /home/frank/.cabal/logs/testthree-0.0.6.log} }}} any comment how this can be fixed? thank you - a running 7.10.3 for armhf is a great achievement! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11574 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11574: schedule: re-entered unsafely on minimal hello world program on arm ----------------------------------+------------------------------ Reporter: andrewufrank | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------+------------------------------ Changes (by andrewufrank): * failure: None/Unknown => Runtime crash * os: Unknown/Multiple => Linux * architecture: Unknown/Multiple => arm -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11574#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11574: schedule: re-entered unsafely on minimal hello world program on arm ----------------------------------+------------------------------ Reporter: andrewufrank | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------+------------------------------ Comment (by rwbarton): Well, #11190 looks identical. You say you are using LLVM 3.5.2, but in that ticket the reporter also thought they were using 3.5.2, but they weren't really. So, are you sure you are using 3.5.2? :) You could also try the ARM binary distribution from https://www.haskell.org/ghc/download_ghc_7_10_3#linux_armv7. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11574#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11574: schedule: re-entered unsafely on minimal hello world program on arm ----------------------------------+---------------------------------- Reporter: andrewufrank | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------+---------------------------------- Changes (by bgamari): * status: new => infoneeded @@ -4,1 +4,2 @@ - {{{testthree: schedule: re-entered unsafely. + {{{ + testthree: schedule: re-entered unsafely. New description: i installed ghc 7.10.3 from jessie-backports (together with the corresponding LLVM 1:3.5.2.3~bpo8+2) and get for the minimal main = putStrLn "hello" program the error message {{{ testthree: schedule: re-entered unsafely. Perhaps a 'foreign import unsafe' should be 'safe'? }} i am not certain if this is related: cabal install for the same minimal program (with a minimal cabal file) hangs. cabal install -v gives {{{ /home/frank/.cabal/setup-exe-cache/setup-Simple-Cabal-1.22.5.0-arm-linux- ghc-7.10.3 configure --verbose=2 --ghc --prefix=/home/frank/.cabal --bindir=/home/frank/.cabal/bin --libdir=/home/frank/.cabal/lib --libsubdir=arm-linux-ghc-7.10.3/testthree-0.0.6-3AgAf9bDkWJGZdbGLvO875 --libexecdir=/home/frank/.cabal/libexec --datadir=/home/frank/.cabal/share --datasubdir=arm-linux-ghc-7.10.3/testthree-0.0.6 --docdir=/home/frank/.cabal/share/doc/arm-linux-ghc-7.10.3/testthree-0.0.6 --htmldir=/home/frank/.cabal/share/doc/arm-linux- ghc-7.10.3/testthree-0.0.6/html --haddockdir=/home/frank/.cabal/share/doc/arm-linux- ghc-7.10.3/testthree-0.0.6/html --sysconfdir=/home/frank/.cabal/etc --user --extra-prog-path=/home/frank/.cabal/bin --dependency=base=base-4.8.2.0-2f1f71a7fcf013cd47fd21f489064f9a --disable-tests --exact-configuration --disable-benchmarks Redirecting build log to {handle: /home/frank/.cabal/logs/testthree-0.0.6.log} }}} any comment how this can be fixed? thank you - a running 7.10.3 for armhf is a great achievement! -- Comment: I agree with rwbarton; this is characteristic of a buggy LLVM release. Can you try LLVM 3.5.2? A binary distribution is available [http://llvm.org/releases/3.5.2/clang+llvm-3.5.2-armv7a-linux- gnueabihf.tar.xz|here]. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11574#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11574: schedule: re-entered unsafely on minimal hello world program on arm ----------------------------------+---------------------------------- Reporter: andrewufrank | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------+---------------------------------- Comment (by andrewufrank): i indicated in the report what i see in synaptic for llvm, namely LLVM 1:3.5.2.3~bpo8+2. i downloaded and unpacked the indicated files, but they do not include instructions how to install. it seems not to be ./configure + make. where do i have to copy the unpacked files? can you point me to some instructions? thank you! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11574#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11574: schedule: re-entered unsafely on minimal hello world program on arm ----------------------------------+---------------------------------- Reporter: andrewufrank | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------+---------------------------------- Description changed by thomie: @@ -7,1 +7,1 @@ - }} + }}} New description: i installed ghc 7.10.3 from jessie-backports (together with the corresponding LLVM 1:3.5.2.3~bpo8+2) and get for the minimal main = putStrLn "hello" program the error message {{{ testthree: schedule: re-entered unsafely. Perhaps a 'foreign import unsafe' should be 'safe'? }}} i am not certain if this is related: cabal install for the same minimal program (with a minimal cabal file) hangs. cabal install -v gives {{{ /home/frank/.cabal/setup-exe-cache/setup-Simple-Cabal-1.22.5.0-arm-linux- ghc-7.10.3 configure --verbose=2 --ghc --prefix=/home/frank/.cabal --bindir=/home/frank/.cabal/bin --libdir=/home/frank/.cabal/lib --libsubdir=arm-linux-ghc-7.10.3/testthree-0.0.6-3AgAf9bDkWJGZdbGLvO875 --libexecdir=/home/frank/.cabal/libexec --datadir=/home/frank/.cabal/share --datasubdir=arm-linux-ghc-7.10.3/testthree-0.0.6 --docdir=/home/frank/.cabal/share/doc/arm-linux-ghc-7.10.3/testthree-0.0.6 --htmldir=/home/frank/.cabal/share/doc/arm-linux- ghc-7.10.3/testthree-0.0.6/html --haddockdir=/home/frank/.cabal/share/doc/arm-linux- ghc-7.10.3/testthree-0.0.6/html --sysconfdir=/home/frank/.cabal/etc --user --extra-prog-path=/home/frank/.cabal/bin --dependency=base=base-4.8.2.0-2f1f71a7fcf013cd47fd21f489064f9a --disable-tests --exact-configuration --disable-benchmarks Redirecting build log to {handle: /home/frank/.cabal/logs/testthree-0.0.6.log} }}} any comment how this can be fixed? thank you - a running 7.10.3 for armhf is a great achievement! -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11574#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11574: schedule: re-entered unsafely on minimal hello world program on arm ----------------------------------+---------------------------------- Reporter: andrewufrank | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------+---------------------------------- Comment (by andrewufrank): is it sufficient to copy the bin files to where i currently have a llvm bin folder or should i copy them into /usr/bin (where i have links to files in the current llvm bin? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11574#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11574: schedule: re-entered unsafely on minimal hello world program on arm ----------------------------------+---------------------------------- Reporter: andrewufrank | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------+---------------------------------- Comment (by bgamari): They merely need to be in your `PATH` (and perhaps any shared objects in `LD_LIBRARY_PATH`). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11574#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11574: schedule: re-entered unsafely on minimal hello world program on arm ----------------------------------+---------------------------------- Reporter: andrewufrank | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------+---------------------------------- Comment (by andrewufrank): i did move the bin files into my path (~/.bin which is in $PATH) but do not see a difference. same issue. i assume i had to install ghc anew and tried to install with apt-get install from jessie backports, but no change. how to i install ghc to use the llvm that i have downloaded? (sorry - building ghc is not my regular thing, i need some more instructions). thank you! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11574#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11574: schedule: re-entered unsafely on minimal hello world program on arm ----------------------------------+---------------------------------- Reporter: andrewufrank | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------+---------------------------------- Comment (by andrewufrank): i found a different way to resolve the issue and report it here; perhaps it helps others: i used the ghc from debian stretch (testing), which has uses a different version of llvm (namely 1:3.2.5-3) which works. this confirm the suggestion above that the llvm version in debian jessie backports is the cause to the problem. now things work nicely! thanks to the team that brought ghc to armhf (it runs smoothly and fast on an odroid xu4) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11574#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11574: schedule: re-entered unsafely on minimal hello world program on arm ----------------------------------+------------------------------ Reporter: andrewufrank | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Resolution: duplicate | Keywords: Operating System: Linux | Architecture: arm Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: #11190 | Differential Rev(s): Wiki Page: | ----------------------------------+------------------------------ Changes (by thomie): * status: infoneeded => closed * resolution: => duplicate * related: => #11190 Comment: Replying to [comment:9 andrewufrank]:
now things work nicely!
-- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11574#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC