Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21824 - Wine-20030508 fails to compile: Unknown option '-pthread' (with kde-cvs)
Summary: Wine-20030508 fails to compile: Unknown option '-pthread' (with kde-cvs)
Status: RESOLVED DUPLICATE of bug 24385
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on: 24385
Blocks:
  Show dependency tree
 
Reported: 2003-05-28 06:20 UTC by Sander Balkenende
Modified: 2005-07-17 13:06 UTC (History)
4 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 Sander Balkenende 2003-05-28 06:20:51 UTC
When trying to emerge wine, it fails at a certain point. I have KDE from cvs
installed with the latest danamrak ebuilds besides the newest kde from the
stable tree.

Reproducible: Always
Steps to Reproduce:
1. emerge wine
Actual Results:  
...
cd `dirname winmm/winearts/__depend__` && make depend
make[2]: Entering directory `/var/tmp/portage/wine-20030508/work/wine-20030508/d
lls/winmm/winearts'
../../../tools/makedep -I. -I. -I../../../include -I../../../include -I/usr/kde/
cvs/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -
C. arts.c audio.c
Unknown option '-pthread'
Usage: ../../../tools/makedep [options] [files]
Options:      
   -Idir   Search for include files in directory 'dir'
   -Cdir   Search for source files in directory 'dir'
   -fxxx   Store output in file 'xxx' (default: Makefile)
   -sxxx   Use 'xxx' as separator (default: "### Dependencies")
make[2]: *** [depend] Error 1
make[2]: Leaving directory
`/var/tmp/portage/wine-20030508/work/wine-20030508/dlls/winmm/winearts'
make[1]: *** [winmm/winearts/__depend__] Error 2
make[1]: Leaving directory `/var/tmp/portage/wine-20030508/work/wine-20030508/dlls'
make: *** [dlls/__depend__] Error 2

!!! ERROR: app-emulation/wine-20030508 failed.
!!! Function src_compile, Line 62, Exitcode 2
!!! (no error message)

Expected Results:  
compile correctly

Portage 2.0.48 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) XP 1700+
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/cvs/share/config
/usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses
nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb
slang readline arts bonobo svga java guile X sdl tcpd pam libwww ssl perl python
esd imlib oggvorbis gnome gtk qt kde motif opengl aalib acpi alsa -apm cdr dga
fbcon mozilla mysql pic sse tcltk tetex tiff usb wmf -gpm moznoirc moznomail
moznocompose"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe
-fomit-frame-pointer"
CXXFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe
-fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="no"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage/"
FEATURES="sandbox ccache"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-06-03 15:42:02 UTC
do you have perl compiled with thread support ?

this isn't working for many ebuilds
Comment 2 Sander Balkenende 2003-06-03 16:23:15 UTC
As far as I know, I didn't do anything special with perl. I just emerged it. I am not a 
developer. Maybe it is compiled with thread support: 
====== 
sander@herman sander $ perl -V | grep thread 
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef 
    libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lcrypt -lutil 
    perllibs=-lpthread -lnsl -ldl -lm -lc -lcrypt -lutil 
====== 
How do I compile perl without thread support? 
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-06-24 15:21:07 UTC
#USE="-threads" emerge perl 
Comment 4 Alex Veber (RETIRED) gentoo-dev 2003-06-26 09:23:04 UTC
this has nothing to do with perl threads, it a problem with kde-cvs, i get it here and i dont use 
perl threads.  
removing "-pthread" from the winearts Makefile fixes it without any known side effects. 
Comment 5 Dan Armak (RETIRED) gentoo-dev 2003-07-13 05:45:32 UTC
I get that too. Will remove -pthread and see if it works. If it does, we should make 
the wine ebuild remove pthread. Is it needed to kde <=3.1.x ? 
Comment 6 Dan Armak (RETIRED) gentoo-dev 2003-07-13 05:48:43 UTC
Whoops - my mistake - artsc-config --libs includes -pthread in its output, which os 
obviously wrong (it should only be in the --libs output), hence the unknown option 
error. I'll look into fixing it in the cvs arts ebuild. 
Comment 7 Dan Armak (RETIRED) gentoo-dev 2003-07-13 06:31:42 UTC
Traced it to a problem in the glib2 .pc. Cf bug #24385 which I've just submitted  
about it. Can't do anything further on this myself atm as I'm leaving linuxtag for  
home but won't get there for a couple of days.  
Comment 8 Alex Veber (RETIRED) gentoo-dev 2003-07-13 12:09:50 UTC
hmm... 
alex@SUKA alex $ artsc-config --libs 
-L/usr/kde/cvs/lib -ldl -lartsc -lpthread -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 
 
no -pthread here and I still get the error while emerging wine, kde-cvs compiled about a week 
ago, I think I had glib 2.2.2 when I emerged kde-cvs but I am not sure.   
Comment 9 Alex Veber (RETIRED) gentoo-dev 2003-07-13 12:11:19 UTC
Doh, 
alex@SUKA alex $ artsc-config --cflags 
-I/usr/kde/cvs/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
 
here it is... 
Comment 10 Martin Holzer (RETIRED) gentoo-dev 2003-07-13 15:32:57 UTC
how about just mark this as dupe of bug #24385 ?
Comment 11 Caleb Tennis (RETIRED) gentoo-dev 2003-07-31 18:30:16 UTC

*** This bug has been marked as a duplicate of 24385 ***