Project

General

Profile

Bug #18196

fail to build ceph-11.0.2 if yasm installed

Added by Yixun Lan almost 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
build
Target version:
Start date:
12/08/2016
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

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

build.log View (609 KB) Yixun Lan, 12/08/2016 08:11 AM

History

#1 Updated by Greg Farnum over 2 years ago

  • Status changed from New to Resolved

There were recent patches to fix stuff involving yasm and x86.

Also available in: Atom PDF