Bug 1385477

Summary: dynamic linking failing for aarch64 executables with ghc-7.10.3
Product: [Fedora] Fedora Reporter: Jens Petersen <petersen>
Component: ghcAssignee: Jens Petersen <petersen>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: bos, haskell-devel, petersen
Target Milestone: ---   
Target Release: ---   
Hardware: aarch64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-26 07:42:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jens Petersen 2016-10-17 07:16:34 UTC
Description of problem:
Dynamic linking of for packages with executables is failing
when using ghc-7.10.3 on aarch64 (and armv7hl).

eg1:
Linking dist/build/darcs/darcs ...
/builddir/build/BUILD/darcs-2.12.2/darcs-2.12.2/dist/build/libHSdarcs-2.12.2-5w02tFeyqS4LTTczMtN7Ff-ghc7.10.3.so: error: undefined reference to 'log'
/usr/lib64/ghc-7.10.3/text_HmqVQnZSpjaC156ABqPhne/libHStext-1.2.2.1-HmqVQnZSpjaC156ABqPhne-ghc7.10.3.so: error: undefined reference to 'logf'
collect2: error: ld returned 1 exit status

eg2:
Linking dist/build/xmobar/xmobar ...
/usr/lib64/ghc-7.10.3/scien_3vmCXiZeJinKZBcLawS8i0/libHSscientific-0.3.4.7-3vmCXiZeJinKZBcLawS8i0-ghc7.10.3.so: error: undefined reference to 'log'
collect2: error: ld returned 1 exit status

eg3:
Linking dist/build/agda/agda ...
/usr/lib64/ghc-7.10.3/Quick_6TxL5Cx3o2p0HsyT59KWiD/libHSQuickCheck-2.8.2-6TxL5Cx3o2p0HsyT59KWiD-ghc7.10.3.so: error: undefined reference to 'log'
/usr/lib64/ghc-7.10.3/text_HmqVQnZSpjaC156ABqPhne/libHStext-1.2.2.1-HmqVQnZSpjaC156ABqPhne-ghc7.10.3.so: error: undefined reference to 'logf'
/builddir/build/BUILD/Agda-2.4.2.5/Agda-2.4.2.5/dist/build/libHSAgda-2.4.2.5-Inys1Zrl83YKq4l2eRqqZo-ghc7.10.3.so: error: undefined reference to 'sqrt'
collect2: error: ld returned 1 exit status

How reproducible:
100%

Steps to Reproduce:
1. build packages with dynlinked executable

Actual results:
fails with "undefined reference to 'log'" etc.

Expected results:
dynlinking to work

Additional info:
This worked earlier though, eg in beginning of August 2016:
http://koji.fedoraproject.org/koji/buildinfo?buildID=787831

Comment 1 Jens Petersen 2016-10-17 07:18:42 UTC
As a workaround for now I have disabled exe dynlinking in ghc-rpm-macros.

Comment 2 Jens Petersen 2016-10-17 07:19:12 UTC
ghc-rpm-macros-1.6.9-8.fc26

Comment 3 Fedora End Of Life 2017-02-28 10:27:17 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 4 Jens Petersen 2017-04-26 07:46:22 UTC

*** This bug has been marked as a duplicate of bug 1386126 ***