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/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?

Joerg


Home | Main Index | Thread Index | Old Index