Dean Ezra | 1 Oct 04:23
Picon
Picon

Re: Chroot error: chroot: 'cannot execute /bin/bash: No such file or directory' on NSLU2 to Gentoo root

Hi,

Thanks for the help. I have ended up backtracking the steps in the  
Gentoo NSLU2 hardware wiki and I think it was down to not doing  
'turnup init' at the beginning.

Having redone the steps (including the turnup init), I am past the  
chroot step and now running 'emerge sync'.

PS I have also updated the wiki with some extra guidelines.

thanks

On 30 Sep 2006, at 23:49, Mike Frysinger wrote:

> On Saturday 30 September 2006 13:46, Dean Ezra wrote:
>> I have checked for /bin/bash, but it doesnt exist.
>
> did you unpack the tarball correctly ?  there is def a /bin/bash in  
> the
> tarball
> -mike

Peter S. Mazinger | 3 Oct 08:13
Picon
Gravatar

Re: hardened gcc-4.1 and uclibc

On Sun, 24 Sep 2006, Natanael Copa wrote:

> On Sat, 2006-09-23 at 10:55 -0400, Mike Frysinger wrote:
> > On Saturday 23 September 2006 10:40, Natanael Copa wrote:
> > > I get this:
> > >
> > > Calculating dependencies... done!
> > > [ebuild  NS   ] sys-devel/gcc-4.1.1  USE="(-altivec) -bootstrap -build
> > > -doc -fortran -gcj -gtk (-hardened) -ip28 -ip32r10k -mudflap (-multilib)
> > > -multislot (-n32) (-n64) (-nls) -nocxx -objc -objc++ -objc-gc -test
> > > -vanilla" 0 kB
> > 
> > prob because i added gcc/hardened to default-linux/package.use.mask
> > 
> > should be fixed now
> 
> Its still not fixed. Note the (-hardened)
> 
> al-1.5 / # emerge -pv gcc
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild  NS   ] sys-devel/gcc-4.1.1  USE="(-altivec) -bootstrap -build
> -doc -fortran -gcj -gtk (-hardened) -ip28 -ip32r10k -mudflap (-multilib)
> -multislot (-n32) (-n64) (-nls) -nocxx -objc -objc++ -objc-gc -test
> -vanilla" 0 kB
> 
> Total size of downloads: 0 kB
> al-1.5 / # emerge -pv \<gcc-4
(Continue reading)

Ryan Baldwin | 5 Oct 12:35

C++ Exceptions Call Abort With Toolchain generated by crossdev

Hi,

I have been using crossdev and gentoo to build an uclibc embedded platform with great successes so far. My toolchain is built using:

crossdevbinutils 2.16.1-r2gcc 3.4.5-r1libc 0.9.29kernel 2.6.16.20t i386-pc-linux-uclibc

and

crossdevbinutils 2.16.1-r2gcc 3.4.5-r1libc 0.9.29kernel 2.6.16.20t arm-softfloat-linux-uclibc

As you can see I am targeting both Intel and Arm platforms. Im using a portage snapshot from portage-20060703.tar.gz. I intend only to update the portage snapshot I am using only if I need to to fix a bug or add features.

I need to run C++ code. I have managed to build C++ apps ok linked against libstdc++ and all appears to run OK. On investigating some problems though I have found that on the Intel platform at least (I will find out soon if this occurs on the ARM platform) when an exception is thrown by C++ code Abort is called and the exception is not handled correctly. I can get a stack trace if it might help anyone.

My question is if anyone has come across this problem before? If so if they are aware of a fix? Can anyone confirm a portage snapshot and crossdev command line(the versions) they use to build a uclibc toolchain in which they know C++ exceptions to be working?

I will research the problem and if I find a solution will post it here. Thanks in advance for help.

Ryan

Mike Frysinger | 6 Oct 03:38
Picon
Favicon
Gravatar

Re: C++ Exceptions Call Abort With Toolchain generated by crossdev

On Thursday 05 October 2006 06:35, Ryan Baldwin wrote:
> -gcc 3.4.5-r1

known problem; upgrade to 3.4.6+
-mike
Daniel Glaser | 6 Oct 13:31

Emerge Bash has Problems linking libgcc.a


trying to emerge  app-shells/bash-3.1_p17 encountered an error.

Emerging bash before gcc and binutils were emerged (while emerge
system), worked quite well.

does anybody know why this error occurs now?

powerpc-softfloat-linux-uclibc-gcc -L./builtins -L./lib/readline
-L./lib/readline -L./lib/glob -L./lib/tilde  -L./lib/sh  -rdynamic
-Os -mcpu=405 -mtune=405 -fomit-frame-pointer -fno-strict-aliasing
-pipe -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o
dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o
flags.o nojobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o
input.o unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o
arrayfunc.o braces.o bracecomp.o bashhist.o bashline.o  list.o
stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o syntax.o
xmalloc.o -lbuiltins -lsh -lreadline -lhistory -lcurses -lglob
-ltilde    -ldl
/usr/libexec/gcc/powerpc-softfloat-linux-uclibc/ld: bash: hidden
symbol `__floatsidf' in
/usr/lib/gcc/powerpc-softfloat-linux-uclibc/3.4.6/libgcc.a(_si_to_df.oS)
is referenced by DSO
/usr/libexec/gcc/powerpc-softfloat-linux-uclibc/ld: final link failed:
Nonrepresentable section on output
collect2: ld returned 1 exit status
make: *** [bash] Error 1

And how to avoid it?

-daniel
Chuck Robey | 8 Oct 00:52

lib loss disaster

I just finished recovering from a disaster, and I would relly appreciate
any guesses (or just beter knowledge?) about the possible source of my
disaster.  The main symptom was that a large fraction of my executeables
just stopped working, all claiming to be missing libstdc++.  I tried
emerging gcc again, and even tried to bring back an older one (from
gcc-4.0.3) but that didn't work, and the only libstdc++ package didn't
seem to fix it either.  I finally mounted a memory image off the livecd,
and copied all the libstdc++ files (and made the various linkks, until
ldconfig seemed pleased with me, and all my apps started to work again.

My guess here is that some emerge package did this, perhaps one of the
recent java things I installed, because I had interrupted the
installation once of twice while things were ongoing, as I figured
things out.  Anyone have any better notions how I managed this?

Thanks
Ryan Baldwin | 9 Oct 15:19

RE: C++ Exceptions Call Abort With Toolchain generated by crossdev

Hi,

Thanks very much for the reply. I had managed to make it work by adding
--enable-sjlj-exceptions into gcc's configure by adding it in
toolchain.eclass. I guess then that the default mechanism works again in
3.4.6 so I will switch to this and remove --enable-sjlj-exceptions.

Thanks again
Ryan

-----Original Message-----
From: Mike Frysinger [mailto:vapier@...] 
Sent: 06 October 2006 02:39
To: gentoo-embedded@...
Cc: Ryan Baldwin
Subject: Re: [gentoo-embedded] C++ Exceptions Call Abort With Toolchain
generated by crossdev

On Thursday 05 October 2006 06:35, Ryan Baldwin wrote:
> -gcc 3.4.5-r1

known problem; upgrade to 3.4.6+
-mike

wireless | 9 Oct 17:38
Picon

NSLU2 as a DNS server

Hello,

It looks to me as though the NSLU2 (32 meg of ram) is short on
ram to act as a DNS primary/secondary server on a small single
static IP network.

1. Is there anyone that has successfully put more than 32 M of
ram on a NSLU2 device? Anyone know where I can purchase one
with at least 128 if not 256M ram?

http://www.nslu2-linux.org/wiki/HowTo/FattenYourSlug

2. Would there be any problem installing DJBDNS on this this
device? Would any of the other necessary software for a DNS
primary, be a problem?

3. Any other c library issues in running one of these computers
as a dns server?

4. I found this link:
http://gentoo-wiki.com/HARDWARE_Linksys_NSLU2

any other useful links for low_cost  gentoo(embedded-gentoo)
computers that have sufficient resources to be a dns server
for a small network, are of interest to me.

curiously,

James

Kelly Price | 9 Oct 16:42
Picon

Re: NSLU2 as a DNS server

On 10/9/06, wireless <wireless@...> wrote:
> 2. Would there be any problem installing DJBDNS on this this
> device? Would any of the other necessary software for a DNS
> primary, be a problem?
>
> 3. Any other c library issues in running one of these computers
> as a dns server?
>

Instead of DJBDNS, I would use DNSMASQ which is quite small onto
itself, and lets you define static IP addresses for DHCPCD users.

--

-- 
Kelly "STrRedWolf" Price
http://strredwolf.furrynet.com
Favicon

Re: NSLU2 as a DNS server

Have you considered running dnsmasq? It works very well for us and  
uses /etc/hosts as its data store.

-Josh

On Oct 9, 2006, at 11:38 AM, wireless wrote:

> Hello,
>
> It looks to me as though the NSLU2 (32 meg of ram) is short on
> ram to act as a DNS primary/secondary server on a small single
> static IP network.
>
> 1. Is there anyone that has successfully put more than 32 M of
> ram on a NSLU2 device? Anyone know where I can purchase one
> with at least 128 if not 256M ram?
>
> http://www.nslu2-linux.org/wiki/HowTo/FattenYourSlug
>
>
> 2. Would there be any problem installing DJBDNS on this this
> device? Would any of the other necessary software for a DNS
> primary, be a problem?
>
> 3. Any other c library issues in running one of these computers
> as a dns server?
>
> 4. I found this link:
> http://gentoo-wiki.com/HARDWARE_Linksys_NSLU2
>
> any other useful links for low_cost  gentoo(embedded-gentoo)
> computers that have sufficient resources to be a dns server
> for a small network, are of interest to me.
>
> curiously,
>
> James
>
>
> -- 
> gentoo-embedded@... mailing list
>
>

--

-- 
Joshua ChaitinPollak
Software Engineer
Kiva Systems


Gmane