From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 74815384A026; Thu, 19 Nov 2020 11:00:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74815384A026 From: "juergen.reuter at desy dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/97865] libtool needs to be updated for Darwin20. Date: Thu, 19 Nov 2020 11:00:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: juergen.reuter at desy dot de X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: iains at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2020 11:00:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97865 --- Comment #16 from J=C3=BCrgen Reuter --- (In reply to Iain Sandoe from comment #15) > (In reply to J=C3=BCrgen Reuter from comment #14) > > If there is a git branch or so, I could also test it on my system with = our > > code whether this works as expected. >=20 > Here you go - this is config.{sub, guess}, libtool and a small patch to > enable libsanitizer for darwin20 (which I'll likely push soon). >=20 > https://github.com/iains/gcc-git/tree/master-wip-config-darwin20 I tested your branch. Several observations:=20 (1) make worked, (I used gmp, mpfr and mpc without patches for them, there= =20 libtool is also outdated, but I'm not sure whether it has any influenc= e) (2) make check did not work because of the first error below. (3) make install did produce an error, strangely enough, as make worked wit= hout=20 problem. (4) I checked that on my system there is an older version of libasan instal= led. I thought this comes with every gcc installation, but apparently it=20 doesn't. Or do I have to build with a special sanitizer flag?=20 (5) Your branch does NOT solve the problems in our codes, I do see the same= =20 failures in our test suite like with the gcc trunk/master.=20 The test-suite for the gcc itself did not work because of this: sys/types.h /usr/local/packages/iains_gcc_git/fixincludes/tests/base/sys/types.h differ: char 243, line 12 *** sys/types.h 2020-11-19 08:29:08.000000000 +0100 --- /usr/local/packages/iains_gcc_git/fixincludes/tests/base/sys/types.h=20= =20=20=20=20=20=20 2020-11-18 22:28:10.000000000 +0100 *************** *** 9,19 **** - #if defined( AIX_PHYSADR_T_CHECK ) - typedef struct __physadr_s { - #endif /* AIX_PHYSADR_T_CHECK */ -=20 -=20 #if defined( GNU_TYPES_CHECK ) #if !defined(_GCC_PTRDIFF_T) #define _GCC_PTRDIFF_T --- 9,14 ---- There were fixinclude test FAILURES make[2]: *** [check] Error 1 make[1]: *** [check-fixincludes] Error 2 make: *** [do-check] Error 2 Also `make install` did not work properly due to the following error (which= is strange, as make worked without problems).=20 -L/usr/local//lib -lmpc -lmpfr -lgmp -L./../zlib -lz=20 clang: error: argument unused during compilation: '-no-pie' [-Werror,-Wunused-command-line-argument] make[2]: [cc1plus] Error 1 (ignored) g++ -std=3Dc++11 -no-pie -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=3Dformat-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -o f951 \ fortran/arith.o fortran/array.o fortran/bbt.o fortran/check= .o fortran/class.o fortran/constructor.o fortran/cpp.o fortran/data.o fortran/decl.o fortran/dump-parse-tree.o fortran/error.o fortran/expr.o fortran/interface.o fortran/intrinsic.o fortran/io.o fortran/iresolve.o fortran/match.o fortran/matchexp.o fortran/misc.o fortran/module.o fortran/openmp.o fortran/options.o fortran/parse.o fortran/primary.o fortran/resolve.o fortran/scanner.o fortran/simplify.o fortran/st.o fortran/symbol.o fortran/target-memory.o darwin-f.o fortran/convert.o fortran/dependency.o fortran/f95-lang.o fortran/trans.o fortran/trans-array= .o fortran/trans-common.o fortran/trans-const.o fortran/trans-decl.o fortran/trans-expr.o fortran/trans-intrinsic.o fortran/trans-io.o fortran/trans-openmp.o fortran/trans-stmt.o fortran/trans-types.o fortran/frontend-passes.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a -L./../zlib -lz libcommon= .a ../libcpp/libcpp.a ./../intl/libintl.a -liconv=20 ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a attribs.o \ -L/usr/local//lib -L/usr/local//lib -lmpc -lmpfr -lgmp=20= =20 -L./../zlib -lz=20 clang: error: argument unused during compilation: '-no-pie' [-Werror,-Wunused-command-line-argument] make[2]: [f951] Error 1 (ignored) g++ -std=3Dc++11 -no-pie -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=3Dformat-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -o lto1 \ lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o lto/lto-partition.o lto/lto-symtab.o lto/lto-common.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a -L/usr/local//lib -L/usr/local//lib -lmpc -lmpfr -lgmp -L./../zlib -lz libcommon.a ../libcpp/libcpp.a ./../intl/libintl.a -liconv ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a=20 clang: error: argument unused during compilation: '-no-pie' [-Werror,-Wunused-command-line-argument] make[2]: [lto1] Error 1 (ignored) g++ -std=3Dc++11 -no-pie -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=3Dformat-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -o lto-dump \ lto/lto-lang.o lto/lto-object.o attribs.o lto/lto-partition= .o lto/lto-symtab.o lto/lto-dump.o lto/lto-common.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a -L/usr/local//lib -L/usr/local//lib -lmpc -lmpfr -lgmp -L./../zlib -lz libcommon.a ../libcpp/libcpp.a ./../intl/libintl.a -liconv ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a=20 clang: error: argument unused during compilation: '-no-pie' [-Werror,-Wunused-command-line-argument] make[2]: [lto-dump] Error 1 (ignored)=