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/02/15 16:19:20 UTC

[GitHub] [incubator-nuttx-apps] patacongo opened a new pull request #73: apps/examples/elf: Correct mount point configuration error.

patacongo opened a new pull request #73: apps/examples/elf:  Correct mount point configuration error.
URL: https://github.com/apache/incubator-nuttx-apps/pull/73
 
 
   If an external file system is used but is not mounted by the the ELF example, then a compilation error will occur.  This configuration problem has existed for a long time but was unmasked by a recent PR.  In the failure mode, CONFIG_EXAMPLES_ELF_FSTYPE would not be defined because it depends on CONFIG_EXAMPLES_ELF_FSMOUNT which is not defined.  The resulting mountpoint, MOUNTPT, would therefore be left in an invalid state.  Previous changes to conditional logic now allowed setenv() to run and to attempt to set the PATH variable to MOUNTPT, causing a compile time failure like this:
   
       CC:  elf_main.c
       elf_main.c: In function 'elf_main':
       elf_main.c:113:32: error: expected ')' before 'CONFIG_EXAMPLES_ELF_FSTYPE'
        #  define MOUNTPT      "/mnt/" CONFIG_EXAMPLES_ELF_FSTYPE
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
       elf_main.c:364:18: note: in expansion of macro 'MOUNTPT'
          setenv("PATH", MOUNTPT, 1);
                          ^~~~~~~
       elf_main.c:364:3: error: too few arguments to function 'setenv'
          setenv("PATH", MOUNTPT, 1);
          ^~~~~~
       In file included from elf_main.c:47:
       D:\Spuda\Documents\projects\nuttx\master\nuttx-fork\include/stdlib.h:158:11: note: declared here
        int       setenv(FAR const char *name, FAR const char *value, int overwrite);
                  ^~~~~~
   
   This problem was found during manual build testing using configuration lx_cpu:nsh.

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


With regards,
Apache Git Services

[GitHub] [incubator-nuttx-apps] Ouss4 merged pull request #73: apps/examples/elf: Correct mount point configuration error.

Posted by GitBox <gi...@apache.org>.
Ouss4 merged pull request #73: apps/examples/elf:  Correct mount point configuration error.
URL: https://github.com/apache/incubator-nuttx-apps/pull/73
 
 
   

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


With regards,
Apache Git Services