OpenCores
no use no use 1/1 no use no use
Install GNU tool problem
by ysw2007 on Sep 29, 2012
ysw2007
Posts: 4
Joined: May 31, 2012
Last seen: Sep 7, 2013
Hello,everyone!
i have a problem when I install the toolchain ! when i do this step(./bld-all.sh --force --prefix /opt/openrisc/openrisc --or1ksim-dir /opt/openrisc/or1ksim --uclibc-dir uClibc --linux-dir linux ),the compilation explain that libsim.a is incompatible.I don't know how to solve it!
My platform : ubuntu12.04 gcc4.4.7

gcc -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 -DDEFAULT_INLINE=0 -I/opt/openrisc/or1ksim/include -I. -I../../.././gdb-7.2/sim/or32 -I../common -I../../.././gdb-7.2/sim/or32/../common -I../../include -I../../.././gdb-7.2/sim/or32/../../include -I../../bfd -I../../.././gdb-7.2/sim/or32/../../bfd -I../../opcodes -I../../.././gdb-7.2/sim/or32/../../opcodes -g -O2 -o run \
run.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a ../../libiberty/libiberty.a -lz -lnsl -Wl,-rpath -Wl,/opt/openrisc/or1ksim/lib -L/opt/openrisc/or1ksim/lib -lsim
/usr/bin/ld: skipping incompatible /opt/openrisc/or1ksim/lib/libsim.so when searching for -lsim
/usr/bin/ld: skipping incompatible /opt/openrisc/or1ksim/lib/libsim.a when searching for -lsim
/usr/bin/ld: cannot find -lsim
collect2: ld returned 1 exit status
make[2]: *** [run] Error 1
make[2]: Leaving directory `/opt/openrisc/gnu-src/bd-elf-gdb/sim/or32'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/opt/openrisc/gnu-src/bd-elf-gdb/sim'
make: *** [all-sim] Error 2
make (all-build all-sim all-gdb) failed.
RE: Install GNU tool problem
by crevars on Sep 29, 2012
crevars
Posts: 29
Joined: Jun 7, 2008
Last seen: Mar 11, 2014
Hi,

did you build and install or1ksim as explained in the Prerequisites here: http://opencores.org/openrisc,gnu_toolchain ?

Franck.
RE: Install GNU tool problem
by ysw2007 on Sep 30, 2012
ysw2007
Posts: 4
Joined: May 31, 2012
Last seen: Sep 7, 2013
Thank you,Frank!
I'm a new bird to study or1200,so I will have a lot of problems. Now I compiled the or1ksim ,and the problem of or1ksim has been solved .But now i have another probelm.

In file included from ../../../unisrc/libgcc/../gcc/libgcc2.c:29:0:
../../../unisrc/libgcc/../gcc/tsystem.h:87:19: fatal error: stdio.h: No such file or directory
compilation terminated.
make[1]: *** [_muldi3.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from ../../../unisrc/libgcc/../gcc/libgcc2.c:29:0:
../../../unisrc/libgcc/../gcc/tsystem.h:87:19: fatal error: stdio.h: No such file or directory
compilation terminated.
make[1]: *** [_negdi2.o] Error 1
make[1]: Leaving directory `/opt/openrisc/gnu-src/bd-linux/or32-linux/libgcc'
make: *** [all-target-libgcc] Error 2
make: INTERNAL: Exiting with 4 jobserver tokens available; should be 3!
make (all-target-libgcc) failed.

I have the stdio.h in /usr/include/
iI don't know why.
thanks!
RE: Install GNU tool problem
by svenand on Sep 30, 2012
svenand
Posts: 31
Joined: May 12, 2009
Last seen: May 14, 2014
I used orbuild and successfully installed the GNU toolchain in Ubuntu 12.04 (gcc 4.6.3)
See my blog for more information: http://www.rte.se/blog/blogg-modesty-corex/using-orbuild

no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.