[csw-maintainers] SPARC issues

Trygve Laugstøl trygvel at opencsw.org
Tue Dec 23 21:23:37 CET 2008


Philip Brown wrote:
> On Tue, Dec 23, 2008 at 07:45:06PM +0100, Trygve Laugst�l wrote:
>> Hei!
>>
>> I'm trying to build ghc[1] and while it work just fine on x86, I'm 
>> getting these issues when it is trying to build its libraries after the 
>> compiler itself has been bootstrapped:
>>
>> /usr/ccs/bin/as: "/tmp/ghc24757_0/ghc24757_0.split__1.s", line 22: 
>> error: cannot use v8plus instructions in a non-v8plus target binary
>> /usr/ccs/bin/as: "/tmp/ghc24757_0/ghc24757_0.split__1.s", line 28: 
>> error: cannot use v8plus instructions in a non-v8plus target binary
>> /usr/ccs/bin/as: "/tmp/ghc24757_0/ghc24757_0.split__1.s", line 41: 
>> error: cannot use v8plus instructions in a non-v8plus target binary
>> /usr/ccs/bin/as: "/tmp/ghc24757_0/ghc24757_0.split__1.s", line 56: 
>> error: cannot use v8plus instructions in a non-v8plus target binary
>>
>> Anyone have a clue on what I can do?
> 
> you arent giving enough details on what is calling as.
> is cc calling it, or something else directly?

ghc is calling as (perhaps through gcc, not sure) while building its 
core libs:

gmake[4]: Entering directory 
`/home/trygvis/dev/ghc/work/build-isa-sparcv8plus/ghc-6.8.3/libraries/base'
../../compiler/stage1/ghc-inplace -package-name base-3.0.2.0 
-hide-all-packages -split-objs -i -idist/build/autogen -idist/build -i. 
-Idist/build -Iinclude -#include "HsBase.h" -odir dist/build -hidir 
dist/build -stubdir dist/build -package rts-1.0 -O -package-name base 
-XMagicHash -XExistentialQuantification -XRank2Types 
-XScopedTypeVariables -XUnboxedTuples -XForeignFunctionInterface 
-XUnliftedFFITypes -XDeriveDataTypeable -XGeneralizedNewtypeDeriving 
-XFlexibleInstances -XPatternSignatures -XStandaloneDeriving 
-XPatternGuards -XCPP -idist/build  -H16m -O -O -Rghc-timing -fgenerics 
-c GHC/Err.lhs-boot -o dist/build/GHC/Err.o-boot -ohi 
dist/build/GHC/Err.hi-boot
<<ghc: 3170012 bytes, 4 GCs, 94208/94208 avg/max bytes residency (1 
samples), 18M in use, 0.01 INIT (0.00 elapsed), 0.03 MUT (0.17 elapsed), 
0.02 GC (0.03 elapsed) :ghc>>
../../compiler/stage1/ghc-inplace -package-name base-3.0.2.0 
-hide-all-packages -split-objs -i -idist/build/autogen -idist/build -i. 
-Idist/build -Iinclude -#include "HsBase.h" -odir dist/build -hidir 
dist/build -stubdir dist/build -package rts-1.0 -O -package-name base 
-XMagicHash -XExistentialQuantification -XRank2Types 
-XScopedTypeVariables -XUnboxedTuples -XForeignFunctionInterface 
-XUnliftedFFITypes -XDeriveDataTypeable -XGeneralizedNewtypeDeriving 
-XFlexibleInstances -XPatternSignatures -XStandaloneDeriving 
-XPatternGuards -XCPP -idist/build  -H16m -O -O -Rghc-timing -fgenerics 
-c GHC/Base.lhs -o dist/build/GHC/Base.o  -ohi dist/build/GHC/Base.hi

--
Trygve



More information about the maintainers mailing list