[odb-users] Strange Problems Building ODB Compiler From Source
Brian Coggins
becoggins at hotmail.com
Tue Mar 19 17:23:37 EDT 2019
Hi Boris,
I'm back again, this time with a strange ODB compilation problem on one of my development machines. I am building the beta ODB from cppget.org using the homebrew g++-8, but somehow the resulting odb executable is tangled up in clang. Strangely, I have not had this problem on two nearly identical systems where I have built ODB in the last few weeks, all of them Macs running High Sierra. Here's how I build it:
$ g++-8 --version
g++-8 (Homebrew GCC 8.2.0) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ bpkg create -d odb-gcc-8 cc config.cxx=g++-8 config.cc.coptions=-O3 config.bin.rpath=/usr/local/lib config.install.root=/usr/local config.install.sudo=sudo
created new configuration in /Users/brian/Software/odb/odb-build/odb-gcc-8/
$ cd odb-gcc-8
$ bpkg build odb at https://pkg.cppget.org/1/beta
added pkg:cppget.org/beta
fetching pkg:cppget.org/beta
warning: authenticity of the certificate for repository pkg:cppget.org/beta cannot be established
certificate is for cppget.org, "Code Synthesis" <admin at cppget.org>
certificate SHA256 fingerprint:
86:BA:D4:DE:2C:87:1A:EE:38:C7:F1:64:7F:65:77:02:15:79:F3:C4:83:C0:AB:5A:EA:F4:F7:8C:1D:63:30:C6
[...cut many lines...]
updated odb/2.5.0-b.13
Now if I install this, here's what I get:
$ odb --version
ODB object-relational mapping (ORM) compiler for C++ 2.5.0-b.13
Copyright (c) 2009-2019 Code Synthesis Tools CC
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ odb --database sqlite test.h
clang: error: unknown argument: '-fplugin-arg-odb-svc-path=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1'
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/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.0/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=/usr/include'
clang: error: unknown argument: '-fplugin-arg-odb-svc-path=/System/Library/Frameworks (framework directory)'
clang: error: unknown argument: '-fplugin-arg-odb-svc-path=/Library/Frameworks (framework directory)'
clang: error: unknown argument: '-fplugin-arg-odb-database=sqlite'
clang: error: unknown argument: '-fplugin-arg-odb-svc-file=test.h'
Any ideas what is going wrong here?
Thanks,
Brian
More information about the odb-users
mailing list