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 2022/01/19 18:18:34 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 opened a new pull request #5283: tools/ci: Enable build sim:cxxtest

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


   ## Summary
   
   ## Impact
   Add more build test for sim
   
   ## Testing
   Pass CI
   


-- 
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: commits-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] yamt commented on pull request #5283: tools/ci: Enable build sim:cxxtest

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


   FYI, sim:cxxtest with a few debug options enabled fails like the following.
   ```
   nuttx was compiled with optimization - stepping may behave oddly; variables may not be available.
   Process 85832 stopped
   * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xffffffffffffffe8)
       frame #0: 0x0000000100011fc6 nuttx`std::ios_base::ios_base() [inlined] std::ios_base::Init::Init(this=<unavailable>) at ios.cpp:96:4 [opt]
      93   #ifdef __UCLIBCXX_SUPPORT_CERR__
      94                           _cerr_filebuf.fp = stderr;
      95                           _cerr_filebuf.openedFor = ios_base::out;
   -> 96                           cerr.mformat |= ios_base::unitbuf;
      97   #endif
      98   #ifdef __UCLIBCXX_SUPPORT_CLOG__
      99                           _clog_filebuf.fp = stderr;
   Target 0: (nuttx) stopped.
   (lldb) 
   (lldb) bt
   * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xffffffffffffffe8)
     * frame #0: 0x0000000100011fc6 nuttx`std::ios_base::ios_base() [inlined] std::ios_base::Init::Init(this=<unavailable>) at ios.cpp:96:4 [opt]
       frame #1: 0x0000000100011f78 nuttx`std::ios_base::ios_base() [inlined] std::ios_base::Init::Init(this=<unavailable>) at ios.cpp:87:36 [opt]
       frame #2: 0x0000000100011f78 nuttx`std::ios_base::ios_base(this=<unavailable>) at ios:158:5 [opt]
       frame #3: 0x000000010001d96c nuttx`_GLOBAL__sub_I_ios.cpp [inlined] std::basic_ios<char, std::char_traits<char> >::basic_ios(this=<unavailable>, sb=0x0000000100024fc0) at ios:345:24 [opt]
       frame #4: 0x000000010001d960 nuttx`_GLOBAL__sub_I_ios.cpp [inlined] std::basic_ostream<char, std::char_traits<char> >::basic_ostream(this=<unavailable>, sb=0x0000000100024fc0) at ostream:57:6 [opt]
       frame #5: 0x000000010001d960 nuttx`_GLOBAL__sub_I_ios.cpp [inlined] __cxx_global_var_init.4 at ios.cpp:62:22 [opt]
       frame #6: 0x000000010001d960 nuttx`_GLOBAL__sub_I_ios.cpp at ios.cpp:0 [opt]
       frame #7: 0x00000001000032e5 nuttx`macho_call_saved_init_funcs + 101
       frame #8: 0x00000001000099f2 nuttx`cxx_initialize at cxx_initialize_macho.c:56:7 [opt]
       frame #9: 0x00000001000099ce nuttx`nxtask_startup(entrypt=(nuttx`::cxxtest_main(int, char **) at cxxtest_main.cxx:218), argc=1, argv=0x0000000101001540) at task_startup.c:64:3 [opt]
       frame #10: 0x00000001000076e6 nuttx`nxtask_start at task_start.c:130:7 [opt]
   (lldb) 
   (lldb) p cerr
   warning: `this' is not accessible (substituting 0)
   (std::ostream) $0 = {
     std::basic_ios<char, std::char_traits<char> > = {
       std::ios_base = (mLocale = std::locale @ 0x0000600001525960, mformat = 0, mstate = '\0', mmode = '\0', mdir = '\0', mprecision = 0, mwidth = 0, mInit = std::ios_base::Init @ 0x0000600001525978)
       fill_char = '\0'
       mtied = nullptr
       mstreambuf = nullptr
       throw_mask = '\0'
     }
   }
   (lldb) 
   ```


-- 
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: commits-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] yamt commented on pull request #5283: tools/ci: Enable build sim:cxxtest

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


   > Let's enable build first to catch the compiler issue, and fix the runtime error later?
   
   i have no problem with it.


-- 
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: commits-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #5283: tools/ci: Enable build sim:cxxtest

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


   Let's enable build first to catch the compiler issue, and fix the runtime error later?


-- 
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: commits-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] zhuyanlinzyl commented on pull request #5283: tools/ci: Enable build sim:cxxtest

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


   hi @yamt  you can try this patch
   https://github.com/apache/incubator-nuttx/pull/5299
   
   It fix  a bug in uclibxx constructor initialize


-- 
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: commits-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #5283: tools/ci: Enable build sim:cxxtest

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


   


-- 
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: commits-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #5283: tools/ci: Enable build sim:cxxtest

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


   Depends on https://github.com/apache/incubator-nuttx/pull/4487:
   Undefined symbols for architecture x86_64:
     "_macho_call_saved_init_funcs", referenced from:
         _cxx_initialize in nuttx.rel
   ld: symbol(s) not found for architecture x86_64
   clang: error: linker command failed with exit code 1 (use -v to see invocation)
   


-- 
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: commits-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #5283: tools/ci: Enable build sim:cxxtest

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


   Look like we fix this problem locally, @zhuyanlinzyl could upstream the patch, let @yamt try it?


-- 
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: commits-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] xiaoxiang781216 edited a comment on pull request #5283: tools/ci: Enable build sim:cxxtest

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 edited a comment on pull request #5283:
URL: https://github.com/apache/incubator-nuttx/pull/5283#issuecomment-1017093314


   Depends on https://github.com/apache/incubator-nuttx/pull/4487:
   ```
   Undefined symbols for architecture x86_64:
     "_macho_call_saved_init_funcs", referenced from:
         _cxx_initialize in nuttx.rel
   ld: symbol(s) not found for architecture x86_64
   clang: error: linker command failed with exit code 1 (use -v to see invocation)
   ```


-- 
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: commits-unsubscribe@nuttx.apache.org

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