Closed Bug 722464 Opened 14 years ago Closed 14 years ago

Build failure on linux x86_64 when building with clang

Categories

(Core :: Graphics: ImageLib, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: gw280, Unassigned)

Details

If I try to build with clang with the following mozconfig: CC=clang CXX=clang++ ac_add_options --enable-debug-symbols ac_add_options --enable-profiling mk_add_options MOZ_MAKE_FLAGS="-j8" mk_add_options MOZ_OBJDIR=./obj-linux-prof I get the following build error: /usr/bin/ld.bfd.real: ../../media/libjpeg/simd/jsimd_x86_64.o: relocation R_X86_64_PC32 against symbol `jconst_rgb_ycc_convert_sse2' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld.bfd.real: final link failed: Bad value clang: error: linker command failed with exit code 1 (use -v to see invocation) This builds fine if I don't use clang.
Hm. I've built on Linux x86-64 in the past month and didn't have a problem. This jpeg code shouldn't have changed since then. Did you do a clobber build when switching compilers?
Also, what's the output of $ yasm --version ?
george@sodium:~$ yasm --version yasm 1.1.0.2352 Compiled on Jun 10 2011. Copyright (c) 2001-2010 Peter Johnson and other Yasm developers. Run yasm --license for licensing overview and summary.
> yasm 1.1.0.2352 Okay, same as mine.
What clang version are you using?
cgeorge@sodium:~$ clang -v clang version 2.9 (tags/RELEASE_29/final) Target: x86_64-pc-linux-gnu Thread model: posix
clang 2.9 in known to not work. I think 3.0 works and I have been using 3.1 (trunk).
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.