Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359723 - app-accessibility/festival-2.1 - make: PIC: No such file or directory
Summary: app-accessibility/festival-2.1 - make: PIC: No such file or directory
Status: RESOLVED DUPLICATE of bug 340317
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Jesus Rivero (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-21 10:09 UTC by Ian Delaney (RETIRED)
Modified: 2011-03-22 15:37 UTC (History)
1 user (show)

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 Ian Delaney (RETIRED) gentoo-dev 2011-03-21 10:09:08 UTC
app-accessibility/festival-2.1, new to the tree at this date, does not compile.
Fails at first step after completing configure.

Prior version, 2.0.95_beta emerges effectively.



Reproducible: Always

Steps to Reproduce:
1. complete update of world.
2. emerge festival.
3.
Actual Results:  

checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for ar... ar
checking whether byte ordering is bigendian... no
updating cache ./config.cache
creating ./config.status
creating config/config
>>> Source configured.
>>> Compiling source in /var/tmp/portage-btrfs/portage/app-accessibility/festival-2.1/work/festival ...
make -j4 -j1 PROJECT_LIBDEPS= REQUIRED_LIBDEPS= LOCAL_LIBDEPS= 'OPTIMISE_CXXFLAGS=-march=core2 -fomit-frame-pointer -pipe -O2 -mno-tls-direct-seg-refs' 'OPTIMISE_CCFLAGS=-march=core2 -fomit-frame-pointer -pipe -O2 -mno-tls-direct-seg-refs' LDFLAGS=-Wl,-O2,--as-needed -fPIC CC=i686-pc-linux-gcc CXX=i686-pc-linux-g++ 
make: PIC: No such file or directory
make: *** No rule to make target `PIC'.  Stop

this may be

Expected Results:  
effective emerge, ebuild
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2011-03-21 10:10:52 UTC
genny linux-2.6.36-zen1 # emerge --info
Portage 2.1.9.43 (hardened/linux/x86, gcc-4.5.2-hardenednopiessp, glibc-2.13-r2, 2.6.38-gentoo i686)
=================================================================
System uname: Linux-2.6.38-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 18 Mar 2011 21:15:01 +0000
ccache version 3.1.4 [disabled]
app-shells/bash:     4.2_p8
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:     3.1.4
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.38 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10.1 Attica skype-eula"
CBUILD="i686-pc-linux"
CFLAGS="-march=core2 -fomit-frame-pointer -pipe -O2 -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux"
CONFIG_PROTECT="/etc /etc/conf.d/network /etc/conf.d/xdm /etc/libvirt/libvirtd.conf /etc/ssh/sshd_config /etc/xen/xend-config.sxp /etc/xen/xm-config.xml /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -fomit-frame-pointer -pipe -O2 -mno-tls-direct-seg-refs"
DISTDIR="/mnt/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=3.4 --keep-going"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.swin.edu.au/gentoo/ ftp://mirror.pacific.net.au/linux/Gentoo ftp://mirror.isp.net.au/pub/gentoo/  http://mirror.isp.net.au/pub/gentoo/ http://mirror.averse.net/pub/gentoo/"
LDFLAGS="-Wl,-O2,--as-needed -fPIC"
LINGUAS="en"
MAKEOPTS="-j4"
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/portage-btrfs"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="(-altivec) (-aqua) (-cman) (-corefonts%*) (-cups) (-debug%) (-doc%) (-faad%) (-fixed-point) (-gold%) (-google-gadgets) (-iceweasel%) (-introspection) (-ioctl) (-kdeenablefinal) (-kdeprefix) (-libffi) (-libsigsegv%) (-mozdevelop%) (-n32) (-n64) (-nocxx%) (-one%) (-pango%) (-pch) (-pkcs11%) (-ppcsha1) (-ps3) (-python%*) (-real) (-seamonkey%) (-selinux) (-smartcard%) (-sqlite%) (-uclibc) (-vdpau) (-vfs-compat%*) (-vis) (wide-unicode) 3dnowext X a5 aac accessibility acl acpi aio alsa apm armeb arts audiofile avi bash-completion berkdb blksha1 bluetooth bmp bzip2 bzip2%* cairo cairo%* cdr cli client%* consolekit corefonts cpudetection cracklib cris crypt css ctype cups cups%* cxx cxx%* dba dbmaker dbus declarative device-mapper dga dhcp dri dts dv dvd dvdread encode esd eselect ethereal exceptions exif extensions extras fam fbcon fbcondor ffmpeg fftw fftw* firefox flac fontconfig fortran ftp fts3 gallium gdbm gif glib gnome gnutls gphoto gpm gprof gstreamer gtk gtk%* gtk2 hal hal%* handbook hardcoded-tables hardened http%* i386 iconv imagemagick inifile ioctl ipc ipc%* java jpeg kde kernel-helper kontact ladcca lcms lcms* ldap libg++ libnotify libvirtd lm_sensors lxc m3 mad mbox mdev%* microblaze mime mipsel mmap mmxext mng modplug modules mono mozilla mp3 mpeg msn mudflap musepack mysql ncurses net netapi network nls nptl nptlonly objc ogg openal opengl openmp oss pam pcre perl perl%* pm-utils png png%* pnp policykit posix ppc64abi32 ppcemb pppd pulseaudio python qdbm qt qt3support qt4 quicktime readline ruby samba sasl sasl% sasl%* scanner sdl semantic-desktop server%* session sh4 sh4eb shared slp smbclient sndfile sockets source sparc32plus spell sql sqlite sse sse2 ssl ssse3 startup-notification static-libs static-libs%* svg svga svgtruetype sysfs tcpd theora threads tiff tordns truetype udev udev%* urandom usb v4l videos vorbis webdav webkit webkit* websockets wifi wifi%* win32codecs x264 x86 x86_64 xcb xcb* xen xen* xine xinerama xml xml2 xorg xulrunner xv xvid zlib" ALSA_CARDS="snd_hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="cris i386 m68k microblaze mips mipsel ppc ppcemb sh4 sh4eb arm mips64 sparc x86_64" QEMU_USER_TARGETS="alpha armeb cris i386 m68k microblaze mips mipsel ppc sh4 sh4eb arm ppc64abi32 sparc x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa fbdev vesa v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-22 03:05:48 UTC
Why on Earth was x86@ CCd? Please don't CC maintainers (or anyone you regard as such) when you cannot assign bugs.

LDFLAGS are leaked into the make command line by the ebuild. I really really wonder what -fPIC is doing in your LDFLAGS, btw, but nevertheless this patch should fix the ebuild:

Index: festival-2.1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-accessibility/festival/festival-2.1.ebuild,v
retrieving revision 1.2
diff -u -B -r1.2 festival-2.1.ebuild
--- festival-2.1.ebuild 17 Mar 2011 21:01:59 -0000  1.2
+++ festival-2.1.ebuild 22 Mar 2011 03:02:39 -0000
@@ -65,7 +65,7 @@
 src_compile() {
  emake -j1 PROJECT_LIBDEPS="" REQUIRED_LIBDEPS="" LOCAL_LIBDEPS="" \
    OPTIMISE_CXXFLAGS="${CXXFLAGS}" OPTIMISE_CCFLAGS="${CFLAGS}" \
-   LDFLAGS=${LDFLAGS} \
+   LDFLAGS="${LDFLAGS}" \
    CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "emake failed"
 }
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2011-03-22 12:07:07 UTC
(In reply to comment #2)
I attempted applying the patch, ended up in irc #gentoo-dev-help to apply it since I'm not up with applying patches.
One thing lead to another. The gentoo user there at the time reviewed the patch then the bug, and came up with what you pointed to.
He as sure that the DFLAG -fPIC was the 'culprit'.  Independently, I tried it with DFLAGS="" emerge -1 festival and it began to compile b4 I interrupted it.

So he suggested the content of the DFLAGS in my make.conf was not required at all and delete it.
-Wl,-O2,--as-needed -fPIC"
-Wl is not vital, -O2 is a repeat of in CFLAGS, -f
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2011-03-22 12:17:05 UTC
(In reply to comment #2)
I attempted applying the patch, ended up in irc #gentoo-dev-help to apply it since I'm not up with applying patches.
One thing lead to another. The gentoo user there at the time reviewed the patch then the bug, and came up with what you pointed to.
He as sure that the DFLAG -fPIC was the 'culprit'.  Independently, I tried it with DFLAGS="" emerge -1 festival and it began to compile b4 I interrupted it.

So he suggested the content of the DFLAGS in my make.conf was not required at all and delete it.
-Wl,-O2,--as-needed -fPIC"
-Wl is not vital, -O2 is a repeat of in CFLAGS, -fPIC I finally was informed is a flag that is used with hardened.  --as-needed is one I may put back in.
One of my kernels is hardened, my profile is hardened.

Since the error cited PIC am pretty certain this is the cause.
I suspect the patch would work but didn't get to try it.

I have had a couple of other packages pull up in similar style, looks as if I've finally found the underlying cause after a number of attempts to do so.

It seems the option was set by the hardened profile.  Deleting the DFLAGS all together is a fairly radical undermining of the settings in the hardened profile.
That appears to be what requires examining and revising.
Comment 5 Jesus Rivero (RETIRED) gentoo-dev 2011-03-22 13:42:02 UTC

*** This bug has been marked as a duplicate of bug 340317 ***
Comment 6 Ian Delaney (RETIRED) gentoo-dev 2011-03-22 15:37:13 UTC
(In reply to comment #5)
> 
> *** This bug has been marked as a duplicate of bug 340317 ***

I  added the extra part line to the ebuild manually, then reset the manifest, and ran it with DFLAGS="all prior dflags" emerge festival.
It wasn't effective.  The -fPIC from hardened once removed from make.conf allowed it to emerge effectively.