FirebirdSQL / firebird

Firebird server, client and tools
https://www.firebirdsql.org/
1.26k stars 217 forks source link

build fails with glibc-2.31 [CORE6245] #6489

Open firebird-automations opened 4 years ago

firebird-automations commented 4 years ago

Submitted by: Treeve Jelbert (tjbug)

Assigned to: @egorpugin

Attachments: firebird3-git.bz2 time.h

[51/551] Building CXX object src/CMakeFiles/common.dir/common/classes/NoThrowTimeStamp.cpp.o FAILED: src/CMakeFiles/common.dir/common/classes/NoThrowTimeStamp.cpp.o /var/lib/sorcery/build/c++ -I/var/git/db/firebird3/src/include -I/var/git/db/firebird3/src/include/gen -Isrc/include -Isrc/include/gen -march=native -mtune=native -m64 -pipe -O3 -Wno-narrowing -Wno-deprecated-declarations -Wno-invalid-offsetof -fno-sized-deallocation -fno-delete-null-pointer-checks -flifetime-dse=1 -fcheck-new -Wno-deprecated -fPIC -O3 -DNDEBUG -MD -MT src/CMakeFiles/common.dir/common/classes/NoThrowTimeStamp.cpp.o -MF src/CMakeFiles/common.dir/common/classes/NoThrowTimeStamp.cpp.o.d -o src/CMakeFiles/common.dir/common/classes/NoThrowTimeStamp.cpp.o -c /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp.cpp In file included from /var/git/db/firebird3/src/include/firebird.h:38, from /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp.cpp:27: /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp.cpp: In static member function 'static Firebird::NoThrowTimeStamp Firebird::NoThrowTimeStamp::getCurrentTimeStamp(const char**)': src/include/gen/autoconfig.h:675:41: error: too few arguments to function 'int gettimeofday(timeval*, void*)' 675 | #⁠define GETTIMEOFDAY(x) gettimeofday((x)) | ^ /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp.cpp:86:2: note: in expansion of macro 'GETTIMEOFDAY' 86 | GETTIMEOFDAY(&tp); | ^\~\~\~\~\~\~\~\~\~\~\~ In file included from /var/git/db/firebird3/src/include/../common/classes/NoThrowTimeStamp.h:34, from /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp.cpp:41: /usr/include/sys/time.h:66:12: note: declared here 66 | extern int gettimeofday (struct timeval *__restrict __tv, | ^\~\~\~\~\~\~\~\~\~\~\~

firebird-automations commented 4 years ago

Commented by: Treeve Jelbert (tjbug)

compile log also copy of time.h

firebird-automations commented 4 years ago
Modified by: Treeve Jelbert (tjbug) Attachment: firebird3\-git\.bz2 \[ 13422 \] Attachment: time\.h \[ 13423 \]
firebird-automations commented 4 years ago
Modified by: Sean Leyne (seanleyne) description: \[51/551\] Building CXX object src/CMakeFiles/common\.dir/common/classes/NoThrowTimeStamp\.cpp\.o FAILED: src/CMakeFiles/common\.dir/common/classes/NoThrowTimeStamp\.cpp\.o /var/lib/sorcery/build/c\+\+ \-I/var/git/db/firebird3/src/include \-I/var/git/db/firebird3/src/include/gen \-Isrc/include \-Isrc/include/gen \-march=native \-mtune=native \-m64 \-pipe \-O3 \-Wno\-narrowing \-Wno\-deprecated\-declarations \-Wno\-invalid\-offsetof \-fno\-sized\-deallocation \-fno\-delete\-null\-pointer\-checks \-flifetime\-dse=1 \-fcheck\-new \-Wno\-deprecated \-fPIC \-O3 \-DNDEBUG \-MD \-MT src/CMakeFiles/common\.dir/common/classes/NoThrowTimeStamp\.cpp\.o \-MF src/CMakeFiles/common\.dir/common/classes/NoThrowTimeStamp\.cpp\.o\.d \-o src/CMakeFiles/common\.dir/common/classes/NoThrowTimeStamp\.cpp\.o \-c /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp\.cpp In file included from /var/git/db/firebird3/src/include/firebird\.h:38, from /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp\.cpp:27: /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp\.cpp: In static member function 'static Firebird::NoThrowTimeStamp Firebird::NoThrowTimeStamp::getCurrentTimeStamp\(const char\*\*\)': src/include/gen/autoconfig\.h:675:41: error: too few arguments to function 'int gettimeofday\(timeval\*, void\*\)' 675 \| #⁠define GETTIMEOFDAY\(x\) gettimeofday\(\(x\)\) \| ^ /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp\.cpp:86:2: note: in expansion of macro 'GETTIMEOFDAY' 86 \| GETTIMEOFDAY\(&tp\); \| ^\~\~\~\~\~\~\~\~\~\~\~ In file included from /var/git/db/firebird3/src/include/\.\./common/classes/NoThrowTimeStamp\.h:34, from /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp\.cpp:41: /usr/include/sys/time\.h:66:12: note: declared here 66 \| extern int gettimeofday \(struct timeval \*\_\_restrict \_\_tv, \| ^\~\~\~\~\~\~\~\~\~\~\~ =\> \[51/551\] Building CXX object src/CMakeFiles/common\.dir/common/classes/NoThrowTimeStamp\.cpp\.o FAILED: src/CMakeFiles/common\.dir/common/classes/NoThrowTimeStamp\.cpp\.o /var/lib/sorcery/build/c\+\+ \-I/var/git/db/firebird3/src/include \-I/var/git/db/firebird3/src/include/gen \-Isrc/include \-Isrc/include/gen \-march=native \-mtune=native \-m64 \-pipe \-O3 \-Wno\-narrowing \-Wno\-deprecated\-declarations \-Wno\-invalid\-offsetof \-fno\-sized\-deallocation \-fno\-delete\-null\-pointer\-checks \-flifetime\-dse=1 \-fcheck\-new \-Wno\-deprecated \-fPIC \-O3 \-DNDEBUG \-MD \-MT src/CMakeFiles/common\.dir/common/classes/NoThrowTimeStamp\.cpp\.o \-MF src/CMakeFiles/common\.dir/common/classes/NoThrowTimeStamp\.cpp\.o\.d \-o src/CMakeFiles/common\.dir/common/classes/NoThrowTimeStamp\.cpp\.o \-c /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp\.cpp In file included from /var/git/db/firebird3/src/include/firebird\.h:38, from /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp\.cpp:27: /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp\.cpp: In static member function 'static Firebird::NoThrowTimeStamp Firebird::NoThrowTimeStamp::getCurrentTimeStamp\(const char\*\*\)': src/include/gen/autoconfig\.h:675:41: error: too few arguments to function 'int gettimeofday\(timeval\*, void\*\)' 675 \| #⁠define GETTIMEOFDAY\(x\) gettimeofday\(\(x\)\) \| ^ /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp\.cpp:86:2: note: in expansion of macro 'GETTIMEOFDAY' 86 \| GETTIMEOFDAY\(&tp\); \| ^\~\~\~\~\~\~\~\~\~\~\~ In file included from /var/git/db/firebird3/src/include/\.\./common/classes/NoThrowTimeStamp\.h:34, from /var/git/db/firebird3/src/common/classes/NoThrowTimeStamp\.cpp:41: /usr/include/sys/time\.h:66:12: note: declared here 66 \| extern int gettimeofday \(struct timeval \*\_\_restrict \_\_tv, \| ^\~\~\~\~\~\~\~\~\~\~\~ environment: linux\-5\.5\.2 glibc\-2\.31 gcc\-9\.2\.0 =\> linux\-5\.5\.2, glibc\-2\.31, gcc\-9\.2\.0
firebird-automations commented 4 years ago
Modified by: @AlexPeshkoff assignee: Alexander Peshkov \[ alexpeshkoff \]
firebird-automations commented 4 years ago

Commented by: @AlexPeshkoff

That's definitely an issue with cmake build. cmake is not our 'official' build, please use http://autogen.sh instead.

firebird-automations commented 4 years ago
Modified by: @pavel-zotov status: Open \[ 1 \] =\> Open \[ 1 \] QA Status: No test =\> Cannot be tested
firebird-automations commented 4 years ago

Commented by: @AlexPeshkoff

Egor, I've checked with glibc-2.31, autoconf build works fine, please fix cmake issues.

firebird-automations commented 4 years ago
Modified by: @AlexPeshkoff assignee: Alexander Peshkov \[ alexpeshkoff \] =\> Egor Pugin \[ egorpugin \]