Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99344 - error compiling x11-libs/wxGTK-2.6.1
Summary: error compiling x11-libs/wxGTK-2.6.1
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
: 114790 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-17 10:07 UTC by Marco
Modified: 2007-02-02 07:02 UTC (History)
3 users (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 Marco 2005-07-17 10:07:41 UTC
There seems to be a missing configure flag.  As per this post:

  http://thread.gmane.org/gmane.comp.lib.wxwidgets.general/31948

Adding --disable-precomp-headers allows wxWidgets to compile properly.  I did
this in /var/tmp/portage/wxGTK-2.6.1/work/wxWidgets-2.6.1/ and wxWidgets-2.6.1
compiled properly on my system.  I don't know how to add the extra configure
flag to the ebuild, as modifying the ebuild breaks the md5 and
EXTRA_ECONF="--disable-precomp-headers" emerge wxGTK does not work.

Reproducible: Always
Steps to Reproduce:
1. emerge wxGTK
2.
3.

Actual Results:  
./bk-deps i686-pc-linux-gnu-g++ -c -o basedll_datetime.o -I.pch/wxprec_basedll
-D__WXGTK__            -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE_BASE=1 -fPIC
-DPIC -DWX_PRECOMP -DNO_GCC_PRAGMA -DGTK_NO_CHECK_CASTS
-Ilib/wx/include/gtk2-ansi-release-2.6
-I/var/tmp/portage/wxGTK-2.6.1/work/wxWidgets-2.6.1/include -DXTHREADS
-D_REENTRANT -DXUSE_MTSAFE_API -pthread -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D_LARGEFILE_SOURCE=1 -O2 -O2 -mcpu=i686 -pipe -pthread -I/usr/include/SDL
-D_REENTRANT -Wall -Wno-ctor-dtor-privacy
/var/tmp/portage/wxGTK-2.6.1/work/wxWidgets-2.6.1/src/common/datetime.cpp
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
/var/tmp/portage/wxGTK-2.6.1/work/wxWidgets-2.6.1/src/common/datetime.cpp:1:
sorry, unimplemented: had to relocate PCH
/var/tmp/portage/wxGTK-2.6.1/work/wxWidgets-2.6.1/src/common/datetime.cpp:1:
confused by earlier errors, bailing out
make: *** [basedll_datetime.o] Error 1
+ diefunc configure_build 46 2 'emake failed'
+ local funcname=configure_build lineno=46 exitcode=2
+ shift 3
+ echo

+ echo '!!! ERROR: x11-libs/wxGTK-2.6.1 failed.'
!!! ERROR: x11-libs/wxGTK-2.6.1 failed.
+ echo '!!! Function configure_build, Line 46, Exitcode 2'
!!! Function configure_build, Line 46, Exitcode 2
+ echo '!!! emake failed'
!!! emake failed
+ echo '!!! If you need support, post the topmost build error, NOT this status
message.'
!!! If you need support, post the topmost build error, NOT this status message.
+ echo

+ exit 1



Portage 2.0.51.22-r1 (default-linux/x86/2005.0/2.4, gcc-3.4.4, glibc-2.3.5-r0,
2.4.25-gentoo-r5-ieee1394 i686)
=================================================================
System uname: 2.4.25-gentoo-r5-ieee1394 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.16
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.11
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
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.4.3-r4, 1.5.18-r1
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
http://mirror.datapipe.net/gentoo http://mirrors.tds.net/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac aalib adns alsa apm avi berkdb bitmap-fonts caps cdr crypt cups
curl divx4linux dts dv dvd dvdread emboss encode fam fame ffmpeg flac foomaticdb
fortran gatos gd gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 ieee1394
imagemagick imlib ipv6 jack jack-tmpfs jpeg kde libg++ libwww live lzo mad
matroska mikmod mjpeg mmx mng motif mozilla mp3 mpeg ncurses nls ogg oggvorbis
opengl oss pam pdflib perl plotutils png python quicktime readline real scanner
sdl slang spell sqlite sse sse2 ssl subtitles svg svga tcltk tcpd tetex theora
tiff toolbar truetype truetype-fonts type1-fonts unicode v4l v4l2 vorbis x86
xine xml2 xmms xv xvid xvmc zlib video_cards_radeon userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Alexandru Toma 2005-07-19 11:33:04 UTC
It emerged just fine for me.

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20040808-r1, 2.6.11-gentoo-r5 i686)
=================================================================
System uname: 2.6.11-gentoo-r5 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.16
dev-lang/python:     2.3.4-r1
sys-apps/sandbox:    1.2.10
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-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.roedu.net/pub/mirrors/gentoo.org
http://gentoo.oregonstate.edu"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync1.ro.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aalib alsa apm avi bitmap-fonts cdr crypt cups curl
emboss encode faac faad fam flac foomaticdb fortran gd geoip gif gphoto2 gpm
gtk2 guile imlib imlib2 jikes jpeg lcms libcaca libwww lzo mad matroska mikmod
mmx mmx2 mmxext mng motif mp3 mpeg mysql ncurses network nls no_wxgtk1 ogg
oggvorbis opengl pam png postgres python quicktime readline rtc ruby sdl slang
spell sse ssl tcpd tga theora tiff truetype truetype-fonts type1-fonts vorbis
xchatdccserver xml2 xmms xprint xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-01-15 03:40:31 UTC
*** Bug 114790 has been marked as a duplicate of this bug. ***
Comment 3 MAL 2006-02-14 15:00:52 UTC
I'm still seeing this with x11-libs/wxGTK-2.6.2-r1

<snip>
PRECOMP -DNO_GCC_PRAGMA -DGTK_NO_CHECK_CASTS -Ilib/wx/include/gtk2-ansi-release-2.6 -I/var/tmp/portage/wxGTK-2.6.2-r1/work/wxWidgets-2.6.2/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -O2 -march=k6-2 -mtune=k6-2 -O2 -pipe -pthread -I/usr/include/SDL -D_REENTRANT -Wall -Wundef -Wno-ctor-dtor-privacy /var/tmp/portage/wxGTK-2.6.2-r1/work/wxWidgets-2.6.2/src/unix/stackwalk.cpp
/var/tmp/portage/wxGTK-2.6.2-r1/work/wxWidgets-2.6.2/src/unix/stackwalk.cpp:1: sorry, unimplemented: had to relocate PCH
/var/tmp/portage/wxGTK-2.6.2-r1/work/wxWidgets-2.6.2/src/unix/stackwalk.cpp:1: confused by earlier errors, bailing out
make: *** [basedll_stackwalk.o] Error 1
<snip>

What can I try?  emerge -e world isn't really an answer on a K6-2.
I will try rebuilding with --disable-precomp-headers

emerge info:

Portage 2.0.54 (default-linux/x86/no-nptl/2.4, gcc-3.4.4, glibc-2.3.5-r2, 2.4.28-gentoo-r9 i586)
=================================================================
System uname: 2.4.28-gentoo-r9 i586 AMD-K6(tm) 3D processor
Gentoo Base System version 1.6.14
distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
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.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=k6-2 -mtune=k6-2 -O2 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k6-2 -mtune=k6-2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://192.168.0.62/distfiles/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.blueyonder.co.uk http://mirror.datapipe.net/gentoo http://mirror.uni-c.dk/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apache2 apm audiofile avi berkdb bitmap-fonts bzip2 crypt cups curl dga directfb divx4linux eds emboss encode esd exif expat fam fbcon flac foomaticdb gd gdbm ggi gif glut gpm gstreamer gtk gtk2 gtkhtml idn imagemagick imlib java javascript jpeg lcms libg++ libwww live lzo mad maildir matroska matrox mikmod mmx mng motif mp3 mpeg msn mysql nas ncurses network nls ogg opengl operanom2 oscar oss pam pcre pdflib perl pic png python qt quicktime readline rtc samba sdl slang speex spell ssl tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts usb v4l v4l2 vorbis wmf wxgtk1 wxwindows xanim xine xml xml2 xmms xpm xv xvid yahoo zlib video_cards_matrox userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 4 MAL 2006-02-15 02:39:49 UTC
I confirm that adding --disable-precomp-headers to the ebuild configure line fixes this problem for me.
How can I discover what caused it in the first place?
Comment 5 Mart Raudsepp gentoo-dev 2006-04-10 16:36:58 UTC
I would point towards the toolchain.
This exact same problem appears with mingw32 compiler, where precompiled headers are misimplemented or some such, but I've never seen this on GNU/Linux.
Any advancements in tracking the problem down from your part?
Comment 6 Mart Raudsepp gentoo-dev 2006-04-10 16:42:14 UTC
bug #104228 cites some possible problems with gcc-3.4 and precompiled headers. I wonder if this was what could have bitten you
Comment 7 Mart Raudsepp gentoo-dev 2006-09-24 04:51:59 UTC
--disable-precomp-headers sneaked in the wxlib.eclass some 3-4 months ago, so all wxGTK-2.6* prior to 2.6.3.3 don't use precompiled headers accidentally.
I'm leaving it at that in the eclass.
I am putting 2.6.3.3 in the tree shortly, which doesn't use the eclass in, and uses precompiled headers again. I've never had issues with it, and what issues there might have been for some toolchains, these should be fixed with gcc-4.1.x.

Please reopen if this still fails with wxGTK-2.6.3.3 and onwards.
Comment 8 DC 2007-02-02 06:20:50 UTC
I get the error when I try to build wxGTK-2.6.3.3. Any update on tracking down this bug?

./bk-deps i686-pc-linux-gnu-g++ -c -o basedll_appbase.o -I.pch/wxprec_basedll -D__WXGTK__            -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE_BASE=1 -fPIC -DPIC -DWX_PRECOMP -DNO_GCC_PRAGMA -DGTK_NO_CHECK_CASTS -Ilib/wx/include/gtk2-ansi-release-2.6 -I/var/tmp/portage/wxGTK-2.6.3.3/work/wxPython-src-2.6.3.3/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/X11R6/include -O2 -fno-strict-aliasing -march=pentium3 -O3 -fomit-frame-pointer -pipe -fno-strict-aliasing -pthread -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wall -Wundef -Wno-ctor-dtor-privacy /var/tmp/portage/wxGTK-2.6.3.3/work/wxPython-src-2.6.3.3/src/common/appbase.cpp
/var/tmp/portage/wxGTK-2.6.3.3/work/wxPython-src-2.6.3.3/src/common/appbase.cpp:1: fatal error: had to relocate PCH
compilation terminated.

This is on gcc-4.1.1.
Comment 9 Mart Raudsepp gentoo-dev 2007-02-02 06:32:03 UTC
Output of emerge --info please..
Comment 10 DC 2007-02-02 07:02:20 UTC
(In reply to comment #9)
> Output of emerge --info please..
> 

Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r6-grsec i686)
=================================================================
System uname: 2.6.18-gentoo-r6-grsec i686 Intel(R) Pentium(R) III Mobile CPU      1000MHz
Gentoo Base System version 1.12.6
Last Sync: Fri, 02 Feb 2007 05:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/nano /var/lib"
CONFIG_PROTECT_MASK="/etc/X11/app-defaults /etc/X11/xinit /etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/postfix/sample /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /usr/share/X11/xkb"
CXXFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirrors.tds.net/gentoo http://gentoo.mirrors.pair.com/"
LANG="en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi adns aim alsa alsa_cards_maestro3 alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 bash-completion bzip2 cairo cameras_spca50x caps cdparanoia cdr cracklib crypt cscope cups dga dio dlloader dts dvd elibc_glibc encode exif fam fastcgi fbcon firefox flac gcj gif glut gmp gpm gs gtk gtk2 hardenedphp icq idea idn ieee1394 imagemagick imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 irc ithreads jabber javascript jbig jce jpeg jpeg2k kerberos kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text lcms libg++ libwww lzo lzw mad madwifi maildir mbox memlimit mime mmap mmx mng mp3 mpeg mpeg2 mpeg4 mplayer msn ncurses nptl nsplugin ntlm nvidia ogg oggvorbis opengl oscar pam pcmcia pcre pdf pic png posix ppds quicktime readline real reiserfs rtc samba sasl sdl sharedmem skey smime sndfile sockets spell sse ssl svg tcpd theora threads tiff truetype udev unicode urandom usb userland_GNU vhosts video_cards_nvidia video_cards_vesa vorbis win32codecs wmf x86 xface xine xinerama xml2 xpm xprint xv xvid xvmc yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS