Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359275 - net-fs/nfs-utils-1.2.3-r1 fails when /lib/cpp is missing
Summary: net-fs/nfs-utils-1.2.3-r1 fails when /lib/cpp is missing
Status: RESOLVED DUPLICATE of bug 358143
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-17 13:39 UTC by Alexander Bezrukov
Modified: 2011-03-18 10:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,4.57 KB, text/plain)
2011-03-17 13:41 UTC, Alexander Bezrukov
Details
Buidl.log (build.log,19.38 KB, text/plain)
2011-03-17 13:42 UTC, Alexander Bezrukov
Details
strace -s 4096 -f -o strace.log /usr/bin/rpcgen -l -o mount_clnt.c mount.x (strace.log,5.83 KB, text/plain)
2011-03-17 22:41 UTC, Alexander Bezrukov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bezrukov 2011-03-17 13:39:49 UTC
net-fs/nfs-utils-1.2.3-r1 (which is latest and latest stable version of the package) fails to build with

/usr/bin/rpcgen -l -o mount_clnt.c mount.x
cannot find any C preprocessor (cpp)
/usr/bin/rpcgen: C preprocessor failed with exit code 1
make[2]: *** [mount_clnt.c] Error 1
make[2]: Leaving directory `/tmp/portage/net-fs/nfs-utils-1.2.3-r1/work/nfs-utils-1.2.3/support/export'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/portage/net-fs/nfs-utils-1.2.3-r1/work/nfs-utils-1.2.3/support'
make: *** [all-recursive] Error 1
emake failed

This issue is also mentioned in Bug #358509.

Reproducible: Always

Steps to Reproduce:
1. emerge =net-fs/nfs-utils-1.2.3-r1

Actual Results:  
/usr/bin/rpcgen -l -o mount_clnt.c mount.x
cannot find any C preprocessor (cpp)
/usr/bin/rpcgen: C preprocessor failed with exit code 1
make[2]: *** [mount_clnt.c] Error 1
make[2]: Leaving directory `/tmp/portage/net-fs/nfs-utils-1.2.3-r1/work/nfs-utils-1.2.3/support/export'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/portage/net-fs/nfs-utils-1.2.3-r1/work/nfs-utils-1.2.3/support'
make: *** [all-recursive] Error 1
emake failed

Expected Results:  
The package is built fine.
Comment 1 Alexander Bezrukov 2011-03-17 13:41:11 UTC
Created attachment 266251 [details]
emerge --info
Comment 2 Alexander Bezrukov 2011-03-17 13:42:33 UTC
Created attachment 266253 [details]
Buidl.log
Comment 3 Alexander Bezrukov 2011-03-17 13:51:27 UTC
Sorry, misinterpreted Bug #358509 comment #1. The reporter says that the stable fails to build but he meant the previous stable, probably 1.1.4-r1.
Comment 4 SpanKY gentoo-dev 2011-03-17 19:42:23 UTC
are you sure your `cpp` works ?  go into the build dir and run things yourself

cd /tmp/portage/net-fs/nfs-utils-1.2.3-r1/work/nfs-utils-1.2.3/support/export
strace -s 4096 -f -o log /usr/bin/rpcgen -l -o mount_clnt.c mount.x

if it still fails, then post that log as an attachment
Comment 5 Alexander Bezrukov 2011-03-17 22:41:24 UTC
Created attachment 266307 [details]
strace -s 4096 -f -o strace.log /usr/bin/rpcgen -l -o mount_clnt.c mount.x

(In reply to comment #4)
> are you sure your `cpp` works ?

I may be ignorant of something but at the moment I am pretty sure my cpp is ok:

black:~> cpp --version
cpp (Gentoo 4.4.5 p1.2, pie-0.4.5) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I also compile a lot, and this involves a lot of preprocessing. Previously I have never seen a message like this one.


> cd /tmp/portage/net-fs/nfs-utils-1.2.3-r1/work/nfs-utils-1.2.3/support/export
> strace -s 4096 -f -o log /usr/bin/rpcgen -l -o mount_clnt.c mount.x
> 
> if it still fails, then post that log as an attachment

Yes, it still fails. I have attached the log.
Comment 6 Alexander Bezrukov 2011-03-17 22:50:48 UTC
black:~> which cpp
/usr/bin/cpp

black:~> ls /lib/cpp  /usr/ccs/lib/cpp
ls: cannot access /lib/cpp: No such file or directory
ls: cannot access /usr/ccs/lib/cpp: No such file or directory

Now that I created a symlink from /usr/bin/cpp to /lib/cpp, the package builds ok. But in my opinion, these 2 paths are very wrong places for the cpp binary.
Comment 7 Alexander Bezrukov 2011-03-17 22:59:31 UTC
I remember to have seen this layout (/usr/ccs/{bin,lib}) on Solaris, years ago. I don't have a machine running SunOS to check this.
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-03-17 23:05:35 UTC
This seems to be a problem with missing /lib -> /lib64 symlink.
When I tried to run "gcc-config 1" (I only have one version of gcc installed on this machine) gcc-config returned with the following error message:

cp: cannot create regular file `//lib/cpp': No such file or directory

and yes, /lib is missing...

So this bug might be a result of bug #358143
Comment 9 SpanKY gentoo-dev 2011-03-18 07:15:10 UTC
let's assume that.  otherwise, gcc-config makes sure that /lib/cpp exists.

*** This bug has been marked as a duplicate of bug 358143 ***
Comment 10 Alexander Bezrukov 2011-03-18 10:58:22 UTC
Yes, I am a victim of Bug #358143. I was sure that the symlink is in place and have never checked this.

Thank everybody for support!