building rtems-cvs failed

Ralf Corsepius ralf.corsepius at
Tue May 10 05:03:19 UTC 2005

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/

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

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?

> > and here the full error
> > gmake[3]: 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 )
> > cpp: -B../../../lib/ -B../../../gp32/lib/: No such file or directory
> > rpcgen: C preprocessor failed with exit code 1


More information about the users mailing list