GCC 4.1.0 vs 3.4.3 Compile Issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm a complete newbie to this list, so sincere apologies in advance if
I didn't follow any existing procedures/guidelines for posting.

I'm facing an "invalid lvalue in assignment" compile error when using
the Codesourcery ARM 4.1.1 toolchain, and was wondering if someone
could kindly point out any tips on what I could do to resolve the
problem ... the exact same code builds fine when compiled with the ARM
MVL 3.4.3 toolchain.  The text below includes the gcc version and
build output for both toolchains.

gcc -version
arm-none-linux-gnueabi-gcc (CodeSourcery ARM Sourcery G++ 2006q3-26) 4.1.1
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.

make[1]: Entering directory `/home/target_1/linux/video/src/video_decode/src'
arm-none-linux-gnueabi-gcc -Wall -fpic -pipe -O2 -I../inc
-I/home/target_1/target_filesys/target/include/video
-I/home/target_1/target_filesys/target/include/system
-I/home/target_1/target_filesys/target/include/ipc -Wall -ansi -fpic
-pipe -g -O2 -c -o VideoDec_Thread.o VideoDec_Thread.c
arm-none-linux-gnueabi-gcc -Wall -fpic -pipe -O2 -I../inc
-I/home/target_1/target_filesys/target/include/video
-I/home/target_1/target_filesys/target/include/system
-I/home/target_1/target_filesys/target/include/ipc -Wall -ansi -fpic
-pipe -g -O2 -c -o VideoDec_Utils.o VideoDec_Utils.c
VideoDec_Utils.c: In function 'VIDDEC_HandleCommand':
VideoDec_Utils.c:790: error: invalid lvalue in assignment
VideoDec_Utils.c:681: warning: unused variable 'i'
...
(compile fails)

gcc -version
arm_v6_vfp_le-gcc (GCC) 3.4.3 (MontaVista 3.4.3-25.0.78.0600240 2006-02-15)
Copyright (C) 2004 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.

make[1]: Entering directory `/home/target_2/linux/video/src/video_decode/src'
arm_v6_vfp_le-gcc -Wall -fpic -pipe -O2 -I../inc
-I/home/target_2/target/include/video
-I/home/target_2/target/include/system
-I/home/target_2/target/include/ipc -Wall -ansi -fpic -pipe -g -O2 -c
-o VideoDec_Thread.o VideoDec_Thread.c
arm_v6_vfp_le-gcc -Wall -fpic -pipe -O2 -I../inc
-I/home/target_2/target/include/video
-I/home/target_2/target/include/system
-I/home/target_2/target/include/ipc -Wall -ansi -fpic -pipe -g -O2 -c
-o VideoDec_Utils.o VideoDec_Utils.c
VideoDec_Utils.c: In function `VIDDEC_HandleCommand':
VideoDec_Utils.c:681: warning: unused variable `i'
...
(compile successful)

Many thanks in advance.

John Doe

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux