Opened 5 years ago

Closed 5 years ago

Last modified 4 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:


I see build failures with GHC-7.8 RC2 on sparc:

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

Index: ghc-7.8.20140228/mk/
--- ghc-7.8.20140228.orig/mk/       2014-03-06 09:48:52.000000000 +0000
+++ ghc-7.8.20140228/mk/    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
 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 5 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 5 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 5 years ago by kgardas

Cc: karel.gardas@… added
Status: newpatch

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

In 623883f1ed0ee11cc925c4590fb09565403fd231/ghc:

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

Signed-off-by: Austin Seipp <>

comment:4 Changed 5 years ago by thoughtpolice

Status: patchmerge

comment:5 Changed 5 years ago by thoughtpolice

Resolution: fixed
Status: mergeclosed

comment:6 Changed 4 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 <>
Note: See TracTickets for help on using tickets.