[odb-users] ODB 2.5.0-b.21 Failing Test

Brian E. Coggins becoggins at hotmail.com
Wed Dec 8 08:18:19 EST 2021


Yes, here we are:

$ b config.cxx=g++-11
'gcc version 11.2.0 (Homebrew GCC 11.2.0_3)'
'aarch64-apple-darwin21.1.0' 'aarch64' 'darwin'
'x86_64-apple-darwin21' 'x86_64' 'darwin'
<buildspec>: error: unknown target dir{./} in buildfile

$ b config.vxx=clang++
'Apple clang version 13.0.0 (clang-1300.0.29.3)'
'aarch64-apple-darwin21.1.0' 'aarch64' 'darwin'
'aarch64-apple-darwin21.1.0' 'aarch64' 'darwin'
<buildspec>: error: unknown target dir{./} in buildfile



> On 8 Dec 2021, at 06:31, Boris Kolpackov <boris at codesynthesis.com> wrote:
> 
> Brian E. Coggins <becoggins at hotmail.com> writes:
> 
>> 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:
>> 
>> [...]
>> 
>> Any ideas?  Seeing those clang errors makes me think ODB is trying
>> to invoke g++ (clang) instead of g++-11?
> 
> Yes, it looks like the ODB buildfile thinks for some reason that you
> are cross-compiling and thus uses just 'g++' for the GCC driver.
> 
> To shed some light on what's going on here could you perform the
> following test and send the output of the last two commands:
> 
> mdkir /tmp/test
> cd test /tmp/test
> 
> cat <<EOF >buildfile
> using cxx
> print "'\$cxx.signature'"
> print "'\$build.host' '\$build.host.cpu' '\$build.host.system'"
> print "'\$cxx.target' '\$cxx.target.cpu' '\$cxx.target.system'"
> EOF
> 
> b config.cxx=g++-11
> b config.cxx=clang++




More information about the odb-users mailing list