public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
From: Hans-Peter Nilsson <hp@bitrange.com>
To: Alan Modra <amodra@bigpond.net.au>
Cc: gdb-patches@sourceware.org, binutils@sourceware.org, cgen@sourceware.org
Subject: sim build failures (was Re: use <sys/int_types.h> instead of <stdint.h>  on Solaris...)snapshot binutils-2.17.50)
Date: Wed, 25 Apr 2007 03:09:00 -0000	[thread overview]
Message-ID: <Pine.BSF.4.58.0704242247500.75096@dair.pair.com> (raw)
In-Reply-To: <20070424033403.GF10537@bubble.grove.modra.org>

On Tue, 24 Apr 2007, Alan Modra wrote:

> 	* sysdep.h: Don't include ansidecl.h here.

This bit caused problems for some simulators, which include the
bfd sysdep.h (some from CGEN-generated files), without including
ansidecl.h before.  At least the following target simulators now
fail building: sh64-elf, sh-elf, cris-elf, d10v-elf, with errors
like the following (cutnpastenmunged):

gcc -c -DHAVE_CONFIG_H   -DWITH_DEFAULT_MODEL='"crisv32"'
-DPROFILE=1 -DWITH_PROFILE=-1
-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT  \
 -DWITH_ENVIRONMENT=ALL_ENVIRONMENT  -DWITH_HW=0
-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN     -DWITH_SCACHE=16384
-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses
-Wpointer-arith -Wuninitialized       -I.
-I/h/hp/sim/cvs_latest/src/sim/cris -I../common -I/h/hp/sim/cvs_latest/src/sim/cris/../common
-I../../include
-I/h/hp/sim/cvs_latest/src/sim/cris/../../include -I../../bfd -I/h/hp/sim/cvs_latest/src/sim/cris/../../bfd
-I../../opcodes
-I/h/hp/sim/cvs_latest/src/sim/cris/../../opcodes  -g -O2 \
/h/hp/sim/cvs_latest/src/sim/cris/cris-desc.c
In file included from
/h/hp/sim/cvs_latest/src/sim/cris/cris-desc.c:25:
/h/hp/sim/cvs_latest/src/sim/cris/../../bfd/sysdep.h:124: error:
expected '=', ',', ';', 'asm' or '__attribute__' before 'malloc'

or:
In file included from
/mnt/4/hp/axis/simwrite/src/sim/sh64/sh-desc.c:25:
/mnt/4/hp/axis/simwrite/src/bfd/sysdep.h:124: error: syntax
error before "malloc"
/mnt/4/hp/axis/simwrite/src/bfd/sysdep.h:124: error: conflicting
types for `malloc'
/usr/include/stdlib.h:556: error: previous declaration of
`malloc'

Just as a heads-up.  I plan on fixing it within a few weeks. :-P

I'm undecided about actually complaining about the bfd sysdep.h
change.  Its name seemed dependable as the first #include in any
.c file generated or not, but maybe not?

brgds, H-P

       reply	other threads:[~2007-04-25  3:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200704202230.AAA10323@neuro.insel.ch>
     [not found] ` <20070424033403.GF10537@bubble.grove.modra.org>
2007-04-25  3:09   ` Hans-Peter Nilsson [this message]
2007-04-25  6:29     ` Alan Modra

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=Pine.BSF.4.58.0704242247500.75096@dair.pair.com \
    --to=hp@bitrange.com \
    --cc=amodra@bigpond.net.au \
    --cc=binutils@sourceware.org \
    --cc=cgen@sourceware.org \
    --cc=gdb-patches@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).