Bug 262443 - emerge of gtk-engines-qtcurve-0.59.7 fails: i686-pc-linux-gnu-gcc: DEFINES: No such file or directory
Bug#: 262443 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: yngwin@gentoo.org Reported By: andy.dalton@gmail.com
Component: Applications
URL: 
Summary: emerge of gtk-engines-qtcurve-0.59.7 fails: i686-pc-linux-gnu-gcc: DEFINES: No such file or directory
Keywords:  
Status Whiteboard: 
Opened: 2009-03-14 14:59 0000
Description:   Opened: 2009-03-14 14:59 0000
When trying to emerge gtk-engines-qtcurve-0.59.7 I get the following error:

>>> Working in BUILD_DIR: "/var/tmp/portage/x11-themes/gtk-engines-qtcurve-0.59.7/work/gtk-engines-qtcurve_build"
make -j1
Scanning dependencies of target qtcurve
[100%] Building C object style/CMakeFiles/qtcurve.dir/qtcurve.o
i686-pc-linux-gnu-gcc: DEFINES: No such file or directory
make[2]: *** [style/CMakeFiles/qtcurve.dir/qtcurve.o] Error 1
make[1]: *** [style/CMakeFiles/qtcurve.dir/all] Error 2
make: *** [all] Error 2

Reproducible: Always

Steps to Reproduce:
1. emerge gtk-engines-qtcurve

Actual Results:  
Scanning dependencies of target qtcurve
[100%] Building C object style/CMakeFiles/qtcurve.dir/qtcurve.o
i686-pc-linux-gnu-gcc: DEFINES: No such file or directory
make[2]: *** [style/CMakeFiles/qtcurve.dir/qtcurve.o] Error 1
make[1]: *** [style/CMakeFiles/qtcurve.dir/all] Error 2
make: *** [all] Error 2


Expected Results:  
package emerges successfully

------- Comment #1 From Andy Dalton 2009-03-14 15:01:18 0000 -------
Created an attachment (id=184953) [details]
Log of failed install

------- Comment #2 From Andy Dalton 2009-03-14 15:01:50 0000 -------
Created an attachment (id=184955) [details]
ebuild environment

------- Comment #3 From Lars Wendler (Polynomial-C) 2009-03-15 11:37:14 0000 -------
Could you please post your "emerge --info" as well? 

Reopen this bug when you provide the requested information.

------- Comment #4 From Stefan Werner 2009-03-15 12:34:54 0000 -------
I get the same error with both qtcurve and gtk-engines-qtcurve >=0.62.0.

--------------------------------------------------------------------

>>> Emerging (1 of 1) x11-themes/qtcurve-0.62.2
 * QtCurve-KDE3-0.62.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                 
                                                                               
            [ ok ]
>>> Creating Manifest for /usr/portage/x11-themes/qtcurve
  digest.assumed                 2
   qtcurve-0.59.2::QtCurve-KDE3-0.59.2.tar.bz2
   qtcurve-0.59.5::QtCurve-KDE3-0.59.5.tar.bz2
 * checking ebuild checksums ;-) ...                                           
                                                                               
            [ ok ]
 * checking auxfile checksums ;-) ...                                          
                                                                               
            [ ok ]
 * checking miscfile checksums ;-) ...                                         
                                                                               
            [ ok ]
>>> Creating Manifest for /usr/portage/x11-themes/qtcurve
  digest.assumed                 2
   qtcurve-0.59.2::QtCurve-KDE3-0.59.2.tar.bz2
   qtcurve-0.59.5::QtCurve-KDE3-0.59.5.tar.bz2
>>> Unpacking source...
>>> Unpacking QtCurve-KDE3-0.62.2.tar.bz2 to /var/tmp/portage/x11-themes/qtcurve-0.62.2/work
>>> Source unpacked in /var/tmp/portage/x11-themes/qtcurve-0.62.2/work
>>> Creating Manifest for /usr/portage/x11-themes/qtcurve
  digest.assumed                 2
   qtcurve-0.59.2::QtCurve-KDE3-0.59.2.tar.bz2
   qtcurve-0.59.5::QtCurve-KDE3-0.59.5.tar.bz2
>>> Compiling source in /var/tmp/portage/x11-themes/qtcurve-0.62.2/work/QtCurve-KDE3-0.62.2 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/x11-themes/qtcurve-0.62.2/work/qtcurve_build"
loading initial cache file
/var/tmp/portage/x11-themes/qtcurve-0.62.2/temp/gentoo_common_config.cmake
-- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/i686-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/i686-pc-linux-gnu-g++ -- works
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found KDE3 include dir: /usr/kde/3.5/include
-- Found KDE3 library dir: /usr/kde/3.5/lib
-- Found KDE3 dcopidl preprocessor: /usr/kde/3.5/bin/dcopidl
-- Found KDE3 dcopidl2cpp preprocessor: /usr/kde/3.5/bin/dcopidl2cpp
-- Found KDE3 kconfig_compiler preprocessor: /usr/kde/3.5/bin/kconfig_compiler
-- <<< Gentoo configuration >>>
Build type: Gentoo
Install path: /usr/kde/3.5

-- Configuring done
-- Generating done
-- Build files have been written to:
/var/tmp/portage/x11-themes/qtcurve-0.62.2/work/qtcurve_build
>>> Working in BUILD_DIR: "/var/tmp/portage/x11-themes/qtcurve-0.62.2/work/qtcurve_build"
make -j3
[  9%] [ 18%] Generating qtcurveconfigbase.h
[ 27%] Generating qtcurve.moc
Generating qtcurveconfig.moc
Scanning dependencies of target qtcurve
[ 36%] Generating exportthemedialog.moc
[ 45%] Generating qtcurveconfigbase.cpp
[ 54%] Generating qtcurveconfigbase.moc.cpp
[ 63%] Building CXX object style/CMakeFiles/qtcurve.dir/qtcurve.o
i686-pc-linux-gnu-g++: DEFINES: Datei oder Verzeichnis nicht gefunden
Scanning dependencies of target kstyle_qtcurve_config
[ 81%] [ 81%] Building CXX object
config/CMakeFiles/kstyle_qtcurve_config.dir/qtcurveconfig.o
Building CXX object
config/CMakeFiles/kstyle_qtcurve_config.dir/exportthemedialog.o
i686-pc-linux-gnu-g++: i686-pc-linux-gnu-g++: DEFINES: Datei oder Verzeichnis
nicht gefunden
DEFINES: Datei oder Verzeichnis nicht gefunden
/var/tmp/portage/x11-themes/qtcurve-0.62.2/work/QtCurve-KDE3-0.62.2/style/qtcurve.cpp:
In member function `virtual void
QtCurveStyle::drawControl(QStyle::ControlElement, QPainter*, const QWidget*,
const QRect&, const QColorGroup&, uint, const QStyleOption&) const':
/var/tmp/portage/x11-themes/qtcurve-0.62.2/work/QtCurve-KDE3-0.62.2/style/qtcurve.cpp:4343:
Warnung: converting nach »int« von »double«
/var/tmp/portage/x11-themes/qtcurve-0.62.2/work/QtCurve-KDE3-0.62.2/style/qtcurve.cpp:
In member function `virtual int QtCurveStyle::pixelMetric(QStyle::PixelMetric,
const QWidget*) const':
/var/tmp/portage/x11-themes/qtcurve-0.62.2/work/QtCurve-KDE3-0.62.2/style/qtcurve.cpp:5763:
Warnung: converting nach »int« von »double«
/var/tmp/portage/x11-themes/qtcurve-0.62.2/work/QtCurve-KDE3-0.62.2/common/common.h:64:
Warnung: »shading« definiert, aber nicht verwendet
make[2]: *** [config/CMakeFiles/kstyle_qtcurve_config.dir/exportthemedialog.o]
Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
make[2]: *** [config/CMakeFiles/kstyle_qtcurve_config.dir/qtcurveconfig.o]
Fehler 1
make[1]: *** [config/CMakeFiles/kstyle_qtcurve_config.dir/all] Fehler 2
make[1]: *** Warte auf noch nicht beendete Prozesse...
make[2]: *** [style/CMakeFiles/qtcurve.dir/qtcurve.o] Fehler 1
make[1]: *** [style/CMakeFiles/qtcurve.dir/all] Fehler 2
make: *** [all] Fehler 2

--------------------------------------------------------------------

emerge --info:

Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-3.4.6, glibc-2.6.1-r0,
2.6.28-gentoo-r3 i686)
=================================================================
System uname:
Linux-2.6.28-gentoo-r3-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-glibc2.0
Timestamp of tree: Sat, 14 Mar 2009 21:45:01 +0000
ccache version 2.3 [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r14, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.3
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.4.3-r4, 1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/lib/fax /usr/lib/mozilla/defaults/pref
/usr/share/config /var/bind /var/lib/hsqldb /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo
/etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="digest distlocks fixpackages parallel-fetch protect-owned sandbox
sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://gentoo.mirror.solnet.ch
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.etf.bg.ac.yu/gentoo
http://gentoo.inode.at/ http://mirror.uni-c.dk/pub/gentoo/
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://gentoo.intergenia.de"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="de de_DE"
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/portage/local/layman/pro-audio
/usr/portage/local/layman/synce /usr/portage/local/layman/berkano
/usr/portage/local/layman/gentopia /usr/portage/local/layman/gentoo-china
/usr/portage/local/layman/voip /usr/portage/local/layman/sunrise
/usr/portage/local/layman/rbu /usr/portage/local/layman/sabayon
/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X aac aalib accessibility acl acpi ads alsa avi bash-completion
berkdb branding browserplugin bzip2 cdr cli cracklib crypt css cups dbus dga
directfb dlloader dri dvb dvd dvdr encode ethereal evo exif fam fax fbcon
ffmpeg firefox flac flash foomaticdb fortran gatos gd gdbm ggi gnokii gnome
gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile iconv idn imagemagick imap imlib
ipv6 isdnlog java jikes joystick jpeg jpeg2k kde kdeenablefinal kerberos kicker
kipi lirc lm_sensors logitech-mouse logrotate mad maildir matrox mbox mcal midi
mmx motif mp3 mpeg mplayer mudflap nas ncurses network newspr nls nocd nptl
nptlonly nsplugin offensive ogg oggvorbis openexr opengl openmp oss pam pcre
pda pdf pdflib perl pertty png ppds pppd python qt qt-copy quicktime rdesktop
readline reflection samba scanner sdl session skey slp sms snmp spell spf spl
sse2 sse3 ssl subtitles svgalib sysfs tcpd theora tiff truetype unicode usb v4l
vcd vorbis win32codecs x86 xcomposite xinerama xorg xosd xscreensaver xv zlib"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1
emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m
maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
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
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" ELIBC="glibc" FRITZCAPI_CARDS="fcpci" INPUT_DEVICES="evdev
keyboard mouse aiptek" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk
hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de de_DE" USERLAND="GNU"
VIDEO_CARDS="fbdev nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #5 From Andy Dalton 2009-03-15 14:49:34 0000 -------
Created an attachment (id=185087) [details]
emerge --info

Sorry -- I thought the 'environment' file had what you needed.  Here's the
emerge --info output that you requested.

------- Comment #6 From Andy Dalton 2009-03-15 14:50:57 0000 -------
I have attached the output of emerge --info.  Reopening this bug as was
requested.  Please let me know if you need any additional information.  Thanks!

------- Comment #7 From Stefan Werner 2009-03-15 15:47:31 0000 -------
While building qtcurve cmake executes something like

   /usr/bin/c++  DEFINES  -DNDEBUG -Dkstyle_qtcurve_config_EXPORTS -O2  [...]

and we get the error

   DEFINES: No such file or directory

On 03/03/09 I build qtcurve without any problems. The only thing that might
have changed since then is "/usr/portage/eclass/cmake-utils.eclass", which is
updated by "emerge --sync" and used by all qtcurve ebuilds

So I did a dirty hack and removed "<DEFINES>" from lines 213 and 215 and
qtcurve builds just great.

------- Comment #8 From Ben de Groot 2009-03-15 18:18:33 0000 -------
Can you sync and try again? I can't reproduce this here. 
I also recommend using gcc >=4.1, and cmake >=2.6. (It is always a good idea to
use the latest stable versions.)

------- Comment #9 From Stefan Werner 2009-03-15 18:50:15 0000 -------
You're right!

[ebuild     U ] dev-util/cmake-2.6.2-r1 [2.4.8]
fixes the problem for me.

Thanks!

------- Comment #10 From Rafał Mużyło 2009-04-09 10:38:51 0000 -------
*** Bug 265483 has been marked as a duplicate of this bug. ***

------- Comment #11 From Frossie 2009-04-10 05:32:06 0000 -------
(In reply to comment #10)
> *** Bug 265483 has been marked as a duplicate of this bug. ***
> 

Following advice in aforementioned duplicate Bug 265483, I bootstrapped a
solution to this problem (which I was still having in cmake 2.6.3-r1) by
removing the DEFINES from the eclass as described in this bug's comment #7,
building successfully, then re-emerging and rebuilding. For reasons that make
my little brain hurt, this actually seemed to work.

------- Comment #12 From Ben de Groot 2009-04-10 11:30:35 0000 -------
(In reply to comment #11)
> Following advice in aforementioned duplicate Bug 265483, I bootstrapped a
> solution to this problem (which I was still having in cmake 2.6.3-r1) 

What's your gcc version? Actually, include your emerge --info. As we cannot
reproduce this problem.

------- Comment #13 From brad 2009-04-11 23:05:03 0000 -------
(In reply to comment #12)
> (In reply to comment #11)
> > Following advice in aforementioned duplicate Bug 265483, I bootstrapped a
> > solution to this problem (which I was still having in cmake 2.6.3-r1) 
> What's your gcc version? Actually, include your emerge --info. As we cannot
> reproduce this problem.

(In reply to comment #7)
> While building qtcurve cmake executes something like
>    /usr/bin/c++  DEFINES  -DNDEBUG -Dkstyle_qtcurve_config_EXPORTS -O2  [...]
> and we get the error
>    DEFINES: No such file or directory
> On 03/03/09 I build qtcurve without any problems. The only thing that might
> have changed since then is "/usr/portage/eclass/cmake-utils.eclass", which is
> updated by "emerge --sync" and used by all qtcurve ebuilds
> So I did a dirty hack and removed "<DEFINES>" from lines 213 and 215 and
> qtcurve builds just great.

(In reply to comment #7)
I had the exact same issue with 2.6.3-r1 and removed the 2 instances of
<DEFINES> around line 247 and it installed like a champ.
For those who fear editing code, simeply create a .old of the original file and
locate the terms "<DEFINES>" and delete them and it should install like a
champ!