Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Janne Hellsten <jjhellst@gmail.com>
To: gdb@sources.redhat.com
Subject: GDB head fails to compile for target=arm-elf
Date: Mon, 04 Jul 2005 07:04:00 -0000	[thread overview]
Message-ID: <700d600f05070400041e35329b@mail.gmail.com> (raw)

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


             reply	other threads:[~2005-07-04  7:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-04  7:04 Janne Hellsten [this message]
2005-07-04  7:16 ` Janne Hellsten
2005-07-04 15:03   ` Janne Hellsten
2005-07-04 15:30     ` Daniel Jacobowitz
2005-07-05  6:24       ` Alan Modra
2005-07-05  6:56         ` Janne Hellsten

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=700d600f05070400041e35329b@mail.gmail.com \
    --to=jjhellst@gmail.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox