From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id A14563858D20 for ; Mon, 7 Feb 2022 12:09:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A14563858D20 Received: by mail-ot1-x329.google.com with SMTP id w27-20020a9d5a9b000000b005a17d68ae89so10684953oth.12 for ; Mon, 07 Feb 2022 04:09:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=oFGtmETNsg6aiXppxqB/0SgiviZ8lp21NnadpCmO1oc=; b=vGXIkW3YvgclUL1MQU1GbbzmUkpeRNOsWAwZnxhRZ0YF0+yUcZdDOlVDmhMCwlAnq0 O3QlK1Mm3Do1Kw1N5fXMUAz30Aw6djLP10ct3mOSolcH4PnYs5bdAG+SySeBm1SOJSlM ISgLgKJUVX0Aq8NG6T6yRpQDxzl3CGPSY/CsvBd064IhHuTqo9/7rfYG/rbbvWbJZgjz VGIXyVgYd7KEvXl/CAdFN9NCyDpMowq6PS5wLMSTm4M1bI2YqgYz/FgUgtm4+yTKpNhz rutV+TB26JAI5oGRYA9OS4njIYddnPbOFENaS/j/n0Bjn85rkzcjRMkw2qoXxofHzPqc mI9g== X-Gm-Message-State: AOAM533exiOB8hqHri3aZ93NcdGpYOovn3iRavM7CfIWPvZC+C5EDQSV xtmSyXO9KsrMuh5EfDQrEzFUOW513LLJ1A== X-Google-Smtp-Source: ABdhPJzrNaeBznMeMGRmqMdvkbpicc210FQxz/ECLo/07F43pWMzNMMl2xsUXAmxnLmPZKT3hf9WKg== X-Received: by 2002:a9d:22a6:: with SMTP id y35mr4000190ota.212.1644235748891; Mon, 07 Feb 2022 04:09:08 -0800 (PST) Received: from ?IPV6:2804:431:c7ca:733:4cdc:e08a:54c6:5108? ([2804:431:c7ca:733:4cdc:e08a:54c6:5108]) by smtp.gmail.com with ESMTPSA id n12sm3861439oop.5.2022.02.07.04.09.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Feb 2022 04:09:08 -0800 (PST) Message-ID: <2c31877a-ae19-8e6a-e99f-e2f687df89fd@linaro.org> Date: Mon, 7 Feb 2022 09:09:06 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: cross-toolchain for x86 fails to compile Content-Language: en-US To: Waldemar Brodkorb , libc-help@sourceware.org References: From: Adhemerval Zanella In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2022 12:09:11 -0000 On 04/02/2022 21:35, Waldemar Brodkorb wrote: > Hi, > > I am doing my regular update in OpenADK and updated to glibc 2.35. > All toolchains are build fine except x86. > > I am getting following error with binutils 2.37 and gcc 11.2: > /home/wbx/embedded-test/openadk/toolchain_qemu-x86_glibc/usr/bin/i686-openadk-linux-gnu-gcc > -o > /home/wbx/embedded-test/openadk/toolchain_build_qemu-x86_glibc/w-glibc-2.35-1/glibc-2.35-final/support/test-run-command > -nostdlib -nostartfiles -static -static-pie > /home/wbx/embedded-test/openadk/toolchain_build_qemu-x86_glibc/w-glibc-2.35-1/glibc-2.35-final/csu/rcrt1.o > /home/wbx/embedded-test/openadk/toolchain_build_qemu-x86_glibc/w-glibc-2.35-1/glibc-2.35-final/csu/crti.o > `/home/wbx/embedded-test/openadk/toolchain_qemu-x86_glibc/usr/bin/i686-openadk-linux-gnu-gcc > --print-file-name=crtbeginS.o` > /home/wbx/embedded-test/openadk/toolchain_build_qemu-x86_glibc/w-glibc-2.35-1/glibc-2.35-final/support/test-run-command.o > /home/wbx/embedded-test/openadk/toolchain_build_qemu-x86_glibc/w-glibc-2.35-1/glibc-2.35-final/elf/static-stubs.o > /home/wbx/embedded-test/openadk/toolchain_build_qemu-x86_glibc/w-glibc-2.35-1/glibc-2.35-final/support/libsupport_nonshared.a > -Wl,--start-group > /home/wbx/embedded-test/openadk/toolchain_build_qemu-x86_glibc/w-glibc-2.35-1/glibc-2.35-final/libc.a > -lgcc -Wl,--end-group > `/home/wbx/embedded-test/openadk/toolchain_qemu-x86_glibc/usr/bin/i686-openadk-linux-gnu-gcc > --print-file-name=crtendS.o` > /home/wbx/embedded-test/openadk/toolchain_build_qemu-x86_glibc/w-glibc-2.35-1/glibc-2.35-final/csu/crtn.o > /home/wbx/embedded-test/openadk/toolchain_qemu-x86_glibc/usr/lib/gcc/i686-openadk-linux-gnu/11.2.0/../../../../i686-openadk-linux-gnu/bin/ld: > /home/wbx/embedded-test/openadk/toolchain_build_qemu-x86_glibc/w-glibc-2.35-1/glibc-2.35-final/libc.a(setlocale.o): > relocation R_386_GOT32 against absolute symbol > `_nl_current_LC_CTYPE_used' in section `__libc_freeres_fn' is > disallowed > collect2: error: ld returned 1 exit status > gmake[8]: *** [../Rules:293: > /home/wbx/embedded-test/openadk/toolchain_build_qemu-x86_glibc/w-glibc-2.35-1/glibc-2.35-final/support/test-run-command] > Error 1 > gmake[7]: *** [Makefile:483: support/others] Error 2 > gmake[6]: *** [Makefile:9: all] Error 2 > gmake[5]: *** [Makefile:62: > /home/wbx/embedded-test/openadk/toolchain_build_qemu-x86_glibc/w-glibc-2.35-1/glibc-2.35/.compiled] > Error 2 > gmake[4]: *** [Makefile:106: glibc-compile] Error 2 > gmake[3]: *** [mk/build.mk:228: toolchain/final] Error 2 > gmake[2]: *** [/home/wbx/embedded-test/openadk/mk/build.mk:177: > world] Error 2 > gmake[1]: *** [Makefile.adk:25: all] Error 2 > make: *** [Makefile:22: all] Error 2 > build failed > > Is it a known bug in binutils or glibc? None we are aware of and we do build check on i686 constantly. I just did a build with gcc 11.2 and binutins 2.37 and I haven't see any issue. How did you build gcc and binutils?