Bug #18196
closedfail to build ceph-11.0.2 if yasm installed
0%
Description
I haven't checked if this issue still exist at master branch..
but, we've got this build err at ceph-11.0.2
it happens if dev-lang/yasm-1.3.0 is installed, no problem if yasm is not installed
from the log, you can see if yasm installed the build system will enable HAVE_GOOD_YASM_ELF64, then got this error
it sounds to me, the build system should call yasm to compile the asm files instead of calling gcc
==== part of the error message ===
cd /var/notmpfs/portage/sys-cluster/ceph-11.0.2/work/ceph-11.0.2_build/src && /usr/bin/x86_64-pc-linux-gnu-gcc -DCEPH_LIBDIR=\"/usr/lib64\" -DCEPH_PKGLIBDIR=\"/usr/lib64/ce
ph\" -D__linux__ -I/var/notmpfs/portage/sys-cluster/ceph-11.0.2/work/ceph-11.0.2_build/src/include -I/var/notmpfs/portage/sys-cluster/ceph-11.0.2/work/ceph-11.0.2/src -I/usr
/include -I/var/notmpfs/portage/sys-cluster/ceph-11.0.2/work/ceph-11.0.2_build/include -I/var/notmpfs/portage/sys-cluster/ceph-11.0.2/work/ceph-11.0.2/src/xxHash -O2 -pipe
-march=core2 -f elf64 -fPIC -DHAVE_CONFIG_H -D__CEPH__ -D_REENTRANT -D_THREAD_SAFE -D__STDC_FORMAT_MACROS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o CMakeFiles/common.dir/co
mmon/crc32c_intel_fast_asm.S.o -c /var/notmpfs/portage/sys-cluster/ceph-11.0.2/work/ceph-11.0.2/src/common/crc32c_intel_fast_asm.S
x86_64-pc-linux-gnu-gcc: error: elf64: No such file or directory
x86_64-pc-linux-gnu-gcc: error: unrecognized command line option â-fâ
make2: * [src/CMakeFiles/common.dir/build.make:928: src/CMakeFiles/common.dir/common/crc32c_intel_fast_asm.S.o] Error 1
make2: * Waiting for unfinished jobs....
CC util/lru_cache.o
Files
Updated by Greg Farnum almost 7 years ago
- Status changed from New to Resolved
There were recent patches to fix stuff involving yasm and x86.