unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#39358: [core-updates] GHC 8.6.5 build failure
@ 2020-01-30 15:25 Marius Bakke
  2020-03-23 22:45 ` Marius Bakke
  0 siblings, 1 reply; 3+ messages in thread
From: Marius Bakke @ 2020-01-30 15:25 UTC (permalink / raw)
  To: 39358

[-- Attachment #1: Type: text/plain, Size: 792 bytes --]

Hello,

On the 'core-updates' branch, GHC 8.6.5 consistently fails a single
test:

=====> T13702(normal) 1219 of 6523 [0, 0, 0]
cd "./dynlibs/T13702.run" && $MAKE --no-print-directory -s T13702  
Wrong exit code for T13702()(expected 0 , actual 2 )
Stdout ( T13702 ):
hello world
Stderr ( T13702 ):
T13702a: user error (dlopen: ./T13702: cannot dynamically load position-independent executable)
make[2]: *** [Makefile:60: T13702] Error 1
*** unexpected failure for T13702(normal)

Here is the test in question:

https://gitlab.haskell.org/ghc/ghc/blob/master/testsuite/tests/dynlibs/T13702.hs

Initially I thought this has to do with the LibFFI 3.3 upgrade, but
reverting commit 5f1000d5d4cc4dfc9a1fe220457c17ad011d9e33 did not make a
difference.

Ideas, suggestions?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#39358: [core-updates] GHC 8.6.5 build failure
  2020-01-30 15:25 bug#39358: [core-updates] GHC 8.6.5 build failure Marius Bakke
@ 2020-03-23 22:45 ` Marius Bakke
  2020-03-24 17:05   ` Marius Bakke
  0 siblings, 1 reply; 3+ messages in thread
From: Marius Bakke @ 2020-03-23 22:45 UTC (permalink / raw)
  To: 39358

[-- Attachment #1: Type: text/plain, Size: 2093 bytes --]

Marius Bakke <mbakke@fastmail.com> writes:

> Hello,
>
> On the 'core-updates' branch, GHC 8.6.5 consistently fails a single
> test:
>
> =====> T13702(normal) 1219 of 6523 [0, 0, 0]
> cd "./dynlibs/T13702.run" && $MAKE --no-print-directory -s T13702  
> Wrong exit code for T13702()(expected 0 , actual 2 )
> Stdout ( T13702 ):
> hello world
> Stderr ( T13702 ):
> T13702a: user error (dlopen: ./T13702: cannot dynamically load position-independent executable)
> make[2]: *** [Makefile:60: T13702] Error 1
> *** unexpected failure for T13702(normal)
>
> Here is the test in question:
>
> https://gitlab.haskell.org/ghc/ghc/blob/master/testsuite/tests/dynlibs/T13702.hs
>
> Initially I thought this has to do with the LibFFI 3.3 upgrade, but
> reverting commit 5f1000d5d4cc4dfc9a1fe220457c17ad011d9e33 did not make a
> difference.

This turned out to be because of a change in glibc 2.30, where dlopening
a position-independent executable has been disallowed:

https://sourceware.org/bugzilla/show_bug.cgi?id=24323

Test T13702 verifies that creating position-independent executables
work, by running and dlopening one.  Commit
2e9c43aa9adac2bd6bcf92373d1cf9f322afa5a3 attempted to disable test
T13702a which dlopens it, but the build still failed: 

cd "./driver/recomp017/recomp017.run" && $MAKE -s --no-print-directory recomp017  --- ./dynlibs/T13702.run/T13702.stdout.normalised     2020-03-23 19:45:14.063130812 +0000
+++ ./dynlibs/T13702.run/T13702.run.stdout.normalised   2020-03-23 19:45:14.063130812 +0000
@@ -1,2 +1 @@
 hello world
-hello world again

Sorry for the incomplete fix, I must have watched the wrong terminal
window when coming back to check on the build progress.  This is the
part that now fails:

{-# LANGUAGE ForeignFunctionInterface #-}
main :: IO ()
main = putStrLn "hello world"
foreign export ccall "hello" hello :: IO ()
hello :: IO ()
hello = putStrLn "hello world again"

Which looks like the same problem just in a different part of the test.
I'll try to fix it properly tomorrow and also notify upstream.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#39358: [core-updates] GHC 8.6.5 build failure
  2020-03-23 22:45 ` Marius Bakke
@ 2020-03-24 17:05   ` Marius Bakke
  0 siblings, 0 replies; 3+ messages in thread
From: Marius Bakke @ 2020-03-24 17:05 UTC (permalink / raw)
  To: 39358-done

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

Marius Bakke <mbakke@fastmail.com> writes:

> I'll try to fix it properly tomorrow and also notify upstream.

Finally fixed in c75db693713e74a632bafe849de68a87ee7e34eb.

Upstream issue: https://gitlab.haskell.org/ghc/ghc/issues/17952

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-24 17:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-30 15:25 bug#39358: [core-updates] GHC 8.6.5 build failure Marius Bakke
2020-03-23 22:45 ` Marius Bakke
2020-03-24 17:05   ` Marius Bakke

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).