trns1997 commented on PR #16970:
URL: https://github.com/apache/nuttx/pull/16970#issuecomment-3254893411
@leducp since `nuttx-12.10.0` i get the following error when trying to build
the app:
```
➜ build make
[ 33%] Building CXX object src/CMakeFiles/hello.dir/HelloWorld.cpp.obj
[ 66%] Building CXX object src/CMakeFiles/hello.dir/main.cpp.obj
[100%] Linking CXX executable hello
/home/thomas/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld:
/home/thomas/nuttxspace/hellocpp/nuttx-export-12.10.0/scripts/../libs/libarch.a(stm32_start.o):
in function `__start':
stm32_start.c:(.text.__start+0x0): multiple definition of `__start';
/home/thomas/nuttxspace/hellocpp/nuttx-export-12.10.0/scripts/../startup/crt0.o:crt0.c:(.text.__start+0x0):
first defined here
/home/thomas/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld:
warning: hello has a LOAD segment with RWX permissions
/home/thomas/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld:
/home/thomas/nuttxspace/hellocpp/nuttx-export-12.10.0/scripts/../startup/crt0.o:
in function `__start':
crt0.c:(.text.__start+0x38): undefined reference to `_sctors'
/home/thomas/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld:
crt0.c:(.text.__start+0x3c): undefined reference to `_ectors'
/home/thomas/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld:
crt0.c:(.text.__start+0x40): undefined reference to `main'
/home/thomas/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld:
crt0.c:(.text.__start+0x44): undefined reference to `_sdtors'
/home/thomas/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-ld:
crt0.c:(.text.__start+0x48): undefined reference to `_edtors'
Memory region Used Size Region Size %age Used
flash: 19304 B 1 MB 1.84%
sram: 1704 B 112 KB 1.49%
make[2]: *** [src/CMakeFiles/hello.dir/build.make:113: src/hello] Error 1
make[1]: *** [CMakeFiles/Makefile2:98: src/CMakeFiles/hello.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
```
some linker definitions are missing in the recent exports. I think we need
to resolve this issue before coming back to this
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]