Project

General

Profile

Actions

Bug #18196

closed

fail to build ceph-11.0.2 if yasm installed

Added by Yixun Lan over 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
build
Target version:
% Done:

0%

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

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

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

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.

Actions

Also available in: Atom PDF