From: wyang <w90p710@gmail.com>
To: 许久成 <jiucheng.xu@hotmail.com>,
"linuxppc-dev@ozlabs.org" <linuxppc-dev@ozlabs.org>
Subject: Re: Ask for help about fsl ppc toolchian issue "Illegal instruction"
Date: Tue, 25 Mar 2014 13:31:16 +0800 [thread overview]
Message-ID: <533114A4.4080608@gmail.com> (raw)
In-Reply-To: <BLU172-W4881D62A1C46E030116284FD650@phx.gbl>
[-- Attachment #1: Type: text/plain, Size: 3735 bytes --]
On 03/25/2014 10:17 AM, 许久成 wrote:
> Hi All,
>
> We run into an issue when use e500mc toolchain g++ to compile c++
> code for p2020 platform, the code as below:
Hmm, p2020 should be e500 core rather than e500mc. Additionally, you
should use gdb to debug it, and check which instruction is illegal.
Thanks
Wei
>
>
> main.c
>
> #include <iostream>
> using namespace std;
>
> int main(void) {
> cout << "asdfasdfasdfasdf";
>
> return 0;
> }
>
> compile it with command "powerpc-fls-linux-g++ main.c" and the output
> file's name is a.out, download the binary to p2020rdb board, but the
> console prints the error log "Illegal instruction".
>
> It is all right on p2041 platform.
>
> The version of toolchian:
>
> Configured with:
> /local/workspace/yocto-iso-make/p4080ds/build_p4080ds_release/tmp/work-shared/gcc-4.6.2+svnr180516-r29+fsl.6/gcc-4_6-branch/configure
> --build=i686-linux --host=i686-fslsdk-linux --target=powerpc-fsl-linux
> --prefix=/opt/fsl/1.2/sysroots/i686-fslsdk-linux/usr
> --exec_prefix=/opt/fsl/1.2/sysroots/i686-fslsdk-linux/usr
> --bindir=/opt/fsl/1.2/sysroots/i686-fslsdk-linux/usr/bin/ppce500mc-fsl-linux
> --sbindir=/opt/fsl/1.2/sysroots/i686-fslsdk-linux/usr/bin/ppce500mc-fsl-linux
> --libexecdir=/opt/fsl/1.2/sysroots/i686-fslsdk-linux/usr/libexec/ppce500mc-fsl-linux
> --datadir=/opt/fsl/1.2/sysroots/i686-fslsdk-linux/usr/share
> --sysconfdir=/opt/fsl/1.2/sysroots/i686-fslsdk-linux/etc
> --sharedstatedir=/opt/fsl/1.2/sysroots/i686-fslsdk-linux/com
> --localstatedir=/opt/fsl/1.2/sysroots/i686-fslsdk-linux/var
> --libdir=/opt/fsl/1.2/sysroots/i686-fslsdk-linux/usr/lib/ppce500mc-fsl-linux
> --includedir=/opt/fsl/1.2/sysroots/i686-fslsdk-linux/usr/include
> --oldincludedir=/opt/fsl/1.2/sysroots/i686-fslsdk-linux/usr/include
> --infodir=/opt/fsl/1.2/sysroots/i686-fslsdk-linux/usr/share/info
> --mandir=/opt/fsl/1.2/sysroots/i686-fslsdk-linux/usr/share/man
> --disable-silent-rules --disable-dependency-tracking
> --with-libtool-sysroot=/local/workspace/yocto-iso-make/p4080ds/build_p4080ds_release/tmp/sysroots/i686-nativesdk-fslsdk-linux
> --with-gnu-ld --enable-shared --enable-languages=c,c++
> --enable-threads=posix --disable-multilib --enable-c99
> --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch
> --program-prefix=powerpc-fsl-linux- --enable-lto --enable-libssp
> --disable-bootstrap --disable-libgomp --disable-libmudflap
> --with-system-zlib --with-linker-hash-style=gnu
> --enable-cheaders=c_global
> --with-local-prefix=/opt/fsl/1.2/sysroots/ppce500mc-fsl-linux/usr
> --with-gxx-include-dir=/opt/fsl/1.2/sysroots/ppce500mc-fsl-linux/usr/include/c++
> --with-build-time-tools=/local/workspace/yocto-iso-make/p4080ds/build_p4080ds_release/tmp/sysroots/i686-linux/usr/powerpc-fsl-linux/bin
> --with-sysroot=/opt/fsl/1.2/sysroots/ppce500mc-fsl-linux
> --with-build-sysroot=/local/workspace/yocto-iso-make/p4080ds/build_p4080ds_release/tmp/sysroots/p4080ds
> --disable-libunwind-exceptions --disable-libssp --disable-libgomp
> --disable-libmudflap
> --with-mpfr=/local/workspace/yocto-iso-make/p4080ds/build_p4080ds_release/tmp/sysroots/i686-nativesdk-fslsdk-linux
> --with-mpc=/local/workspace/yocto-iso-make/p4080ds/build_p4080ds_release/tmp/sysroots/i686-nativesdk-fslsdk-linux
> --enable-nls --enable-__cxa_atexit --with-long-double-128
> Thread model: posix
> gcc version 4.6.2 (GCC)
>
> Is e500mc family downward compitible with e500v2? C code can run
> correctly on p2020 with the e500mc toolchain.
>
> Thanks & Best Regards
> Jiucheng
>
>
>
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
[-- Attachment #2: Type: text/html, Size: 5946 bytes --]
next prev parent reply other threads:[~2014-03-25 5:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-25 2:17 Ask for help about fsl ppc toolchian issue "Illegal instruction" 许久成
2014-03-25 5:31 ` wyang [this message]
2014-03-25 23:05 ` Scott Wood
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=533114A4.4080608@gmail.com \
--to=w90p710@gmail.com \
--cc=jiucheng.xu@hotmail.com \
--cc=linuxppc-dev@ozlabs.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.