Opened 3 years ago

Closed 3 years ago

#10349 closed bug (fixed)

ghc-7.10 fails to configure on aarch64 with ld.gold: cannot compute sizeof (long long)

Reported by: juhpetersen Owned by:
Priority: normal Milestone: 7.10.2
Component: Build System Version: 7.10.1
Keywords: Cc:
Operating System: Linux Architecture: aarch64
Type of failure: Building GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

On Fedora at least, the ghc-7.10 branch (as of yesterday) fails to configure on aarch64 when using ld.gold:

checking size of long long... configure: error: in `/builddir/build/BUILD/ghc-7.10.1.20150414':
configure: error: cannot compute sizeof (long long)

Gdb says:

(gdb) r
Starting program: /home/petersen/conftest 
During startup program terminated with signal SIGKILL, Killed.

Compiling the conftest.c attached with -fuse-ld=gold causes it to crash when run.

$ gcc -o conftest conftest.c
$ ./conftest
$ gcc -o conftest -fuse-ld=gold conftest.c
$ ./conftest
Killed
$ 

Attachments (1)

conftest.c (2.6 KB) - added by juhpetersen 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by juhpetersen

Attachment: conftest.c added

comment:1 Changed 3 years ago by juhpetersen

ld.gold support on aarch64 needs the patches from D856 and D858.

Last edited 3 years ago by juhpetersen (previous) (diff)

comment:2 Changed 3 years ago by juhpetersen

Summary: ghc-7.10.1.20150414 fails to configure on aarch64 with ld.gold: cannot compute sizeof (long long)ghc-7.10 fails to configure on aarch64 with ld.gold: cannot compute sizeof (long long)

(Also happens with 7.10.1 patched for ld.gold.)

As Erikd pointed out this is really a toolchain bug.

Patched 7.8.4 seems unaffected.

comment:3 Changed 3 years ago by thoughtpolice

Resolution: fixed
Status: newclosed

This should be fixed, since Phab:D856 and Phab:D858 were both merged to ghc-7.10.

Note: See TracTickets for help on using tickets.