Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258893 - dev-lang/ruby-1.8.*[-threads] with dev-lang/tk[threads] - "PTHREAD SUPPORT MODE ERROR"
Summary: dev-lang/ruby-1.8.*[-threads] with dev-lang/tk[threads] - "PTHREAD SUPPORT MO...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
: 260054 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-13 23:50 UTC by Jeroen Roovers (RETIRED)
Modified: 2009-02-24 17:11 UTC (History)
2 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 Jeroen Roovers (RETIRED) gentoo-dev 2009-02-13 23:50:50 UTC
In this configuration:

dev-lang/ruby-1.8.* USE=-threads
dev-lang/tk USE=threads

I get the following fatal warning from ruby's build system:

[...]
compiling tk
*****************************************************************************
**
** PTHREAD SUPPORT MODE ERROR:
**
**   Ruby is not compiled with --enable-pthread, but your Tcl/Tk
**   library seems to be compiled with pthread support. This
**   combination may cause frequent hang or segmentation fault
**   errors when Ruby/Tk is working. We recommend that you NEVER
**   create the library with such a combination of pthread support.
**
**   Please recompile Ruby with the "--enable-pthread" configure option
**   or recompile Tcl/Tk with the "--disable-threads" configure option.
**
*****************************************************************************
compiling tk/tkutil
[...]

This should probably be formalised in the dev-lang/ruby-1.8 ebuilds themselves.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2009-02-13 23:54:54 UTC
(In reply to comment #0)
> I get the following fatal warning from ruby's build system:

Er, sorry - that should have been "NON-fatal". :)
Comment 2 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-02-23 14:18:49 UTC
We now check for this before compilation starts and display a message why the same useflags are needed, thanks.
Comment 3 urcindalo 2009-02-24 09:08:06 UTC
(In reply to comment #2)
> We now check for this before compilation starts and display a message why the
> same useflags are needed, thanks.
> 

The checking does not work quite well. In my case I cant't upgrade to stable dev-lang/ruby-1.8.6_p287-r12 for amd64 even though *both* tk and ruby are installed without threads support, and threads is not enabled for any of them at emerge time:

===
$ eix -I dev-lang/tk
[I] dev-lang/tk
     Available versions:  8.4.15-r1 8.4.18 ~8.4.18-r1 ~8.4.19-r1 [M]~8.5.1 [M]~8.5.6 {debug threads truetype}
     Installed versions:  8.4.18(12:33:54 13/01/09)(-debug -threads)
     Homepage:            http://www.tcl.tk/
     Description:         Tk Widget Set

$ eix -I ruby
[I] app-admin/eselect-ruby
     Available versions:  (~)20081211 (~)20081227
     Installed versions:  20081227(20:02:35 15/01/09)
     Homepage:            http://www.gentoo.org
     Description:         Manages multiple Ruby versions

[U] dev-lang/ruby
     Available versions:  (1.8)  1.8.6_p114 1.8.6_p287-r1 (~)1.8.6_p287-r3 1.8.6_p287-r4 1.8.6_p287-r5 (~)1.8.6_p287-r10 (~)1.8.6_p287-r11 (~)1.8.6_p287-r12 [M](~)1.8.7_p72-r1 [M](~)1.8.7_p72-r2
        {berkdb cjk debug doc emacs examples gdbm ipv6 rubytests socks5 ssl threads tk xemacs}
     Installed versions:  1.8.6_p287-r11(1.8)(20:06:31 15/01/09)(gdbm ipv6 socks5 ssl tk -berkdb -debug -doc -emacs -examples -rubytests -threads -xemacs)
     Homepage:            http://www.ruby-lang.org/
     Description:         An object-oriented scripting language

Found 2 matches.
$ fink -1 tk ruby

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild     U ] dev-lang/ruby-1.8.6_p287-r12 [1.8.6_p287-r11] USE="gdbm ipv6 socks5 ssl tk -berkdb -debug -doc -emacs -examples -rubytests -threads -xemacs" 0 kB
[ebuild   R   ]  dev-lang/tk-8.4.18  USE="-debug -threads" 0 kB

Total: 2 packages (1 upgrade, 1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]
===

However, I get this error:
===
 * Messages for package dev-lang/ruby-1.8.6_p287-r12:

 *
 * You have Tk support enabled.
 *
 * Ruby and Tk need the same 'threads' USE flag settings.
 * Either change the USE flag on dev-lang/ruby or on dev-lang/tk
 * and recompile tk.
 *
 * ERROR: dev-lang/ruby-1.8.6_p287-r12 failed.
 * Call stack:
 *                    ebuild.sh, line   49:  Called pkg_setup
 *   ruby-1.8.6_p287-r12.ebuild, line   51:  Called die
 * The specific snippet of code:
 *              die "threads USE flag mismatch"
 *  The die message:
 *   threads USE flag mismatch
===

Is this a bug, or am I missing something?
Comment 4 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-02-24 10:17:08 UTC
(In reply to comment #3)
> Is this a bug, or am I missing something?
> 

Nah, the test was simply broken. :)
Should be fixed now, thanks!
Comment 5 Łukasz Damentko (RETIRED) gentoo-dev 2009-02-24 17:11:30 UTC
*** Bug 260054 has been marked as a duplicate of this bug. ***