building rtems-cvs failed
ralf.corsepius at rtems.org
Wed May 11 04:59:02 UTC 2005
On Tue, 2005-05-10 at 19:06 +0200, Philippe Simons wrote:
> On Tue, 10 May 2005 07:03:19 +0200, "Ralf Corsepius"
> <ralf.corsepius at rtems.org> said:
> > On Mon, 2005-05-09 at 12:41 -0500, Joel Sherrill wrote:
> > >
> > > Philippe Simons wrote:
> > > > this is for gcc
> > > > ../gcc-4.0.0/configure --target=arm-rtems --with-gnu-as --with-gnu-ld
> > > > --with-newlib --verbose --enable-threads --enable-languages="c,c++"
> > > > --prefix=/opt/rtems-4.7 --disable-multilib --disable-interwork
> > > >
> > > > and this is for rtems
> > > > ../rtems/configure --target=arm-rtems --disable-posix
> > > > --disable-networking --disable-cxx --disable-itron --disable-rdbg
> > > > --enable-rtemsbsp=gp32 --prefix=/opt/rtems-4.7
> > >
> > > Ralf, is this some odd type of configure/Makefile bug that is only
> > > manifested when some timestamps trick rpcgen into running?
> > I guess so.
> > > I can't duplicate it.
> > Neither can I.
> > ATM, I suspect this to be the result of several bugs interacting ...
> > 1. He reports not to be using --enable-rpcgen. Without it, the rpcgen
> > generated programs are not supposed to be regenerated.
> > To be investigated, probably a bug in c/src/configure.ac.
> > 2. The error message indicates "cpp" complaining on "-B" options as part
> > of the call to rpcgen, despite the fact that rpcgen does not pass these
> > options to rpcgen.
> > This indicates the rpcgen Philippe is using is could be pulling these
> > flags "from the air". The question is why and where (environment,
> > Makefile, wrapper scripts?)
> > The only place "-B's" are used inside of the Makefile is as part of "CC"
> > and "CPP", which would indicate Philippe's rpcgen being sensitive to one
> > or more of these environment variables.
> > However, this would be non-documented behavior and also doesn't make
> > sense, because rpcgen is supposed to be using nothing but /lib/cpp
> > underneath.
> > Philippe, which OS are you using? Do you have CPP or CC explicitly set
> > in your environment? Do you have any GCC variable set in your
> > environment? Do you use any wrapper scripts to GCC?
> My box is a Gentoo 2005.0
Well, this might explain a lot ;-)
> running on amd64, here is my env
> CONFIG_PROTECT_MASK=/etc/gconf /etc/terminfo
> PS1=\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]
> LESSOPEN=|lesspipe.sh %s
> what do you mean by a wrapper script?...
A script around gcc to hard-code certain options to it. Some people use
something of this kind to avoid having to pass options to gcc to it.
And what does
"ls -l /lib/cpp"
> I reconfigured rtems with --disable-rpcgen option, and now build fails
> Making all in librdbg
> gmake: Entering directory `/tmp/b-rtems/arm-rtems/c/gp32/librdbg'
> gmake: *** No rule to make target
> `src/powerpc/new_exception_processing/remdeb.h', needed by `all'. Stop.
This file is part of the sources, if it is missing, your cvs checkout is
> > > > and here the full error
> > > > gmake: Entering directory `/tmp/b-rtems/arm-rtems/c/gp32/librdbg'
> > > > rm -f
> > > > ../../../../../rtems/c/src/librdbg/src/powerpc/new_exception_processing/remdeb.h;
> > > > ( cd ../../../../../rtems/c/src/librdbg && \
> > > > rpcgen -h -DFRONTEND=\"powerpc/new_exception_processing/remdeb_f.x\" \
> > > > -o src/powerpc/new_exception_processing/remdeb.h src/remdeb.x )
All the code above should only be run with --enable-rpcgen enabled.
> > > > cpp: -B../../../lib/ -B../../../gp32/lib/: No such file or directory
> > > > rpcgen: C preprocessor failed with exit code 1
We still don't know why your rpcgen seems to use CC or CPP.
Under linux, rpcgen is part of glibc2's sources. I had a look into
glibc2's sources in its CVS and could not find trace of rpcgen being
sensitive to CC or CPP. The same applies to FreeBSD, Cygwin and the
original Sun rpcgen. AFAIS, none of them is using CC nor CPP nor any
*FLAGS - If Gentoo's rpcgen does, it is broken.
Please send me your
which should exist in your build tree after configure had been run on
More information about the users