tech-pkg archive

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

Re: clang on macOS and overzealous warnings



On 9/17/25 12:30 AM, Greg Troxel wrote:
Jörg Sonnenberger <joerg%bec.de@localhost> writes:
On 9/13/25 1:56 AM, Greg Troxel wrote:
Under pkgsrc, it errors out:
 checking for the mincore function
 clang: error: argument unused during compilation: '-L/opt/n0/pkgsrc/sysutils/bup/work/.buildlink/lib' [-Werror,-Wunused-command-line-argument]
 clang: error: argument unused during compilation: '-L/opt/n0/pkgsrc/sysutils/bup/work/.buildlink/lib' [-Werror,-Wunused-command-line-argument]
 clang: error: argument unused during compilation: '-L/opt/n0/pkgsrc/sysutils/bup/work/.buildlink/lib' [-Werror,-Wunused-command-line-argument]
But the wrappers are also passing -Qunused-arguments, which overrides
that warning. Are you using the correct compiler?
I'm not doing anything special. It's an old bootstrap, but it's running
macOS command-line-tools clang.
What's PKGSRC_COMPILER? Can you check work.log?
Joerg


Home | Main Index | Thread Index | Old Index

AltStyle によって変換されたページ (->オリジナル) /