Re: rocksdb fails to build with gcc 7.1.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 15, 2017 at 3:29 PM, Jos Collin <jcollin@xxxxxxxxxx> wrote:
> Found this today morning with the latest ceph source. But it went through
> with the version of gcc in smithi (gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3)
> 4.8.4).
>
>
> [ 14%] Performing forcebuild step for 'rocksdb_ext'
> [ 14%] Performing build step for 'rocksdb_ext'
> [  0%] Built target build_version
> [  0%] Building CXX object CMakeFiles/rocksdb.dir/db/builder.cc.o
> In file included from
> /home/jcollin/workspace/testbuild/ceph/src/rocksdb/db/write_batch_internal.h:12:0,
>                  from
> /home/jcollin/workspace/testbuild/ceph/src/rocksdb/db/column_family.h:20,
>                  from
> /home/jcollin/workspace/testbuild/ceph/src/rocksdb/db/version_set.h:31,
>                  from
> /home/jcollin/workspace/testbuild/ceph/src/rocksdb/db/compaction.h:11,
>                  from
> /home/jcollin/workspace/testbuild/ceph/src/rocksdb/db/compaction_iterator.h:14,
>                  from
> /home/jcollin/workspace/testbuild/ceph/src/rocksdb/db/builder.cc:16:
> /home/jcollin/workspace/testbuild/ceph/src/rocksdb/db/write_thread.h: In
> member function ‘std::mutex& rocksdb::WriteThread::Writer::StateMutex()’:
> /home/jcollin/workspace/testbuild/ceph/src/rocksdb/db/write_thread.h:192:78:
> error: dereferencing type-punned pointer will break strict-aliasing rules
> [-Werror=strict-aliasing]
>        return
> *static_cast<std::mutex*>(static_cast<void*>(&state_mutex_bytes));

It's a gcc bug, see http://tracker.ceph.com/issues/19864.

>
>       ^
> cc1plus: all warnings being treated as errors
> make[6]: *** [CMakeFiles/rocksdb.dir/build.make:135:
> CMakeFiles/rocksdb.dir/db/builder.cc.o] Error 1
> make[5]: *** [CMakeFiles/Makefile2:2225: CMakeFiles/rocksdb.dir/all] Error 2
> make[4]: *** [CMakeFiles/Makefile2:2237: CMakeFiles/rocksdb.dir/rule] Error
> 2
> make[3]: *** [Makefile:875: rocksdb] Error 2
> make[2]: *** [src/CMakeFiles/rocksdb_ext.dir/build.make:113:
> src/rocksdb_ext-prefix/src/rocksdb_ext-stamp/rocksdb_ext-build] Error 2
> make[1]: *** [CMakeFiles/Makefile2:1726: src/CMakeFiles/rocksdb_ext.dir/all]
> Error 2
> make: *** [Makefile:139: all] Error 2
> [jcollin@earth build]$ gcc --version
> gcc (GCC) 7.1.1 20170503 (Red Hat 7.1.1-1)
> Copyright (C) 2017 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.
>
> [jcollin@earth build]$
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Cheers,
Brad
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux