pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: heads-up for macOS users re new ld(1) implementation



On 2023-10-01 12:38, Tobias Nygren wrote:
stderr: ld: unknown options: --version
---

     .. which I don't know if it's a bug, or a new and exciting design
decision from Apple.

     The LDFLAGS.Darwin setting doesn't seem to work around this issue --
should it?

Looks like it would need a patch to use "ld -v" instead of
"ld --version". Which package is that?

   I'm getting that error in devel/glib2:

---
The Meson build system
Version: 1.0.0
Source dir: /Volumes/ramdisk/bld/devel/glib2/work/glib-2.74.4
Build dir: /Volumes/ramdisk/bld/devel/glib2/work/glib-2.74.4/output
Build type: native build
Project name: glib
Project version: 2.74.4

meson.build:1:0: ERROR: Unable to detect linker for compiler `clang -Wl,--version -L/Users/jan/pkg/lib -L/usr/lib -O2 -I/Users/jan/pkg/include -I/Users/jan/pkg/include/python3.10 -I/Users/jan/pkg/include -I/Users/jan/pkg/include/python3.10`
stdout:
stderr: ld: unknown options: --version
clang: error: linker command failed with exit code 1 (use -v to see invocation)


A full log can be found at /Volumes/ramdisk/bld/devel/glib2/work/glib-2.74.4/output/meson-logs/meson-log.txt
*** Error code 1

Stop.
bmake[2]: stopped in /Users/jan/pkgsrc/devel/glib2
*** Error code 1
---


   In addition I'm getting a few packages fail due to this:

---
checking for Ogg... no
*** Could not run Ogg test program, checking why...
*** The test program failed to compile or link. See the file config.log for the *** exact error that occured. This usually means Ogg was incorrectly installed
*** or that you have moved Ogg since it was installed.
configure: error: must have Ogg installed!
*** Error code 1

Stop.
bmake[4]: stopped in /Users/jan/pkgsrc/audio/libvorbis
*** Error code 1
---

   This kind of looks like it's the same problem.

... indeed, config.log confirms that clang is upset about --version not being a thing.

--
Kind regards,
Jan Danielsson


Home | Main Index | Thread Index | Old Index