Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

ERROR: conanfile.py (OrbitProfiler/None): Error in build() method, line 94 (related to libQt5Core.so.5) #4329

Closed

Description

@mxxgkz

Hi,

I tried to run ./bootstrap-orbit.sh with run_tests set to False in the conanfile.py inside a container of Ubuntu 20.04 with gcc 9.4.0 and qt 5.12.8. I got error as following:

make: *** [Makefile:101: all] Error 2
ERROR: conanfile.py (OrbitProfiler/None): Error in build() method, line 94
        cmake.build(target=str(self.options.build_target) if self.options.build_target else None)
        ConanException: Error 2 while executing cmake --build '/software/orbit/build_default_relwithdebinfo' '--' '-j16'

When I looked some previous lines, I found that this error probably was resulted from the following error:

AutoUic subprocess error
------------------------
The uic process failed to compile
  "SRC:/src/CaptureFileInfo/LoadCaptureWidget.ui"
into
  "SRC:/build_default_relwithdebinfo/src/CaptureFileInfo/CaptureFileInfo_autogen/include/ui_LoadCaptureWidget.h"
included by
  "SRC:/src/CaptureFileInfo/LoadCaptureWidget.cpp"

Command
-------
/usr/lib/qt5/bin/uic -o /software/orbit/build_default_relwithdebinfo/src/CaptureFileInfo/CaptureFileInfo_autogen/include/ui_LoadCaptureWidget.h /software/orbit/src/CaptureFileInfo/LoadCaptureWidget.ui

Output
------
/usr/lib/qt5/bin/uic: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

How can I solve this problem?

Thank you!

Activity

  1. beckerhe commented on Nov 2, 2022

    @beckerhe
    Collaborator

    Hi,
    can you call the uic tool in a termal and does that work?

    /usr/lib/qt5/bin/uic --version
    

    If not that means there is something wrong with your Qt installation.

  2. mxxgkz commented on Nov 2, 2022

    @mxxgkz
    Author

    Hi, can you call the uic tool in a termal and does that work?

    /usr/lib/qt5/bin/uic --version
    

    If not that means there is something wrong with your Qt installation.

    I was searching online and found that people do sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5. After doing this, with run_tests=False, I reached the

    [100%] Built target OrbitQtTests
    [100%] Built target Orbit
    

    successfully, so that I think I built successfully. However, when I set run_tests=True. I got lots of error of Failed to attach: Operation not permitted as following. I guess those tests are not required for me to run the built binary, right? But still would be nice to have all tests pass.

    Running main() from /root/software/orbit/src/Test/test_main.cpp
    Note: Google Test filter = MemoryRemoteTest.read
    [==========] Running 1 test from 1 test suite.
    [----------] Global test environment set-up.
    [----------] 1 test from MemoryRemoteTest
    [ RUN      ] MemoryRemoteTest.read
    Failed to attach: Operation not permitted
    /root/software/orbit/third_party/libunwindstack/tests/MemoryRemoteTest.cpp:53: Failure
    Value of: Attach(pid)
      Actual: false
    Expected: true
    [  FAILED  ] MemoryRemoteTest.read (7 ms)
    [----------] 1 test from MemoryRemoteTest (7 ms total)
    
    [----------] Global test environment tear-down
    [==========] 1 test from 1 test suite ran. (7 ms total)
    [  PASSED  ] 0 tests.
    [  FAILED  ] 1 test, listed below:
    [  FAILED  ] MemoryRemoteTest.read
    
     1 FAILED TEST
    
              Start 1255: MemoryRemoteTest.read_fail
    1240/3020 Test #1253: MemoryRemoteTest.read_large .......................................................................................................................................................................................................................................................................................................................................................***Failed    0.07 sec
    Running main() from /root/software/orbit/src/Test/test_main.cpp
    Note: Google Test filter = MemoryRemoteTest.read_large
    [==========] Running 1 test from 1 test suite.
    [----------] Global test environment set-up.
    [----------] 1 test from MemoryRemoteTest
    [ RUN      ] MemoryRemoteTest.read_large
    Failed to attach: Operation not permitted
    /root/software/orbit/third_party/libunwindstack/tests/MemoryRemoteTest.cpp:82: Failure
    Value of: Attach(pid)
      Actual: false
    Expected: true
    [  FAILED  ] MemoryRemoteTest.read_large (14 ms)
    [----------] 1 test from MemoryRemoteTest (14 ms total)
    
    [----------] Global test environment tear-down
    [==========] 1 test from 1 test suite ran. (14 ms total)
    [  PASSED  ] 0 tests.
    [  FAILED  ] 1 test, listed below:
    [  FAILED  ] MemoryRemoteTest.read_large
    
     1 FAILED TEST
    

    At the end of stdout, I got

    97% tests passed, 84 tests failed out of 3020
    
    Total Test time (real) = 265.97 sec
    
    The following tests did not run:
    	247 - LinuxTracingIntegrationTest.GpuJobs (Skipped)
    	251 - OrbitServiceIntegrationTest.MemoryTracing (Skipped)
    	464 - InstrumentProcessTest.GetErrorMessage (Skipped)
    	488 - InstrumentFunctionTest.TooShort (Skipped)
    	495 - InstrumentFunctionTest.Loop (Skipped)
    	502 - InstrumentFunctionTest.UnconditionalJump8BitOffsetBackToBeginning (Skipped)
    	503 - InstrumentFunctionTest.UnconditionalJump32BitOffsetBackToBeginning (Skipped)
    	504 - InstrumentFunctionTest.ConditionalJump8BitOffsetBackToBeginning (Skipped)
    	505 - InstrumentFunctionTest.ConditionalJump32BitOffsetBackToBeginning (Skipped)
    	511 - UnwinderDeathTest.set_dex_files_error (Skipped)
    	1603 - UnwindTest.remote_through_signal (Skipped)
    	1604 - UnwindTest.remote_through_signal_sa_siginfo (Skipped)
    	1605 - UnwindTest.remote_through_signal_with_invalid_func (Skipped)
    	1606 - UnwindTest.remote_through_signal_sa_siginfo_with_invalid_func (Skipped)
    
    The following tests FAILED:
    	 64 - LibunwindstackMultipleOfflineAndProcessMemory.ReadFromTestProcess (Failed)
    	238 - LinuxTracingIntegrationTest.SchedulingSlices (Timeout)
    	239 - LinuxTracingIntegrationTest.FunctionCalls (Timeout)
    	240 - LinuxTracingIntegrationTest.CallstackSamplesAndAddressInfos (Timeout)
    	241 - LinuxTracingIntegrationTest.CallstackSamplesTogetherWithFunctionCalls (Timeout)
    	242 - LinuxTracingIntegrationTest.CallstackSamplesWithFramePointers (Timeout)
    	243 - LinuxTracingIntegrationTest.CallstackSamplesWithFramePointersTogetherWithFunctionCalls (Timeout)
    	244 - LinuxTracingIntegrationTest.ThreadStateSlices (Timeout)
    	245 - LinuxTracingIntegrationTest.ThreadNames (Timeout)
    	246 - LinuxTracingIntegrationTest.ModuleUpdateOnDlopen (Timeout)
    	248 - OrbitServiceIntegrationTest.CaptureSmoke (SEGFAULT)
    	249 - OrbitServiceIntegrationTest.FunctionCallsWithUserSpaceInstrumentation (Timeout)
    	250 - OrbitServiceIntegrationTest.OrbitApi (Subprocess aborted)
    	443 - ServiceUtils.CategoriesTracepoints (Failed)
    	444 - ServiceUtils.NamesTracepoints (Failed)
    	445 - AccessTraceesMemoryTest.ReadFailures (Timeout)
    	446 - AccessTraceesMemoryTest.WriteFailures (Timeout)
    	447 - AccessTraceesMemoryTest.ReadWriteRestore (Timeout)
    	448 - AllocateInTraceeTest.AllocateAndFree (Timeout)
    	449 - AllocateInTraceeTest.AutomaticAllocateAndFree (Timeout)
    	450 - AllocateInTraceeTest.SyscallInTraceeFailsBecauseOfStrictSeccompMode (Subprocess aborted)
    	451 - AllocateInTraceeTest.SyscallInTraceeFailsBecauseOfSeccompFilter (Timeout)
    	452 - AttachTest.AttachAndStopProcess (Timeout)
    	453 - ExecuteInProcessTest.ExecuteInProcess (Timeout)
    	454 - ExecuteInProcessTest.ExecuteInProcessWithMicrosoftCallingConvention (Timeout)
    	455 - ExecuteMachineCodeTest.ExecuteMachineCode (Timeout)
    	456 - FindFunctionAddressTest.FindFunctionAddress (Timeout)
    	457 - InjectLibraryInTraceeTest.OpenUseAndCloseLibraryInUserCode (Timeout)
    	458 - InjectLibraryInTraceeTest.OpenUseAndCloseLibraryInSyscall (Timeout)
    	459 - InjectLibraryInTraceeTest.NonExistingLibrary (Timeout)
    	460 - InstrumentProcessTest.FailToInstrumentAlreadyAttached (Timeout)
    	463 - InstrumentProcessTest.Instrument (Timeout)
    	465 - InstrumentProcessTest.ExitPayloadDoesNotUseX87Fpu (Timeout)
    	466 - InstrumentProcessTest.AnyTargetThreadInStrictSeccompMode (Subprocess aborted)
    	468 - ReadSeccompModeOfThread.ReadSeccompModeOfThread (Failed)
    	469 - RegisterStateTest.BackupModifyRestore (Subprocess aborted)
    	470 - TestUtilTest.Disassemble (Timeout)
    	476 - TrampolineTest.AllocateMemoryForTrampolines (Timeout)
    	486 - InstrumentFunctionTest.DoSomething (Timeout)
    	487 - InstrumentFunctionTest.CheckStackAlignedTo16Bytes (Timeout)
    	489 - InstrumentFunctionTest.LongEnough (Timeout)
    	490 - InstrumentFunctionTest.RipRelativeAddressing (Timeout)
    	491 - InstrumentFunctionTest.UnconditionalJump8BitOffset (Timeout)
    	492 - InstrumentFunctionTest.UnconditionalJump32BitOffset (Timeout)
    	493 - InstrumentFunctionTest.ConditionalJump8BitOffset (Timeout)
    	494 - InstrumentFunctionTest.ConditionalJump32BitOffset (Timeout)
    	496 - InstrumentFunctionTest.CheckIntParameters (Timeout)
    	497 - InstrumentFunctionTest.CheckFloatParameters (Timeout)
    	498 - InstrumentFunctionTest.CheckM256iParameters (Timeout)
    	499 - InstrumentFunctionTest.CheckIntParametersMsAbi (Timeout)
    	500 - InstrumentFunctionTest.CheckFloatParametersMsAbi (Timeout)
    	501 - InstrumentFunctionTest.CheckNoX87UnderflowInReturnTrampoline (Timeout)
    	506 - InstrumentFunctionTest.LongConditionalJump32BitOffsetBackToBeginning (Timeout)
    	507 - InstrumentFunctionTest.UnableToDisassembleBadInstruction (Timeout)
    	1232 - MemoryLocalTest.read (Failed)
    	1235 - MemoryLocalTest.Read (Failed)
    	1236 - MemoryLocalTest.read_hole (Failed)
    	1252 - MemoryRemoteTest.read (Failed)
    	1253 - MemoryRemoteTest.read_large (Failed)
    	1254 - MemoryRemoteTest.read_partial (Failed)
    	1255 - MemoryRemoteTest.read_fail (Failed)
    	1256 - MemoryRemoteTest.read_overflow (Failed)
    	1257 - MemoryRemoteTest.read_illegal (Failed)
    	1258 - MemoryRemoteTest.read_mprotect_hole (Failed)
    	1259 - MemoryRemoteTest.read_munmap_hole (Failed)
    	1260 - MemoryRemoteTest.read_choose_correctly (Failed)
    	1529 - RegsRemoteTest.remote_get (Failed)
    	1530 - RegsRemoteTest.remote_get_arch (Failed)
    	1594 - UnwindTest.local (Failed)
    	1595 - UnwindTest.local_use_from_pid (Failed)
    	1596 - UnwindTest.local_check_for_leak (Failed)
    	1597 - UnwindTest.local_use_from_pid_check_for_leak (Failed)
    	1598 - UnwindTest.remote (Timeout)
    	1599 - UnwindTest.unwind_from_pid_remote (Timeout)
    	1600 - UnwindTest.remote_check_for_leaks (Timeout)
    	1601 - UnwindTest.remote_unwind_for_pid_check_for_leaks (Timeout)
    	1602 - UnwindTest.from_context (Failed)
    	1607 - UnwindTest.multiple_threads_unwind_same_map (Failed)
    	1608 - UnwindTest.thread_unwind (Failed)
    	1609 - UnwindTest.thread_unwind_copy_regs (Failed)
    	1610 - UnwindTest.thread_unwind_with_external_maps (Failed)
    	1614 - UnwindTest.thread_unwind_same_thread_from_threads (Failed)
    	1615 - UnwindTest.thread_unwind_multiple_thread_from_threads (Failed)
    	1616 - UnwindTest.thread_unwind_multiple_thread_from_threads_updatable_maps (Failed)
    Errors while running CTest
    make: *** [Makefile:71: test] Error 8
    ERROR: conanfile.py (OrbitProfiler/None): Error in build() method, line 96
    	cmake.test(output_on_failure=True)
    	ConanException: Error 2 while executing cmake --build '/root/software/orbit/build_default_relwithdebinfo' '--target' 'test' '--' '-j16'
    
    
    ......
    
    

    Any suggestion? Thanks

  3. beckerhe commented on Nov 3, 2022

    @beckerhe
    Collaborator

    Are you running this in an environment where the ptrace syscall is not allowed? Maybe a docker container?

  4. locked and limited conversation to collaborators on Nov 21, 2022
  5. converted this issue into a discussion #4443 on Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions