Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#8857 closed bug (fixed)

Sparc needs to be on the NoSharedLibsPlatformList

Reported by: nomeata Owned by:
Priority: normal Milestone: 7.8.1
Component: Compiler Version: 7.8.1-rc2
Keywords: Cc: karel.gardas@…
Operating System: Unknown/Multiple Architecture: sparc
Type of failure: Building GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

I see build failures with GHC-7.8 RC2 on sparc: https://buildd.debian.org/status/logs.php?pkg=ghc&ver=7.8.20140228-1&arch=sparc

These go away if I apply this patch, as suggested by Karel Gardas:

Index: ghc-7.8.20140228/mk/config.mk.in
===================================================================
--- ghc-7.8.20140228.orig/mk/config.mk.in       2014-03-06 09:48:52.000000000 +0000
+++ ghc-7.8.20140228/mk/config.mk.in    2014-03-06 09:49:55.000000000 +0000
@@ -98,7 +98,8 @@
 NoSharedLibsPlatformList = arm-unknown-linux \
        powerpc-unknown-linux \
        x86_64-unknown-mingw32 \
-       i386-unknown-mingw32
+       i386-unknown-mingw32 \
+       sparc-unknown-linux
 
 ifeq "$(SOLARIS_BROKEN_SHLD)" "YES"
 NoSharedLibsPlatformList += i386-unknown-solaris2

Please consider applying this fix before next RC or the final release. Thanks!

Attachments (1)

0001-disable-shared-libs-on-sparc-linux-solaris-fixes-885.patch (754 bytes) - added by kgardas 4 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 4 years ago by kgardas

Something like this is also needed for sparc/solaris. I've done that manually for building rc2 but if this patch is going to be merged, then please rather with solaris change too. Patch attached.

comment:2 Changed 4 years ago by kgardas

Cc: karel.gardas@… added
Status: newpatch

comment:3 Changed 4 years ago by Austin Seipp <austin@…>

In 623883f1ed0ee11cc925c4590fb09565403fd231/ghc:

disable shared libs on sparc (linux/solaris) (fixes #8857)

Signed-off-by: Austin Seipp <austin@well-typed.com>

comment:4 Changed 4 years ago by thoughtpolice

Status: patchmerge

comment:5 Changed 4 years ago by thoughtpolice

Resolution: fixed
Status: mergeclosed

comment:6 Changed 3 years ago by Sergei Trofimovich <slyfox@…>

In 78863edbb0751f5c9694ea10c6132a87cfd0ee10/ghc:

Revert "disable shared libs on sparc (linux/solaris) (fixes #8857)"

This reverts commit 623883f1ed0ee11cc925c4590fb09565403fd231.

The commit a93ab43ab5f40cadbedea2f6342b93c245e91434
    driver: pass '-fPIC' option to assembler as well
fixes shared libraries on sparc at least on linux.

Properly fixes Issue #8857

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Note: See TracTickets for help on using tickets.