From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.web.de (mout.web.de [212.227.15.4]) by sourceware.org (Postfix) with ESMTPS id 0E7703858D1E for ; Wed, 30 Nov 2022 23:09:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0E7703858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Web.DE Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Web.DE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1669849793; bh=ycyr7iDgoJwMBxwDjV9V+j3co7CodGnWV0TP+PsaArw=; h=X-UI-Sender-Class:Subject:From:In-Reply-To:Date:Cc:References:To; b=SH6FAoKTa1FVnToYcumb6rljvZoM3z1ExOTuAVxFb0IFQ3nyL9L3lfdicMX5+MJrP IW/HP4JpEAmcMuRkoqa0LuZOfcxYHGKo6HQNsBnBILXhz7dPMWqaQeAQ+kIZNMC7He kxXgrkRSb9yEaSKQCOanO0eF2dr2q11C/AiCfQ5Wy/3vmO0V5xyhYEBDTJMqoXO9tF +nbL4Gsn47sDo+jB1io3fqVLRHxFcAYA4x9Sp0Pq5nQnIyQAmj09iqEtpDognseMiR nmVXwe1fdoWYDHFHF80VGWwkyc+Vy0EIwu/Fv7xwxmHZn3pE5YvB0mxhbQRrg8SJ9x 9hQOAhQRKqStA== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from smtpclient.apple ([176.199.93.201]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MHmlu-1pC3Lb23oU-00FMfk; Thu, 01 Dec 2022 00:09:53 +0100 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: Configuring GCC 10.3 on PPC Mac OS X 10.4.11/Tiger for build reveals flaws in configure scripts From: Peter Dyballa In-Reply-To: <20221125155607.GI25951@gate.crashing.org> Date: Thu, 1 Dec 2022 00:09:50 +0100 Cc: Jonathan Wakely , gcc-help@gcc.gnu.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20221125155607.GI25951@gate.crashing.org> To: Segher Boessenkool X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Provags-ID: V03:K1:CDkuAemVg64knittjUTFHxM4oR+yPqVGdbui7o66/aB9g7Ea3KY PtF8aCykWI0vRcQ8gqyaDGf0mPqj6Jhm7Wpubk5aCewAd/Aka5lbaXa7Y9QlBRYRjMr/D9J KlBmWYxSBGPEFBQF1wYqy3KCbm1avIiP7gemMnBdFpQLp79tvoiXJsDT6GtaVJdrzBdgzcM /oORVf1Zf2u9oIF0MIPLw== UI-OutboundReport: notjunk:1;M01:P0:xielaY1ghw0=;boYTllqxrRfC3pUKLyK8pFUSu7P fBhxH2lYONueI50eQrDRXeqW2CudCBAeqsnJuPCC/Xdh6njb0CpVrIYwCfXAsmpEvP0syZwB3 oSLbqoDLJPVufddqKJz7FlPVdGQx+iZaerJ+/UaZX5WeeyT2L/48Avn4YPw6AfM0NktIGpmN5 D6C2y+NgEicdO3DCJwT3yEVmVBRSN+fH9AEUbnMY6+FnXWiFWboG+rMfR4q8jupIxlq0MBhDN nE/1al+xfYSy++ZkeD8b5O25LhiSQav2OEo3KoiKjURxunaWcIhk1AHhoCr2YGoMthrkY85LY GldSV0dzZnSllFH90/F9JjetQS8W102DCGaf1EMHIXaJW79pKguSjbLkosCSP0WEbUBZSJt7u wEv/fBWAoK9p7FBDkh+898tqq6A1d1JUuJDCcxqRqkpc6xzq4lrqxcaDUKV8NMMEF6d/xe1aR bYwPiBc/MKdBJ8kSRUSepCLke+OQmcOa43UO9b6/0TVozstCTgPt3mNCgHW/H+W6og3GRyT9y HpuZ81ELqxdXTMlwG5CwRXiFxFPCw5HN8vD+5V8X69Hxtul83jUbta/ZPHuAJbJg6BpAB5avv 6wmi0r/9jOlOxNcdXhGQz3wqO3426mSTR0LQqSFOHhsfxhUSI19nK8JXT/Gja/fsqgRwVmVjh YJPYoBd9MLtDD4l0RLfWgZoRubEe14y8jBV7B0zl3T0OXuhl0QZrreqYYkLLgGNH8eidQ52J6 lcWafhQ0Au6mNJaaXGnDljO9PbNf3aQJHppIO0Fwo66kyFGA23rIvb0rYNYWCnm0lLCoEeyMP m6JfGA7r5TFBS/H0AHK5IDS8ziL+R+wlv+NggZnhQX+xcLIvAY1p+VxlSFxtpIGZ4dzKYqUT4 8UiqDaOXQLzTNtOiwJ5ma0DZRfcgz6Znp5CMY2vZGORqXfAzIKoJvTYEKYAA2y6eZ49lySgQK KJ8nwaod0lTwOaz8eWiXOjP58es= X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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: Hello! Here is my evaluation from building GCC 10.4 on PPC Mac OS X 10.4.11, = Tiger, with modern tools with 40 hours. I am using in the first, = leftmost column, line numbers from compile log in GNU Emacs which = quantify when one of the many steps is taken. It might help classify and = explain some differences between building GCC 10.3 and GCC 10.4 I = encountered. 10:Configuring stage 1 in ./intl 134:Configuring stage 1 in ./gcc 620:Configuring stage 1 in ./libiberty configure: target_header_dir =3D <=3D=3D=3D= no title here 1367:Configuring in build-powerpc-apple-darwin8.11.0/libiberty configure: target_header_dir =3D <=3D=3D=3D= no title here 2110:Configuring in build-powerpc-apple-darwin8.11.0/fixincludes 2232:Configuring in build-powerpc-apple-darwin8.11.0/libcpp 2397:Configuring stage 1 in ./libbacktrace checking for readelf... readelf checking whether objcopy supports debuglink... = ..../gcc-10.4.0/libbacktrace/configure: line 13493: = --add-gnu-debuglink=3Dx: command not found no checking whether tests can run... yes 2598:Configuring stage 1 in ./libcpp 2766:Configuring stage 1 in ./libdecnumber checking target system type... powerpc-apple-darwin8.11.0 checking for decimal floating point... configure: WARNING: = decimal float is not supported for this target, ignored =3D=3D> dpd checking whether byte ordering is bigendian... yes 4128:Configuring stage 1 in powerpc-apple-darwin8.11.0/libgcc 5263:Configuring stage 1 in powerpc-apple-darwin8.11.0/libgomp 5588:Configuring stage 1 in powerpc-apple-darwin8.11.0/libstdc++-v3 configure: Debug build flags set to -gdwarf-4 -g3 -O0 = -D_GLIBCXX_ASSERTIONS ... checking uchar.h usability... no checking uchar.h presence... no checking for uchar.h... no2 =3D=3D> no checking for int64_t... yes checking for int64_t as long... checking for int64_t as long = long... yes ... checking for local stylesheet directory... yes configure: <=3D=3D=3D= no comment here checking for docbook stylesheets for documentation creation... = yes ... Running configure in multilib subdir ppc64 ... configure: Debug build flags set to -gdwarf-4 -g3 -O0 = -D_GLIBCXX_ASSERTIONS /* for orientation */ ... checking uchar.h usability... no checking uchar.h presence... no checking for uchar.h... no =3D=3D> no checking for int64_t... yes checking for int64_t as long... checking for int64_t as long = long... yes ... checking for local stylesheet directory... yes configure: <=3D=3D=3D= no comment here checking for docbook stylesheets for documentation creation... = yes 8500:Configuring stage 2 in ./intl 8626:Configuring stage 2 in ./gcc checking __stack_chk_fail in target C library... checking for = __stack_chk_fail... no no __stack_chk_fail on this target =3D=3D> no checking sys/sdt.h in the target C library... no ... checking for otool64... otool64 checking for -single_module linker flag... warning: no debug map = in executable (-arch ppc) yes checking for -exported_symbols_list linker flag... yes checking for -force_load linker flag... warning: no debug map in = executable (-arch ppc) no checking for dlfcn.h... yes 9116:Configuring stage 2 in ./libiberty checking whether to install libiberty headers and static = library... no configure: target_header_dir =3D=20 checking for powerpc-apple-darwin8.11.0-gcc... = ..../feddich/./prev-gcc/xgcc -B..../feddich/./prev-gcc/ = -B/usr/local/powerpc-apple-darwin8.11.0/bin/ = -B/usr/local/powerpc-apple-darwin8.11.0/bin/ = -B/usr/local/powerpc-apple-darwin8.11.0/lib/ -isystem = /usr/local/powerpc-apple-darwin8.11.0/include -isystem = /usr/local/powerpc-apple-darwin8.11.0/sys-include -fno-checking 9888:Configuring stage 2 in ./libbacktrace checking whether objcopy supports debuglink... = ..../gcc-10.4.0/libbacktrace/configure: line 13493: = --add-gnu-debuglink=3Dx: command not found no checking whether tests can run... yes 10096:Configuring stage 2 in ./libcpp 10266:Configuring stage 2 in ./libdecnumber checking target system type... powerpc-apple-darwin8.11.0 checking for decimal floating point... configure: WARNING: = decimal float is not supported for this target, ignored =3D=3D> dpd checking whether byte ordering is bigendian... yes 34397:Configuring stage 2 in powerpc-apple-darwin8.11.0/libgcc 35532:Configuring stage 2 in powerpc-apple-darwin8.11.0/libgomp 35857:Configuring stage 2 in powerpc-apple-darwin8.11.0/libstdc++-v3 configure: Debug build flags set to -gdwarf-4 -g3 -O0 = -D_GLIBCXX_ASSERTIONS ... checking uchar.h usability... no checking uchar.h presence... no checking for uchar.h... no =3D=3D> no checking for int64_t... yes checking for int64_t as long... checking for int64_t as long = long... yes ... checking for local stylesheet directory... yes configure: <=3D=3D=3D= no comment here checking for docbook stylesheets for documentation creation... = yes ... Running configure in multilib subdir ppc64 ... configure: Debug build flags set to -gdwarf-4 -g3 -O0 = -D_GLIBCXX_ASSERTIONS ... checking uchar.h usability... no checking uchar.h presence... no checking for uchar.h... no =3D=3D> no checking for int64_t... yes checking for int64_t as long... checking for int64_t as long = long... yes ... checking for shared library run path origin... done checking for iconv... no, consider installing GNU libiconv = <=3D=3D=3D libiconv and /opt/local/bin/iconv are installed, other tests = (stage3 stdc++) find it looking for a compliant stdint.h in stdint.h, checking for = uintmax_t... yes ... checking for local stylesheet directory... yes configure: <=3D=3D=3D= no comment here checking for docbook stylesheets for documentation creation... = yes 38769:Configuring stage 3 in ./intl 38895:Configuring stage 3 in ./gcc checking __stack_chk_fail in target C library... checking for = __stack_chk_fail... no no __stack_chk_fail on this target =3D=3D> no checking sys/sdt.h in the target C library... no 39383:Configuring stage 3 in ./libiberty 40155:Configuring stage 3 in ./libbacktrace checking output filetype...=20 configure: WARNING: could not determine output file type = <=3D=3D=3D happens three times during build looking for a compliant stdint.h in stdint.h, checking for = uintmax_t... yes ... checking for readelf... readelf checking whether objcopy supports debuglink... = ..../gcc-10.4.0/libbacktrace/configure: line 13493: = --add-gnu-debuglink=3Dx: command not found no checking whether tests can run... yes 40361:Configuring stage 3 in ./libcpp 40531:Configuring stage 3 in ./libdecnumber checking target system type... powerpc-apple-darwin8.11.0 checking for decimal floating point... configure: WARNING: = decimal float is not supported for this target, ignored =3D=3D> dpd checking whether byte ordering is bigendian... yes 64662:Configuring stage 3 in powerpc-apple-darwin8.11.0/libgcc 65797:Configuring stage 3 in powerpc-apple-darwin8.11.0/libgomp 66122:Configuring stage 3 in powerpc-apple-darwin8.11.0/libstdc++-v3 checking uchar.h usability... no checking uchar.h presence... no checking for uchar.h... no =3D=3D> no checking for int64_t... yes checking for int64_t as long... checking for int64_t as long = long... yes ... checking for local stylesheet directory... yes configure: <=3D=3D=3D= no comment here checking for docbook stylesheets for documentation creation... = yes ... Running configure in multilib subdir ppc64 ... configure: Debug build flags set to -gdwarf-4 -g3 -O0 = -D_GLIBCXX_ASSERTIONS ... checking uchar.h usability... no checking uchar.h presence... no checking for uchar.h... no =3D=3D> no checking for int64_t... yes checking for int64_t as long... checking for int64_t as long = long... yes ... checking for local stylesheet directory... yes configure: <=3D=3D=3D= no comment here checking for docbook stylesheets for documentation creation... = yes 69046:Configuring in ./fixincludes 69175:Configuring in ./libcc1 checking for gethostbyname... yes <=3D=3D=3D= empty line checking for exported symbols... yes 69307:Configuring in powerpc-apple-darwin8.11.0/libssp 69784:Configuring in powerpc-apple-darwin8.11.0/libquadmath Running configure in multilib subdir ppc64 checking for egrep... /opt/local/bin/ggrep -E checking for ANSI C header files... rm: conftest.dSYM: is a = directory =3D=3D> rm: conftest.dSYM: is a directory <=3D=3D= =3D complains twice yes checking for sys/types.h... yes 70158:Configuring in powerpc-apple-darwin8.11.0/libobjc 70851:Configuring in powerpc-apple-darwin8.11.0/libitm 71440:Configuring in powerpc-apple-darwin8.11.0/libatomic GCC 10.3 was built with old system's tools and utilities, while for GCC = 10.4 I could use modernised versions. This might explain a few = differences. Particularly the following: 134:Configuring stage 1 in ./gcc 524:checking assembler for -mmacosx-version-min option... no 537:checking assembler for compressed debug sections... 0 549:checking linker for compressed debug sections... 0 Presumingly the old as is better integrated in Mac OS X and configure = finds in GCC 10.3: checking assembler for -mmacosx-version-min option... yes checking assembler for compressed debug sections... 2 checking linker for compressed debug sections... 0 Is this difference intended? Three times configure finds: 2509:configure: WARNING: could not determine output file type 10005:configure: WARNING: could not determine output file type 40270:configure: WARNING: could not determine output file type while it finds 45 times: checking for C compiler default output file name... a.out Is this difference intended? Another (intended?) difference is this: 10.3: checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen = itself... yes checking whether a program can dlopen itself... cross checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen = itself... yes checking whether a program can dlopen itself... cross checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen = itself... yes checking whether a program can dlopen itself... cross =09 10.4: 5673:checking whether a program can dlopen itself... no 6244:checking whether a program can dlopen itself... cross 35942:checking whether a program can dlopen itself... no 36513:checking whether a program can dlopen itself... cross 66207:checking whether a program can dlopen itself... no 66778:checking whether a program can dlopen itself... cross A bit disturbing is this, finding yes and no for the same item, __int128 = (because libquadmath supports this data type?): 5698:checking for ISO/IEC TR 24733 ... no 5699:checking for __int128... no 5700:checking for __float128... no 6269:checking for ISO/IEC TR 24733 ... no 6270:checking for __int128... yes 6271:checking for __float128... no 35967:checking for ISO/IEC TR 24733 ... no 35968:checking for __int128... no 35969:checking for __float128... no 36538:checking for ISO/IEC TR 24733 ... no 36539:checking for __int128... yes 36540:checking for __float128... no 66232:checking for ISO/IEC TR 24733 ... no 66233:checking for __int128... no 66234:checking for __float128... no 66803:checking for ISO/IEC TR 24733 ... no 66804:checking for __int128... yes 66805:checking for __float128... no (Disk space used after building: almost 5 GB.) -- Greetings Pete A designer knows he has arrived at perfection not when there is no = longer anything to add, but when there is no longer anything to take = away. =E2=80=93 Antoine de Saint-Exup=C3=A9ry