From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from d.mail.sonic.net (d.mail.sonic.net [64.142.111.50]) by sourceware.org (Postfix) with ESMTPS id 1BC443857828 for ; Wed, 27 Jan 2021 02:47:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1BC443857828 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=casner@acm.org Received: from auge (75-25-121-24.lightspeed.snvaca.sbcglobal.net [75.25.121.24]) (authenticated bits=0) by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id 10R2lOfV029365 (version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 26 Jan 2021 18:47:24 -0800 Date: Tue, 26 Jan 2021 18:47:23 -0800 (PST) From: Stephen Casner To: Nick Alcock cc: binutils@sourceware.org Subject: Re: [PATCH] ld: depend on libctf In-Reply-To: Message-ID: References: <20210126195543.369264-1-nick.alcock@oracle.com> User-Agent: Alpine 2.21.9999 (OSX 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Sonic-CAuth: UmFuZG9tSVZGnS/6GAKInpIgANtPk0DJkPzDnp6SOUPBjhBarclahnRYIGD2BEXB7MHhNDaBwidcT044Oi1O90JCIOVg0WRN X-Sonic-ID: C;6mnw+0lg6xGFOOyC/iHpiQ== M;WicY/Elg6xGFOOyC/iHpiQ== X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-Spam-Status: No, score=-9.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2021 02:47:32 -0000 It seems I am stuck, so if any of you have advice I would appreciate it. Switching to gcc10 did not help because the problem is ld. I have the MacPorts binutils package installed (2.34 is latest), but I see that does not include ld. The ld that I have is: auge57> ld -v @(#)PROGRAM:ld PROJECT:ld64-530 BUILD 18:57:17 Dec 13 2019 configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em LTO support using: LLVM version 11.0.0, (clang-1100.0.33.17) (static support for 23, runtime is 23) TAPI support using: Apple TAPI version 11.0.0 (tapi-1100.0.11) I have the binutils sources, of course, in order to build the pdp11 cross, but I can't build the native ld, either. Is a binary for macOS 10.14 available somewhere? -- Steve On Tue, 26 Jan 2021, Stephen Casner wrote: > Looking more closely at the error message I just mentioned... > > > ld: warning: ignoring file ../libctf/.libs/libctf.a, building for macOS-x86_64 but attempting to link with file built for macOS-x86_64 > > That doesn't make any sense because macOS-x86_64 = macOS-x86_64. Does > building with clang no longer work? Since the library file was > ignored, it's no surprise that there were symbols not found. > > -- Steve > > > Undefined symbols for architecture x86_64: > > "_ctf_archive_iter", referenced from: > > _dump_bfd in objdump.o > > "_ctf_bfdopen_ctfsect", referenced from: > > _dump_bfd in objdump.o > > "_ctf_close", referenced from: > > _dump_bfd in objdump.o > > "_ctf_dict_close", referenced from: > > _dump_bfd in objdump.o > > "_ctf_dict_open", referenced from: > > _dump_bfd in objdump.o > > "_ctf_dump", referenced from: > > _dump_ctf_archive_member in objdump.o > > "_ctf_errmsg", referenced from: > > _dump_bfd in objdump.o > > _dump_ctf_errs in objdump.o > > _dump_ctf_archive_member in objdump.o > > "_ctf_errno", referenced from: > > _dump_ctf_archive_member in objdump.o > > "_ctf_errwarning_next", referenced from: > > _dump_ctf_errs in objdump.o > > "_ctf_import", referenced from: > > _dump_ctf_archive_member in objdump.o > > ld: symbol(s) not found for architecture x86_64 > > clang: error: linker command failed with exit code 1 (use -v to see invocation)