1/1

|
or1ksim make check error
by FlemX on Jun 22, 2012 |
FlemX
Posts: 6 Joined: Oct 24, 2011 Last seen: Jan 15, 2020 |
||
|
Hello Everyone,
I'm planning to work with the openrisc simulator for a TLM wrapper project. I followed the install instructions for or1ksim described in: http://opencores.org/or1k/Or1ksim Then I installed the GNU toolchain following the "build from source" instructions in: http://opencores.org/or1k/OpenRISC_GNU_tool_chain Regarding the version numbers, I used the latest or1ksim (0.5.rc2 aquired from SVN checkout) and "linux 2.6.39" and "uclibc 2.6.37 compatibele" for the toolchain install. I'm using Ubuntu 12.04 LTS (32-bit) distribution and made sure to install all the prerequisites before the whole installation process. Components' versions: GCC - 4.6.3, GDB - 7.4, binutils - 2.22. Both installations succeeded without errors. But when I perform the make check command for the simulator I get the following error: make[4]: Entering directory `/home/gabor/or1ksim-0.5.2/builddir_or1ksim/testsuite/test-code-or1k/support' CC int.lo /home/gabor/or1ksim-0.5.2/compile: 123: /home/gabor/or1ksim-0.5.2/compile: -DHAVE_CONFIG_H: not found make[4]: *** [int.lo] Error 1 make[4]: Leaving directory `/home/gabor/or1ksim-0.5.2/builddir_or1ksim/testsuite/test-code-or1k/support' make[3]: *** [check-am] Error 2 make[3]: Leaving directory `/home/gabor/or1ksim-0.5.2/builddir_or1ksim/testsuite/test-code-or1k/support' make[2]: *** [check-recursive] Error 1 make[2]: Leaving directory `/home/gabor/or1ksim-0.5.2/builddir_or1ksim/testsuite/test-code-or1k' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/home/gabor/or1ksim-0.5.2/builddir_or1ksim/testsuite' make: *** [check-recursive] Error 1 Can you tell me what is causing this and how to resolve it? (Please note, that I'm fairly new to linux programming, so excuse me if I may ask very basic questions.) Thanks in advance! Gabriel |
|||
|
RE: or1ksim make check error
by jeremybennett on Jun 22, 2012 |
jeremybennett
Posts: 815 Joined: May 29, 2008 Last seen: Jun 13, 2019 |
||
|
Hi Gabriel The tests are not picking up the new compiler tool chain you have just built. I think you may need to do one or both of the following:
HTH Jeremy
-- |
|||
|
RE: or1ksim make check error
by FlemX on Jun 22, 2012 |
FlemX
Posts: 6 Joined: Oct 24, 2011 Last seen: Jan 15, 2020 |
||
|
Thank You for your answer, re-running the or1ksim configuration script resolved this problem!
However, the test resulted in 1 error, namely during the mmu.exp test. It gives timeout error: === or1ksim tests === Schedule of variations: unix Running target unix Using ../../testsuite/config/unix.exp as board description file for target. Running ../../testsuite/or1ksim.tests/basic.exp ... Running ../../testsuite/or1ksim.tests/cache.exp ... Running ../../testsuite/or1ksim.tests/cbasic.exp ... Running ../../testsuite/or1ksim.tests/cfg.exp ... Running ../../testsuite/or1ksim.tests/dhry.exp ... Running ../../testsuite/or1ksim.tests/dmatest.exp ... Running ../../testsuite/or1ksim.tests/eth.exp ... Running ../../testsuite/or1ksim.tests/except-test.exp ... Running ../../testsuite/or1ksim.tests/exit.exp ... Running ../../testsuite/or1ksim.tests/ext.exp ... Running ../../testsuite/or1ksim.tests/fbtest.exp ... Running ../../testsuite/or1ksim.tests/flag.exp ... Running ../../testsuite/or1ksim.tests/fp.exp ... Running ../../testsuite/or1ksim.tests/functest.exp ... Running ../../testsuite/or1ksim.tests/inst-set-test.exp ... Running ../../testsuite/or1ksim.tests/int-test.exp ... Running ../../testsuite/or1ksim.tests/kbdtest.exp ... Running ../../testsuite/or1ksim.tests/local-global.exp ... Running ../../testsuite/or1ksim.tests/mem-test.exp ... Running ../../testsuite/or1ksim.tests/mmu.exp ... ERROR: Timeout Running ../../testsuite/or1ksim.tests/mul.exp ... Running ../../testsuite/or1ksim.tests/mycompress.exp ... Running ../../testsuite/or1ksim.tests/pcu.exp ... Running ../../testsuite/or1ksim.tests/testfloat.exp ... Running ../../testsuite/or1ksim.tests/tick.exp ... === or1ksim Summary === # of expected passes 2226 # of unresolved testcases 1 make[3]: *** [check-DEJAGNU] Error 1 make[3]: Leaving directory `/home/gabor/or1ksim-0.5.2/builddir_or1ksim/testsuite' make[2]: *** [check-am] Error 2 make[2]: Leaving directory `/home/gabor/or1ksim-0.5.2/builddir_or1ksim/testsuite' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/home/gabor/or1ksim-0.5.2/builddir_or1ksim/testsuite' make: *** [check-recursive] Error 1 I also tried out a helloworld test program with the GDB tool using the simulator, and it works fine. (http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Using_GDB_with_Or1ksim) So, does this test failure means critical problem? Gabriel |
|||
|
RE: or1ksim make check error
by jeremybennett on Jun 22, 2012 |
jeremybennett
Posts: 815 Joined: May 29, 2008 Last seen: Jun 13, 2019 |
||
|
Hi Gabriel, I'm not sure what that MMU error is. You should find an error log in bd/testsuite/or1ksim.log. Could you post it for me to examine. You might like to try the very latest Or1ksim in SVN. I tried that yesterday and all tests passed for me. However all the tests should also pass for the version you are using! Best wishes, Jeremy |
|||
|
RE: or1ksim make check error
by FlemX on Jun 25, 2012 |
FlemX
Posts: 6 Joined: Oct 24, 2011 Last seen: Jan 15, 2020 |
||
|
Hi Jeremy,
Meanwhile I managed to resolve this issue. The problem was, that the mmu test always got interrupted after 30 seconds. It can be clearly seen in the attached log file (search for the word 'timeout'). After a quick search I found out, that in the ../testsuite/or1ksim.tests/mmu.exp file there's a parameter which defines this timeout interval, which was indeed 30 seconds. I guess my linux (running on VM virtual box) is simply too slow to process it in this much time... After changing this parameter to 100 seconds all tests passed, including the mmu, which took 76 seconds for me. Thank You for Your help! Looking forward to working with the simulator! Best wishes, Gabriel
or1ksim.log (381 kb)
|
|||
1/1

