From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by sourceware.org (Postfix) with ESMTPS id 5F68F3858D1E for ; Sun, 12 Feb 2023 19:24:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5F68F3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x633.google.com with SMTP id sa10so27043682ejc.9 for ; Sun, 12 Feb 2023 11:24:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ziKGsOhzkKTMzc1w4PbrkEcCc/0/uqmsXt+JGvQqIh4=; b=YSx+JMPGzNw7DP3qhNAegRdquzyjGaLl0X/NuEtpxsaD8oV3H3vnc8EaoenEFavzKw kKiw3sYaP6eszaNUKBCq5ZmndU6BOPGNRh21OhS7Ya/4qbA1rfOZM4ObhdQ9wXfLYsJp ndXeQ8WFyJcskSpod54KuSRn3aCzNnq2rIqqRN5e5kHf3dAlBEgvrsOmWU9Tbm7XAjkl hUz8sXVt783NO2XV1QSB4WHLFliWDR5t1A2vbdVTXY3YTb8Mapb93NHKwKPwQwCfGZgJ Xq1S1bb3Ufh/Glv7dKfSQ3kQQqXGsg2XSOX/94U7c/Hp7YIUxg300GnEkqdXNOfnbCee f2bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ziKGsOhzkKTMzc1w4PbrkEcCc/0/uqmsXt+JGvQqIh4=; b=NBIhBGbewIb3Lrwj+3Zf1Su2aLIKVVgKhAnTArZAMEgAX1wd3KzGoFi+TS/1+AOEGp piOpk2PENezluO2p1IxPiQLcyzBU9isSsJ+dzpy9LxnHA9nnzLDa2KHgWtvoqbnCkhLf NrRbq00d7lojdMv24m6FeLE7BhrP7rg82EEa1rY6dkJzX5cKLUrXDPc2nlo9V3hanLSc FxmhPCpPRuj3kf9RxXNkAy7tY3h0UJ2qx6oNQvhAQle6u9T3n8wEavrmm0Yf3CIH2gNf SDNNsZQ0XCeN5xHn6w1RtiGPf1iJ8jcgU2OEIbwpiv/PxELe3/A72grtQWD4jGPWMtbv JXhg== X-Gm-Message-State: AO0yUKWBnHPp4xRAQrf3KxUZ6JszxF1mzgF5Iyrdo8SVWk9jS9oDaBU1 WH1TBwYw6wEOCa2jmPoDzF96bTPp0Pakaj98P6s= X-Google-Smtp-Source: AK7set+oj5wYKVP9JlM8agJ8sdA8zKX6NyoaMutab4WlTRHGoM1YYUqOyjYniES0jGuIPyaJk3+MujkvrRjGLbPxxnM= X-Received: by 2002:a17:906:9381:b0:878:8061:e114 with SMTP id l1-20020a170906938100b008788061e114mr3380587ejx.0.1676229874170; Sun, 12 Feb 2023 11:24:34 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Sun, 12 Feb 2023 19:24:22 +0000 Message-ID: Subject: Re: Problem cross-compiling gcc To: Christer Solskogen Cc: gcc-help Content-Type: multipart/alternative; boundary="000000000000363f1705f485ae77" X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000363f1705f485ae77 Content-Type: text/plain; charset="UTF-8" On Sun, 12 Feb 2023, 17:52 Christer Solskogen via Gcc-help, < gcc-help@gcc.gnu.org> wrote: > While cross compiling gcc with musl I see this: > > checking for exported symbols... /home/solskogen/gcc/libcc1/configure: > line 15053: -T: command not found > yes > checking for -rdynamic... /home/solskogen/gcc/libcc1/configure: line > 15063: -T: command not found Did you try looking at that line of that configure file? It should tell you exactly what is missing. no > checking for library containing dlopen... none required > checking for -fPIC -shared... yes > configure: error: > Building GCC with plugin support requires a host that supports > -fPIC, -shared, -ldl and -rdynamic. > make[1]: *** [Makefile:11890: configure-libcc1] Error 1 > > This is the configure line: /home/solskogen/gcc/configure --prefix=/usr > --libexecdir=/lib --host=aarch64-centrix-linux-musl > --target=aarch64-centrix-linux-musl --build=x86_64-pc-linux-gnu > --enable-languages=c,c++ --disable-multilib --enable-checking=release > --disable-nls --with-gcc-major-version-only --enable-plugin > --disable-libstdcxx-pch --enable-default-pie --enable-default-ssp > --disable-libsanitizer --enable-host-shared > > I can't figure out that it doesn't find. But a google search suggests > objdump. > Could be, look at the configure script. Do you have a cross objdump compiled for the target, in your PATH? If you can't work out what's wrong, just build GCC with --disable-libcc1 (assuming you don't need it for gdb in your cross toolchain). > gcc is at version 12.2.0. Worth submitting a bug report? > probably not > > > > --000000000000363f1705f485ae77--