Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fails with glibc-2.31 [CORE6245] #6489

Open
firebird-automations opened this issue Feb 10, 2020 · 8 comments
Open

build fails with glibc-2.31 [CORE6245] #6489

firebird-automations opened this issue Feb 10, 2020 · 8 comments

Comments

@firebird-automations
Copy link
Collaborator

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
Copy link
Collaborator Author

Commented by: Treeve Jelbert (tjbug)

compile log
also copy of time.h

@firebird-automations
Copy link
Collaborator Author

Modified by: Treeve Jelbert (tjbug)

Attachment: firebird3-git.bz2 [ 13422 ]

Attachment: time.h [ 13423 ]

@firebird-automations
Copy link
Collaborator Author

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
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

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
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Open [ 1 ] => Open [ 1 ]

QA Status: No test => Cannot be tested

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ] => Egor Pugin [ egorpugin ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant