Re: rosetta error: Unimplemented syscall number 282 Trace/breakpoint trap
Great! It worked! Thank you very much Gedare! On Monday, March 18, 2024 at 10:05:39 PM GMT+1, Gedare Bloom wrote: On Mon, Mar 4, 2024 at 6:39 AM Volkan SALMA wrote: > > Dear Rtems users, > > Newbie here.. > > I compiled a basic i386 project using the docker image of > juanmagomez/rtems-dev. > > The generated binary works fine on the real target. However I would like to > run it on qemu > to speed up my development using emulator. > > > When I run QEMU with the following command > > qemu-system-i386 -m 128 -no-reboot -append "video=off --console=/dev/com1" > -nographic -kernel ./RtemsDevShare/build/i386-rtems6-pc386/hello.exe > > I'm getting: > rosetta error: Unimplemented syscall number 282 > Trace/breakpoint trap > First, try to uncheck the "Use Rosetta for x86/amd64 emulation on Apple Silicon" option in Docker Settings > General. > > > Do you have any hints/directions to follow for the issue? > > Can it be because of I am running the docker image on a Mac computer? > > Any directions are welcome. Thanks in advance. > > > The test code I am trying to run is: > > #include > #include > #include > > rtems_task Init( > rtems_task_argument ignored > ) > { > printf( "\nHello World\n" ); > exit( 0 ); > } > > Best, Volkan > > > > > ___ > users mailing list > users@rtems.org > http://lists.rtems.org/mailman/listinfo/users ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users
multiple definition of `_Semaphore_Wait', multiple definition of `_Semaphore_Post' , undefined reference to `__dso_handle'
Hi, I am currently trying to get EPICS running on MVME2500 and have used the BSP qoriq_e500 (RTEMS6, libbsd, from master). And get the following error: make -C O.RTEMS-qoriq_e500 -f ../Makefile TOP=../../../.. \ T_A=RTEMS-qoriq_e500 install make[4]: Entering directory '/home/rtems/MVME2500_PCI/EPICS/epics-base/modules/libcom/test/O.RTEMS-qoriq_e500' /home/rtems/MVME2500_PCI/rtems/6/bin/powerpc-rtems6-g++ -o libComTestHarness -static -L/home/rtems/MVME2500_PCI/EPICS/epics-base/lib/RTEMS-qoriq_e500 -L/home/rtems/MVME2500_PCI/rtems/6/powerpc-rtems6/qoriq_e500/lib -mcpu 40 -msoft-float -meabi -msdata=sysv -mstrict-align -u POSIX_Init epicsTypesTest.o epicsInlineTest1.o epicsInlineTest2.o epicsInlineTest3.o epicsInlineTest4.o epicsCalcTest.o epicsAlgorithmTest.o epicsMathTest.o epicsMMIOTest.o epicsEllTest.o epicsEnvTest.o epicsEnvUnsetTest.o epicsErrlogTest.o epicsStdioTest.o epicsStdlibTest.o epicsSockResolveTest.o epicsStringTest.o epicsTimeTest.o epicsThreadTest.o epicsThreadClassTest.o epicsThreadOnceTest.o epicsThreadPriorityTest.o epicsThreadPrivateTest.o epicsThreadHooksTest.o epicsThreadPoolTest.o initHookTest.o epicsExitTest.o epicsTimerTest.o ringPointerTest.o ringBytesTest.o epicsEventTest.o epicsMutexTest.o epicsSpinTest.o epicsAtomicTest.o macDefExpandTest.o cvtFastTest.o macLibTest.o aslibtest.o taskwdTest.o blockingSockTest.o epicsMessageQueueTest.o epicsStackTraceTest.o ipAddrToAsciiTest.o osiSockTest.o epicsRunLibComTests.o epicsThreadPerform.o epicsMaxThreads.o buckTest.o epicsAtomicPerform.o cvtFastPerform.o epicsTimeZoneTest.o rtemsTestHarness.o rtemsTestData.o -lCom -Wl,--gc-sections -lm -lrtemsCom -lCom -lrtemscpu -lc -lm -lgcc /home/rtems/MVME2500_PCI/rtems/6/lib/gcc/powerpc-rtems6/13.2.0/../../../../powerpc-rtems6/bin/ld: /home/rtems/MVME2500_PCI/rtems/6/powerpc-rtems6/qoriq_e500/lib/librtemscpu.a(semaphore.c.69.o): in function `ppc_interrupt_disable': /home/rtems/MVME2500_PCI/kernel/build/powerpc/qoriq_e500/../../../cpukit/score/cpu/powerpc/include/rtems/powerpc/registers.h:717: multiple definition of `_Semaphore_Wait'; /home/rtems/MVME2500_PCI/rtems/6/lib/gcc/powerpc-rtems6/13.2.0/../../../../powerpc-rtems6/lib/m8540/nof/crt0.o:/home/rtems/MVME2500_PCI/rsb/rtems/build/powerpc-rtems6-gcc-13.2.0-newlib-176b19f-x86_64-linux-gnu-1/build/powerpc-rtems6/m8540/nof/newlib/targ-include/sys/lock.h:296: first defined here /home/rtems/MVME2500_PCI/rtems/6/lib/gcc/powerpc-rtems6/13.2.0/../../../../powerpc-rtems6/bin/ld: /home/rtems/MVME2500_PCI/rtems/6/powerpc-rtems6/qoriq_e500/lib/librtemscpu.a(semaphore.c.69.o): in function `ppc_interrupt_disable': /home/rtems/MVME2500_PCI/kernel/build/powerpc/qoriq_e500/../../../cpukit/score/cpu/powerpc/include/rtems/powerpc/registers.h:717: multiple definition of `_Semaphore_Post'; /home/rtems/MVME2500_PCI/rtems/6/lib/gcc/powerpc-rtems6/13.2.0/../../../../powerpc-rtems6/lib/m8540/nof/crt0.o:/home/rtems/MVME2500_PCI/rsb/rtems/build/powerpc-rtems6-gcc-13.2.0-newlib-176b19f-x86_64-linux-gnu-1/build/powerpc-rtems6/m8540/nof/newlib/targ-include/sys/lock.h:305: first defined here /home/rtems/MVME2500_PCI/rtems/6/lib/gcc/powerpc-rtems6/13.2.0/../../../../powerpc-rtems6/bin/ld: /home/rtems/MVME2500_PCI/rtems/6/powerpc-rtems6/qoriq_e500/lib/librtemscpu.a(fchmod.c.69.o): in function `fchmod': /home/rtems/MVME2500_PCI/kernel/build/powerpc/qoriq_e500/../../../cpukit/libcsupport/src/fchmod.c:89: multiple definition of `fchmod'; /home/rtems/MVME2500_PCI/rtems/6/lib/gcc/powerpc-rtems6/13.2.0/../../../../powerpc-rtems6/lib/m8540/nof/crt0.o:/home/rtems/MVME2500_PCI/rsb/rtems/build/powerpc-rtems6-gcc-13.2.0-newlib-176b19f-x86_64-linux-gnu-1/build/powerpc-rtems6/m8540/nof/newlib/../../../../../gcc-13.2.0/newlib/libc/sys/rtems/crt0.c:104: first defined here /home/rtems/MVME2500_PCI/rtems/6/lib/gcc/powerpc-rtems6/13.2.0/../../../../powerpc-rtems6/bin/ld: warning: cannot find entry symbol _start; defaulting to 018000b4 /home/rtems/MVME2500_PCI/rtems/6/lib/gcc/powerpc-rtems6/13.2.0/../../../../powerpc-rtems6/bin/ld: epicsThreadTest.o: in function `_GLOBAL__sub_I_epicsThreadTest': /home/rtems/MVME2500_PCI/EPICS/epics-base/modules/libcom/test/O.RTEMS-qoriq_e500/../epicsThreadTest.cpp:30:(.text.startup._GLOBAL__sub_I_epicsThreadTest+0x26): undefined reference to `__dso_handle' epicsThreadTest.o: in function `__static_initialization_and_destruction_0': /home/rtems/MVME2500_PCI/EPICS/epics-base/modules/libcom/test/O.RTEMS-qoriq_e500/../epicsThreadTest.cpp:30:(.text.startup._GLOBAL__sub_I_epicsThreadTest+0x26): unresolvable R_PPC_SDAREL16 relocation against symbol `__dso_handle' collect2: error: ld returned 1 exit status make[4]: *** [../../../../configure/RULES_BUILD:231: libComTestHarness] Error 1 make[4]: Leaving directory '/home/rtems/MVME2500_PCI/EPICS/epics-base/modules/libcom/test/O.RTEMS-qoriq_e500' make[3]: *** [../../../configure/RULES_ARCHS:58: install.RTEMS-qoriq_e500] Error 2 make[3]: Leaving
Re: multiple definition of `_Semaphore_Wait', multiple definition of `_Semaphore_Post' , undefined reference to `__dso_handle'
Hello Heinz, On 20.03.24 16:31, Heinz Junkes wrote: /home/rtems/MVME2500_PCI/rtems/6/bin/powerpc-rtems6-g++ -o libComTestHarness -static -L/home/rtems/MVME2500_PCI/EPICS/epics-base/lib/RTEMS-qoriq_e500 -L/home/rtems/MVME2500_PCI/rtems/6/powerpc-rtems6/qoriq_e500/lib -mcpu=8540 -msoft-float -meabi -msdata=sysv -mstrict-align -u POSIX_Init epicsTypesTest.o epicsInlineTest1.o epicsInlineTest2.o epicsInlineTest3.o epicsInlineTest4.o epicsCalcTest.o epicsAlgorithmTest.o epicsMathTest.o epicsMMIOTest.o epicsEllTest.o epicsEnvTest.o epicsEnvUnsetTest.o epicsErrlogTest.o epicsStdioTest.o epicsStdlibTest.o epicsSockResolveTest.o epicsStringTest.o epicsTimeTest.o epicsThreadTest.o epicsThreadClassTest.o epicsThreadOnceTest.o epicsThreadPriorityTest.o epicsThreadPrivateTest.o epicsThreadHooksTest.o epicsThreadPoolTest.o initHookTest.o epicsExitTest.o epicsTimerTest.o ringPointerTest.o ringBytesTest.o epicsEventTest.o epicsMutexTest.o epicsSpinTest.o epicsAtomicTest.o macDefExpandTest.o cvtFastTest.o macLibTest.o aslibtest.o taskwdTest.o blockingSockTest.o epicsMessageQueueTest.o epicsStackTraceTest.o ipAddrToAsciiTest.o osiSockTest.o epicsRunLibComTests.o epicsThreadPerform.o epicsMaxThreads.o buckTest.o epicsAtomicPerform.o cvtFastPerform.o epicsTimeZoneTest.o rtemsTestHarness.o rtemsTestData.o -lCom -Wl,--gc-sections -lm -lrtemsCom -lCom -lrtemscpu -lc -lm -lgcc I would use pkg-config to get the right linker and compiler flags. Here a -qrtems is probably missing. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernummer: HRB 157899 Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler Unsere Datenschutzerklärung finden Sie hier: https://embedded-brains.de/datenschutzerklaerung/ ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users
Re: multiple definition of `_Semaphore_Wait', multiple definition of `_Semaphore_Post' , undefined reference to `__dso_handle'
Thanks, that's it, with -qrtems it works. I am now trying to use pkg-config as you recommended. Danke Heinz > On 20. Mar 2024, at 16:41, Sebastian Huber > wrote: > > Hello Heinz, > > On 20.03.24 16:31, Heinz Junkes wrote: >> /home/rtems/MVME2500_PCI/rtems/6/bin/powerpc-rtems6-g++ -o >> libComTestHarness -static >> -L/home/rtems/MVME2500_PCI/EPICS/epics-base/lib/RTEMS-qoriq_e500 >> -L/home/rtems/MVME2500_PCI/rtems/6/powerpc-rtems6/qoriq_e500/lib >> -mcpu�40 -msoft-float -meabi -msdata=sysv -mstrict-align -u POSIX_Init >> epicsTypesTest.o epicsInlineTest1.o epicsInlineTest2.o >> epicsInlineTest3.o epicsInlineTest4.o epicsCalcTest.o >> epicsAlgorithmTest.o epicsMathTest.o epicsMMIOTest.o epicsEllTest.o >> epicsEnvTest.o epicsEnvUnsetTest.o epicsErrlogTest.o epicsStdioTest.o >> epicsStdlibTest.o epicsSockResolveTest.o epicsStringTest.o >> epicsTimeTest.o epicsThreadTest.o epicsThreadClassTest.o >> epicsThreadOnceTest.o epicsThreadPriorityTest.o epicsThreadPrivateTest.o >> epicsThreadHooksTest.o epicsThreadPoolTest.o initHookTest.o >> epicsExitTest.o epicsTimerTest.o ringPointerTest.o ringBytesTest.o >> epicsEventTest.o epicsMutexTest.o epicsSpinTest.o epicsAtomicTest.o >> macDefExpandTest.o cvtFastTest.o macLibTest.o aslibtest.o taskwdTest.o >> blockingSockTest.o epicsMessageQueueTest.o epicsStackTraceTest.o >> ipAddrToAsciiTest.o osiSockTest.o epicsRunLibComTests.o >> epicsThreadPerform.o epicsMaxThreads.o buckTest.o epicsAtomicPerform.o >> cvtFastPerform.o epicsTimeZoneTest.o rtemsTestHarness.o rtemsTestData.o >> -lCom -Wl,--gc-sections -lm -lrtemsCom -lCom -lrtemscpu -lc -lm >> -lgcc > > I would use pkg-config to get the right linker and compiler flags. Here a > -qrtems is probably missing. > > -- > embedded brains GmbH & Co. KG > Herr Sebastian HUBER > Dornierstr. 4 > 82178 Puchheim > Germany > email: sebastian.hu...@embedded-brains.de > phone: +49-89-18 94 741 - 16 > fax: +49-89-18 94 741 - 08 > > Registergericht: Amtsgericht München > Registernummer: HRB 157899 > Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler > Unsere Datenschutzerklärung finden Sie hier: > https://embedded-brains.de/datenschutzerklaerung/ smime.p7s Description: S/MIME cryptographic signature ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users