From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by sourceware.org (Postfix) with ESMTPS id 198773842AD1 for ; Wed, 29 Jun 2022 11:18:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 198773842AD1 Received: by mail-pj1-x1030.google.com with SMTP id dw10-20020a17090b094a00b001ed00a16eb4so15719889pjb.2 for ; Wed, 29 Jun 2022 04:18:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ZoT9Pgs7nJbWqBv/wQgeYYzsWdEULjrlGtWL0qxEc2g=; b=DnfP6RIxBzpEzB89H6mhPAkoPCoPk+urOcx/FlnOYSUPPFM0Vh9uadhxU1b6t89WRL jLMnEB2cUNoPG0L4URYY2t+NMKk8MVGXeyT+ERn7P/y611RgXqAkH4lm0lot4yc0OOW+ Dxh3e/tobUMOQlL8FLI04ZQEk3mAXIjtcg33XQwo+b1pvvcancrKHstJ7rEaxdvRpVDN m2GZnUUXp9Pc5EwE3ygu8RlB5C4UpnSmBtIx/uhnjqssV5qDX+3ciSwp9IC8WmQHDL8b LiLVhFahO252vxiBFHfontwkxQe7xeLIkULtv7Yv2+YYDkYPtd1UNHSa7SCYqNTBAuo0 Z0ZA== X-Gm-Message-State: AJIora/miK8IObqqGMWt7ed7fx+WxZcwciO+SVjrEfJrx5pIzN6ZgbEo X3CVXvxDczM6dVcavrBjCDHJKN5nCEMoQy332VCJfKXqwHY= X-Google-Smtp-Source: AGRyM1uHAG+0vGSgc8zUUjIB9w1E/twWWEBuivg67pi7ExrLwKHTQj2LY4r/mg0kTBp2sOzoH0j0AubG5flMwHFKhCc= X-Received: by 2002:a17:902:cf0c:b0:15b:63a4:9f47 with SMTP id i12-20020a170902cf0c00b0015b63a49f47mr10185690plg.1.1656501534684; Wed, 29 Jun 2022 04:18:54 -0700 (PDT) MIME-Version: 1.0 From: Immolo Date: Wed, 29 Jun 2022 11:18:43 +0000 Message-ID: Subject: elfutils-0.187 failing to build for a MUSL MIPS target To: elfutils-devel@sourceware.org X-Spam-Status: No, score=-0.1 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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2022 11:18:58 -0000 Hi, When trying to cross compile elfutils-0.187 for a MIPS device it fails with various errors depending on the USE flags set on my crossdev Gentoo setup. I believe but have not confirmed this is a MIPS issue until I have done further tests. in the MUSL overlay also fails with the same issue so I need to run some further tests on other arches. With USE=3D"bzip2 nls threads utils" I get a numbe of undefined variables with the final error "being undefined reference to `assert_perror'" With USE=3D"-*" then it becomes: 213 | if (fnmatch (pattern->pattern, name, FNM_EXTMATCH) =3D=3D 0) | ^~~~~~~~~~~~ | FNM_NOMATCH /usr/mipsr5900el-unknown-linux-musl/tmp/portage/dev-libs/elfutils-0.187/wor= k/elfutils-0.187/src/strip.c:213:44: note: each undeclared identifier is reported only once for each function it appears in /usr/mipsr5900el-unknown-linux-musl/tmp/portage/dev-libs/elfutils-0.187/wor= k/elfutils-0.187/src/strip.c: In function =E2=80=98parse_opt=E2=80=99: /usr/mipsr5900el-unknown-linux-musl/tmp/portage/dev-libs/elfutils-0.187/wor= k/elfutils-0.187/src/strip.c:329:37: error: =E2=80=98FNM_EXTMATCH=E2=80=99 undeclared (first use in this functio= n); did you mean =E2=80=98FNM_NOMATCH=E2=80=99? 329 | if (fnmatch (arg, ".comment", FNM_EXTMATCH) =3D=3D 0) | ^~~~~~~~~~~~ | FNM_NOMATCH fI'll include the build logs for both below but I would be grateful if anyone has any ideas on how I can start to solve this isse. https://www.immolo.co.uk/elfutils/nouse-build.log https://www.immolo.co.uk/elfutils/withuse-build.log