Bug 87004 - media-libs/pdflib fails w/ mcpu/mtune C[XX]FLAGS set
Bug#: 87004 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: chtekk@gentoo.org Reported By: jacobarber@gmail.com
Component: Ebuilds
URL: 
Summary: media-libs/pdflib fails w/ mcpu/mtune C[XX]FLAGS set
Keywords:  
Status Whiteboard: 
Opened: 2005-03-28 11:09 0000
Description:   Opened: 2005-03-28 11:09 0000
After attempting to emerge PHP, then mod_php, I found that pdflib is throwing
the same error.  Also tried emerging pdflib itself, and it does the same thing.

make[2]: [p_basic.lo] Error 1 (ignored)
make[2]: Leaving directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite
-5.0.4p1-Unix-src/libs/pdflib'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite
-5.0.4p1-Unix-src/libs'
make[1]: Entering directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lit
e-5.0.4p1-Unix-src/bind'
make[2]: Entering directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lit
e-5.0.4p1-Unix-src/bind/pdflib'
make[3]: Entering directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lit
e-5.0.4p1-Unix-src/bind/pdflib/c'
make[3]: *** No rule to make target `../../../libs/pdflib/libpdf.la', needed by 
`hello'.  Stop.
make[3]: Leaving directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite
-5.0.4p1-Unix-src/bind/pdflib/c'
make[3]: Entering directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lit
e-5.0.4p1-Unix-src/bind/pdflib/cpp'
make[3]: *** No rule to make target `../../../libs/pdflib/libpdf.la', needed by 
`hello'.  Stop.
make[3]: Leaving directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite
-5.0.4p1-Unix-src/bind/pdflib/cpp'
make[3]: Entering directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lit
e-5.0.4p1-Unix-src/bind/pdflib/java'
make[3]: *** No rule to make target `../../../libs/pdflib/libpdf_.la', needed
by
 `libpdf_java.la'.  Stop.
make[3]: Leaving directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite
-5.0.4p1-Unix-src/bind/pdflib/java'
make[3]: Entering directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lit
e-5.0.4p1-Unix-src/bind/pdflib/perl'
make[3]: *** No rule to make target `../../../libs/pdflib/libpdf_.la', needed
by
 `pdflib_pl.la'.  Stop.
make[3]: Leaving directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite
-5.0.4p1-Unix-src/bind/pdflib/perl'
make[3]: Entering directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lit
e-5.0.4p1-Unix-src/bind/pdflib/python'
make[3]: *** No rule to make target `../../../libs/pdflib/libpdf_.la', needed
by
 `pdflib_py.la'.  Stop.
make[3]: Leaving directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite
-5.0.4p1-Unix-src/bind/pdflib/python'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite
-5.0.4p1-Unix-src/bind/pdflib'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite
-5.0.4p1-Unix-src/bind'
make[1]: Entering directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lit
e-5.0.4p1-Unix-src/progs'
make[2]: Entering directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lit
e-5.0.4p1-Unix-src/progs/pdflib'
make[2]: *** No rule to make target `../../libs/pdflib/libpdf.la', needed by
`pd
fimpose'.  Stop.
make[2]: Leaving directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite
-5.0.4p1-Unix-src/progs/pdflib'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite
-5.0.4p1-Unix-src/progs'
make: *** [all] Error 2

!!! ERROR: media-libs/pdflib-5.0.4_p1-r1 failed.
!!! Function src_compile, Line 50, Exitcode 2
!!! emake failed



Reproducible: Always
Steps to Reproduce:
1. emerge pdflib
or
1. emerge php
or
1. emerge mod_php
Actual Results:  
same thing mentioned in the details of the report 

Expected Results:  
the software should have installed smoothly, and I should have php and mod_php 
running without problems

------- Comment #1 From Jacob 2005-03-28 11:12:16 0000 -------
Created an attachment (id=54700) [details]
emerge info

although it shows a ton of USE flags being set, i changed them in order to see
if one of causing my problem and now i have a much smaller set:

USE="apache2 php mysql perl gif jpeg png tiff gtk gtk2 xml xml2 imagemagick gd
pdflib kde X pam ssl"

if there is somewhere other than /etc/make.conf that they're set, then I am
unaware

------- Comment #2 From Seemant Kulleen (RETIRED) 2005-03-29 04:46:00 0000 -------
Jacob, don't be alarmed by your larger-than-expected USE string.  In fact, the
way portage works is the profile sets a base set of USE flags (see
/etc/make.profile directory -- this is slightly trickier these days because of
cascading profiles, so check each parent directory, and then the base/
directory as well). Those files sum each other up.  Then your make.globals may
define a USE string as well, which gets appended.  Finally, your make.conf
defines your personal USE string.  OF course, the top level is the environment,
allowing you to USE="-my -own strings" emerge blah.

------- Comment #3 From Nes Yarug 2005-05-01 16:18:28 0000 -------
I also have the same error when emerging mod_php:

make[2]: *** No rule to make target `../../libs/pdcore/libpdcore.la', needed by `libpdf.la'.  Stop.
make[2]: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-gcc: no input files
make[2]: [p_xgstate.lo] Error 1 (ignored)
i686-pc-linux-gnu-gcc: no input files
make[2]: [p_basic.lo] Error 1 (ignored)
make[2]: Leaving directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/libs/pdflib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/libs'
make[1]: Entering directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/bind'
make[2]: Entering directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/bind/pdflib'
make[3]: Entering directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/bind/pdflib/c'
make[3]: *** No rule to make target `../../../libs/pdflib/libpdf.la', needed by `hello'.  Stop.
make[3]: Leaving directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/bind/pdflib/c'
make[3]: Entering directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/bind/pdflib/cpp'
make[3]: *** No rule to make target `../../../libs/pdflib/libpdf.la', needed by `hello'.  Stop.
make[3]: Leaving directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/bind/pdflib/cpp'
make[3]: Entering directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/bind/pdflib/perl'
make[3]: *** No rule to make target `../../../libs/pdflib/libpdf_.la', needed by `pdflib_pl.la'.  Stop.
make[3]: Leaving directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/bind/pdflib/perl'
make[3]: Entering directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/bind/pdflib/python'
make[3]: *** No rule to make target `../../../libs/pdflib/libpdf_.la', needed by `pdflib_py.la'.  Stop.
make[3]: Leaving directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/bind/pdflib/python'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/bind/pdflib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/bind'
make[1]: Entering directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/progs'
make[2]: Entering directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/progs/pdflib'
make[2]: *** No rule to make target `../../libs/pdflib/libpdf.la', needed by `pdfimpose'.  Stop.
make[2]: Leaving directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/progs/pdflib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/pdflib-5.0.4_p1-r1/work/PDFlib-Lite-5.0.4p1-Unix-src/progs'
make: *** [all] Error 2

!!! ERROR: media-libs/pdflib-5.0.4_p1-r1 failed.
!!! Function src_compile, Line 50, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

emerge --info:
Portage 2.0.51.20-r5 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System version 1.6.11
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.3
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -pipe -Os -mcpu=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -pipe -Os -mcpu=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.mirror.sdv.fr http://gentoo.tiscali.nl/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 alsa apache2 apm bash-completion berkdb bitmap-fonts crypt cups emboss encode foomaticdb fortran gdbm gif gpm hardened imagemagick imlib ipv6 jpeg libg++ libwww mad mikmod motif mp3 mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python readline sasl sdl slang spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts unicode xml2 xmms xv zlib userland_GNU kernel_linux libc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

------- Comment #4 From Luca Barbato 2005-05-02 01:10:38 0000 -------
try to set -j1 as makeopts

------- Comment #5 From Nes Yarug 2005-05-02 01:49:48 0000 -------
MAKEOPTS="-j1" didn't work for me. I got the same error message.

------- Comment #6 From Nes Yarug 2005-05-03 07:10:41 0000 -------
FWIW, I removed -mcpu=i686 from CLAGS in /etc/make.conf as its deprecated
anyway and that seemed to work for me.

Nes

------- Comment #7 From Euan Clark 2005-06-22 22:20:41 0000 -------
It doesn't like the -mtune=pentium4 in CFLAGS either. Once removed it compiled 
fine. 

------- Comment #8 From Thomas Maguin 2005-10-09 02:20:36 0000 -------
Same here. Error hundreds of error messages like this:

i686-pc-linux-gnu-gcc: no input files
make[2]: [p_cid.lo] Error 1 (ignored)

removing -mtune from /etc/make.conf and emerge is working properly.

------- Comment #9 From Alessio Cassibba (X-Drum) 2006-04-28 11:59:39 0000 -------
Removed -mcpu=i686 from CFLAGS in /etc/make.conf and placed
-mtune=1686 now it works.


Portage 2.0.54 (hardened/x86/2.6, gcc-3.4.5, glibc-2.3.5-r3, 2.6.14-hardened-r7
i686)
=================================================================
System uname: 2.6.14-hardened-r7 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=i686"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources
http://distfiles.gentoo.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="bash-completion berkdb bzip2 crypt curl dlloader expat gd gmp hardened idn
jpeg mysql ncurses nls odbc pam pcre pdflib perl php pic png python readline
ssl tcpd truetype udev usb userlocales x86 xml2 zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS,
MAKEOPTS

------- Comment #10 From Ryan Hill 2006-04-29 18:47:22 0000 -------
Created an attachment (id=85804) [details]
pdflib-6.0.1.ebuild.diff

Problem still exists w/ pdflib-6.0.1.  -mcpu and -mtune values different than
-march trigger this.  This patch filters those flags.

------- Comment #11 From Jakub Moc (RETIRED) 2006-06-28 15:36:44 0000 -------
@CHTEKK - can you please have a look at this?

------- Comment #12 From Luca Longinotti 2006-06-28 16:33:47 0000 -------
Fixed on all PDFlib ebuilds, thanks to Ryan Hill for the patch.
Best regards, CHTEKK.