You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "raiden00pl (via GitHub)" <gi...@apache.org> on 2024/10/20 10:09:46 UTC

[I] [BUG] environmental variables doesn't work for cmake build [nuttx]

raiden00pl opened a new issue, #14413:
URL: https://github.com/apache/nuttx/issues/14413

   ### Description / Steps to reproduce the issue
   
   when I pass compiler versions as environmental variable it doesn't work:
   
   ```
   CXX=g++-13 CC=gcc-13 cmake -B build -DBOARD_CONFIG=sim/libcxxtest -GNinja
   -- Initializing NuttX                                                                                       
     Select HOST_LINUX=y
     Select HOST_X86_64=y
   --   CMake   3.29.5
   --   Ninja   1.12.1
   --   Board:  sim
   --   Config: libcxxtest
   --   Appdir: /home/raiden00/git/RTOS/nuttx/apps
   -- The C compiler identification is GNU 14.1.1
   -- The CXX compiler identification is GNU 14.1.1
   ```
   
   should be:
   
   ```
   CXX=g++-13 CC=gcc-13 cmake -B build -DBOARD_CONFIG=sim/libcxxtest -GNinja
    Select HOST_LINUX=y                                                                                        
    Select HOST_X86_64=y
   -- Initializing NuttX
   --   Board:  sim
   --   Config: libcxxtest
   --   Appdir: /home/raiden00/git/RTOS/nuttx/apps
   -- The C compiler identification is GNU 13.3.0
   -- The CXX compiler identification is GNU 13.3.0
   -- The ASM compiler identification is GNU
   -- Found assembler: /usr/bin/gcc-13
   ```
   
   This was broken recently.
   
   
   
   ### On which OS does this issue occur?
   
   [OS: Linux]
   
   ### What is the version of your OS?
   
   Arch Linux
   
   ### NuttX Version
   
   master
   
   ### Issue Architecture
   
   [Arch: all]
   
   ### Issue Area
   
   [Area: Build System]
   
   ### Verification
   
   - [X] I have verified before submitting the report.


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

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


Re: [I] [BUG] environmental variables doesn't work for cmake build [nuttx]

Posted by "raiden00pl (via GitHub)" <gi...@apache.org>.
raiden00pl commented on issue #14413:
URL: https://github.com/apache/nuttx/issues/14413#issuecomment-2426196102

   #14427 fixes the problem, thanks
   


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


Re: [I] [BUG] environmental variables doesn't work for cmake build [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 closed issue #14413: [BUG] environmental variables doesn't work for cmake build
URL: https://github.com/apache/nuttx/issues/14413


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


Re: [I] [BUG] environmental variables doesn't work for cmake build [nuttx]

Posted by "simbit18 (via GitHub)" <gi...@apache.org>.
simbit18 commented on issue #14413:
URL: https://github.com/apache/nuttx/issues/14413#issuecomment-2426135215

   @raiden00pl  or see if this can work
   
   cmake -B build -GNinja -DBOARD_CONFIG=sim:libcxxtest -DCMAKE_CXX_COMPILER=`which g++-13` -DCMAKE_C_COMPILER=`which gcc-13`


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


Re: [I] [BUG] environmental variables doesn't work for cmake build [nuttx]

Posted by "xuxin930 (via GitHub)" <gi...@apache.org>.
xuxin930 commented on issue #14413:
URL: https://github.com/apache/nuttx/issues/14413#issuecomment-2426029998

   https://github.com/apache/nuttx/pull/14427
   
   @raiden00pl Let's not find_program in sim arch


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