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 CF232385840F for ; Mon, 27 Sep 2021 17:54:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CF232385840F Received: by mail-pj1-x1030.google.com with SMTP id rm6-20020a17090b3ec600b0019ece2bdd20so667175pjb.1 for ; Mon, 27 Sep 2021 10:54:14 -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:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZE74eTet7SOLOVs95oFYVMji39BmnEhlK88xYjfDa5o=; b=fPJdTS9z7lfFY1g0rWfKXbotl3Msxt5WQnGhdYaeeGs09fdpj6nBsW4Mdv/KxpXOUI m3RoqAPb9pCb94VhUU6dMhrWjP04/Xz1vd8GZOKFn7phvL+1cZJLdOtKJvnNS/LsI31c UATRD2nKlfHzSjPoNW6xba6mEKJUtUa+3Ba4RmyJVNFUWzJtY3KhElJJhIqY37xSaWxb 9BTwjUhiuWInaCdiuuOrI/bBbx9culAMvYVOfUilFEmROdM/qRhYzEEFh7jHtBgz6//Z q1BTsIqdvCTIjdYQvuun8KNjyKt/bHc2o//dqaxvaShNLr/HYweZ7Wn8EwJioeJ0+V+5 +s9Q== X-Gm-Message-State: AOAM533AjRnj0Hk4m6rLNBEPjNW157hLB5gFV8PGLY+TvUf3m9hYhkBx scYSPO7uxxsW2Q9q8GxsIIm6+q37SnEbTDOmkkY= X-Google-Smtp-Source: ABdhPJwZ2f7QBKwxMqhwXoTfMiNCU70FMrTAwdDkJpFsu5kJJWYGRSItPmDDJO4xKEnxDS2P23MUmwsevF6GFumUZ9Q= X-Received: by 2002:a17:90a:b794:: with SMTP id m20mr419081pjr.178.1632765253786; Mon, 27 Sep 2021 10:54:13 -0700 (PDT) MIME-Version: 1.0 References: <20210913230506.546749-1-goldstein.w.n@gmail.com> <02afac02-47a5-43a5-8437-79fdbbea62aa@www.fastmail.com> <87mtoerl85.fsf@oldenburg.str.redhat.com> <875yumjx36.fsf@oldenburg.str.redhat.com> <87a6jyez7o.fsf@oldenburg.str.redhat.com> In-Reply-To: <87a6jyez7o.fsf@oldenburg.str.redhat.com> From: Noah Goldstein Date: Mon, 27 Sep 2021 12:54:02 -0500 Message-ID: Subject: Re: [PATCH 1/5] x86_64: Add support for bcmp using sse2, sse 4_1, avx2, and evex To: Florian Weimer Cc: Joseph Myers , Zack Weinberg , Zack Weinberg via Libc-alpha X-Spam-Status: No, score=-3.4 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.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2021 17:54:18 -0000 On Mon, Sep 27, 2021 at 11:54 AM Florian Weimer wrote: > * Noah Goldstein: > > > So I essentially get an error at the first build step in compilers (sam= e > for any target) > > > > i.e > > > > FAIL: compilers-arc-linux-gnu binutils build > > > > Looking inside the log I see: > > > > ``` > > /some/were/src/binutils/gas/as.c:110:31: error: > =E2=80=98DEFAULT_GENERATE_ELF_STT_COMMON=E2=80=99 > > undeclared here (not in a function) > > 110 | int flag_use_elf_stt_common =3D DEFAULT_GENERATE_ELF_STT_COMMON= ; > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > This is quite weird. It means that something went wrong when running > configure because it should be defined unconditionally. I haven't seen > a report of this error before. > > Do you use site defaults for autoconf or something like that? > > Could you please check what's in config.log for the binutils build? > (You may have to pass --keep failed to the Python script.) > Full command im using. $> python3 src/glibc/scripts/build-many-glibcs.py build-many/ checkout gcc-vcs-11; echo "Host Libraries"; python3 src/glibc/scripts/build-many-glibcs.py build-many host-libraries --keep=3Dall; echo "Compilers"; python3 src/glibc/scripts/build-many-glibcs.py build-many compilers x86_64-linux-gnu --keep=3Dall; echo "GLIBC"; python3 src/glibc/scripts/build-many-glibcs.py build-many glibcs --keep=3Dall binutils configure seems to PASS. Here is the full log file for x86-64-linux-gnu (my host). Note the build for x86-64 binutils still fails with the same error as arc. ``` $> cat build-many/logs/compilers/x86_64-linux-gnu/003-compilers-x86_64-linux-gnu-b= inutils-configure-log.txt Mon 27 Sep 2021 12:44:53 PM CDT Description: compilers-x86_64-linux-gnu binutils configure Command: /some/were/src/binutils/configure '--prefix=3D/some/were/install/compilers/x86_64-linux-gnu' '--build=3Dx86_64-pc-linux-gnu' '--host=3Dx86_64-pc-linux-gnu' '--target=3Dx86_64-glibc-linux-gnu' '--with-sysroot=3D/some/were/install/compilers/x86_64-linux-gnu/sysroot' --disable-gdb --disable-gdbserver --disable-libdecnumber --disable-readline --disable-sim Directory: /some/were/build/compilers/x86_64-linux-gnu/binutils Path addition: /some/were/install/compilers/x86_64-linux-gnu/bin checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-glibc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether ln works... yes checking whether ln -s works... yes checking for a sed that does not truncate output... /usr/bin/sed checking for gawk... gawk checking for x86_64-pc-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for gcc option to accept ISO C99... none needed checking for x86_64-pc-linux-gnu-g++... no checking for x86_64-pc-linux-gnu-c++... no checking for x86_64-pc-linux-gnu-gpp... no checking for x86_64-pc-linux-gnu-aCC... no checking for x86_64-pc-linux-gnu-CC... no checking for x86_64-pc-linux-gnu-cxx... no checking for x86_64-pc-linux-gnu-cc++... no checking for x86_64-pc-linux-gnu-cl.exe... no checking for x86_64-pc-linux-gnu-FCC... no checking for x86_64-pc-linux-gnu-KCC... no checking for x86_64-pc-linux-gnu-RCC... no checking for x86_64-pc-linux-gnu-xlC_r... no checking for x86_64-pc-linux-gnu-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether g++ accepts -static-libstdc++ -static-libgcc... yes checking for x86_64-pc-linux-gnu-gnatbind... no checking for gnatbind... no checking for x86_64-pc-linux-gnu-gnatmake... no checking for gnatmake... no checking whether compiler driver understands Ada... no checking how to compare bootstrapped objects... cmp --ignore-initial=3D16 $$f1 $$f2 checking for objdir... .libs checking for isl 0.15 or later... no required isl version is 0.15 or later *** This configuration is not supported in the following subdirectories: readline libdecnumber sim gdb gdbserver (Any other directories should still work fine.) checking for default BUILD_CONFIG... checking for --enable-vtable-verify... no checking for bison... bison -y checking for bison... bison checking for gm4... no checking for gnum4... no checking for m4... m4 checking for flex... flex checking for flex... flex checking for makeinfo... makeinfo checking for expect... no checking for runtest... no checking for x86_64-pc-linux-gnu-ar... no checking for ar... ar checking for x86_64-pc-linux-gnu-as... no checking for as... as checking for x86_64-pc-linux-gnu-dlltool... no checking for dlltool... no checking for x86_64-pc-linux-gnu-ld... no checking for ld... ld checking for x86_64-pc-linux-gnu-lipo... no checking for lipo... no checking for x86_64-pc-linux-gnu-nm... no checking for nm... nm checking for x86_64-pc-linux-gnu-ranlib... no checking for ranlib... ranlib checking for x86_64-pc-linux-gnu-strip... no checking for strip... strip checking for x86_64-pc-linux-gnu-windres... no checking for windres... no checking for x86_64-pc-linux-gnu-windmc... no checking for windmc... no checking for x86_64-pc-linux-gnu-objcopy... no checking for objcopy... objcopy checking for x86_64-pc-linux-gnu-objdump... no checking for objdump... objdump checking for x86_64-pc-linux-gnu-readelf... no checking for readelf... readelf checking for -plugin option... checking for x86_64-pc-linux-gnu-ar... (cached) ar --plugin /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so checking for x86_64-glibc-linux-gnu-cc... no checking for x86_64-glibc-linux-gnu-gcc... no checking for x86_64-glibc-linux-gnu-c++... no checking for x86_64-glibc-linux-gnu-g++... no checking for x86_64-glibc-linux-gnu-cxx... no checking for x86_64-glibc-linux-gnu-gxx... no checking for x86_64-glibc-linux-gnu-gcc... no checking for x86_64-glibc-linux-gnu-gfortran... no checking for x86_64-glibc-linux-gnu-gccgo... no checking for x86_64-glibc-linux-gnu-ar... no checking for x86_64-glibc-linux-gnu-as... no checking for x86_64-glibc-linux-gnu-dlltool... no checking for x86_64-glibc-linux-gnu-ld... no checking for x86_64-glibc-linux-gnu-lipo... no checking for x86_64-glibc-linux-gnu-nm... no checking for x86_64-glibc-linux-gnu-objcopy... no checking for x86_64-glibc-linux-gnu-objdump... no checking for x86_64-glibc-linux-gnu-ranlib... no checking for x86_64-glibc-linux-gnu-readelf... no checking for x86_64-glibc-linux-gnu-strip... no checking for x86_64-glibc-linux-gnu-windres... no checking for x86_64-glibc-linux-gnu-windmc... no checking where to find the target ar... just compiled checking where to find the target as... just compiled checking where to find the target cc... pre-installed checking where to find the target c++... pre-installed checking where to find the target c++ for libstdc++... pre-installed checking where to find the target dlltool... just compiled checking where to find the target gcc... pre-installed checking where to find the target gfortran... pre-installed checking where to find the target gccgo... pre-installed checking where to find the target ld... just compiled checking where to find the target lipo... pre-installed checking where to find the target nm... just compiled checking where to find the target objcopy... just compiled checking where to find the target objdump... just compiled checking where to find the target ranlib... just compiled checking where to find the target readelf... just compiled checking where to find the target strip... just compiled checking where to find the target windres... just compiled checking where to find the target windmc... just compiled checking whether to enable maintainer-specific portions of Makefiles... no configure: creating ./config.status config.status: creating Makefile PASS: compilers-x86_64-linux-gnu binutils configure Mon 27 Sep 2021 12:44:54 PM CDT ``` > Thanks, > Florian > >