On Sun, Jan 14, 2018 at 4:41 AM, Dyweni - Ceph-Users <6exbab4fy...@dyweni.com> 
wrote:
> Hi,
>
> GLIBC 2.25-r9
> GCC 6.4.0-r1
>
> When compiling Ceph 12.2.2, the compilation hangs (cc1plus goes into an
> infinite loop and never finishes, requiring the process to be killed
> manually) while compiling the file 'src/rocksdb/monitoring/statistics.cc'.
> By forever, I've left it sit and it ran for 140+ minutes.
>
> The specific command is which runs forever is:
>
> /usr/i686-pc-linux-gnu/gcc-bin/6.4.0/i686-pc-linux-gnu-g++ -DOS_LINUX
> -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX
> -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_PLATFORM_POSIX
> -I/var/tmp/portage/sys-cluster/ceph-12.2.2/work/ceph-12.2.2/src/rocksdb
> -I/var/tmp/portage/sys-cluster/ceph-12.2.2/work/ceph-12.2.2/src/rocksdb/include
> -isystem
> /var/tmp/portage/sys-cluster/ceph-12.2.2/work/ceph-12.2.2/src/rocksdb/third-party/gtest-1.7.0/fused-src
> -march=i686 -O2 -pipe -W -Wextra -Wall -Wsign-compare -Wshadow
> -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual
> -Wnon-virtual-dtor -Wno-missing-field-initializers -std=c++11 -O2
> -fno-omit-frame-pointer -momit-leaf-frame-pointer -Werror
> -fno-builtin-memcmp -fPIC -o
> CMakeFiles/rocksdb.dir/monitoring/statistics.cc.o -c
> /var/tmp/portage/sys-cluster/ceph-12.2.2/work/ceph-12.2.2/src/rocksdb/monitoring/statistics.cc

This code is part of rocksdb but this is most likely a compiler bug since it
shouldn't be possible to write code to "trick" the compiler into looping
forever. Suggest you try a different compiler.

>
>
> However, if I turn off all optimizations (replace all '-O2' with '-O0') or
> remove '-fno-omit-frame-pointer' (while keeping all the '-O2'), then the
> compilation finishes.
>
>
> Thanks,
> Dyweni
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



-- 
Cheers,
Brad
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to