[odb-users] odb-compiler errors with make -j ?

Quentin Deldycke quentindeldycke at gmail.com
Tue Feb 18 09:35:11 EST 2020


Hi,

$> gcc --version
gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-16)
Copyright (C) 2013 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.

For making my build crash i use the Uber intelligent script:
$> while [ 1 -eq 1 ] ; do make clean && qmake && make -j; if [ ! $? -eq 0 ]
; then break; fi; done

It will build my ~8 files in this library correctly, ~20 times before
failing.

Here is my command line:

V=1 VERBOSE=1 odb -x -H -v -U __X86_64__
-I/usr/lib/qt4/mkspecs/linux-g++-32 -I. -I/usr/include/QtCore
-I/usr/include/QtNetwork -I/usr/include -I../../../include
-I../../../include/scherzoReseau
-I/home/dim/BR_EVO/src/server/libMaestroReception/libinclude
-I../../../include/ScherzoSysteme -I../../../include/scherzoDim
-I../../../include/scherzoodb -I../../../include/scherzoodb-gen
-I../../../include/types -I../../../include/scherzoReseau
-I../../../build/gen/odb-gen-maestroReception -I../derivation/libinclude
-I../../../include/tcpSSL -I../../../include/ScherzoJsonNode
-I../../../include/ScherzoLdap -I../../../include/views
-I../../../include/xdr -I../../../build/release/libMaestroReception/mocs
--database mysql --generate-schema --generate-query --generate-session
--options-file /home/dim/BR_EVO/include/scherzoodb/OScherzo_ptr.options
-I/home/dim/BR_EVO/build/gen/odb/ -I/home/dim/BR_EVO/include/
-I/home/dim/BR_EVO/src/server/libMaestroReception/libinclude/
-I/home/dim/BR_EVO/include/ScherzoSysteme/
-I/home/dim/BR_EVO/include/types/ -I/home/dim/BR_EVO/include/scherzoodb/
-I/usr/include --output-dir
/home/dim/BR_EVO/build/gen/odb-gen-maestroReception/ receptioncdmetrics.hpp
>
../../../build/gen/odb-gen-maestroReception/receptioncdmetrics-odb.cxx.log
2>&1

V=1 VERBOSE=1 -x -H and -v were added to track this problem. same as the
log file redirection. I give it to you for additionnal information

If you look at log file, the "not found" is SStatistiques.h. But at log
file line 494, the file is found... in the correct path.

--
Deldycke Quentin



On Tue, 18 Feb 2020 at 15:17, Boris Kolpackov <boris at codesynthesis.com>
wrote:

> Quentin Deldycke <quentindeldycke at gmail.com> writes:
>
> > When compiling, i have random odb compile error of this form:
> >
> > error: '/../../../include/what/ever.hpp' is not a valid filesystem path.
> >
> > The '../../../' path is logic: my project is in this form:
> >
> > ./my/library/here/test.{pro,hpp,cpp} (I use qt and odb do run in this
> path)
> > ./include/odb/pre.hxx
> > ./include/or/anything.hpp
> >
> > But actually, it seems odb miss "the first dot" to make a path like
> > "./../../../include/what/ever.hpp"
> >
> > Note that my library / binary is building correctly most of the times.
> > (whole project is quite big)
> > The .hpp can be anything my files do include, odb/pre.hxx, odb/post.hxx,
> > my own includes... really anything.
> >
> > This seems to happen more and more oftenly with thread count passed to
> -j.
>
> That's quite a strange behavior and it doesn't really ring any bells. Can
> you show the ODB compiler command line that corresponds to the above
> 'error: ...'? That is, from the same failed output log as the error so
> that if any malformed paths are passed, we can see it.
>
> Also, which version of GCC are you using with the ODB compiler?
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: receptioncdmetrics-odb.cxx.log
Type: text/x-log
Size: 60108 bytes
Desc: not available
Url : https://codesynthesis.com/pipermail/odb-users/attachments/20200218/50bbd3ee/receptioncdmetrics-odb.cxx-0001.bin


More information about the odb-users mailing list