JuliaHubOSS / llvm-cbe

resurrected LLVM "C Backend", with improvements
Other
838 stars 144 forks source link

Failing Unit Tests eventhough "Step 3: Usage Examples" works #160

Closed djStolen closed 1 year ago

djStolen commented 2 years ago

Hi all,

as mentioned above. I have this case. Can u help?

/llvm-cbe/build$ make CBEUnitTests && projects/llvm-cbe/unittests/CWriterTest [ 25%] Built target LLVMCBackendInfo [ 75%] Built target LLVMCBackendCodeGen Scanning dependencies of target CWriterTest [ 87%] Building CXX object unittests/CMakeFiles/CWriterTest.dir/TypeNameTest.cpp.o [100%] Linking CXX executable CWriterTest /usr/bin/ld: cannot find -lgtest_main /usr/bin/ld: cannot find -lgtest collect2: error: ld returned 1 exit status unittests/CMakeFiles/CWriterTest.dir/build.make:97: recipe for target 'unittests/CWriterTest' failed make[3]: *** [unittests/CWriterTest] Error 1 CMakeFiles/Makefile2:473: recipe for target 'unittests/CMakeFiles/CWriterTest.dir/all' failed make[2]: *** [unittests/CMakeFiles/CWriterTest.dir/all] Error 2 CMakeFiles/Makefile2:512: recipe for target 'unittests/CMakeFiles/CBEUnitTests.dir/rule' failed make[1]: *** [unittests/CMakeFiles/CBEUnitTests.dir/rule] Error 2 Makefile:281: recipe for target 'CBEUnitTests' failed make: *** [CBEUnitTests] Error 2

.... FAILED test/test_cbe.py::test_consistent_return_value_c[test_atomic_load--O2] - ... FAILED test/test_cbe.py::test_consistent_return_value_c[test_atomic_load--O3] - ... FAILED test/test_cbe.py::test_consistent_return_value_c[test_atomic_store--O0] FAILED test/test_cbe.py::test_consistent_return_value_c[test_atomic_store--O1] FAILED test/test_cbe.py::test_consistent_return_value_c[test_atomic_store--O2] FAILED test/test_cbe.py::test_consistent_return_value_c[test_atomic_store--O3] FAILED test/test_cbe.py::test_consistent_return_value_ll[test_addressable_empty_types] FAILED test/test_cbe.py::test_consistent_return_value_ll[test_byval_struct_param] FAILED test/test_cbe.py::test_consistent_return_value_ll[test_compile_opaque_struct_with_function] FAILED test/test_cbe.py::test_consistent_return_value_ll[test_empty_array_geps] FAILED test/test_cbe.py::test_consistent_return_value_ll[test_fun_ptr_dependencies] FAILED test/test_cbe.py::test_consistent_return_value_ll[test_fun_ptr_only_refd_by_function] FAILED test/test_cbe.py::test_consistent_return_value_ll[test_fun_ptr_only_refd_by_struct] FAILED test/test_cbe.py::test_consistent_return_value_ll[test_not_power_2_ints] FAILED test/test_cbe.py::test_consistent_return_value_ll[test_simple_return] - F... =================== 513 failed, 32 xfailed in 61.49s (0:01:01) ==================== /llvm-cbe$

dpaoliello commented 1 year ago

Can you still reproduce this failure? If so, what is the detailed failure text?