pkgsrc-Users archive

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

Re: Help with security/hs-digest on Darwin/aarch64




> Am 16.08.2024 um 19:42 schrieb Jason White <jdwhite%menelos.com@localhost>:
> 
> FWIW,
> 
> root@pkgbuild:/opt/pkgsrc/security/hs-digest# which clang++
> /usr/bin/clang++
> root@pkgbuild:/opt/pkgsrc/security/hs-digest# clang++ -std=gnu++11
> clang: error: no input files

This is not the issue. I did the following:

1. Ran the build with „PKG_VERBOSE=1“, which gave me a command:

/opt/pkg/bin/ghc -c -fPIC -odir dist/build -Idist/build/autogen -Idist/build/global-autogen -Idist/build -Iinclude -Iexternal/crc32c/include -Idist/build/include -Idist/build/external/crc32c/include -optcxx-O2 '-optcxx-std=c++11' -pgmc /Users/bsiegert/pkgsrc/security/hs-digest/work/.cwrapper/bin/clang -hide-all-packages -no-user-package-db -package-db dist/package.conf.inplace -package-id base-4.19.1.0-inplace -package-id bytestring-0.12.1.0-inplace external/crc32c/src/crc32c.cc -Wall -optl -L/usr/lib -optl -L/opt/pkg/lib -pgmlm /usr/bin/ld -optlm -r -tmpdir /var/folders/dw/9cf3_v6917jb80637blf2hf40000gn/T/

Which fails with this error message.

2. Traced the command by prefixing it with "sudo ktrace trace -S -f C3 -c“ (thanks StackOverflow), which shows ghc looking through $PATH (and the wrong one, as it does not consider the .wrapper/bin directory) for an executable named „clang++ -std=gnu++11“. That is, something probably sets CXX to this string and GHC does not split the argument at the space.

2024-08-18 14:47:30.005520 CEST        16.0              VFS_LOOKUP                           6556e656e308241f /opt/pkg/bin/clang++ -st                           2b66b7             4(AP-P) ghc-9.8.2(69074)
2024-08-18 14:47:30.005520 CEST         0.0(0.0)         VFS_LOOKUP                           d=gnu++11                                                           2b66b7             4(AP-P) ghc-9.8.2(69074)

I hope this gives you a hint as to how to fix this, since I have no idea :)

— 
Benny


Home | Main Index | Thread Index | Old Index