From owner-freebsd-toolchain@freebsd.org Mon May 20 01:11:56 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 526921598234 for ; Mon, 20 May 2019 01:11:56 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic308-3.consmr.mail.bf2.yahoo.com (sonic308-3.consmr.mail.bf2.yahoo.com [74.6.130.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0496084EF2 for ; Mon, 20 May 2019 01:11:54 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: gwPsMcQVM1k6j4aOot.43BuBIgkU_GSYhIiV7zyTW9MWrBxEmYKtlsco1NYmwsP YSCGKF9vdX0.3SKMcj3QCAsZCiiw_MCJrXJS12tePggwIK.5gAp02Jc.VxZfdsjEIrKUVS4ftK2a ItQnnqYLR825RxIrsWnLpTkuSXzXwIN6HcGoTrqbmTj8itoXdnp3EVVPCwkEIs4pF91n4WLIoBfL repq.anR8WwCTpd63INggzC2kHvMmXWDgVBC18R.QvldMYcJrssniOY_rK_wS8kM2fCSa9O.Guk3 kkNpNK68jsJu7x__43Pjz1bHgjZXEcHFQMxi6E4mLlpFRjjr4bnSYRxGDGh7jy7IzO2FzE8kn3xH h89SkWRXV994EVdwHfv6MgRm4ZLY0cwQbcCpWEMjO9JutCx4xiJLfzp29FxF8a7gBdwQLuxlW42M 1mwYUOhQCFaAzBHZlAMy0Osa9h6k8j3MyE0MEOBPBdsRRJYsX01_RjterwzCUTXh5osa1zaVmPtD 2FU3mqDr9sh.Y._W5OXzEGOwx522yrUBz_H.iFtGpELPkjgc9NkeRZ5RwlBsO18sCVwcL9.22RsB ttM6PbVqKGuR7sWh0C1VNv2c6f1Fzt0tmO0HU7BWfE5wAA3QKiHrplFiReb9Ig9VUV7m46oYpOCv 3NEh89odeqMgbXtCye6d6arHs7WOo6dzDQGXrqdJYXLfZQp5PUhfc4Z6emMEfCB5MbL1_PIMBEei zZghkZc_jz85d1sg6PeeQpsatR8LWcojGvXDSHgSCJkkeeVHeyDm6jFXu77EKe5BqGJLZQcNFLHE BA7TUWcfM2ORMcuKi89v7LdD8Qjbf1Cv42m6ybm4bOOA9zfBWYM305k9wJeG8J39JfC0jrPwOXzW SIi6oPqBiW51S.Q02nBsLrtYgrNvFRV09RsPb0xUhwmTDq_L.BegJMiazrqEjjnXY9.AEHv81xMS DZ8Xen9i8vgj4NlqR8Kf7ey1NODcbGKJcLHDotGzNiZYzhEswyc1uuHehWMVd69W.vcyQqNSAhQc 1iVRwb3T5MMwOPkeD1up1jfdFVAK5NNtOncjISxnunJr5Bx7iu6TVuVaFjU_._M43EF9Kw3P6c8a XxBLQJmpNmGPvbvBsZsyifmw_AmaOl3YKXQN4oVEmD9wGjEGeTtuvuWnAQQtjVp.PthqCtSEgqML jJpTOEs.WErap0jinzDYAa9ix7ORknAgcSs4Q1rh7lCxUcOqVa0VUk30dPCapHTQxTGsTLQSMEMs - Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.bf2.yahoo.com with HTTP; Mon, 20 May 2019 01:11:47 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.103]) ([76.115.7.162]) by smtp401.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID c980344ccdcd96facf171eb16003f1ba; Mon, 20 May 2019 01:11:44 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: FYI: Unable to build -r501994 ports' devel/llvm60 on clang 8 based powerpc64 system: "BFD (GNU Binutils) 2.32 assertion fail elflink.c:2935" From: Mark Millard In-Reply-To: Date: Sun, 19 May 2019 18:11:42 -0700 Cc: FreeBSD Toolchain , FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <21426EE8-7B54-4FFC-AEC7-898BD3185413@yahoo.com> References: <0743B28F-3F61-401F-BD61-B69C4B207559@yahoo.com> To: Dimitry Andric X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 0496084EF2 X-Spamd-Bar: + X-Spamd-Result: default: False [1.27 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:26101, ipnet:74.6.128.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.53)[-0.535,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.99)[0.987,0]; NEURAL_HAM_LONG(-0.07)[-0.067,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.39)[ip: (4.18), ipnet: 74.6.128.0/21(1.58), asn: 26101(1.26), country: US(-0.06)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[42.130.6.74.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 May 2019 01:11:56 -0000 On 2019-May-19, at 11:06, Dimitry Andric wrote: > On 19 May 2019, at 16:56, Mark Millard via freebsd-toolchain = wrote: >> This was in a poudriere bulk build on a head -r347549 based powerpc64 >> system with system clang 8 for cc and c++ and base/binutils >> for the likes of ld. (The system has the llvm libunwind patches >> for powerpc64 so throwing c++ exceptions work.) >>=20 >> [4397/4552] : && /usr/bin/c++ -fPIC -O2 -pipe -DNDEBUG = -fstack-protector-strong -isystem /usr/local/include = -fno-strict-aliasing -DNDEBUG -isystem /usr/local/include -fPIC = -fvisibility-inlines-hidden -Werror=3Ddate-time = -Werror=3Dunguarded-availability-new -std=3Dc++11 -Wall -W = -Wno-unused-parameter -Wwrite-strings -Wcast-qual = -Wmissing-field-initializers -pedantic -Wno-long-long = -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor = -Wstring-conversion -fcolor-diagnostics -ffunction-sections = -fdata-sections -O2 -pipe -DNDEBUG -fstack-protector-strong -isystem = /usr/local/include -fno-strict-aliasing -DNDEBUG -isystem = /usr/local/include -fstack-protector-strong -Wl,-z,origin -Wl,-O3 = -Wl,--gc-sections = -Wl,--version-script,/wrkdirs/usr/ports/devel/llvm60/work/.build/tools/lto= /LTO.exports -shared -Wl,-soname,libLTO.so.6 -o lib/libLTO.so.6.0.1 = tools/lto/CMakeFiles/LTO.dir/LTODisassembler.cpp.o = tools/lto/CMakeFiles/LTO.dir/lto.cpp.o -L/usr/local/lib = -Wl,-rpath,"\$ORIGIN/../ >> lib:/usr/local/lib" lib/libLLVM-6.0.so && : >> FAILED: lib/libLTO.so.6.0.1 >> : && /usr/bin/c++ -fPIC -O2 -pipe -DNDEBUG -fstack-protector-strong = -isystem /usr/local/include -fno-strict-aliasing -DNDEBUG -isystem = /usr/local/include -fPIC -fvisibility-inlines-hidden -Werror=3Ddate-time = -Werror=3Dunguarded-availability-new -std=3Dc++11 -Wall -W = -Wno-unused-parameter -Wwrite-strings -Wcast-qual = -Wmissing-field-initializers -pedantic -Wno-long-long = -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor = -Wstring-conversion -fcolor-diagnostics -ffunction-sections = -fdata-sections -O2 -pipe -DNDEBUG -fstack-protector-strong -isystem = /usr/local/include -fno-strict-aliasing -DNDEBUG -isystem = /usr/local/include -fstack-protector-strong -Wl,-z,origin -Wl,-O3 = -Wl,--gc-sections = -Wl,--version-script,/wrkdirs/usr/ports/devel/llvm60/work/.build/tools/lto= /LTO.exports -shared -Wl,-soname,libLTO.so.6 -o lib/libLTO.so.6.0.1 = tools/lto/CMakeFiles/LTO.dir/LTODisassembler.cpp.o = tools/lto/CMakeFiles/LTO.dir/lto.cpp.o -L/usr/local/lib = -Wl,-rpath,"\$ORIGIN/../lib:/usr/loc >> al/lib" lib/libLLVM-6.0.so && : >> /usr/bin/powerpc64-unknown-freebsd13.0-ld: BFD (GNU Binutils) 2.32 = assertion fail elflink.c:2935 >> /usr/bin/powerpc64-unknown-freebsd13.0-ld: BFD (GNU Binutils) 2.32 = assertion fail elflink.c:2935 >=20 > See . I think this is a BFD ld bug, > but I still haven't been able to come up with a small test case. Any > help appreciated. :-) (Also noted in bugzilla comment #13:) The following 2 link commands, producing and using an vastly-smaller lib/libLLVM-6.0.so reproduce the messages: "/usr/bin/powerpc64-unknown-freebsd13.0-ld" \ "-Bshareable" \ "-o" "lib/libLLVM-6.0.so" \ "/usr/lib/crtbeginS.o" \ "--version-script" = "/wrkdirs/usr/ports/devel/llvm60/work/.build/./lib/tools/llvm-shlib/simple= _version_script.map" \ "--whole-archive" \ "lib/libLLVMCore.a" \ "--no-whole-archive" \ "-lm" /usr/bin/powerpc64-unknown-freebsd13.0-ld \ "-Bshareable" \ "-o" "lib/libLTO.so.6.0.1" \ "lib/libLLVM-6.0.so" It looks like lib/libLLVMCore.a would be next for making it smaller. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)