



make error
by iyaowu on Nov 1, 2010 |
iyaowu
Posts: 9 Joined: Jun 5, 2008 Last seen: Apr 30, 2022 |
||
when I do make rtl-tests in sim/run dir, the error like this:
make[2]: Entering directory `/root/work/orpsocv2/sw/tests/or1200/sim' make[3]: Entering directory `/root/work/orpsocv2/sw/drivers/or1200' make[3]: Leaving directory `/root/work/orpsocv2/sw/drivers/or1200' ../../../drivers/or1200/crt0.o:(.vectors+0x510): undefined reference to `timer_ticks' ../../../drivers/or1200/crt0.o: In function `_start': (.text+0x128): undefined reference to `main' ../../../drivers/or1200/crt0.o: In function `_start': (.text+0x134): undefined reference to `exit' ../../../drivers/or1200/crt0.o: In function `default_exception_handler': (.text+0x1b0): undefined reference to `default_exception_handler_c' collect2: ld returned 1 exit status make[2]: *** [or1200-simple.elf] Error 1 make[2]: Leaving directory `/root/work/orpsocv2/sw/tests/or1200/sim' make[1]: *** [/root/work/orpsocv2/sim/run/../../sw/tests/or1200/sim/or1200-simple.vmem] Error 2 make[1]: Leaving directory `/root/work/orpsocv2/sim/run' |
RE: make error
by jeremybennett on Nov 1, 2010 |
jeremybennett
Posts: 815 Joined: May 29, 2008 Last seen: Jun 13, 2019 |
||
Hi iayowu I think you may have a tool chain incompatibility. It looks like the tests are now designed to use the latest version of the GCC compiler, gcc 4.5.1. Do you have this installed (if not, see the OpenRISC GNU tool chain page for details of how to install the release candidate tool chain). Julius Baxter may be able to give more advice on this - you could try asking him on IRC at freenode.net, channel #opencores Jeremy |
RE: make error
by julius on Nov 2, 2010 |
julius
Posts: 363 Joined: Jul 1, 2008 Last seen: May 17, 2021 |
||
Software included with ORPSoC now requires the more recent toolchain to compile.
See the release candidate toolchain install script (on the GNU toolchain page: http://opencores.org/openrisc,gnu_toolchain#1.0rc1install ) to get a version of GCC which will compile the software in ORPSoC OK. |
RE: make error
by iyaowu on Nov 2, 2010 |
iyaowu
Posts: 9 Joined: Jun 5, 2008 Last seen: Apr 30, 2022 |
||
I can't do 'yum install libmpc libmpc-devel' in my CentOS5.4, so I install the gmp-4.3.2, mpfr-2.4.2 and mpc-0.8.1 manually.
and changed build script crossbuild-1.0.sh like this: -or32configure="--disable-checking --enable-fast-install=N/A --disable-libssp --enable-languages=c,c++ --with-or1ksim=$prefix/or1ksim --with-newlib" +or32configure="--disable-checking --enable-fast-install=N/A --disable-libssp --enable-languages=c,c++ --with-or1ksim=$prefix/or1ksim --with-newlib --with-gmp=/usr/local/gmp-4.3.2 --with-mpfr=/usr/local/mpfr-2.4.2 --with-mpc=/usr/local/mpc-0.8.1" but have another problem : configure:5841: checking for version 0.10 of PPL configure:5858: gcc -c -g -O2 -I/usr/local/gmp-4.3.2/include -I/usr/local/mpfr-2.4.2/include -I/usr/local/mpc-0.8.1/include conftest.c >&5 conftest.c:10:19: error: ppl_c.h: No such file or directory conftest.c: In function 'main': conftest.c:16: error: 'choke' undeclared (first use in this function) conftest.c:16: error: (Each undeclared identifier is reported only once conftest.c:16: error: for each function it appears in.) conftest.c:16: error: expected ';' before 'me' compile toolchian in centos is so hard, I have compiled it in ubuntu smoothly. Can I move it to centos environment? thanks for your answer to my question. |
RE: make error
by julius on Nov 3, 2010 |
julius
Posts: 363 Joined: Jul 1, 2008 Last seen: May 17, 2021 |
||
This is a matter unrelated to ORPSoC, which the thread was initially about. Please start a new thread if you're having separate issues.
But to answer your question, I have installed on CentOS recently (64-bit version) and did the following to install the GMP and MPFR libraries from source: For GMP:
wget ftp://ftp.gmplib.org/pub/gmp-4.3.2/gmp-4.3.2.tar.bz2
tar xjf gmp-4.3.2.tar.bz2 cd gmp-4.3.2 ./configure make make check sudo make install For MPFR:
wget http://www.mpfr.org/mpfr-current/mpfr-3.0.0.tar.bz2
tar xjf mpfr-3.0.0.tar.bz2 cd mpfr-3.0.0 wget http://www.mpfr.org/mpfr-current/allpatches patch -N -Z -p1 ./configure make sudo make install I believe I still installed the MPC stuff using yum, I could be wrong though - my bash history didn't go back far enough unfortunately. I definitely did not have to add the --with-gmp= --with-mpc= --with-mpfr= flags when configuring GCC; the script should work unedited. |



