[Clfs-support] Clfs-support Digest, Vol 42, Issue 15

westwood yczxwestwood at gmail.com
Wed Apr 13 18:39:31 PDT 2011


Oh,yes!!  my  target is a E500v2 ,is there any way to solve this problem?

2011/4/14 <clfs-support-request at lists.cross-lfs.org>

> Send Clfs-support mailing list submissions to
>        clfs-support at lists.cross-lfs.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
> or, via email, send a message with subject or body 'help' to
>        clfs-support-request at lists.cross-lfs.org
>
> You can reach the person managing the list at
>        clfs-support-owner at lists.cross-lfs.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Clfs-support digest..."
>
>
> Today's Topics:
>
>   1. illegal instruction when I run program compiled with
>      cross-compile g++ (westwood)
>   2. Re: Unfixed issue at dropbear make install
>      (Angel Ivan Castell Rovira)
>   3. Re: illegal instruction when I run program compiled with
>      cross-compile g++ (code monkey)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 13 Apr 2011 11:33:13 +0800
> From: westwood <yczxwestwood at gmail.com>
> To: clfs-support at lists.cross-lfs.org
> Subject: [Clfs-support] illegal instruction when I run program
>        compiled with   cross-compile g++
> Message-ID: <BANLkTi=YmMOX6PXXFnLM8iR+1G69uXB8EA at mail.gmail.com>
> Content-Type: text/plain; charset="gb2312"
>
> i was making the tool-chains by following  the instructions in the lastest
> Book  ?Cross-Compiled Linux From Scratch - Version GIT-20110213-PowerPC?
> found in the SVN (http://cross-lfs.org/files/BOOK/)
> Eevey thing is OK when i make the tool chain for powerpc ,and finally i got
> it .
> After that ,  I Firstly use the powerpc-unknown-linux-gnu-gcc to make a
> helloworld ,  the program can run correctly on the target machine.
> but  when i use the powerpc-unknow-linux-gun-g++ to compile the same
> program
> ( syntax is right,  just printf("hello world") or cout << helloworld )
> ,it throws the error : " illegal instruction " on the  target machine ?
>  I don't know why ????can someone help me ?
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.cross-lfs.org/pipermail/clfs-support-cross-lfs.org/attachments/20110413/39e969b9/attachment.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Wed, 13 Apr 2011 09:10:22 +0200
> From: Angel Ivan Castell Rovira <al004140 at gmail.com>
> To: CLFS Support <clfs-support at lists.cross-lfs.org>
> Subject: Re: [Clfs-support] Unfixed issue at dropbear make install
> Message-ID: <BANLkTinnRqNpEEiBz4CQFPXPgOUtrVKWzg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello!
>
> Modifiying Makefile as previously explained only fixes the "Operation not
> permitted" (ignored) errors. However, the 'make MULTI=1 install' still
> doesn't create any symlink automatically, so you have to create them by
> hand
> as explained on the CLFS book. I confused that because it was the behaviour
> I was expecting, just as busybox does. But I just have read "MULTI"
> documentation file, and it explains this is the proper way to do it. So,
> the
> book it's ok.
>
> Best regards,
>  -- Ivan
>
> 2011/4/12 Angel Ivan Castell Rovira <al004140 at gmail.com>
>
> >
> > Hello Mr. Andrew.
> >
> > Yes, file {CLFS}/usr/bin/dropbearmulti is successfully created. However,
> > none of the symlinks (dropbear dbclient dropbearkey dropbearconvert scp)
> > that should point to the dropbearmulti binary is created. So, you have to
> > create them by hand. To do it easily, I have modified Makefile to install
> > everything as 'clfs' user:group, and once it is installed on the
> > roofs-final, user:group are also changed to root.
> >
> >
> >
> > 2011/4/12 Andrew Bradford <bradfa at gmail.com>
> >
> >> On Tue, Apr 12, 2011 at 6:18 AM, Angel Ivan Castell Rovira
> >> <al004140 at gmail.com> wrote:
> >> >     clfs at devnull:~/sources/dropbear-0.52$ make MULTI=1
> >> PROGRAMS="dropbear
> >> > dbclient dropbearkey dropbearconvert scp" install DESTDIR=${CLFS}/usr
> >> >     install -d -m 755 /home/clfs/usr/usr/bin
> >> >     install -m 755 dropbearmulti /home/clfs/usr/usr/bin
> >> >     chown root /home/clfs/usr/usr/bin/dropbearmulti
> >> >     chown: changing ownership of
> `/home/clfs/usr/usr/bin/dropbearmulti':
> >> > Operation not permitted
> >> >     make: [inst_dropbearmulti] Error 1 (ignored)
> >> >     chgrp 0 /home/clfs/usr/usr/bin/dropbearmulti
> >> >     chgrp: changing group of `/home/clfs/usr/usr/bin/dropbearmulti':
> >> > Operation not permitted
> >> >     make: [inst_dropbearmulti] Error 1 (ignored)
> >> >
> >> > 'clfs' user is not allowed to change ownership/group of the binaries
> >> > instaled as 'root', so Makefile can't execute fine lines like:
> >> >
> >> >     chown root $(DESTDIR)$(bindir)/dropbearmulti$(EXEEXT)
> >> >     chown root $(DESTDIR)$(sbindir)/dropbear$(EXEEXT)
> >>
> >> Does Dropbear install but show these errors?  Or do the errors stop
> >> installation?
> >> From your short log, it looks like it just complains but continues.
> >>
> >> It makes sense that the 'clfs' user can't chown things to root.
> >> You'll change the ownership of everything to be owned by root later in
> >> the book in the "Changing Ownership" section (provided you're using a
> >> book from the past 2 weeks or so).
> >>
> >> Dropbear probably shouldn't be trying to chown things to root in their
> >> install script...  but that might be fixed with a more up-to-date
> >> Dropbear package (I'm not that familiar with Dropbear, yet).
> >>
> >> -Andrew
> >> _______________________________________________
> >> Clfs-support mailing list
> >> Clfs-support at lists.cross-lfs.org
> >> http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
> >>
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.cross-lfs.org/pipermail/clfs-support-cross-lfs.org/attachments/20110413/5a9edabb/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Wed, 13 Apr 2011 05:05:33 -0700
> From: code monkey <lfscodemonkey at gmail.com>
> To: CLFS Support <clfs-support at lists.cross-lfs.org>
> Subject: Re: [Clfs-support] illegal instruction when I run program
>        compiled with cross-compile g++
> Message-ID: <BANLkTin+mv=5iT-fduXKjzKgH4x+D+edMA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> What is your target machine?
>
> PPC c++ created binaries make use of the 'lwsync' instruction.   That
> instruction works fine on 'normal' powerpc but throws an illegal exception
> when run on the booke type of cores.     If your target is a booke/E500
> core, it is possibly the problem.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.cross-lfs.org/pipermail/clfs-support-cross-lfs.org/attachments/20110413/ced0450c/attachment-0001.htm
> >
>
> ------------------------------
>
> _______________________________________________
> Clfs-support mailing list
> Clfs-support at lists.cross-lfs.org
> http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
>
>
> End of Clfs-support Digest, Vol 42, Issue 15
> ********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20110414/3eac84a5/attachment.html>


More information about the Clfs-support mailing list