mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* openrisc build problem
@ 2015-02-08 19:26 Antony Pavlov
  2015-02-08 19:35 ` Franck Jullien
  0 siblings, 1 reply; 9+ messages in thread
From: Antony Pavlov @ 2015-02-08 19:26 UTC (permalink / raw)
  To: Franck Jullien; +Cc: barebox

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 :

--- a/arch/openrisc/cpu/barebox.lds.S
+++ b/arch/openrisc/cpu/barebox.lds.S
@@ -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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: openrisc build problem
  2015-02-08 19:26 openrisc build problem Antony Pavlov
@ 2015-02-08 19:35 ` Franck Jullien
  2015-02-09  7:40   ` Sascha Hauer
  0 siblings, 1 reply; 9+ messages in thread
From: Franck Jullien @ 2015-02-08 19:35 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox

2015-02-08 20:26 GMT+01:00 Antony Pavlov <antonynpavlov@gmail.com>:
> 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 :
>
> --- a/arch/openrisc/cpu/barebox.lds.S
> +++ b/arch/openrisc/cpu/barebox.lds.S
> @@ -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

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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: openrisc build problem
  2015-02-08 19:35 ` Franck Jullien
@ 2015-02-09  7:40   ` Sascha Hauer
  2015-02-09 11:26     ` Franck Jullien
  0 siblings, 1 reply; 9+ messages in thread
From: Sascha Hauer @ 2015-02-09  7:40 UTC (permalink / raw)
  To: Franck Jullien; +Cc: barebox

Hi,

On Sun, Feb 08, 2015 at 08:35:40PM +0100, Franck Jullien wrote:
> 
> 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

-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: openrisc build problem
  2015-02-09  7:40   ` Sascha Hauer
@ 2015-02-09 11:26     ` Franck Jullien
  2015-02-09 11:49       ` Antony Pavlov
  0 siblings, 1 reply; 9+ messages in thread
From: Franck Jullien @ 2015-02-09 11:26 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

2015-02-09 8:40 GMT+01:00 Sascha Hauer <s.hauer@pengutronix.de>:
> Hi,
>
> On Sun, Feb 08, 2015 at 08:35:40PM +0100, Franck Jullien wrote:
>>
>> 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.
>

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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: openrisc build problem
  2015-02-09 11:26     ` Franck Jullien
@ 2015-02-09 11:49       ` Antony Pavlov
  2015-02-09 19:24         ` Franck Jullien
  0 siblings, 1 reply; 9+ messages in thread
From: Antony Pavlov @ 2015-02-09 11:49 UTC (permalink / raw)
  To: Franck Jullien; +Cc: barebox

On Mon, 9 Feb 2015 12:26:05 +0100
Franck Jullien <franck.jullien@gmail.com> wrote:

> 2015-02-09 8:40 GMT+01:00 Sascha Hauer <s.hauer@pengutronix.de>:
> > Hi,
> >
> > On Sun, Feb 08, 2015 at 08:35:40PM +0100, Franck Jullien wrote:
> >>
> >> 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.
> >
> 
> 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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: openrisc build problem
  2015-02-09 11:49       ` Antony Pavlov
@ 2015-02-09 19:24         ` Franck Jullien
  2015-02-10 23:16           ` Antony Pavlov
  0 siblings, 1 reply; 9+ messages in thread
From: Franck Jullien @ 2015-02-09 19:24 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox

2015-02-09 12:49 GMT+01:00 Antony Pavlov <antonynpavlov@gmail.com>:
> On Mon, 9 Feb 2015 12:26:05 +0100
> Franck Jullien <franck.jullien@gmail.com> wrote:
>
>> 2015-02-09 8:40 GMT+01:00 Sascha Hauer <s.hauer@pengutronix.de>:
>> > Hi,
>> >
>> > On Sun, Feb 08, 2015 at 08:35:40PM +0100, Franck Jullien wrote:
>> >>
>> >> 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.
>> >
>>
>> 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

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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: openrisc build problem
  2015-02-09 19:24         ` Franck Jullien
@ 2015-02-10 23:16           ` Antony Pavlov
  2015-02-11  9:44             ` Sascha Hauer
  2015-02-13 19:06             ` Sascha Hauer
  0 siblings, 2 replies; 9+ messages in thread
From: Antony Pavlov @ 2015-02-10 23:16 UTC (permalink / raw)
  To: Franck Jullien; +Cc: barebox

On Mon, 9 Feb 2015 20:24:20 +0100
Franck Jullien <franck.jullien@gmail.com> wrote:

> 2015-02-09 12:49 GMT+01:00 Antony Pavlov <antonynpavlov@gmail.com>:
> > On Mon, 9 Feb 2015 12:26:05 +0100
> > Franck Jullien <franck.jullien@gmail.com> wrote:
> >
> >> 2015-02-09 8:40 GMT+01:00 Sascha Hauer <s.hauer@pengutronix.de>:
> >> > Hi,
> >> >
> >> > On Sun, Feb 08, 2015 at 08:35:40PM +0100, Franck Jullien wrote:
> >> >>
> >> >> 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.
> >> >
> >>
> >> 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
> 
> 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

$ 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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: openrisc build problem
  2015-02-10 23:16           ` Antony Pavlov
@ 2015-02-11  9:44             ` Sascha Hauer
  2015-02-13 19:06             ` Sascha Hauer
  1 sibling, 0 replies; 9+ messages in thread
From: Sascha Hauer @ 2015-02-11  9:44 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox

On Wed, Feb 11, 2015 at 03:16:46AM +0400, Antony Pavlov wrote:
> On Mon, 9 Feb 2015 20:24:20 +0100
> Franck Jullien <franck.jullien@gmail.com> wrote:
> 
> > 2015-02-09 12:49 GMT+01:00 Antony Pavlov <antonynpavlov@gmail.com>:
> > > On Mon, 9 Feb 2015 12:26:05 +0100
> > > Franck Jullien <franck.jullien@gmail.com> wrote:
> > >
> > >> 2015-02-09 8:40 GMT+01:00 Sascha Hauer <s.hauer@pengutronix.de>:
> > >> > Hi,
> > >> >
> > >> > On Sun, Feb 08, 2015 at 08:35:40PM +0100, Franck Jullien wrote:
> > >> >>
> > >> >> 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.
> > >> >
> > >>
> > >> 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
> > 
> > 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


-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: openrisc build problem
  2015-02-10 23:16           ` Antony Pavlov
  2015-02-11  9:44             ` Sascha Hauer
@ 2015-02-13 19:06             ` Sascha Hauer
  1 sibling, 0 replies; 9+ messages in thread
From: Sascha Hauer @ 2015-02-13 19:06 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox

On Wed, Feb 11, 2015 at 03:16:46AM +0400, Antony Pavlov wrote:
> On Mon, 9 Feb 2015 20:24:20 +0100
> Franck Jullien <franck.jullien@gmail.com> wrote:
> 
> 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

Strange. I can download this file at home without problems. In the
office it doesn't work.

Sascha


-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-02-13 19:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-08 19:26 openrisc build problem Antony Pavlov
2015-02-08 19:35 ` Franck Jullien
2015-02-09  7:40   ` Sascha Hauer
2015-02-09 11:26     ` Franck Jullien
2015-02-09 11:49       ` Antony Pavlov
2015-02-09 19:24         ` Franck Jullien
2015-02-10 23:16           ` Antony Pavlov
2015-02-11  9:44             ` Sascha Hauer
2015-02-13 19:06             ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox