* Re: fatal error: pthread.h: No such file or directory
@ 2017-02-23 20:54 Marc-Antoine Martin
2017-02-23 21:12 ` Alexey Neyman
0 siblings, 1 reply; 4+ messages in thread
From: Marc-Antoine Martin @ 2017-02-23 20:54 UTC (permalink / raw)
To: crossgcc
Hi all,
I bring this post back on top.
I'm currently trying to build a crosstool for x86 plateform with the
sample "x86_64-unknown-linux-uclibc"
Each time I compile it (whenever changes of the kconfig (bitness
apart)) I have the error "fatal error: pthread.h: No such file or
directory" on compilation of
"gcc-5.2.0/libgcc/generic-morestack-thread.c" (error:
http://pastebin.com/ESkQ68eD)
I've seen this post and the Waldemar suggest to use this patch (made
for buildroot): http://patchwork.ozlabs.org/patch/592962/
Did anyone test it or made an updated one for crosstool-ng?
Is it safe to use it without any changes?
I'm not used to build crosstools and apply patches, I'm still leaning.
Thank for your assistance.
Regards,
Marc-Antoine Martin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: fatal error: pthread.h: No such file or directory
2017-02-23 20:54 fatal error: pthread.h: No such file or directory Marc-Antoine Martin
@ 2017-02-23 21:12 ` Alexey Neyman
0 siblings, 0 replies; 4+ messages in thread
From: Alexey Neyman @ 2017-02-23 21:12 UTC (permalink / raw)
To: Marc-Antoine Martin, crossgcc
This patch is in crosstool-ng default patchset on master, so it should
be applied automatically.
You're using a 1.22, apparently - I just checked, it did not have that
patch.
You can either try a snapshot of the master branch, or put the patch for
your version into <somedir>/gcc/5.2.0; then select "bundled,local" as
the patch order and specify <somedir> as the local patch directory.
Don't forget to do `ct-ng clean` before re-running the build.
Regards,
Alexey.
On 02/23/2017 12:54 PM, Marc-Antoine Martin wrote:
> Hi all,
>
> I bring this post back on top.
> I'm currently trying to build a crosstool for x86 plateform with the
> sample "x86_64-unknown-linux-uclibc"
>
> Each time I compile it (whenever changes of the kconfig (bitness
> apart)) I have the error "fatal error: pthread.h: No such file or
> directory" on compilation of
> "gcc-5.2.0/libgcc/generic-morestack-thread.c" (error:
> http://pastebin.com/ESkQ68eD)
>
>
> I've seen this post and the Waldemar suggest to use this patch (made
> for buildroot): http://patchwork.ozlabs.org/patch/592962/
>
> Did anyone test it or made an updated one for crosstool-ng?
> Is it safe to use it without any changes?
>
> I'm not used to build crosstools and apply patches, I'm still leaning.
>
> Thank for your assistance.
>
> Regards,
> Marc-Antoine Martin
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: fatal error: pthread.h: No such file or directory
2016-03-14 15:54 Moore, Richard F.
@ 2016-03-14 16:04 ` Waldemar Brodkorb
0 siblings, 0 replies; 4+ messages in thread
From: Waldemar Brodkorb @ 2016-03-14 16:04 UTC (permalink / raw)
To: Moore, Richard F.; +Cc: crossgcc
Hi,
> -5.3.0/libgcc/generic-morestack-thread.c:41:21: fatal error: pthread.h:
> No such file or directory
I recently seen this when Threads are disabled.
I submitted a patch to buildroot, which might be used here,
too:http://patchwork.ozlabs.org/patch/592962/
Best regards
Waldemar
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 4+ messages in thread
* fatal error: pthread.h: No such file or directory
@ 2016-03-14 15:54 Moore, Richard F.
2016-03-14 16:04 ` Waldemar Brodkorb
0 siblings, 1 reply; 4+ messages in thread
From: Moore, Richard F. @ 2016-03-14 15:54 UTC (permalink / raw)
To: crossgcc
Hi Yann,
Pulling latest git, I make, then do this to use built in recipe
./ct-ng x86_64-unknown-linux-uclibc
Everything builds fine.
If I do the same but only change (via ct-ng menuconfig) the target to
be 32 bit rather than 64 bit I get this on pass-2;
[INFO ] Installing C library headers: done in 6.68s (at 08:20)
[INFO ]
=================================================================
[INFO ] Installing pass-2 core C gcc compiler
[EXTRA] Configuring core C gcc compiler
[EXTRA] Building gcc
[ERROR] /media/3/cyclone/crosstool-ng/.build/src/gcc
-5.3.0/libgcc/generic-morestack-thread.c:41:21: fatal error: pthread.h:
No such file or directory
[ERROR] make[2]: *** [generic-morestack-thread.o] Error 1
[ERROR] make[1]: *** [all-target-libgcc] Error 2
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Installing pass-2 core C gcc
compiler'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@259]
[ERROR] >> called from: do_gcc_core_backend[
scripts/build/cc/100-gcc.sh@520]
[ERROR] >> called from: do_gcc_core_pass_2[
scripts/build/cc/100-gcc.sh@154]
[ERROR] >> called from: do_cc_core_pass_2[
scripts/build/cc.sh@42]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@650]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds,
in:
[ERROR] >> 'share/doc/crosstool-ng/crosstool-ng-1.22.0-126
-gd7339f5/B - Known issues.txt'
[ERROR]
[ERROR] (elapsed: 12:13.06)
[12:13] / ct-ng:152: recipe for target 'build' failed
make: *** [build] Error 2
I have tried altering various versions of build tools and it is always
the same error.
(I tried attaching build.log but it just bounced so resending without)
Cheers
Rich
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-02-23 21:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-23 20:54 fatal error: pthread.h: No such file or directory Marc-Antoine Martin
2017-02-23 21:12 ` Alexey Neyman
-- strict thread matches above, loose matches on Subject: below --
2016-03-14 15:54 Moore, Richard F.
2016-03-14 16:04 ` Waldemar Brodkorb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).