From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32889 invoked by alias); 23 Feb 2017 21:12:36 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 32874 invoked by uid 89); 23 Feb 2017 21:12:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=H*Ad:D*att.net, attnet, UD:att.net, att.net X-HELO: nm18.access.bullet.mail.bf1.yahoo.com Received: from nm18.access.bullet.mail.bf1.yahoo.com (HELO nm18.access.bullet.mail.bf1.yahoo.com) (216.109.114.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 Feb 2017 21:12:34 +0000 Received: from [66.196.81.160] by nm18.access.bullet.mail.bf1.yahoo.com with NNFMP; 23 Feb 2017 21:12:32 -0000 Received: from [98.138.104.98] by tm6.access.bullet.mail.bf1.yahoo.com with NNFMP; 23 Feb 2017 21:12:32 -0000 Received: from [127.0.0.1] by smtp118.sbc.mail.ne1.yahoo.com with NNFMP; 23 Feb 2017 21:12:32 -0000 X-Yahoo-SMTP: 0h0Q7euswBD_g.kcEqbzJWRFfrba801gq1M1 Subject: Re: fatal error: pthread.h: No such file or directory To: Marc-Antoine Martin , crossgcc@sourceware.org References: From: Alexey Neyman Message-ID: Date: Thu, 23 Feb 2017 21:12:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00040.txt.bz2 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 /gcc/5.2.0; then select "bundled,local" as the patch order and specify 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 >