openrisc build problem
Hi Franck !
Here is sample openrisc barebox build error log :
/opt/gcc-or1k-elf-4.8.1-x86_64/bin/or1k-elf-ld -Map barebox.map -o barebox -T arch/openrisc/cpu/barebox.lds --start-group common/built-in.o drivers/built-in.o commands/built-in.o lib/built-in.o crypto/built-in.o net/built-in.o fs/built-in.o arch/openrisc/boards/generic/built-in.o arch/openrisc/lib/built-in.o arch/openrisc/cpu/built-in.o arch/openrisc/dts/built-in.o defaultenv/built-in.o --end-group /opt/gcc-or1k-elf-4.8.1-x86_64/bin/or1k-elf-ld: target elf32-or32 not found
$ /opt/gcc-or1k-elf-4.8.1-x86_64/bin/or1k-elf-ld --version GNU ld (GNU Binutils) 2.23.51.20121129
Copyright 2012 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
My current quick-and-dirty solution is :
arch/openrisc/cpu/barebox.lds.S +1 -1
@@ -16,7 +16,7 @@ #include <config.h> #include <asm-generic/barebox.lds.h> -OUTPUT_FORMAT("elf32-or32", "elf32-or32", "elf32-or32") +/* OUTPUT_FORMAT("elf32-or32", "elf32-or32", "elf32-or32") */ __DYNAMIC = 0; MEMORY
Franck !
Please comment this message !
--
Best regards,
Antony Pavlov
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
2015-02-08 20:26 GMT+01:00 Antony Pavlov <[email protected]>:
Quoted 37 lines
Hi Franck !
Here is sample openrisc barebox build error log :
/opt/gcc-or1k-elf-4.8.1-x86_64/bin/or1k-elf-ld-Map barebox.map -o barebox -Tarch/openrisc/cpu/barebox.lds--start-groupcommon/built-in.odrivers/built-in.ocommands/built-in.olib/built-in.ocrypto/built-in.onet/built-in.ofs/built-in.oarch/openrisc/boards/generic/built-in.oarch/openrisc/lib/built-in.oarch/openrisc/cpu/built-in.oarch/openrisc/dts/built-in.odefaultenv/built-in.o--end-group/opt/gcc-or1k-elf-4.8.1-x86_64/bin/or1k-elf-ld: target elf32-or32 not found$
/opt/gcc-or1k-elf-4.8.1-x86_64/bin/or1k-elf-ld--version GNU ld (GNU Binutils) 2.23.51.20121129
Copyright 2012 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.My current quick-and-dirty solution is :
arch/openrisc/cpu/barebox.lds.S +1
-1@@ -16,7 +16,7 @@ #include <config.h> #include <asm-generic/barebox.lds.h> -OUTPUT_FORMAT("elf32-or32", "elf32-or32", "elf32-or32") +/* OUTPUT_FORMAT("elf32-or32", "elf32-or32", "elf32-or32") */ __DYNAMIC = 0; MEMORY
Quoted 6 lines
Franck !
Please comment this message !--
Best regards,
Antony Pavlov
Hi,
Yes I know :) Until now, the official openrisc toolchain was called or32. However, the new one (and maintained one) is called or1k. So we need to change "elf32-or32" to "elf32-or1k" in barebox.lds.S.
Feel free to send a patch. Or I'll do that later.
Franck.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Hi,
Quoted 8 lines · Franck Jullien
Hi,
Yes I know :) Until now, the official openrisc toolchain was called or32. However, the new one (and maintained one) is called or1k. So we need to change "elf32-or32" to "elf32-or1k" in
barebox.lds.S.Feel free to send a patch. Or I'll do that later.
Is there a binary toolchain somewhere for download? I'll need for my build tests once this patch is in.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
2015-02-09 8:40 GMT+01:00 Sascha Hauer <[email protected]>:
Quoted 6 lines
Hi,
Quoted 3 lines · Franck Jullien
Hi,
Quoted 9 lines
Quoted 5 lines
Yes I know :) Until now, the official openrisc toolchain was called or32. However, the new one (and maintained one) is called or1k. So we need to change "elf32-or32" to "elf32-or1k" in
barebox.lds.S.Feel free to send a patch. Or I'll do that later.
Is there a binary toolchain somewhere for download? I'll need for my build tests once this patch is in.
Here: http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Prebuilt_versions
Or more recent here:
http://lis.ei.tum.de/pub-download/openrisc-builds/or1k-elf/release/
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 13 lines · On Mon, 9 Feb 2015 12:26:05 +0100 Franck Jullien <[email protected]>…
2015-02-09 8:40 GMT+01:00 Sascha Hauer <[email protected]>:
Quoted 12 lines
Hi,
Quoted 8 lines · Franck Jullien
Hi,
Yes I know :) Until now, the official openrisc toolchain was called or32. However, the new one (and maintained one) is called or1k. So we need to change "elf32-or32" to "elf32-or1k" in
barebox.lds.S.Feel free to send a patch. Or I'll do that later.
Quoted 7 lines
Quoted 3 lines
Is there a binary toolchain somewhere for download? I'll need for my build tests once this patch is in.
Here: http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Prebuilt_versions
Or more recent here:
http://lis.ei.tum.de/pub-download/openrisc-builds/or1k-elf/release/
Hmmm.
It looks like gcc-or1k-elf-4.8.1-x86_64 does not work on my amd64 Debian testing ('apt-cache search libmpc2' gives no results). E.g.
$ /opt/gcc-or1k-elf-4.8.1-x86_64/bin/or1k-elf-gcc 1.c /opt/gcc-or1k-elf-4.8.1-x86_64/bin/../libexec/gcc/or1k-elf/4.8.1/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory
--
Best regards,
Antony Pavlov
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
2015-02-09 12:49 GMT+01:00 Antony Pavlov <[email protected]>:
Quoted 31 lines
Quoted 13 lines · On Mon, 9 Feb 2015 12:26:05 +0100 Franck Jullien <[email protected]>…
2015-02-09 8:40 GMT+01:00 Sascha Hauer <[email protected]>:
Quoted 12 lines
Hi,
Quoted 8 lines · Franck Jullien
Hi,
Yes I know :) Until now, the official openrisc toolchain was called or32. However, the new one (and maintained one) is called or1k. So we need to change "elf32-or32" to "elf32-or1k" in
barebox.lds.S.Feel free to send a patch. Or I'll do that later.
Quoted 7 lines
Quoted 3 lines
Is there a binary toolchain somewhere for download? I'll need for my build tests once this patch is in.
Here: http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Prebuilt_versions
Or more recent here:
http://lis.ei.tum.de/pub-download/openrisc-builds/or1k-elf/release/Hmmm.
It looks like gcc-or1k-elf-4.8.1-x86_64 does not work on my amd64 Debian testing ('apt-cache search libmpc2' gives no results). E.g.
Quoted 6 lines
$ /opt/gcc-or1k-elf-4.8.1-x86_64/bin/or1k-elf-gcc 1.c /opt/gcc-or1k-elf-4.8.1-x86_64/bin/../libexec/gcc/or1k-elf/4.8.1/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory--
Best regards,
Antony Pavlov
To be honest, I never tried those prebuilt toolchain. Did you try the newer version present on the second link ?
If you still have problems you can ask the mailing list or IRC at #openrisc on freenode.
Franck.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 35 lines · On Mon, 9 Feb 2015 20:24:20 +0100 Franck Jullien <[email protected]>…
2015-02-09 12:49 GMT+01:00 Antony Pavlov <[email protected]>:
Quoted 34 lines
Quoted 13 lines · On Mon, 9 Feb 2015 12:26:05 +0100 Franck Jullien <[email protected]>…
2015-02-09 8:40 GMT+01:00 Sascha Hauer <[email protected]>:
Quoted 12 lines
Hi,
Quoted 8 lines · Franck Jullien
Hi,
Yes I know :) Until now, the official openrisc toolchain was called or32. However, the new one (and maintained one) is called or1k. So we need to change "elf32-or32" to "elf32-or1k" in
barebox.lds.S.Feel free to send a patch. Or I'll do that later.
Quoted 7 lines
Quoted 3 lines
Is there a binary toolchain somewhere for download? I'll need for my build tests once this patch is in.
Here: http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Prebuilt_versions
Or more recent here:
http://lis.ei.tum.de/pub-download/openrisc-builds/or1k-elf/release/Hmmm.
It looks like gcc-or1k-elf-4.8.1-x86_64 does not work on my amd64 Debian testing ('apt-cache search libmpc2' gives no results). E.g.
$ /opt/gcc-or1k-elf-4.8.1-x86_64/bin/or1k-elf-gcc 1.c /opt/gcc-or1k-elf-4.8.1-x86_64/bin/../libexec/gcc/or1k-elf/4.8.1/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory
Quoted 7 lines
Quoted 3 lines
--
Best regards,
Antony PavlovTo be honest, I never tried those prebuilt toolchain. Did you try the newer version present on the second link ?
Sorry, I have forgotten this question.
This toolchain works fine:
http://lis.ei.tum.de/pub-download/openrisc-builds/or1k-elf/release/or1k-elf-latest-ubuntu-14.04-amd64.tgz
$ sha1sum or1k-elf-latest-ubuntu-14.04-amd64.tgz 7cd8f3cb7d4d8126774dd63fd26d00f76658d968 or1k-elf-latest-ubuntu-14.04-amd64.tgz
or1k-elf-latest-ubuntu-14.04-amd64.tgz 2015-02-06 10:56 139M
I have used it for testing the 'openrisc: barebox.lds.S: fix BFD format names' patch.
--
Best regards,
Antony Pavlov
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 42 lines · Antony Pavlov
Quoted 39 lines · On Mon, 9 Feb 2015 20:24:20 +0100 Franck Jullien <[email protected]>…
2015-02-09 12:49 GMT+01:00 Antony Pavlov <[email protected]>:
Quoted 37 lines
Quoted 13 lines · On Mon, 9 Feb 2015 12:26:05 +0100 Franck Jullien <[email protected]>…
2015-02-09 8:40 GMT+01:00 Sascha Hauer <[email protected]>:
Quoted 12 lines
Hi,
Quoted 8 lines · Franck Jullien
Hi,
Yes I know :) Until now, the official openrisc toolchain was called or32. However, the new one (and maintained one) is called or1k. So we need to change "elf32-or32" to "elf32-or1k" in
barebox.lds.S.Feel free to send a patch. Or I'll do that later.
Quoted 7 lines
Quoted 3 lines
Is there a binary toolchain somewhere for download? I'll need for my build tests once this patch is in.
Here: http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Prebuilt_versions
Or more recent here:
http://lis.ei.tum.de/pub-download/openrisc-builds/or1k-elf/release/Hmmm.
It looks like gcc-or1k-elf-4.8.1-x86_64 does not work on my amd64 Debian testing ('apt-cache search libmpc2' gives no results). E.g.
$ /opt/gcc-or1k-elf-4.8.1-x86_64/bin/or1k-elf-gcc 1.c /opt/gcc-or1k-elf-4.8.1-x86_64/bin/../libexec/gcc/or1k-elf/4.8.1/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory--
Best regards,
Antony Pavlov
Quoted 8 lines
Quoted 3 lines
To be honest, I never tried those prebuilt toolchain. Did you try the newer version present on the second link ?
Sorry, I have forgotten this question.
This toolchain works fine:
http://lis.ei.tum.de/pub-download/openrisc-builds/or1k-elf/release/or1k-elf-latest-ubuntu-14.04-amd64.tgz
The server seems to be offline for the whole morning now. I'll try later.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 5 lines · Antony Pavlov
On Mon, 9 Feb 2015 20:24:20 +0100
Franck Jullien <[email protected]> wrote:Sorry, I have forgotten this question.
Quoted 7 lines
This toolchain works fine:
http://lis.ei.tum.de/pub-download/openrisc-builds/or1k-elf/release/or1k-elf-latest-ubuntu-14.04-amd64.tgz$ sha1sum or1k-elf-latest-ubuntu-14.04-amd64.tgz 7cd8f3cb7d4d8126774dd63fd26d00f76658d968 or1k-elf-latest-ubuntu-14.04-amd64.tgzor1k-elf-latest-ubuntu-14.04-amd64.tgz 2015-02-06 10:56 139M
Strange. I can download this file at home without problems. In the office it doesn't work.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox