From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6740 invoked by alias); 15 Nov 2013 17:56:16 -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 6730 invoked by uid 89); 15 Nov 2013 17:56:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_05,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RDNS_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mail-wi0-f170.google.com Received: from Unknown (HELO mail-wi0-f170.google.com) (209.85.212.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 15 Nov 2013 17:54:27 +0000 Received: by mail-wi0-f170.google.com with SMTP id f4so2782921wiw.5 for ; Fri, 15 Nov 2013 09:54:18 -0800 (PST) X-Received: by 10.194.173.163 with SMTP id bl3mr7924125wjc.10.1384538058181; Fri, 15 Nov 2013 09:54:18 -0800 (PST) Received: from ymorin.is-a-geek.org (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id x19sm7140933wia.5.2013.11.15.09.54.16 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 15 Nov 2013 09:54:17 -0800 (PST) Received: by ymorin.is-a-geek.org (sSMTP sendmail emulation); Fri, 15 Nov 2013 18:54:15 +0100 Date: Fri, 15 Nov 2013 17:56:00 -0000 From: "Yann E. MORIN" To: Richard Weinberger Cc: crossgcc@sourceware.org Subject: Re: Toolchain not relocatable Message-ID: <20131115175415.GB3337@free.fr> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2012-12-30) X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00008.txt.bz2 Richard, All, On 2013-10-26 14:28 +0200, Richard Weinberger spake thusly: > On Fri, Oct 25, 2013 at 11:02 AM, Richard Weinberger > wrote: > > Toolchains created by crosstool-ng seem to be not relocatable. > > I tried both 1.18.0 and 1.19.0. My .config is attached. > > > > $ ./toolchain/bin/arm-ryo-linux-gnueabi-gcc -o hw hw.c > > ^^^^ works fine. > > > > $ mv toolchain/ toolchainX > > $ ./toolchainX/bin/arm-ryo-linux-gnueabi-gcc -o hw hw.c > > hw.c:1:19: fatal error: stdio.h: No such file or directory > > compilation terminated. > > ^^^^^ broken > > > > Or am I doing something very wrong? > > Found the issue. (After doing 10+ complete builds using different settings :-\) > > My .config has: > CT_PREFIX_DIR="/home/rw/work/its_workshop1/ryo/maker/_deploy//toolchain" > > This path contains a double slash. > If I remove that double slash, my toolchain becomes relocatable. > > Now we should find out whether this is a gcc or crosstool-ng issue. > Yann, have you seen such issues in the past? Ah, right, rings a bell. I'll add some sanitising to the prefix dir to avoid this situation. Thanks for the report. Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' -- For unsubscribe information see http://sourceware.org/lists.html#faq