[odb-users] invalid paths during headers compilation on macOS 10.13

Alessandro Volz alessandro.volz at gmail.com
Fri Sep 29 04:24:58 EDT 2017


Hi,

I recently updated my system to macOS 10.13. Since then, OPW won't compile my headers (additional info: on macOS 10.12 with the latest Xcode, v9.0, it was still working).

The compiler call:

> /Users/ale/my/path/to/odb/bin/odb -v -x -fpermissive -x -Wno-unknown-pragmas -o /Users/ale/my/path/to/DerivedSources -x -std=c++14 -I/Users/ale/my/path/to/Database -I/Users/ale/my/path/to/Sources -I/Users/ale/my/path/to/boost -d sqlite --profile boost --generate-query --generate-prepared --generate-schema --schema-format embedded /Users/ale/my/path/to/object.hpp


It outputs the following - I redacted the paths to simplify them. The problem seems to be showing at the bottom of this block, with 'ignoring nonexistent directory' messages for .../i686-apple-darwin10/include

> Profile search paths:
>  /Users/ale/my/path/to/Database
>  /Users/ale/my/path/to/Sources
>  /Users/ale/my/path/to/boost
>  /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/i686-apple-darwin10/4.9.3/../../../../include/c++/4.9.3
>  /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/i686-apple-darwin10/4.9.3/../../../../include/c++/4.9.3/i686-apple-darwin10
>  /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/i686-apple-darwin10/4.9.3/../../../../include/c++/4.9.3/backward
>  /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/i686-apple-darwin10/4.9.3/include
>  /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/i686-apple-darwin10/4.9.3/include-fixed
>  /usr/local/include
>  /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/../../include
>  /System/Library/Frameworks
>  /Library/Frameworks
> 
>  /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../libexec/gcc/i686-apple-darwin10/4.9.3/cc1plus -quiet -v -I /Users/ale/my/path/to/Database -I /Users/ale/my/path/to/Sources -I /Users/ale/my/path/to/boost -iprefix /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/i686-apple-darwin10/4.9.3/ -iplugindir=/Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/i686-apple-darwin10/4.9.3/plugin -D__DYNAMIC__ -D ODB_COMPILER -D ODB_COMPILER_VERSION=2040000 -D ODB_DATABASE_SQLITE - -iplugindir=/Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/i686-apple-darwin10/4.9.3/plugin -fPIC -quiet -dumpbase - -mmacosx-version-min=10.11 -mtune=core2 -auxbase - -Wno-deprecated -Wno-unknown-pragmas -std=gnu++98 -std=c++1y -version -fplugin=/Users/ale/my/path/to/odb/bin/../lib/odb/odb.so -fpermissive -fplugin-arg-odb-svc-path=/Users/ale/my/path/to/Database -fplugin-arg-odb-svc-path=/Users/ale/my/path/to/Sources -fplugin-arg-odb-svc-path=/Users/ale/my/path/to/boost -fplugin-arg-odb-svc-path=/Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/i686-apple-darwin10/4.9.3/../../../../include/c++/4.9.3 -fplugin-arg-odb-svc-path=/Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/i686-apple-darwin10/4.9.3/../../../../include/c++/4.9.3/i686-apple-darwin10 -fplugin-arg-odb-svc-path=/Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/i686-apple-darwin10/4.9.3/../../../../include/c++/4.9.3/backward -fplugin-arg-odb-svc-path=/Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/i686-apple-darwin10/4.9.3/include -fplugin-arg-odb-svc-path=/Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/i686-apple-darwin10/4.9.3/include-fixed -fplugin-arg-odb-svc-path=/usr/local/include -fplugin-arg-odb-svc-path=/Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/../../include -fplugin-arg-odb-svc-path=/System/Library/Frameworks -fplugin-arg-odb-svc-path=/Library/Frameworks -fplugin-arg-odb-database=sqlite -fplugin-arg-odb-o=/Users/ale/Work/my/path/to/DerivedSources -fplugin-arg-odb-profile=boost -fplugin-arg-odb-generate-query -fplugin-arg-odb-generate-prepared -fplugin-arg-odb-generate-schema -fplugin-arg-odb-schema-format=embedded -fplugin-arg-odb-svc-file=/Users/ale/my/path/to/object.hpp -o -.s
> 
> GNU C++ (GCC) version 4.9.3 20150204 (prerelease) (i686-apple-darwin10)
> 	compiled by GNU C version 4.2.1 (Apple Inc. build 5664), GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
> GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
> Versions of loaded plugins:
>  odb: 2.4.0
> 
> ignoring nonexistent directory 
> /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/i686-apple-darwin10/4.9.3/../../../../i686-apple-darwin10/include
> 
> ignoring duplicate directory
> /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/../../lib/gcc/i686-apple-darwin10/4.9.3/../../../../include/c++/4.9.3
> /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/../../lib/gcc/i686-apple-darwin10/4.9.3/../../../../include/c++/4.9.3/i686-apple-darwin10
> /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/../../lib/gcc/i686-apple-darwin10/4.9.3/../../../../include/c++/4.9.3/backward
> /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/../../lib/gcc/i686-apple-darwin10/4.9.3/include
> /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/../../lib/gcc/i686-apple-darwin10/4.9.3/include-fixed
> 
> ignoring nonexistent directory
> /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/bin/../lib/gcc/../../lib/gcc/i686-apple-darwin10/4.9.3/../../../../i686-apple-darwin10/include
> /usr/include

And finally,

> In file included from /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/include/c++/4.9.3/bits/postypes.h:40:0,
>                  from /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/include/c++/4.9.3/bits/char_traits.h:40,
>                  from /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/include/c++/4.9.3/string:40,
>                  from <standard-odb-prologue>:7:
> /Users/ale/my/path/to/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/include/c++/4.9.3/cwchar:44:19: fatal error: wchar.h: No such file or directory
>  #include <wchar.h>
>                    ^
> compilation terminated.

Any advice?

Best,

Alessandro



More information about the odb-users mailing list