trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: July 2012

Re: [trinity-devel] tdebase - ftbfs - rpcgen - cannot find any C preprocessor

From: Darrell Anderson <humanreadable@...>
Date: Mon, 9 Jul 2012 10:53:39 -0700 (PDT)
>   This is probably arch, but I've hit a new tdebase
> failure regarding rpcgen:
> 
> 
> [ 49%] Building CXX object
> kioslave/man/CMakeFiles/kio_man-module.dir/kio_man.cpp.o
> Linking CXX shared module kio_man.so
> [ 49%] Built target kio_man-module
> [ 49%] Generating kmanpart.moc
> Scanning dependencies of target libkmanpart-module
> [ 49%] Building CXX object
> kioslave/man/CMakeFiles/libkmanpart-module.dir/kmanpart.cpp.o
> Linking CXX shared module libkmanpart.so
> [ 49%] Built target libkmanpart-module
> [ 49%] Generating nfs_prot_xdr.c
> cannot find any C preprocessor (cpp)
> rpcgen: C preprocessor failed with exit code 1
> make[2]: *** [kioslave/nfs/nfs_prot_xdr.c] Error 1
> make[1]: ***
> [kioslave/nfs/CMakeFiles/kio_nfs-module.dir/all] Error 2
> make: *** [all] Error 2
> 
>   Googling, this looks like it is due to some hardcoded
> path somewhere in tde. I do not know what changed with the latest gcc update, but it
> looks like we need to add preprocessor directives to the code to handle this
> change. I'll provide patch update information later on this week.

There is bug report 714, kio_man does not work with some distros. The reported problem affects run-time and not compiling, but try applying the patch to tdebase and see what happens?

I rebuilt everything Saturday and experienced no such build error. I have been applying that patch for many months.

There was one commit several days ago (513ffc6e) that requires rebuilding tdelibs as well as tdebase, but I don't think that patch is related to your problem description.

Darrell