[ Date Prev][ Date Next][ Thread Prev][ Thread Next][ Date Index][ Thread Index]
[arm-gnu] Sourcery G++ Lite 2008q3 compiler internal error while compiling with -mcpu=cortex-a8
- To: <arm-gnu@xxxxxxxxxxxxxxxx>
- Subject: [arm-gnu] Sourcery G++ Lite 2008q3 compiler internal error while compiling with -mcpu=cortex-a8
- From: "Xie Chun-B19413" <Chun.Xie@xxxxxxxxxxxxx>
- Date: Fri, 10 Oct 2008 17:26:55 +0800
Hi,
Now we meet a problem when we use the Sourcery G++ Lite 2008q3
compiler. We hope you could help us to solve this problem.
The error report is internal compiler error when we compile files
with -mcpu=cortex-a8.
The following is the error information and code.
1. error information
arm-none-eabi-gcc -c -I/home/b19413/diagnosis/rambuild/install/include
-I/home/b19413/diagnosis/ecos/packages/hal/arm/mx51/3stack/current
-I/home/b19413/diagnosis/ecos/packages/hal/arm/mx51/3stack/current/src
-I/home/b19413/diagnosis/ecos/packages/hal/arm/mx51/3stack/current/tests
-I.
-I/home/b19413/diagnosis/ecos/packages/hal/arm/mx51/3stack/current/src/
-finline-limit=7000 -mcpu=cortex-a8 -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef -g -O0 -ffunction-sections
-fdata-sections -fno-exceptions -fno-use-cxa-atexit
-Wp,-MD,src/board_misc.tmp -o src/hal_arm_mx51_3stack_board_misc.o
/home/b19413/diagnosis/ecos/packages/hal/arm/mx51/3stack/current/src/boa
rd_misc.c
cc1: warning: command line option "-fno-use-cxa-atexit" is valid for
C++/ObjC++ but not for C
/home/b19413/diagnosis/ecos/packages/hal/arm/mx51/3stack/current/src/boa
rd_misc.c: In function 'board_program_new_stack':
/home/b19413/diagnosis/ecos/packages/hal/arm/mx51/3stack/current/src/boa
rd_misc.c:237: internal compiler error: output_operand: invalid
expression as operand
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://support.codesourcery.com/GNUToolchain/> for instructions.
make[4]: *** [src/board_misc.o.d] Error 1
2.code the error report mentioned: board_misc.c function
'board_program_new_stack' . Line 237 is it's end line.
void board_program_new_stack(void *func)
{
register CYG_ADDRESS stack_ptr asm("sp");
register CYG_ADDRESS old_stack asm("r4");
register code_fun *new_func asm("r0");
old_stack = stack_ptr;
stack_ptr = CYGMEM_REGION_ram + CYGMEM_REGION_ram_SIZE -
sizeof(CYG_ADDRESS);
new_func = (code_fun*)func;
new_func();
stack_ptr = old_stack;
}
3. compiler information
[b19413@shlx4 diagnosis]$ arm-none-eabi-gcc -v
Using built-in specs.
Target: arm-none-eabi
Configured with: /scratch/julian/lite-release/eabi/src/gcc-4.3/configure
--build=i686-pc-linux-gnu --host=i686-pc-linux-gnu
--target=arm-none-eabi --enable-threads --disable-libmudflap
--disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld
--enable-languages=c,c++ --disable-shared --with-newlib
--with-pkgversion='Sourcery G++ Lite 2008q3-39'
--with-bugurl=https://support.codesourcery.com/GNUToolchain/
--disable-nls --prefix=/opt/codesourcery --with-headers=yes
--with-sysroot=/opt/codesourcery/arm-none-eabi
--with-build-sysroot=/scratch/julian/lite-release/eabi/install/arm-none-
eabi
--with-gmp=/scratch/julian/lite-release/eabi/obj/host-libs-2008q3-39-arm
-none-eabi-i686-pc-linux-gnu/usr
--with-mpfr=/scratch/julian/lite-release/eabi/obj/host-libs-2008q3-39-ar
m-none-eabi-i686-pc-linux-gnu/usr --disable-libgomp
--enable-poison-system-directories
--with-build-time-tools=/scratch/julian/lite-release/eabi/install/arm-no
ne-eabi/bin
--with-build-time-tools=/scratch/julian/lite-release/eabi/install/arm-no
ne-eabi/bin
Thread model: single
gcc version 4.3.2 (Sourcery G++ Lite 2008q3-39)
Best Regards,
Alex
|