Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302245 - net-fs/nfs-utils-1.2.1 fails to build: rpcgen cant find cpp
Summary: net-fs/nfs-utils-1.2.1 fails to build: rpcgen cant find cpp
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-26 01:22 UTC by Stan Sander
Modified: 2010-01-27 00:25 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stan Sander 2010-01-26 01:22:29 UTC
Been seeing this for a while, but can't find any bug reports on it so may be just something borked on my system.  Not sure what to do or how to proceed however.  When trying to emerge nfs-utils-1.2.1 the build fails because rpcgen cannot find cpp.  I have cpp in /usr/bin.  There is an option (-Y) to rpcgen to give it the path to cpp.  Here is the (snipped) output from the failed build:

Making all in export                                                                       
make[2]: Entering directory `/var/tmp/portage/net-fs/nfs-utils-1.2.1/work/nfs-utils-1.2.1/support/export'                                                                             
test -f mount_clnt.c && rm -rf mount_clnt.c || true                                        
test -f mount_xdr.c && rm -rf mount_xdr.c || true                                          
/usr/bin/rpcgen -l -o mount_clnt.c mount.x                                                 
/usr/bin/rpcgen -c -o mount_xdr.c mount.x                                                  
test -f mount.h && rm -rf mount.h || true                                                  
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]: *** Waiting for unfinished jobs....                                               
cannot find any C preprocessor (cpp)                                                       
/usr/bin/rpcgen: C preprocessor failed with exit code 1                                    
make[2]: *** [mount_xdr.c] Error 1                                                         
/usr/bin/rpcgen -h -o mount.h mount.x                                                      
cannot find any C preprocessor (cpp)                                                       
/usr/bin/rpcgen: C preprocessor failed with exit code 1
make[2]: *** [mount.h] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-fs/nfs-utils-1.2.1/work/nfs-utils-1.2.1/support/export'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-fs/nfs-utils-1.2.1/work/nfs-utils-1.2.1/support'
make: *** [all-recursive] Error 1
 * ERROR: net-fs/nfs-utils-1.2.1 failed:
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2721:  Called _eapi2_src_compile
 *     ebuild.sh, line  646:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"



Reproducible: Always

Steps to Reproduce:
1.emerge nfs-utils
2.
3.

Actual Results:  
build fails

Expected Results:  
nfs-utils builds and installs

emerge --info =net-fs/nfs-utils-1.2.1
Portage 2.1.7.16 (default/linux/amd64/10.0/no-multilib, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r2-Stan x86_64)                                                                       
=================================================================                          
                        System Settings                                                    
=================================================================                          
System uname: Linux-2.6.32-gentoo-r2-Stan-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-gentoo-2.0.1                                                                     
Timestamp of tree: Mon, 25 Jan 2010 17:45:01 +0000                                         
app-shells/bash:     4.0_p37                                                               
dev-java/java-config: 2.1.10                                                               
dev-lang/python:     2.6.4, 3.1.1-r1                                                       
dev-util/cmake:      2.8.0-r1                                                              
sys-apps/baselayout: 2.0.1                                                                 
sys-apps/openrc:     0.6.0-r1                                                              
sys-apps/sandbox:    2.2                                                                   
sys-devel/autoconf:  2.13, 2.63-r1                                                         
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1                                    
sys-devel/binutils:  2.20                                                                  
sys-devel/gcc-config: 1.4.1                                                                
sys-devel/libtool:   2.2.6b                                                                
virtual/os-headers:  2.6.30-r1                                                             
ACCEPT_KEYWORDS="amd64 ~amd64"                                                             
ACCEPT_LICENSE="*"                                                                         
CBUILD="x86_64-pc-linux-gnu"                                                               
CFLAGS="-march=athlon64 -O2 -pipe"                                                         
CHOST="x86_64-pc-linux-gnu"                                                                
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/sendmail-cf /var/bind /var/lib/hsqldb"          
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                                                                      
CXXFLAGS="-march=athlon64 -O2 -pipe"                                                       
DISTDIR="/usr/portage/distfiles"                                                           
EMERGE_DEFAULT_OPTS="--with-bdeps y"                                                       
FEATURES="assume-digests ccache collision-protect distlocks fixpackages news nostrip parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"                                                                            
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo  http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"                                                                                         
LC_ALL="en_US.ISO-8859-1"                                                                  
LDFLAGS="-Wl,-O1"                                                                          
LINGUAS="en"                                                                               
MAKEOPTS="-j3"                                                                             
PKGDIR="/usr/portage/packages"                                                             
PORTAGE_CONFIGROOT="/"                                                                     
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                   
PORTAGE_TMPDIR="/var/tmp"                                                                  
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/kde-sunset /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit X Xaw3d a52 aac aalib abook acl acpi addbookmarks aften afterimage aio akode alias alisp amarok amd amd64 amr amrnb amrwb animgif apache2 archive ares asf aspell async athena audiofile autoreplace background backtrace bacula-console bash-completion bcmath bdf berkdb big-tables binary-drivers bl bzip2 cairo captury cdaudio cdda cddb cdparanoia cdr cgraph chroot clamav clamd classic cnamefix colordiff compress connectionstatus consolekit contactnotes cracklib crypt cscope css cups cupsddk curl curlwrappers cursors custom-cflags custom-cpuopts cxx dbm dbus designer-plugin dga directfb divx dolby-record-switch dolbyinrec dri dvd dvdr dvdread ecc emovix enca encode etc-proposals exif expat extraengine fame fbcon fbdev fbsplash ffmpeg flac flash fontconfig foomaticdb fpx ftp fusion gcj gd gdbm geoip gif gimp glib glibc-compat20 glibc-omitfp glitz glut glw gmedia gmp gnutls gpg gphoto2 gpm graphviz grub gs gsl gsm gstreamer gtk gtk2-perl hal handbook hardened hddtemp hifieq high-ints highlight htmlhandbook icons id3 id3tag idea ieee1394 image imagemagick imlib imlib2 immqt-bc innodb iodbc ithreads jack jack-tmpfs java java6 javascript jce jfs jpeg jpeg2k kde kdebuild kdecards kdepim kdm kdrive kexi kipi kontact kpathsea ladspa lame largefile largeterminal latex latin1 lcms libcaca libgcrypt libsamplerate libssh2 libwww linuxthreads-tls live lm_sensors logrotate lzma lzo mad max-idx-128 mbox milter mime mmap mmx mmxext mng motif moznoirc moznopango moznoroaming mozsha1 mp2 mp3 mp3rtp mp4 mp4live mpeg mpeg2 mpi mplayer mplayer-bin multiuser musepack musicbrainz mysql mysqli nas ncurses nemesi net netapi network network-cron nforce2 nfs nfsv3 nfsv4 nntp nolvm1 normalize normalizemime nosamples nowlistening npp nptl nsplugin nspr nss ntp objc objc++ objc-gc ocrad odbc ofx ogg ogg123 openal openct openexr opengl openssl osc oss pam parport paste64 pcap pdf perl phonon pixmaps plasma player plib pmu png pnm posix postproc postscript povray ppds procmail ps pth python q32 qt3support qt4 qtdesigner query-browser quicktime readline realmedia rss rtc samba sdl sdl-image sensord sharedmem smbclient sndfile sockets soundex sox speedo spell sql sqlite sqlite3 sse sse2 ssh ssl startup-notification subtitles svg symlink syslog sysvipc taglib tagwriting tcl tesseract threads threadsafe thumbnail tiff tk truetype tunepimp type1 unicode usb utempter vcd vcdx vdr vim vim-pager vim-syntax vorbis wav wma wmf wmp xanim xattr xcb xcomposite xft xgetdefault xine xinetd xml xorg xpm xrandr xrender xscreensaver xsettings xslt xterm xv xvid xvmc zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias authz_host autoindex dir env expires filter headers imagemap include log_config mime mime_magic rewrite setenvif speling vhost_alias substitute unique_id" APACHE2_MPMS="worker" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template topfield toshiba_pdrm11" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon ati fbdev"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

emerge -pqv =net-fs/nfs-utils-1.2.1
[ebuild     U ] net-fs/nfs-utils-1.2.1 [1.2.0] USE="nfsv3* nfsv4* -ipv6 -kerberos -tcpd"
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-01-26 03:40:22 UTC
assigning to maintainers
Comment 2 SpanKY gentoo-dev 2010-01-26 18:22:32 UTC
run `gcc-config -f` to re-select your current profile
Comment 3 Stan Sander 2010-01-26 23:53:44 UTC
gcc-config -f fixed it.  Thanks.