mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [ANNOUNCE] OSELAS.Toolchain() 2013.12.2 released
Date: Wed, 1 Oct 2014 15:02:43 +0200	[thread overview]
Message-ID: <20141001130243.GI16481@pengutronix.de> (raw)
In-Reply-To: <3681672.LsfF9P6On8@dabox>

On Mon, Sep 29, 2014 at 03:56:40PM +0200, Tim Sander wrote:
> Am Freitag, 26. September 2014, 08:46:21 schrieb Michael Olbrich:
> > On Wed, Sep 24, 2014 at 03:43:10PM +0200, Tim Sander wrote:
> > > > I'm happy to announce that I've just released
> > > > OSELAS.Toolchain-2013.12.2.
> > > > 
> > > > This is a bugfix-only release. The relevant changes since 2013.12.1 are:
> > > >  - The toolchains can now be built with make 4.0
> > > >  - Some toolchains did not optimize for the correct CPU. The code works
> > > >  but
> > > >  
> > > >    might be slower. This is fixed now.
> > > >  
> > > >  - All security relevant fixes mentioned in the glibc 2.19 changelog
> > > >  have
> > > >  
> > > >    been added for glibc 2.18 based toolchains.
> > > >  
> > > >  - All generated toolchain archives are now XZ comressed.
> > > 
> > > While i have used this toolchain arm-v7a-linux-gnueabihf with an Xilinx
> > > Zynx compiling nearly the same Project with a different Kernelconfig /DTB
> > > for Altera SOC fails with this toolchain !?! The kernel boots but on
> > > mounting the rootfs it fails to execute any binary?
> > 
> > Is the dynamic linker (whatever /lib/ld-linux-armhf.so.3 points to)
> > executable? Do you have a working system? Boot it and try to chroot into
> > your new system. You get better error messages that way.
> Ok i have now setup booted into the environment compiled with 
> OSELAS.Toolchain-2012.12.1/arm-cortexa9-linux-gnueabihf, mounted the other 
> system via nfs and tried to start any executable:

Carefull: you need to chroot into the new root, otherwise you'll use the
wrong linker (/lib/ld-linux-armhf.so.3). Did you do this?

> /mnt/bin/busybox: line 1: syntax error: unexpected word (expecting ")")
> 
> (thats with OSELAS.Toolchain-2013.12.2/arm-v7a-linux-gnueabihf on Altera SOC)
> 
> I have taken a look at both busyboxes and have run them through "readelf -e" 
> (attached). The only difference which sprung to my eye was the hardfloat 
> support, which i don't understand as both toolchains should be hardfloat 
> toolchains.

They are: The linker is /lib/ld-linux-armhf.so.3 for both. I'm not sure why
the old binary is missing the hf flag.

> Starting the binary with strace gives:
> execve("mnt/bin/busybox", ["mnt/bin/busybox"], [/* 11 vars */]) = -1 ENOEXEC 
> (Exec format error)
> write(2, "strace: exec: Exec format error\n", 32strace: exec: Exec format 
> error
> ) = 32
> exit_group(1)                           = ?
> +++ exited with 1 +++
> 
> So i have an execution error and the shell error seems to be the shell 
> fallback from the kernel. 
> 
> Another thing which caught my attention was the fact that:
> objdump -d bin/busybox |grep UNDEFINED |wc -l
> is 364 for the old and 13478 for the new toolchain. 

Try using objdump from the toolchain. Do you still get these results?

Michael

-- 
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 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2014-10-01 13:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-07  8:07 Michael Olbrich
2014-05-07  8:41 ` Alexander Dahl
2014-05-07 10:23   ` Michael Olbrich
2014-05-07 11:16     ` Alexander Dahl
2014-05-07 12:15       ` Michael Olbrich
2014-05-07 12:30         ` Bernhard Walle
2014-05-07 14:39           ` Uwe Kleine-König
2014-05-07 13:01         ` Alexander Dahl
2014-05-07 13:08           ` Michael Olbrich
2014-09-24 13:43 ` Tim Sander
2014-09-24 18:01   ` Uwe Kleine-König
2014-09-26  6:09     ` Tim Sander
2014-09-26  6:46   ` Michael Olbrich
2014-09-29 13:47     ` Tim Sander
2014-09-29 13:56     ` Tim Sander
2014-10-01 13:02       ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141001130243.GI16481@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox