public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] wxGTK compilation fails "missing thread.h"
@ 2014-07-23  5:38 Adam Carter
  2014-07-25  7:48 ` Peter Humphrey
  0 siblings, 1 reply; 12+ messages in thread
From: Adam Carter @ 2014-07-23  5:38 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org

[-- Attachment #1: Type: text/plain, Size: 298 bytes --]

Here's what i get;
/var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r1/work/wxPython-src-2.8.12.1/src/unix/threadpsx.cpp:51:24:
fatal error: thread.h: No such file or directory
make: *** [basedll_threadpsx.o] Error 1

Any ideas? Would thread.h be supplied by another package? linux-headers
doesnt have it.

[-- Attachment #2: Type: text/html, Size: 351 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] wxGTK compilation fails "missing thread.h"
  2014-07-23  5:38 [gentoo-user] wxGTK compilation fails "missing thread.h" Adam Carter
@ 2014-07-25  7:48 ` Peter Humphrey
  2014-07-25 16:38   ` Douglas J Hunley
  2014-07-26 10:47   ` Adam Carter
  0 siblings, 2 replies; 12+ messages in thread
From: Peter Humphrey @ 2014-07-25  7:48 UTC (permalink / raw
  To: gentoo-user

On Wednesday 23 July 2014 15:38:42 Adam Carter wrote:
> Here's what i get;
> /var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r1/work/wxPython-src-2.8.12.1/src/u
> nix/threadpsx.cpp:51:24: fatal error: thread.h: No such file or directory
> make: *** [basedll_threadpsx.o] Error 1
> 
> Any ideas? Would thread.h be supplied by another package? linux-headers
> doesnt have it.

I sometimes find this error coming from multi-thread compilation. I fix it by 
prepending the emerge command with MAKEOPTS="-j1". You could try that.

-- 
Regards
Peter



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] wxGTK compilation fails "missing thread.h"
  2014-07-25  7:48 ` Peter Humphrey
@ 2014-07-25 16:38   ` Douglas J Hunley
  2014-07-25 20:33     ` Neil Bothwick
  2014-07-25 21:32     ` Peter Humphrey
  2014-07-26 10:47   ` Adam Carter
  1 sibling, 2 replies; 12+ messages in thread
From: Douglas J Hunley @ 2014-07-25 16:38 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 579 bytes --]

On Fri, Jul 25, 2014 at 12:48 AM, Peter Humphrey <peter@prh.myzen.co.uk>
wrote:

> I sometimes find this error coming from multi-thread compilation. I fix it
> by
> prepending the emerge command with MAKEOPTS="-j1". You could try that.
>

Indeed, this is probably parallelism gone wrong. However, you should really
use package.env to override MAKEOPTS instead of using "one off" command
line overrides


-- 
Douglas J Hunley (doug.hunley@gmail.com)
Twitter: @hunleyd                                               Web:
about.me/douglas_hunley
G+: http://google.com/+DouglasHunley

[-- Attachment #2: Type: text/html, Size: 1226 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] wxGTK compilation fails "missing thread.h"
  2014-07-25 16:38   ` Douglas J Hunley
@ 2014-07-25 20:33     ` Neil Bothwick
  2014-07-25 21:32     ` Peter Humphrey
  1 sibling, 0 replies; 12+ messages in thread
From: Neil Bothwick @ 2014-07-25 20:33 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 716 bytes --]

On Fri, 25 Jul 2014 09:38:50 -0700, Douglas J Hunley wrote:

> > I sometimes find this error coming from multi-thread compilation. I
> > fix it by
> > prepending the emerge command with MAKEOPTS="-j1". You could try that.
> >  
> 
> Indeed, this is probably parallelism gone wrong. However, you should
> really use package.env to override MAKEOPTS instead of using "one off"
> command line overrides

The one off override proves the need for the altered MAKEOPTS and
provides the ammunition for a bug report. Any ebuild that needs MAKEOPTS
to be overridden in package.env is buggy and should be reported as such.


-- 
Neil Bothwick

Dream as if you'll live forever. Live as if you'll die today.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] wxGTK compilation fails "missing thread.h"
  2014-07-25 16:38   ` Douglas J Hunley
  2014-07-25 20:33     ` Neil Bothwick
@ 2014-07-25 21:32     ` Peter Humphrey
  1 sibling, 0 replies; 12+ messages in thread
From: Peter Humphrey @ 2014-07-25 21:32 UTC (permalink / raw
  To: gentoo-user

On Friday 25 July 2014 09:38:50 Douglas J Hunley wrote:
> On Fri, Jul 25, 2014 at 12:48 AM, Peter Humphrey <peter@prh.myzen.co.uk>
> 
> wrote:
> > I sometimes find this error coming from multi-thread compilation. I fix it
> > by
> > prepending the emerge command with MAKEOPTS="-j1". You could try that.
> 
> Indeed, this is probably parallelism gone wrong. However, you should really
> use package.env to override MAKEOPTS instead of using "one off" command
> line overrides

But then, next time I need to emerge the package it may have been fixed. So I 
stand by what I said.

-- 
Regards
Peter



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] wxGTK compilation fails "missing thread.h"
  2014-07-25  7:48 ` Peter Humphrey
  2014-07-25 16:38   ` Douglas J Hunley
@ 2014-07-26 10:47   ` Adam Carter
  2014-07-26 11:43     ` Alexander Kapshuk
  1 sibling, 1 reply; 12+ messages in thread
From: Adam Carter @ 2014-07-26 10:47 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org

[-- Attachment #1: Type: text/plain, Size: 976 bytes --]

On Fri, Jul 25, 2014 at 5:48 PM, Peter Humphrey <peter@prh.myzen.co.uk>
wrote:

> On Wednesday 23 July 2014 15:38:42 Adam Carter wrote:
> > Here's what i get;
> >
> /var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r1/work/wxPython-src-2.8.12.1/src/u
> > nix/threadpsx.cpp:51:24: fatal error: thread.h: No such file or directory
> > make: *** [basedll_threadpsx.o] Error 1
> >
> > Any ideas? Would thread.h be supplied by another package? linux-headers
> > doesnt have it.
>
> I sometimes find this error coming from multi-thread compilation. I fix it
> by
> prepending the emerge command with MAKEOPTS="-j1". You could try that.
>
>
I always try -j1 when anything fails to avoid troubling the list, however
it didnt help in this case. Did you suspect that thread.h is generated by
the package build process, or is there some other reason why parallel build
could cause this problem? AFAIK header files are not generated. I would
have guessed its a path problem or missing dependency.

[-- Attachment #2: Type: text/html, Size: 1401 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] wxGTK compilation fails "missing thread.h"
  2014-07-26 10:47   ` Adam Carter
@ 2014-07-26 11:43     ` Alexander Kapshuk
  2014-07-26 11:59       ` Fwd: " Alexander Kapshuk
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander Kapshuk @ 2014-07-26 11:43 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1685 bytes --]

On 07/26/2014 01:47 PM, Adam Carter wrote:
> On Fri, Jul 25, 2014 at 5:48 PM, Peter Humphrey <peter@prh.myzen.co.uk
> <mailto:peter@prh.myzen.co.uk>> wrote:
>
>     On Wednesday 23 July 2014 15:38:42 Adam Carter wrote:
>     > Here's what i get;
>     >
>     /var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r1/work/wxPython-src-2.8.12.1/src/u
>     > nix/threadpsx.cpp:51:24: fatal error: thread.h: No such file or
>     directory
>     > make: *** [basedll_threadpsx.o] Error 1
>     >
>     > Any ideas? Would thread.h be supplied by another package?
>     linux-headers
>     > doesnt have it.
>
>     I sometimes find this error coming from multi-thread compilation.
>     I fix it by
>     prepending the emerge command with MAKEOPTS="-j1". You could try that.
>
>
> I always try -j1 when anything fails to avoid troubling the list,
> however it didnt help in this case. Did you suspect that thread.h is
> generated by the package build process, or is there some other reason
> why parallel build could cause this problem? AFAIK header files are
> not generated. I would have guessed its a path problem or missing
> dependency.
I seem to have the same version of wxGTK as you:
equery -q l wxGTK
x11-libs/wxGTK-2.8.12.1-r1

To the best of my knowledge, I did not experience any trouble building
the package in question.

threadpsx.cpp has these two references to 'thread.h':
wxPython-src-2.8.12.1/src/unix/threadpsx.cpp:27,29
#if wxUSE_THREADS

#include "wx/thread.h"

wxPython-src-2.8.12.1/src/unix/threadpsx.cpp:50,52
#ifdef HAVE_THR_SETCONCURRENCY
    #include <thread.h>
#endif

You may want to check if you have this file available on your system:
/usr/include/wx-2.8/wx/thread.h



[-- Attachment #2: Type: text/html, Size: 2985 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Fwd: Re: [gentoo-user] wxGTK compilation fails "missing thread.h"
  2014-07-26 11:43     ` Alexander Kapshuk
@ 2014-07-26 11:59       ` Alexander Kapshuk
  2014-07-27  9:30         ` Adam Carter
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander Kapshuk @ 2014-07-26 11:59 UTC (permalink / raw
  To: Gentoo mailing list

Forgot to mention.

equery -q b /usr/include/wx-2.8/wx/thread.h
x11-libs/wxGTK-2.8.12.1-r1




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Re: [gentoo-user] wxGTK compilation fails "missing thread.h"
  2014-07-26 11:59       ` Fwd: " Alexander Kapshuk
@ 2014-07-27  9:30         ` Adam Carter
  2014-07-27 12:18           ` Alexander Kapshuk
  0 siblings, 1 reply; 12+ messages in thread
From: Adam Carter @ 2014-07-27  9:30 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org

[-- Attachment #1: Type: text/plain, Size: 283 bytes --]

On Sat, Jul 26, 2014 at 9:59 PM, Alexander Kapshuk <
alexander.kapshuk@gmail.com> wrote:

> Forgot to mention.
>
> equery -q b /usr/include/wx-2.8/wx/thread.h
> x11-libs/wxGTK-2.8.12.1-r1
>
>
Ok so the file IS provided by the package itself, and therefore I see why
-l1 makes sense.

[-- Attachment #2: Type: text/html, Size: 630 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] wxGTK compilation fails "missing thread.h"
  2014-07-27  9:30         ` Adam Carter
@ 2014-07-27 12:18           ` Alexander Kapshuk
  2014-07-28  1:33             ` Adam Carter
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander Kapshuk @ 2014-07-27 12:18 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 617 bytes --]

On 07/27/2014 12:30 PM, Adam Carter wrote:
>
> On Sat, Jul 26, 2014 at 9:59 PM, Alexander Kapshuk
> <alexander.kapshuk@gmail.com <mailto:alexander.kapshuk@gmail.com>> wrote:
>
>     Forgot to mention.
>
>     equery -q b /usr/include/wx-2.8/wx/thread.h
>     x11-libs/wxGTK-2.8.12.1-r1
>
>
> Ok so the file IS provided by the package itself, and therefore I see
> why -l1 makes sense.
I am no multi-thread compilation expert, but here's what I've got on my
system with x11-libs/wxGTK-2.8.12.1-r1 building without any trouble.

grep MAKEOPTS /etc/portage/make.conf
MAKEOPTS="-j3"

What value is your MAKEOPTS set to?


[-- Attachment #2: Type: text/html, Size: 1619 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] wxGTK compilation fails "missing thread.h"
  2014-07-27 12:18           ` Alexander Kapshuk
@ 2014-07-28  1:33             ` Adam Carter
  2014-07-28  5:16               ` Alexander Kapshuk
  0 siblings, 1 reply; 12+ messages in thread
From: Adam Carter @ 2014-07-28  1:33 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org

[-- Attachment #1: Type: text/plain, Size: 181 bytes --]

>
> grep MAKEOPTS /etc/portage/make.conf
> MAKEOPTS="-j3"
>
> What value is your MAKEOPTS set to?
>
>  I have tried -j1 to rule out parallel compilation issues, but it didn't
help.

[-- Attachment #2: Type: text/html, Size: 498 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] wxGTK compilation fails "missing thread.h"
  2014-07-28  1:33             ` Adam Carter
@ 2014-07-28  5:16               ` Alexander Kapshuk
  0 siblings, 0 replies; 12+ messages in thread
From: Alexander Kapshuk @ 2014-07-28  5:16 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 634 bytes --]

On 07/28/2014 04:33 AM, Adam Carter wrote:
>  
>
>
>     grep MAKEOPTS /etc/portage/make.conf
>     MAKEOPTS="-j3"
>
>     What value is your MAKEOPTS set to?
>
> I have tried -j1 to rule out parallel compilation issues, but it
> didn't help.
Here's all the 'thread.h' header files I seem to have on my system:
du -a /usr/*|sed '/\/thread.h$/!d;s/.*\t//'
/usr/include/event2/thread.h
/usr/include/ruby-2.0.0/ruby/thread.h
/usr/include/wx-2.8/wx/thread.h
/usr/lib/perl5/5.16.3/i686-linux/CORE/thread.h
/usr/src/linux-3.12.21-gentoo-r1/include/config/generic/smp/idle/thread.h
/usr/src/linux-3.12.21-gentoo-r1/tools/perf/util/thread.h


[-- Attachment #2: Type: text/html, Size: 1529 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-07-28  5:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-23  5:38 [gentoo-user] wxGTK compilation fails "missing thread.h" Adam Carter
2014-07-25  7:48 ` Peter Humphrey
2014-07-25 16:38   ` Douglas J Hunley
2014-07-25 20:33     ` Neil Bothwick
2014-07-25 21:32     ` Peter Humphrey
2014-07-26 10:47   ` Adam Carter
2014-07-26 11:43     ` Alexander Kapshuk
2014-07-26 11:59       ` Fwd: " Alexander Kapshuk
2014-07-27  9:30         ` Adam Carter
2014-07-27 12:18           ` Alexander Kapshuk
2014-07-28  1:33             ` Adam Carter
2014-07-28  5:16               ` Alexander Kapshuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox