Hello, I am glad to see how much Robert advanced using his Debian import scripts.
I lately didn't contribute much to the port mainly because of lack of time, and secondarily because I was fancying about an alternative approach.
Basically, I hope to be able to bootstrap musl with only busybox, pcc and as binaries, like I can do on x86 linux.
The problem is that arm support for pcc existed briefly only for netbsd.
I successfully native-compiled on allwinner debian wheezy/sid some older pcc using the arm--netbsdelf.
That unexpectedly worked; however, when using the resulting pcc to compile musl I got different errors according to the pcc source version number: either
op 75 slipped through
OR
compiler error: function '__builtin_stdarg_start' has no return type
OR
pcc -std=c99 -nostdinc -ffreestanding -fexcess-precision=standard -frounding-math -D_XOPEN_SOURCE=700 -I./arch/arm -I./src/internal -I./include -Os -pipe -fomit-frame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables -Wa,--noexecstack -falign-functions=1 -falign-labels=1 -falign-loops=1 -falign-jumps=1 -fno-stack-protector -c -o src/aio/aio_readwrite.o src/aio/aio_readwrite.c
/tmp/ctm.pCEL0j: Assembler messages:
/tmp/ctm.pCEL0j:3: Error: bad expression
/tmp/ctm.pCEL0j:3: Error: junk at end of line, first unrecognized character is `0'
Either the netbsd trick has some issue, or a nimble toolchain isn't possible on arm, as it is on x86.
I hope the former, of course.
Ideas? Anybody willing to experiment with that?
I already asked on pcc and sunxi lists, with only generic assurance that porting pcc should be not much work.