MPC8260 not recognized
Leon Pollak
leonp at plris.com
Tue Feb 13 18:10:59 UTC 2007
Hello,
1. Thanks to Ralf for the previous help. As the result I am now at the RTEMS
source compilation phase.
2. I downloaded prebuilt tools for PPC for 4.7 and sources for 4.6.99.3 and
try to compile my copy of the MPC8260FADS BSP (after running bootstrap).
The error I received is (from config.log):
configure:2883: powerpc-rtems-gcc --version </dev/null >&5
powerpc-rtems-gcc (GCC) 4.1.1 (RTEMS gcc-4.1.1/newlib-1.15.0-6.fc6)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2886: $? = 0
configure:2888: powerpc-rtems-gcc -v </dev/null >&5
Using built-in specs.
Target: powerpc-rtems4.7
Configured
with: ../gcc-4.1.1/configure --prefix=/opt/rtems-4.7 --bindir=/opt/rtems-4.7/bin --includedir=/opt/rtems-4.7/include --libdir=/opt/rtems-4.7/lib --mandir=/opt/rtems-4.7/man --infodir=/opt/rtems-4.7/info --datadir=/opt/rtems-4.7/share --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=powerpc-rtems4.7 --with-gnu-as --with-gnu-ld --verbose --with-newlib --with-system-zlib --disable-nls --without-included-gettext --disable-win32-registry --enable-version-specific-runtime-libs --enable-threads --enable-languages=c,c++
Thread model: rtems
gcc version 4.1.1 (RTEMS gcc-4.1.1/newlib-1.15.0-6.fc6)
configure:2891: $? = 0
configure:2893: powerpc-rtems-gcc -V </dev/null >&5
powerpc-rtems-gcc: '-V' option must have argument
configure:2896: $? = 1
configure:2919: checking for C compiler default output file name
configure:2922:
powerpc-rtems-gcc -mcpu=8260 -Dmpc8260 -O4 -fno-keep-inline-functions -ffunction-sections
conftest.c >&5
conftest.c:1: error: bad value (8260) for -mcpu= switch
configure:2925: $? = 1
=============================================================================================
>From this I understand that gcc does not recognize the -mcpu=8260 switch.
I checked this again manually:
[root at leonp bin]# powerpc-rtems-gcc --v
Using built-in specs.
Target: powerpc-rtems4.7
Configured
with: ../gcc-4.1.1/configure --prefix=/opt/rtems-4.7 --bindir=/opt/rtems-4.7/bin --includedir=/opt/rtems-4.7/include --libdir=/opt/rtems-4.7/lib --mandir=/opt/rtems-4.7/man --infodir=/opt/rtems-4.7/info --datadir=/opt/rtems-4.7/share --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=powerpc-rtems4.7 --with-gnu-as --with-gnu-ld --verbose --with-newlib --with-system-zlib --disable-nls --without-included-gettext --disable-win32-registry --enable-version-specific-runtime-libs --enable-threads --enable-languages=c,c++
Thread model: rtems
gcc version 4.1.1 (RTEMS gcc-4.1.1/newlib-1.15.0-6.fc6)
[root at leonp bin]# powerpc-rtems-gcc -mcpu=8260 test.c
test.c:1: error: bad value (8260) for -mcpu= switch
Here I am lost... How the correctly compiled gcc with tested MPC8260FADS BSP
can not recognize this option?
Many thanks ahead.
--
Leon
More information about the users
mailing list