2014-04-30 01:14:54

by Chen Gang

[permalink] [raw]
Subject: [Suggestion] unicore32: About toolchain issues and source code.

Hello Maintainers:

Excuse me, I did not find our unicore32 toolchains source code (I got
binary to cross-compile Linux kernel), could you provide more related
information for it, thanks.

And I find 2 unicore32 toolchains issues, please help check.

- Gas issue:

AS firmware/keyspan/usa18x.fw.gen.o
firmware/keyspan/usa18x.fw.gen.S: Assembler messages:
firmware/keyspan/usa18x.fw.gen.S:11: Error: junk at end of line, first unrecognized character is `,'
make[1]: *** [firmware/keyspan/usa18x.fw.gen.o] Error 1
make: *** [firmware] Error 2

it is about statement ".section .builtin_fw,"a",@progbits".

- The statement is correct and standard.

- Use "aM" instead of "a", can pass compiling, but shouldn't do it.

- Remove "@progbits", can pass compiling, but shouldn't do it.

- Compiler issue:

CC [M] drivers/media/dvb-frontends/tda10048.o
drivers/media/dvb-frontends/tda10048.c: In function ?tda10048_set_wref?:
drivers/media/dvb-frontends/tda10048.c:367: internal compiler error: in simplify_const_unary_operation, at simplify-rtx.c:1278
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [drivers/media/dvb-frontends/tda10048.o] Error 1
make[2]: *** [drivers/media/dvb-frontends] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [drivers] Error 2

- Toolchain information:

root@gchen:/upstream/toolchain/binutils/gas# /upstream/toolchain/unicore32/pi3dian14-beyondmind/prebuilt/linux-x86/toolchain/uc4-1.0-beta-hard-RHELAS4/bin/unicore32-linux-gcc -v
Using built-in specs.
Target: unicore32-linux
Configured with: /home/ghb/trunk/gcc-4.4.2/configure --target=unicore32-linux --prefix=/usr/unicore/gnu-toolchain-unicore/uc4-1.0-beta-hard-RHELAS4 --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++,fortran --disable-multilib --disable-libstdcxx-pch --with-headers=/usr/unicore/gnu-toolchain-unicore/uc4-1.0-beta-hard-RHELAS4/unicore32-linux/include --with-pkgversion=UC4_1.0-beta_20100415
Thread model: posix
gcc version 4.4.2 (UC4_1.0-beta_20100415)
root@gchen:/upstream/toolchain/binutils/gas# /upstream/toolchain/unicore32/pi3dian14-beyondmind/prebuilt/linux-x86/toolchain/uc4-1.0-beta-hard-RHELAS4/bin/unicore32-linux-as -v
GNU assembler version 2.19.1 (unicore32-linux) using BFD version (GNU Binutils) 2.19.1


Next, I shall continue for unicore32 allmodconfig (hope I can finish
within 2014-05-31). And we may find other toolchain issues during cross
compiling (I shall report and try to solve them, after get source code).


Thanks.
--
Chen Gang

Open, share, and attitude like air, water, and life which God blessed


2014-04-30 18:48:36

by Guenter Roeck

[permalink] [raw]
Subject: Re: [Suggestion] unicore32: About toolchain issues and source code.

On Wed, Apr 30, 2014 at 09:14:42AM +0800, Chen Gang wrote:
> Hello Maintainers:
>
> - Toolchain information:
>
> root@gchen:/upstream/toolchain/binutils/gas# /upstream/toolchain/unicore32/pi3dian14-beyondmind/prebuilt/linux-x86/toolchain/uc4-1.0-beta-hard-RHELAS4/bin/unicore32-linux-gcc -v
> Using built-in specs.
> Target: unicore32-linux
> Configured with: /home/ghb/trunk/gcc-4.4.2/configure --target=unicore32-linux --prefix=/usr/unicore/gnu-toolchain-unicore/uc4-1.0-beta-hard-RHELAS4 --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++,fortran --disable-multilib --disable-libstdcxx-pch --with-headers=/usr/unicore/gnu-toolchain-unicore/uc4-1.0-beta-hard-RHELAS4/unicore32-linux/include --with-pkgversion=UC4_1.0-beta_20100415
> Thread model: posix
> gcc version 4.4.2 (UC4_1.0-beta_20100415)

That is an old version of the toolchain. Latest version I can find is 1.0.5.
Google for "unicore32 toolchain" or pick it up from
http://mprc.pku.edu.cn/~guanxuetao/linux/uc4-1.0.5-hard.tgz

Having said that, I don't find a single kernel version (3.2 and later)
which builds unicore32:defconfig. Wonder if that architecture is still
supported (or if there is some secret to get it compiled.

Build results are at http://server.roeck-us.net:8010/builders.

Guenter