SOLVED: Unable to keep working cross-compilation toolchain

Here for general support for B series TVs, request and problem solve area.

marcelru
Official SamyGO Developer
Posts: 171
Joined: Thu Oct 01, 2009 7:27 am

Re: Unable to keep working cross-compilation toolchain

Post by marcelru »

Hi hastaelnabo2000,

It looks like your configuration sets the -Werror flag for gcc by default.
If you add the switch --disable-werror to the configure flags, maybe that might help:

change:

../../${UTILS}/configure --prefix=${PREFIX} --target=${TARGET} \
--with-sysroot=${SYSROOT} 2>&1 | tee configure.out

into:

../../${UTILS}/configure --prefix=${PREFIX} --target=${TARGET} --disable-werror \
--with-sysroot=${SYSROOT} 2>&1 | tee configure.out

and see if that makes any difference.

About yacc: shouldn't be a problem, bison will do.

HTH,

marcelr
marcelru
Official SamyGO Developer
Posts: 171
Joined: Thu Oct 01, 2009 7:27 am

Re: Unable to keep working cross-compilation toolchain

Post by marcelru »

Hi hastaelnabo2000,

It's good to hear you have a working toolchain.
Have fun making your own applications for your TV.
Could you please send me a copy of the scripts you made/changed, so I can update the wiki page and make your experience public to other ubuntu users?

Thanks in advance.

marcelr
marcelru
Official SamyGO Developer
Posts: 171
Joined: Thu Oct 01, 2009 7:27 am

Re: Unable to keep working cross-compilation toolchain

Post by marcelru »

Hi hastaelnabo2000,

Just did some googling on your error message. Configuring binutils with --disable-werror flag will not help, since this flag is set elsewhere in the configuration. Haven't found where exactly. The function asprintf() is supposed to return an int, which is not programmed in the binutils as provided by Samsung. Not their fault, the guys at GNU's probably missed it. For some reason it is not detected in my building environment, but it is in yours.
What you could do is unpack the source code manually, then change the code in /binutils-2.17.50/bfd/elf32-arm.c to make asprintf return a dummy int in both cases or cast the return value to (void), and complete the build.

I'm sorry I can't test it for you, because I don't have an ubuntu box lying around.

HTH,
marcelr
aquadran
Posts: 264
Joined: Fri Oct 16, 2009 9:35 pm
Location: Poland

Re: Unable to keep working cross-compilation toolchain

Post by aquadran »

do not use -lSDL

Post Reply

Return to “[B] Support”