This is the mail archive of the gdb@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]

Re: GDB head fails to compile for target=arm-elf


Looks like arm-elf is not the only target that behaves this way.  When
trying --target=sh-elf, I get this:


/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../../src/bfd -I. -I. -I../../src/bfd -I../../src/bfd/../include 
-I../../src/bfd/../intl -I../intl   -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Werror -g -O2  -c -o cofflink.lo
../../src/bfd/cofflink.c
gcc -DHAVE_CONFIG_H -I. -I../../src/bfd -I. -I. -I../../src/bfd
-I../../src/bfd/../include -I../../src/bfd/../intl -I../intl -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c
../../src/bfd/cofflink.c -o cofflink.o
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../../src/bfd -I. -I. -I../../src/bfd -I../../src/bfd/../include 
-I../../src/bfd/../intl -I../intl   -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Werror -g -O2  -c -o elf32-sh64.lo
../../src/bfd/elf32-sh64.c
gcc -DHAVE_CONFIG_H -I. -I../../src/bfd -I. -I. -I../../src/bfd
-I../../src/bfd/../include -I../../src/bfd/../intl -I../intl -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c
../../src/bfd/elf32-sh64.c -o elf32-sh64.o
../../src/bfd/elf32-sh64.c: In function `sh64_elf_get_sec_type_attr':
../../src/bfd/elf32-sh64.c:766: warning: duplicate `const'
make[3]: *** [elf32-sh64.lo] Error 1
make[3]: Leaving directory `/home/janne/code/build-gdb/bfd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/janne/code/build-gdb/bfd'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/janne/code/build-gdb/bfd'
make: *** [all-bfd] Error 2
janne@nurbian:~/code/build-gdb$ 

I wonder if there is some preparation step that I'm omitting before
running make?  Do I need sh-elf/arm-elf binutils in order to build GDB
for "cross targets"?

Best regards,
Janne

On 7/4/05, Janne Hellsten <jjhellst@gmail.com> wrote:
> Just for the record: configuring without --target=arm-elf and running
> make works just fine.
> 
> BR,
> Janne
> 
> On 7/4/05, Janne Hellsten <jjhellst@gmail.com> wrote:
> > Hi again,
> >
> > I went and tried to compile the head CVS revision of GDB.  Alas, it
> > appears that it doesn't compile on my system (Debian testing).
> >
> > I configured like so:
> >
> > src/  -- CVS dir
> > build-gdb/
> >
> > In build-gdb dir, I did "../src/configure --prefix=/home/janne/gdb-CVS
> > --target=arm-elf".  This works well.  However, "make" fails:
> >
> > <snip>
> > janne@nurbian:~/code/build-gdb$ cat log_stderr_make.txt
> > In file included from ../../src/include/xregex.h:26,
> >                  from ../../src/libiberty/regex.c:191:
> > ../../src/include/xregex2.h:538: warning: ISO C90 does not support
> > `static' or type qualifiers in parameter array declarators
> > In file included from ../../src/libiberty/regex.c:636:
> > ../../src/libiberty/regex.c: In function `byte_compile_range':
> > ../../src/libiberty/regex.c:4485: warning: signed and unsigned type in
> > conditional expression
> > ../../src/libiberty/regex.c:4495: warning: signed and unsigned type in
> > conditional expression
> > ../../src/libiberty/regex.c:4495: warning: signed and unsigned type in
> > conditional expression
> > ../../src/libiberty/regex.c: In function `xre_comp':
> > ../../src/libiberty/regex.c:7817: warning: return discards qualifiers
> > from pointer target type
> > ../../src/libiberty/floatformat.c:312:15: warning: use of C99
> > hexadecimal floating constant
> > ../../src/libiberty/pexecute.c: In function `pexecute':
> > ../../src/libiberty/pexecute.c:50: warning: assignment discards
> > qualifiers from pointer target type
> > ../../src/libiberty/pexecute.c:61: warning: assignment discards
> > qualifiers from pointer target type
> > ../../src/bfd/elf32-arm.c: In function `elf32_arm_symbian_get_sec_type_attr':
> > ../../src/bfd/elf32-arm.c:6969: warning: duplicate `const'
> > make[3]: *** [elf32-arm.lo] Error 1
> > make[2]: *** [all-recursive] Error 1
> > make[1]: *** [all] Error 2
> > make: *** [all-bfd] Error 2
> > </snip>
> >
> > I wonder what's going on..  Where does the error come from?  I only
> > see warnings here.
> >
> > I'm using gcc 3.3.5:
> >
> > janne@nurbian:~/code/build-gdb$ gcc -v
> > Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
> > Configured with: ../src/configure -v
> > --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang
> > --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
> > --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
> > --enable-__cxa_atexit --with-system-zlib --enable-nls
> > --without-included-gettext --enable-clocale=gnu --enable-debug
> > --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
> > i486-linux
> > Thread model: posix
> > gcc version 3.3.5 (Debian 1:3.3.5-13)
> >
> > Best regards,
> > Janne
> >
>


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