Repository navigation
Conversation
GCC7 build fails with 3 errors, all similar to this one:
/home/abuild/rpmbuild/BUILD/ceph-12.0.2+git.1493119152.181baf6/src/rocksdb/env/io_posix.cc:57:13: error: In the GNU C Library, "major" is defined
by <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "major", include <sys/sysmacros.h>
directly. If you did not intend to use a system-defined macro
"major", you should undefine it after including <sys/types.h>. [-Werror]
if (major(buf.st_dev) == 0) {
^~~~~~~~~~~~~~~~~~~
Signed-off-by: Nathan Cutler <[email protected]>
|
@tchaikov Compiling latest ceph master with GCC7 yields a number of errors. Currently working on it. |
|
strange enough, i am using 7.0.1 on daily basis. this build error sounds weird. and my |
|
Note: I have not verified that this fixes the error - I just threw it out here. The error happens on openSUSE Tumbleweed. |
|
@tchaikov The build log (showing the errors in all their glory) is here: https://build.opensuse.org/public/build/filesystems:ceph:luminous/openSUSE_Tumbleweed/x86_64/ceph/_log |
badone
left a comment
There was a problem hiding this comment.
I get the same error here https://copr-be.cloud.fedoraproject.org/results/badone/Ceph-nightlies/fedora-26-x86_64/00544208-ceph/build.log.gz
Upstream has fixed this here, meta#2152
I'd suggest applying their fix.
|
oic, my glibc is still 2.24. |
|
will send a PR to pick up the upstream's change. |
to avoid warning with glibc 2.25, see meta/rocksdb#2208 and ceph/rocksdb#17 Signed-off-by: Kefu Chai <[email protected]> (cherry picked from commit d89318266953ac8b8df4d720091d26f461e6aa60) Note: fixes bsc#1025891
to avoid warning with glibc 2.25, see meta/rocksdb#2208 and ceph/rocksdb#17 Signed-off-by: Kefu Chai <[email protected]>
to avoid warning with glibc 2.25, see meta/rocksdb#2208 and ceph/rocksdb#17 Signed-off-by: Kefu Chai <[email protected]> (cherry picked from commit c891d63)
GCC7 build fails with 3 errors, all similar to this one:
/home/abuild/rpmbuild/BUILD/ceph-12.0.2+git.1493119152.181baf6/src/rocksdb/env/io_posix.cc:57:13: error: In the GNU C Library, "major" is defined
by <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "major", include <sys/sysmacros.h>
directly. If you did not intend to use a system-defined macro
"major", you should undefine it after including <sys/types.h>. [-Werror]
if (major(buf.st_dev) == 0) {
^~~~~~~~~~~~~~~~~~~
Signed-off-by: Nathan Cutler [email protected]