You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/07/01 03:56:47 UTC

[GitHub] [incubator-nuttx] yamt opened a new pull request #1342: sim: Sync Linux CMODULEFLAGS with macOS

yamt opened a new pull request #1342:
URL: https://github.com/apache/incubator-nuttx/pull/1342


   ## Summary
   Namely, always use -mcmodel=large.
   
   NuttX modules are loaded into the NuttX heap, which can be out of
   range for 32-bit relocations generated with -mcmodel=small.
   
   A possible alternative would be to use MAP_32BIT to allocate sim heap.
   But I prefer this approach because it's very convenient for me to
   be able to share modules between Linux and macOS sim.
   
   ## Impact
   Linux sim
   
   ## Testing
   manually tested with my local app.
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] liuguo09 commented on pull request #1342: sim: CMODULEFLAGS fixes for Linux

Posted by GitBox <gi...@apache.org>.
liuguo09 commented on pull request #1342:
URL: https://github.com/apache/incubator-nuttx/pull/1342#issuecomment-652900355


   Hi, @yamt,
   
   This PR made Apache Nightly build break with sim:module32 config under ubuntu Linux, please help see it. Thanks.
   
   The detailed log as below:
   
   make[4]: Entering directory '/home/haitao/code/apache/apps/examples/module/drivers/chardev'
   MODULECC: chardev.c
   cc1: error: code model 'large' not supported in the 32 bit mode
   Makefile:79: recipe for target 'chardev.o' failed
   make[4]: *** [chardev.o] Error 1
   make[4]: Leaving directory '/home/haitao/code/apache/apps/examples/module/drivers/chardev'
   Makefile:73: recipe for target 'chardev_install' failed
   make[3]: *** [chardev_install] Error 2
   make[3]: Leaving directory '/home/haitao/code/apache/apps/examples/module/drivers'
   Makefile:71: recipe for target 'build' failed
   make[2]: *** [build] Error 2
   make[2]: Leaving directory '/home/haitao/code/apache/apps/examples/module'
   Makefile:64: recipe for target '/home/haitao/code/apache/apps/examples/module_all' failed
   make[1]: *** [/home/haitao/code/apache/apps/examples/module_all] Error 2
   make[1]: Leaving directory '/home/haitao/code/apache/apps'
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] yamt commented on pull request #1342: sim: CMODULEFLAGS fixes for Linux

Posted by GitBox <gi...@apache.org>.
yamt commented on pull request #1342:
URL: https://github.com/apache/incubator-nuttx/pull/1342#issuecomment-653708269


   @liuguo09 https://github.com/apache/incubator-nuttx/pull/1362


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] yamt commented on pull request #1342: sim: CMODULEFLAGS fixes for Linux

Posted by GitBox <gi...@apache.org>.
yamt commented on pull request #1342:
URL: https://github.com/apache/incubator-nuttx/pull/1342#issuecomment-652928029


   @liuguo09 
   oops. thank you for notification.
   
   i think it should be conditional with CONFIG_HOST_X86_64 && !CONFIG_SIM_M32.
   or, probably CONFIG_LIBC_ARCH_ELF_64BIT.
   
   hopefully i can submit a patch tomorrow.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #1342: sim: CMODULEFLAGS fixes for Linux

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #1342:
URL: https://github.com/apache/incubator-nuttx/pull/1342


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] liuguo09 commented on pull request #1342: sim: CMODULEFLAGS fixes for Linux

Posted by GitBox <gi...@apache.org>.
liuguo09 commented on pull request #1342:
URL: https://github.com/apache/incubator-nuttx/pull/1342#issuecomment-653983145


   Thanks @yamt , Nightly build is running normally.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org