This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/1957: gcc arm sim fails to build with gcc 4.0 on mac osx


>Number:         1957
>Category:       gdb
>Synopsis:       gcc arm sim fails to build with gcc 4.0 on mac osx
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 13 12:18:01 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator:     jjhellst@gmail.com
>Release:        gdb-6.3
>Organization:
>Environment:
uname -a:
Darwin xyz 8.1.0 Darwin Kernel Version 8.1.0: Tue May 10 18:16:08 PDT 2005; root:xnu-792.1.5.obj~4/RELEASE_PPC Power Macintosh powerpc

gcc -v:
Configured with: /private/var/tmp/gcc/gcc-4061.obj~8/src/configure --disable-checking --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^+.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/gcc/darwin/4.0/c++ --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8

>Description:
GCC arm simulator file sim/arm/iwmmx.c fails to build with GCC 4.0 on Mac OS X.

Here is the relevant error from build log:

gcc -c -DHAVE_CONFIG_H     -DPROFILE=1 -DWITH_PROFILE=-1          -DDEFAULT_INLINE=0           -DMODET -DNEED_UI_LOOP_HOOK -DSIM_TARGET_SWITCHES   -I. -I../../../gdb-6.3/sim/arm -I../common -I../../../gdb-6.3/sim/arm/../common -I../../include -I../../../gdb-6.3/sim/arm/../../include -I../../bfd -I../../../gdb-6.3/sim/arm/../../bfd -I../../opcodes -I../../../gdb-6.3/sim/arm/../../opcodes -I../../intl -I../../../gdb-6.3/sim/arm/../../intl -I/sw/include  ../../../gdb-6.3/sim/arm/iwmmxt.c
../../../gdb-6.3/sim/arm/iwmmxt.c: In function 'WMAC':
../../../gdb-6.3/sim/arm/iwmmxt.c:2117: warning: target of assignment not really an lvalue; this will be a hard error in the future
../../../gdb-6.3/sim/arm/iwmmxt.c:2133: warning: target of assignment not really an lvalue; this will be a hard error in the future
../../../gdb-6.3/sim/arm/iwmmxt.c: In function 'WMADD':
../../../gdb-6.3/sim/arm/iwmmxt.c:2169: error: invalid lvalue in assignment
../../../gdb-6.3/sim/arm/iwmmxt.c:2177: error: invalid lvalue in assignment
../../../gdb-6.3/sim/arm/iwmmxt.c:2186: error: invalid lvalue in assignment
../../../gdb-6.3/sim/arm/iwmmxt.c:2191: error: invalid lvalue in assignment
../../../gdb-6.3/sim/arm/iwmmxt.c: In function 'WSLL':
../../../gdb-6.3/sim/arm/iwmmxt.c:2840: warning: integer constant is too large for 'long' type
../../../gdb-6.3/sim/arm/iwmmxt.c: In function 'WSRA':
../../../gdb-6.3/sim/arm/iwmmxt.c:2917: warning: integer constant is too large for 'long' type
../../../gdb-6.3/sim/arm/iwmmxt.c:2917: warning: integer constant is too large for 'long' type
../../../gdb-6.3/sim/arm/iwmmxt.c:2919: warning: integer constant is too large for 'long' type
../../../gdb-6.3/sim/arm/iwmmxt.c: In function 'WSRL':
../../../gdb-6.3/sim/arm/iwmmxt.c:2988: warning: integer constant is too large for 'long' type
../../../gdb-6.3/sim/arm/iwmmxt.c: In function 'WUNPCKEH':
../../../gdb-6.3/sim/arm/iwmmxt.c:3290: warning: integer constant is too large for 'long' type
../../../gdb-6.3/sim/arm/iwmmxt.c: In function 'WUNPCKEL':
../../../gdb-6.3/sim/arm/iwmmxt.c:3357: warning: integer constant is too large for 'long' type
../../../gdb-6.3/sim/arm/iwmmxt.c: In function 'Fetch_Iwmmxt_Register':
../../../gdb-6.3/sim/arm/iwmmxt.c:3707: warning: incompatible implicit declaration of built-in function 'memcpy'
../../../gdb-6.3/sim/arm/iwmmxt.c:3712: warning: incompatible implicit declaration of built-in function 'memcpy'
../../../gdb-6.3/sim/arm/iwmmxt.c: In function 'Store_Iwmmxt_Register':
../../../gdb-6.3/sim/arm/iwmmxt.c:3722: warning: incompatible implicit declaration of built-in function 'memcpy'
../../../gdb-6.3/sim/arm/iwmmxt.c:3727: warning: incompatible implicit declaration of built-in function 'memcpy'
make[2]: *** [iwmmxt.o] Error 1


>How-To-Repeat:
Configure GDB with:

../gdb-$gdb_ver/configure --prefix=$prefix --target=$target --disable-shared --enable-multilib --enable-interwork

where $target is arm-elf and $gdb_ver is 6.3.

and run make.



>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]