Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#9933 closed bug (fixed)

Cross-compile failure : Not in scope: ‘gcdInt'’

Reported by: erikd Owned by: erikd
Priority: normal Milestone: 8.0.1
Component: Core Libraries Version: 7.11
Keywords: Cc: dfeuer, core-libraries-committee@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Building GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s): Phab:D598
Wiki Page:

Description

When cross-compiling from x86_64-linux to armhf-linux using the quick-cross setting from mk/build.mk.sample I get:

libraries/base/GHC/Real.hs:28:25: Not in scope: ‘gcdInt'’
libraries/base/GHC/Real.hs:28:34: Not in scope: ‘gcdWord'’

It turns out these functions are exported un-conditionally but are only defined within an #ifdef.

Change History (3)

comment:1 Changed 4 years ago by dfeuer

Cc: core-libraries-committee@… added
Component: CompilerCore Libraries
Differential Rev(s): Phab:D598
difficulty: UnknownEasy (less than 1 hour)
Milestone: 7.12.1
Status: newpatch

Whoops! That one's my fault. I'm on it.

comment:2 Changed 4 years ago by erikd

Resolution: fixed
Status: patchclosed

This seems to have been fixed in another commit. I have been building a GHC linux-amd64 to linux-armhf cross compiler using BuildFlavour=quick-cross (which using integer-simple) in a Jenkins instance for weeks without problems.

Closing this.

comment:3 Changed 3 years ago by thoughtpolice

Milestone: 7.12.18.0.1

Milestone renamed

Note: See TracTickets for help on using tickets.