An example of failure: "inplace/bin/ghc-stage1" -H32m -O -package-name…

Authored by trofi on Jul 15 2011, 10:46 AM.

Description

An example of failure: "inplace/bin/ghc-stage1" -H32m -O -package-name base-4.4.0.0 -hide-all-packages -i -ilibraries/base/. -ilibraries/base/dist-install/build -ilibraries/base/dist-install/build/autogen -Ilibraries/base/dist-install/build -Ilibraries/base/dist-install/build/autogen -Ilibraries/base/include -optP-DOPTIMISE_INTEGER_GCD_LCM -optP-include -optPlibraries/base/dist-install/build/autogen/cabal_macros.h -package ghc-prim-0.2.0.0 -package integer-gmp-0.3.0.0 -package rts-1.0 -split-objs -package-name base -XHaskell98 -XCPP -O2 -no-user-package-conf -rtsopts -odir libraries/base/dist-install/build -hidir libraries/base/dist-install/build -stubdir libraries/base/dist-install/build -hisuf hi -osuf o -hcsuf hc -c libraries/base/./GHC/Int.hs -o libraries/base/dist-install/build/GHC/Int.o /usr/lib/gcc/sparc-unknown-linux-gnu/4.5.2/../../../../sparc-unknown-linux-gnu/bin/ld: --relax and -r may not be used together collect2: ld returned 1 exit status make[1]: *** [libraries/base/dist-install/build/GHC/Int.o] Error 1

Or with '-v' param:
/usr/bin/gcc -fno-stack-protector -nostdlib -nodefaultlibs -Wl,-r -Wl,--build-id=none -Wl,-x -o libraries/base/dist-install/build/GHC/Int.o /tmp/ghc45126_0/ghc45126_0.ldscript
/usr/lib/gcc/sparc-unknown-linux-gnu/4.5.2/../../../../sparc-unknown-linux-gnu/bin/ld: --relax and -r may not be used together

On SPARC gcc-4.5.2 has -mrelax in it's default specs, so we explicitly pass --no-relax
for ld to make sure gcc's default does not affect us.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

Details

Committed
Ian Lynagh <igloo@earth.li>Jul 15 2011, 10:46 AM
Pushed
bgamariAug 25 2016, 1:39 PM
Parents
rGHCDIFFc4ab399e168e: Remove some defaultTargetPlatform's
Branches
Unknown
Tags
Unknown