pkgsrc-Users archive

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

Re: boost-libs on macOS Ventura (13.x)



On 5/22/23 06:52, Adam wrote:
devel/boost-libs fails to build with the error below.  What I've managed
to figure out so far is that "-x c" is incompatible with "-std=c++14" on
recent versions of clang (macOS Ventura aarch64, macOS Monterey x86,
FreeBSD 13).  Odd thing is, I'm not seeing -std=c++14 in the compile
command shown.  Any suggestions would be appreciated...

===

...updating 15 targets...
clang-darwin.compile.c
bin.v2/libs/container/build/clang-darwin-14/release/pch-off/threading-multi/visibility-hidden/alloc_lib.o
error: invalid argument '-std=c++14' not allowed with 'C'

    "clang++" -x c -fPIC -O3 -Wall -fvisibility=hidden -Wno-inline
--target=arm64-apple-darwin  -DBOOST_ALL_NO_LIB=1
-DBOOST_CONTAINER_DYN_LINK=1 -DNDEBUG -I"."  -c -o
"bin.v2/libs/container/build/clang-darwin-14/release/pch-off/threading-multi/visibility-hidden/alloc_lib.o"
"libs/container/src/alloc_lib.c"

...failed clang-darwin.compile.c
bin.v2/libs/container/build/clang-darwin-14/release/pch-off/threading-multi/visibility-hidden/alloc_lib.o...
...skipped
<pbin.v2/libs/container/build/clang-darwin-14/release/pch-off/threading-multi/visibility-hidden>libboost_container.dylib
for lack of
<pbin.v2/libs/container/build/clang-darwin-14/release/pch-off/threading-multi/visibility-hidden>alloc_lib.o...


FYI, I can't reproduce this on macOS 13.4, Xcode 14.3.

Adm

amd64 or aarch64?

I just upgraded from 13.3.1 to 13.4 and still get the error.

Also, I have Xcode command-line tools only.

Darwin tarpon.local  bacon ~/Pkgsrc/pkgsrc/devel/boost-libs 1014:
(pkgsrc): xcode-select --version
xcode-select version 2397.



Home | Main Index | Thread Index | Old Index