https://bugs.linaro.org/show_bug.cgi?id=4040

            Bug ID: 4040
           Summary: Clang build fails on Ubuntu 18.04
           Product: OpenDataPlane - linux- generic reference
           Version: master
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: ---
         Component: Build system
          Assignee: maxim.uva...@linaro.org
          Reporter: petri.savolai...@linaro.org
                CC: lng-odp@lists.linaro.org
  Target Milestone: ---

Making all in miscellaneous
make[2]: Entering directory 'odp/test/miscellaneous'
  CXX      odp_api_from_cpp.o
  CXXLD    odp_api_from_cpp
/usr/bin/ld: odp/lib/.libs/libodp-linux.a(odp_impl.o): relocation R_X86_64_32
against `.rodata.str1.1' can not be used when making a PIE object; recompile
with -fPIC
/usr/bin/ld: odp/lib/.libs/libodp-linux.a(odp_version.o): relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object;
recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:734: recipe for target 'odp_api_from_cpp' failed


Ubuntu 18.04, kernel 4.15.0-38-generic
clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)

Just build with defaults:
git clean -xdf
./bootstrap
./configure CC=clang
make


For some reason clang build passes on Travis. May be the ubuntu 18.04 docker
image is not up-to-date.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to