From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39730 invoked by alias); 9 May 2018 07:40:21 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 39130 invoked by uid 89); 9 May 2018 07:40:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=faults, HX-Received:sk:v7-v6mr X-HELO: mail-oi0-f43.google.com Received: from mail-oi0-f43.google.com (HELO mail-oi0-f43.google.com) (209.85.218.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 May 2018 07:40:18 +0000 Received: by mail-oi0-f43.google.com with SMTP id v2-v6so30681234oif.3 for ; Wed, 09 May 2018 00:40:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=88FDevqeQ3voD78mO+cJ/YmaSB1Q6F0IePRg2l3fBe8=; b=Ubi08kT2oEu2oPhrH7I/5vjV0/AforFacosjnkpDBfHMmWQSGRUWeu0QwPRy1+rK/l MPNLiKvwOpNudYCASiYwcY+4H3iOBE5Kgyn5eoRBfosKPcqTF5YFkEdacbaTVGxXwZ9g kqEr7YKn4RSSI2Mop5CkvZSAmoZkNHIrqINJhLiILvYwgivz15FiJjXYAspTnzXZaxlg 9vgK8Fk6BON2ZccNNJZLFNDX1kz26VYWBj1GU4H+NEJHh4uRthub6/KHHqmOXMxdzYYr sO3jYuRrV6+i+BURau6AtDaubrG1Qily7IGKFGUYksJ2Z1yj/kLBiznITIPE9AQsHQtZ i7zg== X-Gm-Message-State: ALKqPwceVUxuaxEheR7BbQ/D26lSz4fwzlMAQ4XaCWWP8fU23KFt6Uww 54v8g5Upac22QU5+eywJvgQLGIpslZZQz9xzRo0= X-Google-Smtp-Source: AB8JxZoUHdnX33/cQZjsfrSnTVFBj8psgVZg0LD4X3vgWn1xaEJ8UyGo30T5d+QMUVKnyO7XoB9X5fNKCDkqVBO2K7E= X-Received: by 2002:aca:6107:: with SMTP id v7-v6mr9880483oib.28.1525851616585; Wed, 09 May 2018 00:40:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.197.10 with HTTP; Wed, 9 May 2018 00:40:16 -0700 (PDT) In-Reply-To: References: From: Reinoud Koornstra Date: Wed, 09 May 2018 07:40:00 -0000 Message-ID: Subject: Re: --host=x86_64-linux-gnu --target=arm-linux-gnueabihf To: Andreas Schwab Cc: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2018-05/txt/msg00018.txt.bz2 I get the same result if I only do ./configure --target=arm-linux-gnueabihf It always faults at /usr/bin/ld: libsim.a(arminit.o): Relocations in generic ELF (EM: 40) libsim.a: error adding symbols: File in wrong format collect2: error: ld returned 1 exit status make[3]: *** [run] Error 1 On Wed, May 9, 2018 at 12:17 AM, Andreas Schwab wrote: > On Mai 08 2018, Reinoud Koornstra wrote: > >> ./configure -host=x86_64-linux-gnu --target=arm-linux-gnueabihf >> configure: WARNING: If you wanted to set the --build type, don't use --host. >> If a cross compiler is detected then cross compile mode will be used. > > Use --build, not --host, or leave it out at all. > > Andreas. > > -- > Andreas Schwab, SUSE Labs, schwab@suse.de > GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 > "And now for something completely different."