Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100205 - wxGTK 2.6.x compile error
Summary: wxGTK 2.6.x compile error
Status: RESOLVED INVALID
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:
Depends on:
Blocks:
 
Reported: 2005-07-25 04:33 UTC by Pawel Madej aka Nysander
Modified: 2005-08-28 10:22 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 Pawel Madej aka Nysander 2005-07-25 04:33:55 UTC
wxGTK 2.6.x crash every time i want it to compile it does not matter if it is
version 2.6.1 or 2.6.0-r1. Results are the same.


Reproducible: Always
Steps to Reproduce:
1. emerge sync
2. emerge =wxGTK-2.6.1
3. emerge =wxGTK-2.6.0-r1

Actual Results:  
./bk-make-pch .pch/wxprec_basedll/wx/wxprec.h.gch wx/wxprec.h i686-pc-linux-gnu-
g++ -I.pch/wxprec_basedll -D__WXGTK__            -DwxUSE_GUI=0 -DWXMAKINGDLL_BAS
E -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.0-r1/work/wxW
idgets-2.6.0/include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -pthread -I/usr/i
nclude/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/includ
e/glib-2.0 -I/usr/lib/glib-2.0/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_
LARGEFILE_SOURCE=1 -I/usr/X11R6/include -D_IODBC_ -O2 -O3 -march=pentium3 -m32 -
pipe -msse -mmmx -s -ffast-math -funroll-loops -mfpmath=sse,387 -ftracer -fforce
-addr -fprefetch-loop-arrays -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS -DNDEBUG
 -DG_DISABLE_ASSERT -z combreloc -pthread -I/usr/include/SDL -D_REENTRANT -Wall 
-Wno-ctor-dtor-privacy
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../crt1.o: In function `_start':
init.c:(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [.pch/wxprec_basedll/wx/wxprec.h.gch] B
Comment 1 Pawel Madej aka Nysander 2005-07-25 04:33:55 UTC
wxGTK 2.6.x crash every time i want it to compile it does not matter if it is
version 2.6.1 or 2.6.0-r1. Results are the same.


Reproducible: Always
Steps to Reproduce:
1. emerge sync
2. emerge =wxGTK-2.6.1
3. emerge =wxGTK-2.6.0-r1

Actual Results:  
./bk-make-pch .pch/wxprec_basedll/wx/wxprec.h.gch wx/wxprec.h i686-pc-linux-gnu-
g++ -I.pch/wxprec_basedll -D__WXGTK__            -DwxUSE_GUI=0 -DWXMAKINGDLL_BAS
E -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.0-r1/work/wxW
idgets-2.6.0/include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -pthread -I/usr/i
nclude/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/includ
e/glib-2.0 -I/usr/lib/glib-2.0/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_
LARGEFILE_SOURCE=1 -I/usr/X11R6/include -D_IODBC_ -O2 -O3 -march=pentium3 -m32 -
pipe -msse -mmmx -s -ffast-math -funroll-loops -mfpmath=sse,387 -ftracer -fforce
-addr -fprefetch-loop-arrays -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS -DNDEBUG
 -DG_DISABLE_ASSERT -z combreloc -pthread -I/usr/include/SDL -D_REENTRANT -Wall 
-Wno-ctor-dtor-privacy
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../crt1.o: In function `_start':
init.c:(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [.pch/wxprec_basedll/wx/wxprec.h.gch] B³±d 1

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

Expected Results:  
normal emerge result 

Gentoo Base System version 1.6.13
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.1
1-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Pentium III (Coppermine)
ccache version 2.4 [disabled]
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.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -m32 -pipe -msse -mmmx -s -ffast-math -funroll-loops
 -mfpmath=sse,387 -ftracer -fforce-addr -fprefetch-loop-arrays -DG_DISABLE_CHECK
S -DG_DISABLE_CAST_CHECKS -DNDEBUG -DG_DISABLE_ASSERT -z combreloc -fomit-frame-
pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1
1/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/initng /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -m32 -pipe -msse -mmmx -s -ffast-math -funroll-loo
ps -mfpmath=sse,387 -ftracer -fforce-addr -fprefetch-loop-arrays -DG_DISABLE_CHE
CKS -DG_DISABLE_CAST_CHECKS -DNDEBUG -DG_DISABLE_ASSERT -z combreloc"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distclean distlocks sandbox sfperm sfperms strict userpriv 
usersandbox"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://ftp.belnet.be/mirror/rsync.g
entoo.org/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo  http://ftp-stud
.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.ITDNet.net/gentoo"
LANG="pl"
LC_ALL="pl_PL"
LINGUAS="pl"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa apache2 apm avi berkdb bitmap-fonts bzlib crypt cups 
curl dba dbase divx4linux dlz emboss encode esd exif foomaticdb fortran ftp gd g
dbm gif gpm gtk gtk2 iconv imlib irda java jikes jpeg junit ldap libg++ libwww l
ocal mad mhash mikmod mime mmx mmx2 motif mozilla mozsvg mp3 mpeg mpm-worker mys
ql ncurses nls odbc ogg oggvorbis opengl openssh oss pam pcntl pcre pdflib perl 
php pic png posix postgres python qt quicktime readline sdl session simplexml sl
ang sndfile soap sockets spell spl sse2 ssl svg svga tcpd threads tiff tokenizer
 truetype truetype-fonts trutype type1-fonts unicode usb vhosts vorbis xchattext
 xml xml2 xmlrpc xpm xsl xv xvid zlib linguas_pl userland_GNU kernel_linux elibc
_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY
Comment 2 Rob Cakebread (RETIRED) gentoo-dev 2005-07-25 10:04:18 UTC
Please try with sane CFLAGS and report back, i.e. -O3 -march=pentium3 -pipe
Comment 3 Pawel Madej aka Nysander 2005-07-26 23:50:45 UTC
With these flags: C[XX]FLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer
-fforce-addr" it succeeded compilation.
Comment 4 Rob Cakebread (RETIRED) gentoo-dev 2005-08-28 10:22:01 UTC
Thanks, closing, as it works with those cflags.