[odb-users] ODB 2.5.0-b.21 Failing Test
Brian E. Coggins
becoggins at hotmail.com
Tue Dec 7 02:56:08 EST 2021
Hi Boris,
I’m trying to set up ODB on a new M1 Mac running Monterey 12.0.1, Xcode 13.1, and Homebrew GCC 11. Build2 built fine, and ODB compiled fine, but the test fails as follows:
$ bpkg test odb
test odb-2.5.0-b.21/tests/testscript{testscript}
odb-2.5.0-b.21/tests/testscript:18:1: error: odb-2.5.0-b.21/odb/odb stderr doesn't match regex
info: stderr: odb-2.5.0-b.21/tests/test/plugin/stderr-2
info: stderr regex: odb-2.5.0-b.21/tests/test/plugin/stderr-2.regex
clang: error: unknown argument: '-fplugin-arg-odb-svc-path=/usr/local/include'
clang: error: unknown argument: '-fplugin-arg-odb-svc-path=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1'
clang: error: unknown argument: '-fplugin-arg-odb-svc-path=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include'
clang: error: unknown argument: '-fplugin-arg-odb-svc-path=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include'
clang: error: unknown argument: '-fplugin-arg-odb-svc-path=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include'
clang: error: unknown argument: '-fplugin-arg-odb-svc-path=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks (framework directory)'
clang: error: unknown argument: '-fplugin-arg-odb-database=sqlite'
clang: error: unknown argument: '-fplugin-arg-odb-trace'
clang: error: unknown argument: '-fplugin-arg-odb-svc-file=dummy.hxx'
info: test id: plugin
info: while testing odb-2.5.0-b.21/dir{tests/}
info: while testing dir{odb-2.5.0-b.21/}
info: failed to test dir{odb-2.5.0-b.21/}
Any ideas? Seeing those clang errors makes me think ODB is trying to invoke g++ (clang) instead of g++-11?
Here’s how I set up the build:
$ bpkg create -d odb-gcc-11 cc config.cxx=g++-11 config.cc.coptions=-O3 config.bin.rpath=/usr/local/lib config.install.root=/usr/local
$ cd odb-gcc-11
$ bpkg build odb at https://pkg.cppget.org/1/beta
Thanks,
Brian
More information about the odb-users
mailing list