On Fri, Oct 24, 2014 at 12:46 PM, Peter Breuer <[email protected]> wrote:
> > Greetings > > I've compiled or1ksim from github (using the -or1k-master zip > file download as source and typing "./configure; make; .."), but certain > checks fail in "make check". > > The simulator binary says: > OpenRISC 1000 Architectural Simulator, version 2012-04-27 > > I reckon the simulator compile found the gnu toolchain in > /opt/or1k-toolchain [is it even needed?]. The config.log says it was > run with "./configure" and further down it has > > Target: i486-linux-gnu > Configured with: ../src/configure -v --with-pkgversion='Debian > 4.7.2-5' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs > --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr > --program-suffix=-4.7 --enable-shared --enable-linker-build-id > --with-system-zlib --libexecdir=/usr/lib --without-included-gettext > --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 > --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu > --enable-libstdcxx-debug --enable-libstdcxx-time=yes > --enable-gnu-unique-object --enable-plugin --enable-objc-gc > --enable-targets=all --with-arch-32=i586 --with-tune=generic > --enable-checking=release --build=i486-linux-gnu > --host=i486-linux-gnu --target=i486-linux-gnu > > I compiled the gnu toolchain using the instructions at > > > https://github.com/juliusbaxter/mor1kx-dev-env/wiki/OpenRISC-tool-chain-installat > ion-guide > > but it seems to me those are aimed at the mor1kx architectures. The > toolchain configure line was: > > ../or1k-src/configure --target=or1k-elf --prefix=/opt/or1k-toolchain > --enable-shared --disable-itcl --disable-tk --disable-tcl > --disable-winsup --disable-libgui --disable-rda --disable-sid > --enable-sim -- > > and further down in config.log: > > Target: i486-linux-gnu > Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5' > --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs > --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr > --program-suffix=-4.7 --enable-shared --enable-linker-build-id > --with-system-zlib --libexecdir=/usr/lib --without-included-gettext > --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 > --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu > --enable-libstdcxx-debug --enable-libstdcxx-time=yes > --enable-gnu-unique-object --enable-plugin --enable-objc-gc > --enable-targets=all --with-arch-32=i586 --with-tune=generic > --enable-checking=release --build=i486-linux-gnu > --host=i486-linux-gnu --target=i486-linux-gnu > > > Here are the or1ksim tests: > > === libsim Summary === > > # of expected passes 252 > # of unexpected failures 9 > # of unresolved testcases 1 > Test Run By ptb on Tue Oct 21 19:04:44 2014 > Native configuration is i686-pc-linux-gnu > > > === or1ksim Summary === > > # of expected passes 3654 > # of unexpected failures 8 > # of unresolved testcases 2 > > I would like to know if those failures are expected for the current > code, or if it's me getting something wrong. I need a stable base to > start doing some work! > > Now the or1ksim README says > > Or1ksim can be tested with "make check", but this requires the GNU > tool chain to be installed (using the same target specification) > > OK .. but what IS the target specification? Nobody has unbundled the > jargon "target specification" for me in this readme :-(. And which > toolchain is really meant? The standard one for me and my pc, or the > cross-compile stuff for or1k-elf? > Hi, The "tool chain" referred to here is the cross compiler, that's ambiguous I know, so fair enough for asking. Not exactly sure what "target specification" means, but I will guess that's a hangover from when or1ksim could target different architectures (I believe it supported DLX at some point, and various developmental versions of the OpenRISC architecture back in the early days). These days or1k-elf is the correct target. As for the test failures, I'd be interested to see what they are. I'd be inclined to ignore them (or maybe at least have a quick peek at the test failure log and see if it's anything major, but considering the vast majority of the tests are passing, it's probably in good health). Any chance you could pastebin the test failures? > > How do I find out what it is for or1ksim and how do I find out what it > is for the toolchain I just compiled, and how do I change it if it needs > changing? > > [is the target supposed to be the or1ksim architecture itself? Or the > architecture that or1ksim simulates (which is?)? What are these called? > Or is the "target" supposed to be my own native achitecture > i686-pc-linux-gnu, or one of its aliases?] > > What is messed up here? The docs or my compile? > Docs maybe a bit unclear. Compile is probably fine. Cheers Julius
_______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
