Friday, 1 June 2012

Re: [gccsdk] OSLib cross-build fail

On Tue, Nov 29, 2011 at 01:02:08AM +0000, John Tytgat wrote:
[Build problems with OSLib]
> Yes, you're right, it is a bug in DefMod2 and gets triggered by binutils
> 2.21.1 (at gccsdk trunk we're now using binutils 2.22). I've commited
> a fix.

Hmm, I'm now trying to rebuild OSlib in AOF mode and having toolchain issues
in DefMod2 (today's SVN 5844):


/local/scratch/atm26/riscos/autobuilder/oslib/!OSLib/Source/../Bin/defmod -asmtype gccaof -h < CDFSFiler.swi > CDFSFiler.h
/local/scratch/atm26/riscos/autobuilder/oslib/!OSLib/Source/../Bin/defmod -asmtype gccaof -h < NetFiler.swi > NetFiler.h
/local/scratch/atm26/riscos/autobuilder/oslib/!OSLib/Source/../Bin/defmod -asmtype gccaof -l -o l/ADFS -byte_wide /local/scratch/atm26/riscos/autobuilder/oslib/!OSLib/Source/ByteWide -32bit < ADFS.swi
Warning: type "FileCore_DiscAddress" not defined in this module - assuming it's a word
Assembler messages:
Fatal error: invalid listing option `p'
Non-zero return code
gcc -mapcs-32 -c -xassembler -Wa,-objasm,-apcs32 -o l/ADFS/0x40240x.001.o l/ADFS/0x40240x.001.s
make[2]: *** [ADFS.o] Error 1
make[2]: Leaving directory `/local/scratch/atm26/riscos/autobuilder/oslib/!OSLib/Source/Computer/oslib'
make[1]: *** [/local/scratch/atm26/riscos/autobuilder/oslib/!OSLib/Source/../Build/OSLib32.o] Error 2
make[1]: Leaving directory `/local/scratch/atm26/riscos/autobuilder/oslib/!OSLib/Source'
make: *** [oslib-aof] Error 2
Package oslib: ***Failure***
Build for package "oslib" failed


I can see why this is happening; in AOF mode DefMod2 is compiling a command
line that includes 'gcc' but that's picking up the system gcc not the cross
compiler. It appears the paths from ro-make aren't getting through - if I
change the DefMod2 source to call arm-riscos-unknown-gcc instead, it can't
find it.

I don't fully understand how passing through path variables works... any
suggestions?

Thanks
Theo

----- End forwarded message -----

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment