[Openmp-dev] make check-openmp fails

Itaru Kitayama via Openmp-dev openmp-dev at lists.llvm.org
Wed Jul 1 17:35:18 PDT 2020


Thank you, Alexey. It finishes successfully, in the meantime I can
carry the local changes, but
would you go ahead and commit an appropriate change to the Trunk so we
can run it on AArch64?

Testing Time: 50.91s
  Unsupported:  29
  Passed     : 243
[100%] Built target check-openmp

On Thu, Jul 2, 2020 at 1:45 AM Alexey.Bataev <a.bataev at outlook.com> wrote:
>
> Hi Itaru, try to add -fPIC option to the RUN: line in the test:
>
> %libomptarget-compile-aarch64-unknown-linux-gnu -DSHARED -shared -fPIC -o %t.so
>
> -------------
> Best regards,
> Alexey Bataev
>
> 30.06.2020 7:02 PM, Itaru Kitayama via Openmp-dev пишет:
>
> Can the owner fix this?
>
> Command Output (stdout):
> --
> $ ":" "RUN: at line 1"
> $ "/home/users/itaru.kitayama/202007010738/./bin/clang" "-fopenmp"
> "-pthread" "-fno-experimental-isel" "-I"
> "/tmp/llvm-project/openmp/libomptarget/test" "-I"
> "/home/users/itaru.kitayama/202007010738/projects/openmp/libomptarget/../runtime/src"
> "-L" "/home/users/itaru.kitayama/202007010738/lib"
> "-fopenmp-targets=aarch64-unknown-linux-gnu"
> "/tmp/llvm-project/openmp/libomptarget/test/offloading/dynamic_module_load.c"
> "-o" "/home/users/itaru.kitayama/202007010738/projects/openmp/libomptarget/test/offloading/Output/dynamic_module_load.c.tmp-aarch64-unknown-linux-gnu"
> "-DSHARED" "-shared" "-o"
> "/home/users/itaru.kitayama/202007010738/projects/openmp/libomptarget/test/offloading/Output/dynamic_module_load.c.tmp.so"
> # command stderr:
> /usr/bin/ld: /tmp/dynamic_module_load-6d4684.o: relocation
> R_AARCH64_ADR_PREL_PG_HI21 against symbol
> `.__omp_offloading_803_10704613_foo_l9.region_id' which may bind
> externally can not be used when making a shared object; recompile with
> -fPIC
> /tmp/dynamic_module_load-6d4684.o: In function `foo':
> dynamic_module_load.c:(.text+0xc): dangerous relocation: unsupported relocation
> clang-11: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
> error: command failed with exit status: 1
> _______________________________________________
> Openmp-dev mailing list
> Openmp-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev


More information about the Openmp-dev mailing list