pkarashchenko commented on issue #17443:
URL: https://github.com/apache/nuttx/issues/17443#issuecomment-3622847855

   @raiden00pl your patch helps with `memset`, but link still fails because of 
multiple definitions of `__start`
   ```
   LD: nuttx
   /usr/local/opt/arm-none-eabi-binutils/bin/arm-none-eabi-ld: sam_start.o 
(symbol from plugin): in function `__start':
   (.text+0x0): multiple definition of `__start'; crt0.o (symbol from 
plugin):(.text+0x0): first defined here
   lto-wrapper: warning: Extra option to '-Xassembler': -mthumb, dropping all 
'-Xassembler' and '-Wa' options.
   chip/sam_start.c:153:6: warning: type of '__start' does not match original 
declaration [-Wlto-type-mismatch]
     153 | void __start(void)
         |      ^
   common/crt0.c:163:6: note: type mismatch in parameter 1
     163 | void __start(int argc, char *argv[])
         |      ^
   common/crt0.c:163:6: note: type 'int' should match type 'void'
   common/crt0.c:163:6: note: '__start' was previously declared here
   /usr/local/opt/arm-none-eabi-binutils/bin/arm-none-eabi-ld: 
/var/folders/6l/6br4bshn12x2s8hjfqsqjt5c0000gn/T//ccB546eh.ltrans0.ltrans.o: in 
function `__start':
   <artificial>:(.text.__start+0x1c): undefined reference to `main'
   Memory region         Used Size  Region Size  %age Used
              flash:        7576 B       128 KB      5.78%
               sram:        2560 B       384 KB      0.65%
   collect2: error: ld returned 1 exit status
   make[1]: *** [nuttx] Error 1
   make: *** [nuttx] Error 2
   ```


-- 
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]

Reply via email to