Discussion:
[OpenRISC] Fwd: Problem to install the GNU toolchain for bare metal
Victor B
2014-06-23 14:14:06 UTC
Permalink
Hello,
when I try to install the GNU toolchain for bare metal and build newlib and
gdb, I had an error when I executed that line:

../or1k-src/configure --target=or1k-elf --prefix=/opt/or1k-toolchain
--enable-shared --disable-itcl --disable-tk --disable-tcl
--disable-winsup --disable-gdbtk --disable-libgui --disable-rda
--disable-sid --enable-sim --enable-gdb --with-sysroot
--enable-newlib --enable-libgloss

what is wrong? Is for the Gcc version?

This is the steps that I followed:
http://wiki.mintsoc.or/doku.php?id=gnu_toolchain_for_bare_metal

This is the error log.

Log:

Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
configure:4816: $? = 0
configure:4805: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:4816: $? = 4
configure:4805: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:4816: $? = 4
configure:4820: checking whether we are using the GNU C++ compiler
configure:4839: g++ -c conftest.cpp >&5
configure:4839: $? = 0
configure:4848: result: yes
configure:4857: checking whether g++ accepts -g
configure:4877: g++ -c -g conftest.cpp >&5
configure:4877: $? = 0
configure:4918: result: yes
configure:4967: checking whether g++ accepts -static-libstdc++
-static-libgcc
configure:4984: g++ -o conftest -g -O2 -static-libstdc++ -static-libgcc
conftest.cpp >&5
configure:4984: $? = 0
configure:4985: result: yes
configure:5049: checking for gnatbind
configure:5079: result: no
configure:5141: checking for gnatmake
configure:5171: result: no
configure:5190: checking whether compiler driver understands Ada
configure:5213: result: no
configure:5222: checking how to compare bootstrapped objects
configure:5247: result: cmp --ignore-initial=16 $$f1 $$f2
configure:5301: checking for objdir
configure:5316: result: .libs
configure:5912: checking for version 0.10 of ISL
configure:5931: gcc -o conftest -g -O2 conftest.c -lisl >&5
conftest.c:10:25: fatal error: isl/version.h: No such file or directory
#include <isl/version.h>



Thanks.
Jose Teixeira de Sousa
2014-06-27 16:27:48 UTC
Permalink
Hi,

I confirm I was unable to install the toolchain on Ubuntu 14.04. Hardware
problems are excluded since I tried on a different and virtual machine with
the same problems Victor was facing on a real machine.

Our project is now to make a Docker installation on Debian where we know it
works and after that it can be installed in any Linux machine with Docker.

Jose
Post by Victor B
Hello,
when I try to install the GNU toolchain for bare metal and build newlib
../or1k-src/configure --target=or1k-elf --prefix=/opt/or1k-toolchain --enable-shared --disable-itcl --disable-tk --disable-tcl --disable-winsup --disable-gdbtk --disable-libgui --disable-rda --disable-sid --enable-sim --enable-gdb --with-sysroot --enable-newlib --enable-libgloss
what is wrong? Is for the Gcc version?
http://wiki.mintsoc.or/doku.php?id=gnu_toolchain_for_bare_metal
This is the error log.
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
configure:4816: $? = 0
configure:4805: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:4816: $? = 4
configure:4805: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:4816: $? = 4
configure:4820: checking whether we are using the GNU C++ compiler
configure:4839: g++ -c conftest.cpp >&5
configure:4839: $? = 0
configure:4848: result: yes
configure:4857: checking whether g++ accepts -g
configure:4877: g++ -c -g conftest.cpp >&5
configure:4877: $? = 0
configure:4918: result: yes
configure:4967: checking whether g++ accepts -static-libstdc++
-static-libgcc
configure:4984: g++ -o conftest -g -O2 -static-libstdc++ -static-libgcc
conftest.cpp >&5
configure:4984: $? = 0
configure:4985: result: yes
configure:5049: checking for gnatbind
configure:5079: result: no
configure:5141: checking for gnatmake
configure:5171: result: no
configure:5190: checking whether compiler driver understands Ada
configure:5213: result: no
configure:5222: checking how to compare bootstrapped objects
configure:5247: result: cmp --ignore-initial=16 $$f1 $$f2
configure:5301: checking for objdir
configure:5316: result: .libs
configure:5912: checking for version 0.10 of ISL
configure:5931: gcc -o conftest -g -O2 conftest.c -lisl >&5
conftest.c:10:25: fatal error: isl/version.h: No such file or directory
#include <isl/version.h>
Thanks.
_______________________________________________
OpenRISC mailing list
http://lists.openrisc.net/listinfo/openrisc
--
Jose T. de Sousa, PhD
Office: +351 213 100 213
R. Alves Redol 9
1000-029 Lisboa
Portugal
Stefan Kristiansson
2014-06-27 17:53:10 UTC
Permalink
To me it seems like some package is missing on the host machine.
Perhaps libisl-dev or something like that?
If that doesn't help, could you attach the full config.log?

Stefan
Post by Jose Teixeira de Sousa
Hi,
I confirm I was unable to install the toolchain on Ubuntu 14.04. Hardware
problems are excluded since I tried on a different and virtual machine with
the same problems Victor was facing on a real machine.
Our project is now to make a Docker installation on Debian where we know it
works and after that it can be installed in any Linux machine with Docker.
Jose
Post by Victor B
Hello,
when I try to install the GNU toolchain for bare metal and build newlib
../or1k-src/configure --target=or1k-elf --prefix=/opt/or1k-toolchain
--enable-shared --disable-itcl --disable-tk --disable-tcl --disable-winsup
--disable-gdbtk --disable-libgui --disable-rda --disable-sid --enable-sim
--enable-gdb --with-sysroot --enable-newlib --enable-libgloss
what is wrong? Is for the Gcc version?
http://wiki.mintsoc.or/doku.php?id=gnu_toolchain_for_bare_metal
This is the error log.
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
configure:4816: $? = 0
configure:4805: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:4816: $? = 4
configure:4805: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:4816: $? = 4
configure:4820: checking whether we are using the GNU C++ compiler
configure:4839: g++ -c conftest.cpp >&5
configure:4839: $? = 0
configure:4848: result: yes
configure:4857: checking whether g++ accepts -g
configure:4877: g++ -c -g conftest.cpp >&5
configure:4877: $? = 0
configure:4918: result: yes
configure:4967: checking whether g++ accepts -static-libstdc++
-static-libgcc
configure:4984: g++ -o conftest -g -O2 -static-libstdc++ -static-libgcc
conftest.cpp >&5
configure:4984: $? = 0
configure:4985: result: yes
configure:5049: checking for gnatbind
configure:5079: result: no
configure:5141: checking for gnatmake
configure:5171: result: no
configure:5190: checking whether compiler driver understands Ada
configure:5213: result: no
configure:5222: checking how to compare bootstrapped objects
configure:5247: result: cmp --ignore-initial=16 $$f1 $$f2
configure:5301: checking for objdir
configure:5316: result: .libs
configure:5912: checking for version 0.10 of ISL
configure:5931: gcc -o conftest -g -O2 conftest.c -lisl >&5
conftest.c:10:25: fatal error: isl/version.h: No such file or directory
#include <isl/version.h>
Thanks.
_______________________________________________
OpenRISC mailing list
http://lists.openrisc.net/listinfo/openrisc
--
Jose T. de Sousa, PhD
Office: +351 213 100 213
R. Alves Redol 9
1000-029 Lisboa
Portugal
_______________________________________________
OpenRISC mailing list
http://lists.openrisc.net/listinfo/openrisc
Stefan Kristiansson
2014-06-30 10:54:39 UTC
Permalink
Ok, that doesn't have the initial failure...
I guess installing libisl-dev fixed that?
So, what is the problem now?

Stefan

On Mon, Jun 30, 2014 at 12:55 PM, Jose Teixeira de Sousa
Here it is, thanks.
Jose
On Fri, Jun 27, 2014 at 6:53 PM, Stefan Kristiansson
Post by Stefan Kristiansson
To me it seems like some package is missing on the host machine.
Perhaps libisl-dev or something like that?
If that doesn't help, could you attach the full config.log?
Stefan
Post by Jose Teixeira de Sousa
Hi,
I confirm I was unable to install the toolchain on Ubuntu 14.04. Hardware
problems are excluded since I tried on a different and virtual machine with
the same problems Victor was facing on a real machine.
Our project is now to make a Docker installation on Debian where we know it
works and after that it can be installed in any Linux machine with Docker.
Jose
Post by Victor B
Hello,
when I try to install the GNU toolchain for bare metal and build newlib
../or1k-src/configure --target=or1k-elf --prefix=/opt/or1k-toolchain
--enable-shared --disable-itcl --disable-tk --disable-tcl
--disable-winsup
--disable-gdbtk --disable-libgui --disable-rda --disable-sid --enable-sim
--enable-gdb --with-sysroot --enable-newlib --enable-libgloss
what is wrong? Is for the Gcc version?
http://wiki.mintsoc.or/doku.php?id=gnu_toolchain_for_bare_metal
This is the error log.
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
configure:4816: $? = 0
configure:4805: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:4816: $? = 4
configure:4805: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:4816: $? = 4
configure:4820: checking whether we are using the GNU C++ compiler
configure:4839: g++ -c conftest.cpp >&5
configure:4839: $? = 0
configure:4848: result: yes
configure:4857: checking whether g++ accepts -g
configure:4877: g++ -c -g conftest.cpp >&5
configure:4877: $? = 0
configure:4918: result: yes
configure:4967: checking whether g++ accepts -static-libstdc++
-static-libgcc
configure:4984: g++ -o conftest -g -O2 -static-libstdc++
-static-libgcc
conftest.cpp >&5
configure:4984: $? = 0
configure:4985: result: yes
configure:5049: checking for gnatbind
configure:5079: result: no
configure:5141: checking for gnatmake
configure:5171: result: no
configure:5190: checking whether compiler driver understands Ada
configure:5213: result: no
configure:5222: checking how to compare bootstrapped objects
configure:5247: result: cmp --ignore-initial=16 $$f1 $$f2
configure:5301: checking for objdir
configure:5316: result: .libs
configure:5912: checking for version 0.10 of ISL
configure:5931: gcc -o conftest -g -O2 conftest.c -lisl >&5
conftest.c:10:25: fatal error: isl/version.h: No such file or directory
#include <isl/version.h>
Thanks.
_______________________________________________
OpenRISC mailing list
http://lists.openrisc.net/listinfo/openrisc
--
Jose T. de Sousa, PhD
Office: +351 213 100 213
R. Alves Redol 9
1000-029 Lisboa
Portugal
_______________________________________________
OpenRISC mailing list
http://lists.openrisc.net/listinfo/openrisc
--
Jose T. de Sousa, PhD
Office: +351 213 100 213
R. Alves Redol 9
1000-029 Lisboa
Portugal
Stefan Kristiansson
2014-06-30 11:21:17 UTC
Permalink
Please keep the mailing lists on CC.

Franck, do you have any idea about why the or1ksim link would fail?

BTW, you only need to link against or1ksim if you plan on running the
gdb testsuite, otherwise you can disable that all together.

Stefan
Installing libisl-dev made the respective error go away.
No it crashes while linking with or1ksim and this does not happen on Debian
- only Ubuntu 14.04.
gcc -g -O2 -static-libstdc++ -static-libgcc -Wl,-rpath
-Wl,/opt/or1ksim/lib -L/opt/or1ksim/lib -lsim \
-o gdb gdb.o or1k-tdep.o ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
remote.o dcache.o tracepoint.o ax-general.o ax-gdb.o remote-fileio.o
remote-notif.o ctf.o remote-sim.o cli-dump.o cli-decode.o cli-script.o
cli-cmds.o cli-setshow.o cli-logging.o cli-interp.o cli-utils.o mi-out.o
mi-console.o mi-cmds.o mi-cmd-catch.o mi-cmd-env.o mi-cmd-var.o
mi-cmd-break.o mi-cmd-stack.o mi-cmd-file.o mi-cmd-disas.o mi-symbol-cmds.o
mi-cmd-target.o mi-cmd-info.o mi-interp.o mi-main.o mi-parse.o mi-getopt.o
tui-command.o tui-data.o tui-disasm.o tui-file.o tui-hooks.o tui-interp.o
tui-io.o tui-layout.o tui-out.o tui-regs.o tui-source.o tui-stack.o
tui-win.o tui-windata.o tui-wingeneral.o tui-winsource.o tui.o python.o
py-arch.o py-auto-load.o py-block.o py-bpevent.o py-breakpoint.o py-cmd.o
py-continueevent.o py-event.o py-evtregistry.o py-evts.o py-exitedevent.o
py-finishbreakpoint.o py-frame.o py-framefilter.o py-function.o
py-gdb-readline.o py-inferior.o py-infthread.o py-lazy-string.o
py-newobjfileevent.o py-objfile.o py-param.o py-prettyprint.o py-progspace.o
py-signalevent.o py-stopevent.o py-symbol.o py-symtab.o py-threadevent.o
py-type.o py-utils.o py-value.o elfread.o stap-probe.o posix-hdep.o c-exp.o
cp-name-parser.o ada-exp.o jv-exp.o f-exp.o go-exp.o m2-exp.o p-exp.o
version.o annotate.o addrmap.o auto-load.o auxv.o agent.o bfd-target.o
blockframe.o breakpoint.o break-catch-sig.o break-catch-throw.o findvar.o
regcache.o cleanups.o charset.o continuations.o corelow.o disasm.o
dummy-frame.o dfp.o source.o value.o eval.o valops.o valarith.o valprint.o
printcmd.o block.o symtab.o psymtab.o symfile.o symfile-debug.o symmisc.o
linespec.o dictionary.o infcall.o infcmd.o infrun.o expprint.o environ.o
stack.o thread.o exceptions.o filesystem.o filestuff.o inf-child.o interps.o
minidebug.o main.o macrotab.o macrocmd.o macroexp.o macroscope.o mi-common.o
event-loop.o event-top.o inf-loop.o completer.o gdbarch.o arch-utils.o
gdbtypes.o gdb_bfd.o gdb_obstack.o osabi.o copying.o memattr.o mem-break.o
target.o parse.o language.o buildsym.o findcmd.o std-regs.o signals.o exec.o
reverse.o bcache.o objfiles.o observer.o minsyms.o maint.o demangle.o
dbxread.o coffread.o coff-pe-read.o dwarf2read.o mipsread.o stabsread.o
corefile.o dwarf2expr.o dwarf2loc.o dwarf2-frame.o dwarf2-frame-tailcall.o
ada-lang.o c-lang.o d-lang.o f-lang.o objc-lang.o ada-tasks.o ada-varobj.o
ui-out.o cli-out.o varobj.o vec.o go-lang.o go-valprint.o go-typeprint.o
jv-lang.o jv-valprint.o jv-typeprint.o m2-lang.o opencl-lang.o p-lang.o
p-typeprint.o p-valprint.o sentinel-frame.o complaints.o typeprint.o
ada-typeprint.o c-typeprint.o f-typeprint.o m2-typeprint.o ada-valprint.o
c-valprint.o cp-valprint.o d-valprint.o f-valprint.o m2-valprint.o serial.o
mdebugread.o top.o utils.o ui-file.o user-regs.o frame.o frame-unwind.o
doublest.o frame-base.o inline-frame.o gnu-v2-abi.o gnu-v3-abi.o cp-abi.o
cp-support.o cp-namespace.o reggroups.o regset.o trad-frame.o tramp-frame.o
solib.o solib-target.o prologue-value.o memory-map.o memrange.o
xml-support.o xml-syscall.o xml-utils.o target-descriptions.o
target-memory.o xml-tdesc.o xml-builtin.o inferior.o osdata.o gdb_usleep.o
record.o record-full.o gcore.o gdb_vecs.o jit.o progspace.o skip.o probe.o
common-utils.o buffer.o ptid.o gdb-dlfcn.o common-agent.o format.o
registry.o btrace.o record-btrace.o waitstatus.o inflow.o init.o \
../sim/or1ksim/libsim.a ../readline/libreadline.a
../opcodes/libopcodes.a ../bfd/libbfd.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a -ldl -lncurses -lz -lm -lpthread -ldl
-lutil -lm -lpython2.7 -Xlinker -export-dynamic -Wl,-O1
-Wl,-Bsymbolic-functions -lexpat ../libiberty/libiberty.a
build-gnulib/import/libgnu.a
undefined reference to `or1ksim_set_stall_state'
undefined reference to `or1ksim_init'
undefined reference to `or1ksim_set_stall_state'
undefined reference to `or1ksim_read_reg'
undefined reference to `or1ksim_write_reg'
undefined reference to `or1ksim_write_spr'
undefined reference to `or1ksim_read_spr'
undefined reference to `or1ksim_write_spr'
undefined reference to `or1ksim_read_spr'
undefined reference to `or1ksim_write_spr'
undefined reference to `or1ksim_read_spr'
undefined reference to `or1ksim_write_spr'
undefined reference to `or1ksim_read_reg'
undefined reference to `or1ksim_write_reg'
undefined reference to `or1ksim_set_time_point'
undefined reference to `or1ksim_set_stall_state'
undefined reference to `or1ksim_run'
undefined reference to `or1ksim_read_spr'
undefined reference to `or1ksim_write_spr'
undefined reference to `or1ksim_read_reg'
undefined reference to `or1ksim_read_reg'
undefined reference to `or1ksim_get_time_period'
undefined reference to `or1ksim_clock_rate'
undefined reference to `or1ksim_read_reg'
undefined reference to `or1ksim_write_mem'
undefined reference to `or1ksim_set_stall_state'
undefined reference to `or1ksim_read_mem'
collect2: error: ld returned 1 exit status
make[2]: *** [gdb] Error 1
make[2]: Leaving directory `/home/jts/mintsoc/bld-or1k-src/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/home/jts/mintsoc/bld-or1k-src'
make: *** [all] Error 2
Thanks
Jose
On Mon, Jun 30, 2014 at 11:54 AM, Stefan Kristiansson
Post by Stefan Kristiansson
Ok, that doesn't have the initial failure...
I guess installing libisl-dev fixed that?
So, what is the problem now?
Stefan
On Mon, Jun 30, 2014 at 12:55 PM, Jose Teixeira de Sousa
Here it is, thanks.
Jose
On Fri, Jun 27, 2014 at 6:53 PM, Stefan Kristiansson
Post by Stefan Kristiansson
To me it seems like some package is missing on the host machine.
Perhaps libisl-dev or something like that?
If that doesn't help, could you attach the full config.log?
Stefan
On Fri, Jun 27, 2014 at 7:27 PM, Jose Teixeira de Sousa
Post by Jose Teixeira de Sousa
Hi,
I confirm I was unable to install the toolchain on Ubuntu 14.04. Hardware
problems are excluded since I tried on a different and virtual
machine
with
the same problems Victor was facing on a real machine.
Our project is now to make a Docker installation on Debian where we
know
it
works and after that it can be installed in any Linux machine with Docker.
Jose
Post by Victor B
Hello,
when I try to install the GNU toolchain for bare metal and build newlib
../or1k-src/configure --target=or1k-elf --prefix=/opt/or1k-toolchain
--enable-shared --disable-itcl --disable-tk --disable-tcl --disable-winsup
--disable-gdbtk --disable-libgui --disable-rda --disable-sid --enable-sim
--enable-gdb --with-sysroot --enable-newlib --enable-libgloss
what is wrong? Is for the Gcc version?
http://wiki.mintsoc.or/doku.php?id=gnu_toolchain_for_bare_metal
This is the error log.
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
configure:4816: $? = 0
configure:4805: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:4816: $? = 4
configure:4805: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:4816: $? = 4
configure:4820: checking whether we are using the GNU C++ compiler
configure:4839: g++ -c conftest.cpp >&5
configure:4839: $? = 0
configure:4848: result: yes
configure:4857: checking whether g++ accepts -g
configure:4877: g++ -c -g conftest.cpp >&5
configure:4877: $? = 0
configure:4918: result: yes
configure:4967: checking whether g++ accepts -static-libstdc++
-static-libgcc
configure:4984: g++ -o conftest -g -O2 -static-libstdc++ -static-libgcc
conftest.cpp >&5
configure:4984: $? = 0
configure:4985: result: yes
configure:5049: checking for gnatbind
configure:5079: result: no
configure:5141: checking for gnatmake
configure:5171: result: no
configure:5190: checking whether compiler driver understands Ada
configure:5213: result: no
configure:5222: checking how to compare bootstrapped objects
configure:5247: result: cmp --ignore-initial=16 $$f1 $$f2
configure:5301: checking for objdir
configure:5316: result: .libs
configure:5912: checking for version 0.10 of ISL
configure:5931: gcc -o conftest -g -O2 conftest.c -lisl >&5
conftest.c:10:25: fatal error: isl/version.h: No such file or directory
#include <isl/version.h>
Thanks.
_______________________________________________
OpenRISC mailing list
http://lists.openrisc.net/listinfo/openrisc
--
Jose T. de Sousa, PhD
Office: +351 213 100 213
R. Alves Redol 9
1000-029 Lisboa
Portugal
_______________________________________________
OpenRISC mailing list
http://lists.openrisc.net/listinfo/openrisc
--
Jose T. de Sousa, PhD
Office: +351 213 100 213
R. Alves Redol 9
1000-029 Lisboa
Portugal
--
Jose T. de Sousa, PhD
Office: +351 213 100 213
R. Alves Redol 9
1000-029 Lisboa
Portugal
Franck Jullien
2014-06-30 11:37:07 UTC
Permalink
2014-06-30 13:21 GMT+02:00 Stefan Kristiansson <
Post by Stefan Kristiansson
Please keep the mailing lists on CC.
Franck, do you have any idea about why the or1ksim link would fail?
​I have no idea.​

​Franck.​
Jose Teixeira de Sousa
2014-06-30 13:51:31 UTC
Permalink
It compiled with --disable-sim

Previously Victor had tried disabling or1ksim only and it did not work

It is a bit annoying that one cannot simulate in gdb but I prefer to
connect to or1ksim via socket to debug.

Thanks

Jose
Post by Franck Jullien
2014-06-30 13:21 GMT+02:00 Stefan Kristiansson <
Please keep the mailing lists on CC.
Post by Stefan Kristiansson
Franck, do you have any idea about why the or1ksim link would fail?
​I have no idea.​
​Franck.​
--
Jose T. de Sousa, PhD
Office: +351 213 100 213
R. Alves Redol 9
1000-029 Lisboa
Portugal
Loading...