From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20158 invoked by alias); 26 Oct 2013 12:28:44 -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 20143 invoked by uid 89); 26 Oct 2013 12:28:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-vb0-f46.google.com Received: from mail-vb0-f46.google.com (HELO mail-vb0-f46.google.com) (209.85.212.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 26 Oct 2013 12:28:42 +0000 Received: by mail-vb0-f46.google.com with SMTP id 10so3340889vbe.33 for ; Sat, 26 Oct 2013 05:28:40 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.220.186.202 with SMTP id ct10mr7345362vcb.14.1382790520595; Sat, 26 Oct 2013 05:28:40 -0700 (PDT) Received: by 10.52.160.225 with HTTP; Sat, 26 Oct 2013 05:28:40 -0700 (PDT) In-Reply-To: References: Date: Sat, 26 Oct 2013 12:28:00 -0000 Message-ID: Subject: Re: Toolchain not relocatable From: Richard Weinberger To: yann.morin.1998@free.fr, crossgcc@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00023.txt.bz2 On Fri, Oct 25, 2013 at 11:02 AM, Richard Weinberger wrote: > Hi! > > 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? -- Thanks, //richard -- For unsubscribe information see http://sourceware.org/lists.html#faq