Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riscv64: Test failures due to linker warning: creating DT_TEXTREL in a PIE #10688

Closed
alexfanqi opened this issue Oct 11, 2021 · 0 comments · Fixed by #11042
Closed

riscv64: Test failures due to linker warning: creating DT_TEXTREL in a PIE #10688

alexfanqi opened this issue Oct 11, 2021 · 0 comments · Fixed by #11042

Comments

@alexfanqi
Copy link
Contributor

Hi,
I am testing ocaml 4.12.1 on riscv64 (sifive unmatched board) on Gentoo and running gcc-11.2.0 and glibc-2.33. I had some test failures due to the same cause, example:

Running action 3/8 (check-ocamlopt.byte-output)
   22 > Comparing compiler output /var/tmp/portage/dev-lang/ocaml-4.12.1/work/ocaml-4.12.1/testsuite/_ocamltest/tests/typing-warnings/fragile_matching/ocamlopt.byte/ocamlopt.byte.output to reference /var/tmp/portage/dev-lang/ocaml-4.12.1/work/ocaml-4.12.1/testsuite/tests/typing-warnings/fragile_matching.compilers.reference
   23 > Action 3/8 (check-ocamlopt.byte-output) failed (The file /var/tmp/portage/dev-lang/ocaml-4.12.1/work/ocaml-4.12.1/testsuite/_ocamltest/tests/typing-warnings/fragile_matching/ocamlopt.byte/ocamlopt.byte.output was expected to be empty because there is no reference file /var/tmp/portage/dev-lang/ocaml-4.12.1/work/ocaml-4.12.1/testsuite/tests/typing-warnings/fragile_matching.compilers.reference but it is not:
   24 > ========================================
   25 > /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld: warning: creating DT_TEXTREL in a PIE
   26 > ========================================

This seems to have happened for 32 bit arches previously #9800. After discussed with one contributor there, the original issue is not the case here because ocamlopt support generating PIC for riscv64. so I open a new issue here. Happy to provide more info if needed.

test summary
List of failed tests:
    tests/exotic-syntax/'exotic.ml' with 1 (native) 
    tests/basic-more/'div_by_zero.ml' with 1 (native) 
    tests/raise-counts/'main.ml' with 1 (native) 
    tests/warnings/'mnemonics.mll' with 1 (native) 
    tests/basic/'sets.ml' with 1 (native) 
    tests/basic/'float_physical_equality.ml' with 1 (native) 
    tests/lib-filename/'suffix.ml' with 1 (native) 
    tests/misc/'ephe_infix.ml' with 1 (native) 
    tests/lib-threads/'pr9971.ml' with 1.2 (native) 
    tests/backtrace/'raw_backtrace.ml' with 1 (native) 
    tests/lib-systhreads/'threadsigmask.ml' with 1.1.2 (native) 
    tests/misc/'sorts.ml' with 1 (native) 
    tests/warnings/'w68.ml' with 1.1.1 (check-ocamlopt.byte-output) 
    tests/link-test/'test.ml' with 2.1.1.1.1.1.1.1.1.1.1.1.1 (check-ocamlopt.byte-output) 
    tests/lib-printf/'tprintf.ml' with 1 (native) 
    tests/lib-scanf-2/'tscanf2_master.ml' with 1.2.1.1.1 (check-ocamlopt.byte-output) 
    tests/letrec-compilation/'lists.ml' with 1 (native) 
    tests/letrec-compilation/'ref.ml' with 1 (native) 
    tests/basic-modules/'main.ml' with 1 (native) 
    tests/misc/'weaktest.ml' with 1 (native) 
    tests/misc/'hamming.ml' with 1 (native) 
    tests/prim-bigstring/'string_access.ml' with 1 (native) 
    tests/lib-stdlabels/'test_stdlabels.ml' with 1 (native) 
    tests/runtime-objects/'Tests.ml' with 1 (native) 
    tests/translprim/'locs.ml' with 1 (native) 
    tests/lib-threads/'pr4466.ml' with 1.1 (native) 
    tests/tool-ocamltest/'norm1.ml' with 1 (native) 
    tests/statmemprof/'blocking_in_callback.ml' with 1.2 (native) 
    tests/asmcomp/'compare.ml' with 1 (native) 
    tests/lib-hashtbl/'hfun.ml' with 1 (native) 
    tests/basic-io-2/'io.ml' with 1 (native) 
    tests/basic-more/'tprintf.ml' with 1 (native) 
    tests/regression/pr1580/'pr1580.ml' with 1 (native) 
    tests/lib-obj/'new_obj.ml' with 1 (native) 
    tests/statmemprof/'thread_exit_in_callback.ml' with 1.2 (native) 
    tests/letrec-compilation/'mixing_value_closures_2.ml' with 1 (native) 
    tests/misc-unsafe/'almabench.ml' with 1 (native) 
    tests/match-exception/'match_failure.ml' with 1 (native) 
    tests/basic-more/'pr1271.ml' with 1 (native) 
    tests/lib-unix/common/'truncate.ml' with 1.2 (native) 
    tests/regression/pr5757/'pr5757.ml' with 1 (native) 
    tests/misc/'ephetest.ml' with 1 (native) 
    tests/backtrace/'backtrace_slots.ml' with 1 (native) 
    tests/backtrace/'pr6920_why_at.ml' with 1 (native) 
    tests/statmemprof/'moved_while_blocking.ml' with 1.2 (native) 
    tests/lib-dynlink-init-info/'test.ml' with 1 (native) 
    tests/basic-more/'testrandom.ml' with 1 (native) 
    tests/lib-systhreads/'testfork.ml' with 1.1.1.2 (native) 
    tests/asmcomp/'bind_tuples.ml' with 1 (native) 
    tests/typing-shadowing-of-pervasives-submodules/'redefine_largefile.ml' with 1 (native) 
    tests/letrec-compilation/'evaluation_order_2.ml' with 1 (native) 
    tests/basic-float/'float_literals.ml' with 1 (native) 
    tests/basic-more/'morematch.ml' with 1 (native) 
    tests/basic/'eval_order_1.ml' with 1 (native) 
    tests/lib-unix/isatty/'isatty_std.ml' with 1.2 (native) 
    tests/match-exception/'streams.ml' with 1 (native) 
    tests/lib-bigarray/'change_layout.ml' with 1 (native) 
    tests/basic/'eval_order_4.ml' with 1 (native) 
    tests/basic-float/'tfloat_record.ml' with 1 (native) 
    tests/misc/'sieve.ml' with 1 (native) 
    tests/basic-more/'structural_constants.ml' with 1 (native) 
    tests/lib-marshal/'intext.ml' with 1 (native) 
    tests/regression/pr6024/'pr6024.ml' with 1 (native) 
    tests/flambda/'gpr2239.ml' with 2 (native) 
    tests/lib-scanf/'tscanf.ml' with 1 (native) 
    tests/lib-threads/'swapchan.ml' with 1.2 (native) 
    tests/lib-filename/'extension.ml' with 1 (native) 
    tests/basic-io/'wc.ml' with 1 (native) 
    tests/lib-unix/common/'getaddrinfo.ml' with 1.2 (native) 
    tests/lib-bool/'test.ml' with 1 (native) 
    tests/asmcomp/'is_static.ml' with 1.1 (native) 
    tests/compatibility/'main.ml' with 2.2 (native) 
    tests/basic/'equality.ml' with 1 (native) 
    tests/letrec-compilation/'nested.ml' with 1 (native) 
    tests/misc/'bdd.ml' with 1 (native) 
    tests/misc/'finaliser.ml' with 1 (native) 
    tests/basic/'patmatch.ml' with 1 (native) 
    tests/lib-bigarray/'weak_bigarray.ml' with 1 (native) 
    tests/backtrace/'backtrace.ml' with 1 (native) 
    tests/statmemprof/'arrays_in_minor.ml' with 1 (native) 
    tests/typing-multifile/'pr9218.ml' with 1 (native) 
    tests/misc/'ephetest3.ml' with 1 (native) 
    tests/lib-threads/'bank.ml' with 1.2 (native) 
    tests/letrec-compilation/'mutual_functions.ml' with 1 (native) 
    tests/lib-bytes/'test_bytes.ml' with 1 (native) 
    tests/embedded/'cmcaml.ml' with 1 (native) 
    tests/lib-threads/'torture.ml' with 1.2 (native) 
    tests/lib-bigarray/'pr5115.ml' with 1 (native) 
    tests/tool-lexyacc/'main.ml' with 1 (native) 
    tests/lib-set/'testmap.ml' with 1 (native) 
    tests/lib-systhreads/'eintr.ml' with 1.1.2 (native) 
    tests/lib-printf/'pr6938.ml' with 1 (native) 
    tests/statmemprof/'lists_in_minor.ml' with 1 (native) 
    tests/prim-bswap/'bswap.ml' with 1 (native) 
    tests/lib-sys/'rename.ml' with 1 (native) 
    tests/lib-string/'test_string.ml' with 1 (native) 
    tests/basic-more/'robustmatch.ml' with 1 (native) 
    tests/misc/'nucleic.ml' with 1 (native) 
    tests/basic/'divint.ml' with 1 (native) 
    tests/runtime-C-exceptions/'test.ml' with 1 (native) 
    tests/statmemprof/'comballoc.ml' with 2 (native) 
    tests/regression/pr7042/'pr7042.ml' with 1 (native) 
    tests/misc-unsafe/'soli.ml' with 1 (native) 
    tests/lib-filename/'null.ml' with 1 (native) 
    tests/lib-unix/common/'rename.ml' with 1.2 (native) 
    tests/runtime-naked-pointers/'np1.ml' with 2 (native) 
    tests/formatting/'errors_batch.ml' with 1 (native) 
    tests/backtrace/'pr6920_why_swallow.ml' with 1 (native) 
    tests/basic-more/'pr10294.ml' with 1 (native) 
    tests/basic/'trigraph.ml' with 1 (native) 
    tests/lib-stream/'count_concat_bug.ml' with 1 (native) 
    tests/fma/'fma.ml' with 1 (native) 
    tests/misc/'weaklifetime2.ml' with 1 (native) 
    tests/match-exception/'nested_handlers.ml' with 1 (native) 
    tests/lib-threads/'pr7638.ml' with 1.2 (native) 
    tests/typing-labels/'mixin2.ml' with 1 (native) 
    tests/backtrace/'backtrace_or_exception.ml' with 1 (native) 
    tests/lib-queue/'test.ml' with 1 (native) 
    tests/lib-unix/unix-socket/'recvfrom_linux.ml' with 1.1.2 (native) 
    tests/lib-threads/'sockets.ml' with 1.1.2 (native) 
    tests/basic/'boxedints.ml' with 1 (native) 
    tests/backtrace/'event_after_prim.ml' with 1 (native) 
    tests/regression/pr5233/'pr5233.ml' with 1 (native) 
    tests/regression/pr9292/'pr9292.ml' with 1 (native) 
    tests/tool-ocamltest/'norm2.ml' with 1 (native) 
    tests/misc/'boyer.ml' with 1 (native) 
    tests/basic/'switch_opts.ml' with 1 (native) 
    tests/misc/'taku.ml' with 1 (native) 
    tests/lib-unix/common/'channel_of.ml' with 1.2 (native) 
    tests/lib-printf/'pr6534.ml' with 1 (native) 
    tests/basic-more/'top_level_patterns.ml' with 1 (native) 
    tests/regression/pr9443/'pr9443.ml' with 1 (native) 
    tests/letrec-compilation/'generic_array.ml' with 1 (native) 
    tests/lib-int64/'test.ml' with 1 (native) 
    tests/typing-labels/'mixin.ml' with 1 (native) 
    tests/basic/'float.ml' with 1 (native) 
    tests/regression/pr7798/'pr7798.ml' with 2 (native) 
    tests/lib-unix/common/'wait_nohang.ml' with 1.2.1.1.1 (check-ocamlopt.byte-output) 
    tests/lib-filename/'quotecommand.ml' with 2.1.1.1 (check-ocamlopt.byte-output) 
    tests/local-functions/'tupled2.ml' with 1 (native) 
    tests/lib-unix/common/'cloexec.ml' with 1.1.2.1.1.1 (check-ocamlopt.byte-output) 
    tests/callback/'signals_alloc.ml' with 1.2 (native) 
    tests/lib-obj/'with_tag.ml' with 1 (native) 
    tests/regression/pr7718/'pr7718.ml' with 1 (native) 
    tests/misc-unsafe/'quicksort.ml' with 1 (native) 
    tests/regression/pr7426/'pr7426.ml' with 1 (native) 
    tests/letrec-compilation/'evaluation_order_3.ml' with 1 (native) 
    tests/misc/'gcwords.ml' with 1 (native) 
    tests/lib-set/'testset.ml' with 1 (native) 
    tests/match-exception/'tail_calls.ml' with 1 (native) 
    tests/letrec-compilation/'class_1.ml' with 1 (native) 
    tests/lib-threads/'pr5325.ml' with 1.2 (native) 
    tests/lib-result/'test.ml' with 1 (native) 
    tests/basic/'eval_order_2.ml' with 1 (native) 
    tests/lib-obj/'reachable_words_np.ml' with 1.2 (native) 
    tests/array-functions/'test.ml' with 1 (native) 
    tests/backtrace/'pr2195.ml' with 4 (native) 
    tests/match-exception/'allocation.ml' with 1 (native) 
    tests/lib-threads/'prodcons2.ml' with 1.2 (native) 
    tests/lazy/'lazy1.ml' with 1 (native) 
    tests/lib-threads/'backtrace_threads.ml' with 1.2 (native) 
    tests/local-functions/'tupled.ml' with 1 (native) 
    tests/lib-format/'pp_print_custom_break.ml' with 1 (native) 
    tests/basic/'bigints.ml' with 1 (native) 
    tests/basic-more/'function_in_ref.ml' with 1 (native) 
    tests/ast-invariants/'test.ml' with 1.1 (native) 
    tests/basic/'recvalues.ml' with 1 (native) 
    tests/basic/'localfunction.ml' with 1 (native) 
    tests/lib-stack/'test.ml' with 1 (native) 
    tests/asmcomp/'0001-test.ml' with 1 (native) 
    tests/ephe-c-api/'test.ml' with 1 (native) 
    tests/lib-bigarray/'bigarrays.ml' with 1 (native) 
    tests/lib-bytes/'binary.ml' with 1 (native) 
    tests/regression/pr7920/'pr7920.ml' with 1 (native) 
    tests/lib-threads/'close.ml' with 1.2 (native) 
    tests/lib-threads/'signal.ml' with 1.1.2.1.1.1 (check-ocamlopt.byte-output) 
    tests/lib-sys/'immediate64.ml' with 1 (native) 
    tests/match-exception/'raise_from_success_continuation.ml' with 1 (native) 
    tests/ppx-attributes/'warning.ml' with 1 (native) 
    tests/basic-more/'pr2719.ml' with 1 (native) 
    tests/asmcomp/'optargs.ml' with 1 (native) 
    tests/basic-manyargs/'manyargs.ml' with 1 (native) 
    tests/lib-int64/'issue9460.ml' with 1 (native) 
    tests/flambda/'approx_meet.ml' with 2 (native) 
    tests/match-exception/'identifier_sharing.ml' with 1 (native) 
    tests/basic/'pr7657.ml' with 1 (native) 
    tests/parsing/'change_start_loc.ml' with 1 (native) 
    tests/backtrace/'inline_test.ml' with 2 (native) 
    tests/float-unboxing/'float_subst_boxed_number.ml' with 1 (native) 
    tests/typing-warnings/'fragile_matching.ml' with 1 (native) 
    tests/letrec-compilation/'backreferences.ml' with 1 (native) 
    tests/backtrace/'inline_traversal_test.ml' with 2 (native) 
    tests/lib-unix/common/'utimes.ml' with 1.2 (native) 
    tests/lib-floatarray/'floatarray.ml' with 1 (native) 
    tests/tool-ocamlopt-save-ir/'check_for_pack.ml' with 1.1.1.1.1.1 (check-ocamlopt.byte-output) 
    tests/lib-stream/'mpr7769.ml' with 1 (native) 
    tests/lib-marshal/'marshal_bigarray.ml' with 1 (native) 
    tests/lib-unix/common/'process_pid.ml' with 1.2 (native) 
    tests/lib-int/'test.ml' with 1 (native) 
    tests/gc-roots/'globroots.ml' with 1 (native) 
    tests/lib-threads/'tls.ml' with 1.2 (native) 
    tests/letrec-compilation/'float_block_1.ml' with 1 (native) 
    tests/lib-str/'t01.ml' with 1.2 (native) 
    tests/extension-constructor/'test.ml' with 1 (native) 
    tests/basic/'min_int.ml' with 1 (native) 
    tests/statmemprof/'alloc_counts.ml' with 1 (native) 
    tests/statmemprof/'intern.ml' with 1 (native) 
    tests/basic-more/'tbuffer.ml' with 1 (native) 
    tests/lib-channels/'seek_in.ml' with 1 (native) 
    tests/backtrace/'backtrace2.ml' with 1 (native) 
    tests/basic-more/'bounds.ml' with 1 (native) 
    tests/lib-atomic/'test_atomic.ml' with 1 (native) 
    tests/basic/'pr7533.ml' with 1 (native) 
    tests/runtime-naked-pointers/'np3.ml' with 1.2 (native) 
    tests/lib-format/'pr6824.ml' with 1 (native) 
    tests/typing-labels/'mixin3.ml' with 1 (native) 
    tests/lib-obj/'reachable_words.ml' with 1 (native) 
    tests/lib-format/'print_if_newline.ml' with 1 (native) 
    tests/prim-revapply/'apply.ml' with 1 (native) 
    tests/lib-marshal/'intern_final.ml' with 1 (native) 
    tests/basic/'pr7253.ml' with 1 (native) 
    tests/regression/pr3612/'pr3612.ml' with 1 (native) 
    tests/lib-unix/common/'redirections.ml' with 1.2.1.1.1 (check-ocamlopt.byte-output) 
    tests/tool-ocamltest/'norm3.ml' with 1 (native) 
    tests/basic/'includestruct.ml' with 1 (native) 
    tests/basic/'arrays.ml' with 1 (native) 
    tests/basic/'constprop.ml.c' with 2 (native) 
    tests/basic-multdef/'usemultdef.ml' with 1 (native) 
    tests/basic/'stringmatch.ml' with 1 (native) 
    tests/prim-bigstring/'bigstring_access.ml' with 1 (native) 
    tests/lib-bigarray/'fftba.ml' with 1 (native) 
    tests/basic/'maps.ml' with 1 (native) 
    tests/basic-more/'pr6216.ml' with 1 (native) 
    tests/backtrace/'lazy.ml' with 1 (native) 
    tests/basic-more/'record_evaluation_order.ml' with 1 (native) 
    tests/basic-private/'tlength.ml' with 1 (native) 
    tests/misc/'takc.ml' with 1 (native) 
    tests/basic/'tuple_match.ml' with 1 (native) 
    tests/letrec-compilation/'record_with.ml' with 1 (native) 
    tests/lib-threads/'delayintr.ml' with 1.1.2.1.1.1 (check-ocamlopt.byte-output) 
    tests/asmcomp/'register_typing.ml' with 1 (native) 
    tests/flambda/'gpr998.ml' with 1 (native) 
    tests/compatibility/'main.ml' with 1.2 (native) 
    tests/basic-more/'sequential_and_or.ml' with 1 (native) 
    tests/typing-recmod/'pr9494.ml' with 1 (native) 
    tests/runtime-naked-pointers/'np2.ml' with 2 (native) 
    tests/backtrace/'backtraces_and_finalizers.ml' with 1 (native) 
    tests/lib-format/'tformat.ml' with 1 (native) 
    tests/lib-uchar/'test.ml' with 1 (native) 
    tests/runtime-naked-pointers/'np4.ml' with 1.2 (native) 
    tests/statmemprof/'callstacks.ml' with 1.1 (native) 
    tests/lib-unix/unix-socket/'recvfrom_unix.ml' with 1.1.2 (native) 
    tests/typing-fstclassmod/'fstclassmod.ml' with 1 (native) 
    tests/match-exception/'exception_propagation.ml' with 1 (native) 
    tests/asmcomp/'register_typing_switch.ml' with 1 (native) 
    tests/lib-threads/'bufchan.ml' with 1.2 (native) 
    tests/lib-systhreads/'testpreempt.ml' with 1.1.2 (native) 
    tests/letrec-compilation/'class_2.ml' with 1 (native) 
    tests/basic-more/'if_in_if.ml' with 1 (native) 
    tests/tool-ocamlopt-save-ir/'save_ir_after_scheduling.ml' with 1.1.1.1 (check-ocamlopt.byte-output) 
    tests/lib-threads/'prodcons.ml' with 1.2 (native) 
    tests/lib-unix/common/'test_unixlabels.ml' with 1.2 (native) 
    tests/basic/'localexn.ml' with 1 (native) 
    tests/statmemprof/'exception_callback_minor.ml' with 1 (native) 
    tests/lib-format/'print_seq.ml' with 1 (native) 
    tests/lib-fun/'test.ml' with 1 (native) 
    tests/lib-bigarray-file/'mapfile.ml' with 1.1 (native) 
    tests/basic/'eval_order_6.ml' with 1 (native) 
    tests/parsetree/'test.ml' with 1 (native) 
    tests/misc/'gpr1370.ml' with 1 (native) 
    tests/lib-unix/kill/'unix_kill.ml' with 1.2 (native) 
    tests/letrec-compilation/'mixing_value_closures_1.ml' with 1 (native) 
    tests/callback/'tcallback.ml' with 1.2 (native) 
    tests/lib-channels/'in_channel_length.ml' with 1 (native) 
    tests/regression/pr7798/'pr7798.ml' with 3 (native) 
    tests/tool-lexyacc/'mpr7760.mll' with 1 (native) 
    tests/misc/'pr7168.ml' with 1 (native) 
    tests/lib-threads/'beat.ml' with 1.2 (native) 
    tests/lib-seq/'test.ml' with 1 (native) 
    tests/required-external/'main.ml' with 2.1.1.1.1 (check-ocamlopt.byte-output) 
    tests/backtrace/'names.ml' with 1 (native) 
    tests/lib-random/'rand.ml' with 1 (native) 
    tests/lib-hashtbl/'htbl.ml' with 1 (native) 
    tests/letrec-compilation/'lazy_.ml' with 1 (native) 
    tests/lib-option/'test.ml' with 1 (native) 
    tests/statmemprof/'exception_callback.ml' with 1 (native) 
    tests/basic-float/'zero_sized_float_arrays.ml' with 1 (native) 
    tests/basic/'tailcalls.ml' with 1 (native) 
    tests/backtrace/'callstack.ml' with 1.1.1 (native) 
    tests/lib-unix/common/'uexit.ml' with 1.2 (native) 
    tests/lib-threads/'sieve.ml' with 1.1.2 (native) 
    tests/lib-unix/common/'pipe_eof.ml' with 1.2 (native) 
    tests/letrec-compilation/'pr8681.ml' with 1 (native) 
    tests/letrec-compilation/'evaluation_order_1.ml' with 1 (native) 
    tests/lib-threads/'mutex_errors.ml' with 1.2 (native) 
    tests/regression/pr9028/'pr9028.ml' with 1 (native) 
    tests/lib-systhreads/'testyield.ml' with 1.1.2 (native) 
    tests/lib-arg/'testerror.ml' with 1 (native) 
    tests/misc-kb/'kbmain.ml' with 1 (native) 
    tests/lib-list/'test.ml' with 1 (native) 
    tests/lib-digest/'md5.ml' with 1 (native) 
    tests/tool-lexyacc/'chars.mll' with 1 (native) 
    tests/backtrace/'methods.ml' with 1 (native) 
    tests/lib-unix/common/'test_unix_cmdline.ml' with 1.2.1.1.1 (check-ocamlopt.byte-output) 
    tests/basic/'eval_order_3.ml' with 1 (native) 
    tests/basic/'zero_divided_by_n.ml' with 1 (native) 
    tests/int64-unboxing/'test.ml' with 1 (native) 
    tests/lib-buffer/'test.ml' with 1 (native) 
    tests/typing-multifile/'pr7563.ml' with 1 (native) 
    tests/misc/'weaklifetime.ml' with 1 (native) 
    tests/asmcomp/'staticalloc.ml' with 1 (native) 
    tests/misc/'fib.ml' with 1 (native) 
    tests/statmemprof/'arrays_in_major.ml' with 1 (native) 
    tests/lib-float/'test.ml' with 1 (native) 
    tests/float-unboxing/'unbox_under_assign.ml' with 1 (native) 
    tests/prim-revapply/'revapply.ml' with 1 (native) 
    tests/letrec-compilation/'pr4989.ml' with 1 (native) 
    tests/link-test/'empty.ml' with 2.1.1.1.1 (check-ocamlopt.byte-output) 
    tests/instrumented-runtime/'main.ml' with 1.1 (native) 
    tests/statmemprof/'minor_no_postpone.ml' with 1 (native) 
    tests/locale/'test.ml' with 1 (native) 
    tests/regression/gpr1623/'gpr1623.ml' with 1 (native) 
    tests/lib-arg/'testarg.ml' with 1 (native) 
    tests/lib-hashtbl/'compatibility.ml' with 1 (native) 
    tests/letrec-compilation/'labels.ml' with 1 (native) 
    tests/basic-more/'opaque_prim.ml' with 1 (native) 
    tests/generalized-open/'accepted_batch.ml' with 1 (native) 
    tests/misc-unsafe/'fft.ml' with 1 (native) 
    tests/backtrace/'backtrace3.ml' with 1 (native) 
    tests/basic-more/'pr7683.ml' with 1 (native) 
    tests/misc/'ephetest2.ml' with 1 (native) 
    tests/basic/'opt_variants.ml' with 1 (native) 
    tests/backtrace/'inline_test.ml' with 3 (native) 
    tests/backtrace/'backtrace_deprecated.ml' with 1 (native) 
    tests/backtrace/'inline_traversal_test.ml' with 3 (native) 
    tests/tool-ocamltest/'norm4.ml' with 1 (native) 
    tests/lib-threads/'fileio.ml' with 1.2 (native) 
    tests/regression/pr9326/'gc_set.ml' with 1 (native) 
    tests/lib-unix/common/'dup.ml' with 1.2 (native) 
    tests/basic-float/'tfloat_hex.ml' with 1 (native) 
    tests/lib-unix/common/'dup2.ml' with 1.2 (native) 
    tests/c-api/'alloc_async.ml' with 1 (native) 
    tests/statmemprof/'custom.ml' with 1 (native) 

List of unexpected errors:
    tests/lib-dynlink-pr4839/'test.ml' with 1.2.2.17 (ocamlopt.byte) 
    tests/lib-dynlink-pr4839/'test.ml' with 1.2.2.11 (ocamlopt.byte) 
    tests/lib-dynlink-pr4839/'test.ml' with 1.2.2.5 (ocamlopt.byte) 

Summary:
  2482 tests passed
   38 tests skipped
  343 tests failed
  133 tests not started (parent test skipped or failed)
    3 unexpected errors
  2999 tests considered
#### Something failed. Exiting with error status.
my system environment details
Portage 3.0.28 (python 3.9.7-final-0, default/linux/riscv/20.0/rv64gc/lp64d, gcc-11.2.0, glibc-2.33-r7, 5.13.12-gentoo-riscv64 riscv64)
=================================================================
System uname: Linux-5.13.12-gentoo-riscv64-riscv64-with-glibc2.33
KiB Mem:    16376544 total,   3875064 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 08 Oct 2021 08:00:01 +0000
Head commit of repository gentoo: 7612876ca945d1dc35176fe268e12c624c1ce02e
sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p5) 2.36.1
distcc 3.4 riscv64-unknown-linux-gnu [disabled]
ccache version 4.3 [enabled]
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0-r2::gentoo
dev-lang/python:          3.9.7::gentoo, 3.10.0::gentoo
dev-lang/rust:            1.55.0::gentoo
dev-util/ccache:          4.3-r2::gentoo
dev-util/cmake:           3.21.3::gentoo
sys-apps/baselayout:      2.8::gentoo
sys-apps/openrc:          0.44.6::gentoo
sys-apps/sandbox:         2.25::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.64-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.5::gentoo
sys-devel/binutils:       2.36.1-r2::gentoo, 2.37_p1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.cn.gentoo.org/gentoo-portage/
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: -4

local
    location: /var/db/repos/local
    masters: gentoo
    priority: 0

riscv
    location: /var/db/repos/riscv
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="riscv ~riscv"
ACCEPT_LICENSE="@FREE"
CBUILD="riscv64-unknown-linux-gnu"
CFLAGS="-O2 -g -ggdb -pipe -mabi=lp64d"
CHOST="riscv64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -g -ggdb -pipe -mabi=lp64d"
DISTDIR="/home1/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 3 --load-average 5"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -g -ggdb -pipe -mabi=lp64d"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -g -ggdb -pipe -mabi=lp64d"
GENTOO_MIRRORS="https://mirrors.aliyun.com/gentoo/ 	https://mirrors.163.com/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/home1/gentoo/binpkgs"
PORTAGE_BINHOST="http://47.89.252.149/gentoo/binpkgs/openrc/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-4"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl bzip2 cli crypt cups dri elogind fortran gdbm gtk-doc iconv introspection ipv6 libglvnd ncurses nls nptl openmp pam pcre policykit readline riscv samba seccomp split-usr ssl tcpd truetype unicode vala xattr zlib" ADA_TARGET="gnat_2019" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="en en-AU en-CA en-GB en-US en-ZA" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="RISCV AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="fbdev r200 r300 r600 amdgpu radeon nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RUSTFLAGS
@alexfanqi alexfanqi changed the title Test failures due to linker warning: creating DT_TEXTREL in a PIE riscv64: Test failures due to linker warning: creating DT_TEXTREL in a PIE Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant