From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by sourceware.org (Postfix) with ESMTPS id 188BD3851C09 for ; Thu, 18 Jun 2020 11:46:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 188BD3851C09 Received: by mail-il1-x142.google.com with SMTP id t8so5420442ilm.7 for ; Thu, 18 Jun 2020 04:46: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:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zvmuIZ38IHPzUhagh0eci8x6Gy8f7f6c4kbHcHluRI4=; b=l76NiaDB3dw9ULwSC/niXfqdz4KZYR3fn51+S0VIPYb8CMKe56gMkME5ST+lstaHAE F4IPgMpZDrwq7KsXyoTcjeMI8poi2Z38vWlPB59fCwvWL6/9szLASeG1L1x1d2/EfAIW xEJrJpCkLBfZ5zdpzPv5eW2B9vO6abmY9pQ1sC1p1nS+UXe4nauoS7xwLNs5JYsQiPel Ee+ZZUWczyUmevcrascEFUCdPFkwZ+tWh2SnxvCN0t13d1MnbLVdmLpAN/iQrHbeGzan 1Uc8v94lypgbULtnh97BpQz3sk8+IbeYGVHa3djzdft+PUgvourYyPiiqXL13/YBKxHS XKug== X-Gm-Message-State: AOAM532OznXHKTLQv64j8ouGux9L5yZETqd0t5Jo+9AArBuUOc1pHGKr 91oNC7hR0MRVlK/94ZYsS12S2fziYKbMw8Tu24I= X-Google-Smtp-Source: ABdhPJy7Hh/gPcxv7qyP5dz6m6X9i0CPhC+aUCFw8fnrFlcdOmf330pe31C+RGHPTM96D0u2XToHDDLgni7W5OItYOI= X-Received: by 2002:a92:d845:: with SMTP id h5mr3780152ilq.4.1592480777489; Thu, 18 Jun 2020 04:46:17 -0700 (PDT) MIME-Version: 1.0 References: <20061810485711_32800155@hrem.nano.tudelft.nl> <7d23ba40-85d9-497c-6d54-abeed4e62937@wippies.com> In-Reply-To: <7d23ba40-85d9-497c-6d54-abeed4e62937@wippies.com> From: Jonathan Wakely Date: Thu, 18 Jun 2020 12:46:06 +0100 Message-ID: Subject: Re: Problem creating cross-compiler To: Kai Ruottu Cc: Jouk Jansen , gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2020 11:46:19 -0000 On Thu, 18 Jun 2020 at 12:26, Kai Ruottu wrote: > > Jonathan Wakely via Gcc-help kirjoitti 18.6.2020 klo 13.52: > > On Thu, 18 Jun 2020 at 09:59, Jouk Jansen via Gcc-help > > wrote: > >> Hi, > >> > >> I'm trying to build a cross-compiler which should be running on a Fedora 32 > >> system building objects for a IA64-OpenVMS system. I'm running the > >> compilation on a "up-to-date" Fedora 32 system. > >> > >> What do I do wrong? > >> > >> ./configure --prefix=/home/joukj/openvms --exec-prefix=/home/joukj/openvms --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=ia64-hp-openvms > > Don't run configure in the source tree, see > > https://gcc.gnu.org/wiki/InstallingGCC > > > > > >> make > >> > >> > >> ... > >> g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtt > >> i -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qu > >> al -Wno-error=format-diag -Wmissing-format-attribute -Woverloaded-virtual -pedan > >> tic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_ > >> H -DGENERATOR_FILE -fno-PIE -I. -Ibuild -I../.././gcc -I../.././gcc/build -I../ > >> .././gcc/../include -I../.././gcc/../libcpp/include \ > >> -o build/genmodes.o ../.././gcc/genmodes.c > >> ./as: line 106: exec: -I: invalid option > > This means you don't have an assembler for the cross target. > > I would guess this coming somehow from configuring in the source > directory. The 'genmodes' > executable is produced for the BUILD system so the 'as' required here > would be the native one. > The './as' script is somehow broken. And the way it's broken is that one of the variables like ORIGINAL_AS_FOR_TARGET is empty, meaning that trying to exec it fails. And the usual way that happens is that the assembler (or linker, or nm) is not found during configure. Look in the gcc/as script in the build tree, and see if ORIGINAL_AS_FOR_TARGET is set correctly. If not, look at the logs generated by the configure step (probably the gcc/config.log one) and look for the results related to the assembler.