Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259083 - compile of app-emulation/wine-1.1.{14,15} fails with CFLAGS="-march=core2 -g -O2" on gcc-4.3.3
Summary: compile of app-emulation/wine-1.1.{14,15} fails with CFLAGS="-march=core2 -g ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-15 13:34 UTC by emil karlson
Modified: 2009-03-28 08:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,842.46 KB, text/plain)
2009-02-15 13:37 UTC, emil karlson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emil karlson 2009-02-15 13:34:34 UTC
compile of app-emulation/wine-1.1.{14,15} fails with CFLAGS="-march=core2 -g -O2" on gcc-4.3.3

Spent some time testing different CFLAGS -march=core2 -g -O2 seem all to be relevant.

LDFLAGS="" seems have no effect on this problem.

Reproducible: Always

Steps to Reproduce:
CFLAGS="-march=core2 -g -O2" emerge -1 "=app-emulation/wine-1.1.15"

Actual Results:  
make[2]: Entering directory `/usr/local/tmp/portage/app-emulation/wine-1.1.15/work/wine-1.1.15/dlls/mscat32'
x86_64-pc-linux-gnu-gcc -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits -Wpointer-arith  -march=core2 -g -O2  -o main.o main.c
x86_64-pc-linux-gnu-gcc -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits -Wpointer-arith  -march=core2 -g -O2  -o format.o format.c
../../tools/winegcc/winegcc -b x86_64-pc-linux-gnu -m32 -B../../tools/winebuild -shared ./mscat32.spec    main.o       -o mscat32.dll.so  -lwintrust -lkernel32  ../../libs/port/libwine_port.a  -Wl,--as-needed -Wl,-O1 
x86_64-pc-linux-gnu-nm: mscat32.EJLOjS.o: no symbols
x86_64-pc-linux-gnu-gcc -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -D_KERNEL32_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits -Wpointer-arith  -march=core2 -g -O2  -o resource.o resource.c
main.o: In function `DllMain':
/usr/local/tmp/portage/app-emulation/wine-1.1.15/work/wine-1.1.15/dlls/mscat32/main.c:38: undefined reference to `DisableThreadLibraryCalls'
../../dlls/winecrt0/libwinecrt0.a(stub.o): In function `__wine_spec_unimplemented_stub':
/usr/local/tmp/portage/app-emulation/wine-1.1.15/work/wine-1.1.15/dlls/winecrt0/stub.c:35: undefined reference to `RaiseException'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: mscat32.dll.so: hidden symbol `RaiseException' isn't defined
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
winegcc: x86_64-pc-linux-gnu-gcc failed
make[2]: *** [mscat32.dll.so] Error 2
make[2]: Leaving directory `/usr/local/tmp/portage/app-emulation/wine-1.1.15/work/wine-1.1.15/dlls/mscat32'
make[1]: *** [mscat32] Error 2
make[1]: *** Waiting for unfinished jobs....



Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.29-rc4-git7 x86_64)
=================================================================
System uname: Linux-2.6.29-rc4-git7-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Sun, 15 Feb 2009 10:45:02 +0000
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.3.7
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -g -Dliputtassa_emil"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=native -g -Dliputtassa_emil"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,--as-needed -Wl,-O1"
LINGUAS="en fi en_GB"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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="/usr/local/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/layman/science /usr/local/portage/omat"
SYNC="rsync://trumpetti.atm.tut.fi/gentoo-portage/"
USE="R X a52 aac acl acpi alisp alsa amd64 amr ansi bash-completion berkdb bluetooth branding bzip2 cairo cblas cdr cli clisp cracklib crypt cscope css curl dbus dirac divx doc dri dvd dvdr dvdread eds elliptic emboss encode evo extra fam ffmpeg fftw firefox flac fontconfig fontforge fortran fortran95 ftp galois games gd gdbm gif git glib gmp gnuplot gnutls gpm graphics gstreamer gtk hal iceweasel iconv idn image imagemagick imlib inotify ipv6 isdnlog ithreads java javascript jpeg jpeg2k kde kdehiddenvisibility kipi kpathsea lapack laptop latex libnotify lzma lzo mad matroska md5sum midi mikmod mmap mmx modplug mono moonlight mouse mp2 mp3 mp4 mp4live mpeg mpeg2 mpi mpi_njtree mplayer mudflap multilib multitarget musepack music mysql ncurses net netpbm network new-clx npp nptl nptlonly nsplugin ntp ogg opengl openmp pam pcre pdf perl perlsuid plotutils png ppds pppd profile ps pstricks publishers python qt3 qt3support qt4 quicktime readline realmedia redland reflection rtsp samba schroedinger science sdl sdl-image server session smp sparse spl sse sse2 ssl ssse3 startup-notification stream subversion supernodal svg svm symlink sysfs tcpd teletext tex4ht theora threads threadsafe threadsonly tiff timidity toolbar trace truetype unicode usb vim vim-syntax vorbis wav webkit wma wmp x264 xattr xcb xcomposite xine xml xmp xorg xosd xpm xrandr xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fi en_GB" USERLAND="GNU" VIDEO_CARDS="intel radeon i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 emil karlson 2009-02-15 13:37:05 UTC
Created attachment 182123 [details]
build log
Comment 2 SpanKY gentoo-dev 2009-03-01 09:05:28 UTC
sync up and try again.  if it still fails, try with CFLAGS='-O1'.
Comment 3 emil karlson 2009-03-01 18:17:11 UTC
No can do.
Comment 4 emil karlson 2009-03-10 16:42:15 UTC
(In reply to comment #2)
> sync up and try again.  if it still fails, try with CFLAGS='-O1'.
> 

Yup the bug still seems to be there CFLAGS="-O1" also compiles. My typical CFLAGS="-g -march=native -O2" fail to compile wine-1.1.16.
Comment 5 emil karlson 2009-03-28 08:50:04 UTC
Seems to be fixed in 1.1.18