[GHC] #7799: Assembly error while building GHC 7.7
GHC
cvs-ghc at haskell.org
Sun Apr 7 20:39:06 CEST 2013
#7799: Assembly error while building GHC 7.7
--------------------------------+-------------------------------------------
Reporter: Iceland_jack | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler (FFI)
Version: 7.7 | Keywords:
Os: Unknown/Multiple | Architecture: x86
Failure: Building GHC failed | Blockedby:
Blocking: | Related:
--------------------------------+-------------------------------------------
Comment(by thorkilnaur):
I get the same error with my:
{{{
$ uname -a
Linux tn24 3.2.0-39-generic #62-Ubuntu SMP Wed Feb 27 22:05:17 UTC 2013
i686 i686 i386 GNU/Linux
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.4.2
$ gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
$
}}}
I have tried running the failing assmbly by hand with -E:
{{{
$ '/usr/bin/gcc' '-fno-stack-protector' '-DTABLES_NEXT_TO_CODE'
'-Ilibraries/base/dist-install/build' '-Ilibraries/base/dist-
install/build' '-Ilibraries/base/dist-install/build/autogen'
'-Ilibraries/base/include' '-x' 'assembler-with-cpp' -E '-c'
'/home/tn/tn/GHCGitRepository/ghc/delete/ghc1351_0/ghc1351_3.s'
}}}
The resulting output contains:
{{{
call 1 .get_pc_thunk.bx
}}}
This is in agreement with
http://sourceware.org/bugzilla/show_bug.cgi?id=411 that describes problems
caused by the name {{{__i686}}} unexpectedly being defined as a macro by
{{{gcc}}}.
As a temporary fix, adding
{{{
SRC_HC_OPTS += -opta-U__i686
}}}
to {{{mk/build.mk}}} enables the build to proceed.
Best regards
Thorkil
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7799#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list