nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-nuttx] patacongo edited a comment on issue #886: Cygwin sim:nsh failed on apps/builtin
Date Mon, 27 Apr 2020 02:49:16 GMT

patacongo edited a comment on issue #886:
URL: https://github.com/apache/incubator-nuttx/issues/886#issuecomment-619677839


   > 
   > 
   @xiaoxiang781216 
   
   > The similar error also happen with Ubuntu but very rarely. I suspect that the builtin.h
generation hit some race condition.
   
   This is not the autogenerated builtin*.h files, this is the repositories, fixed header
file at apps/include/builtin/builtin.h.  It is always present.  The failure is occuring because
the CFLAGS are wrong.  From above
   
   /cygdrive/d/Spuda/Documents/projects/nuttx/master/incubator_nuttx/tools/mkdeps --dep-path
. --obj-path . --obj-suffix .cygdrive.d.Spuda.Documents.projects.nuttx.master.incubator_apps.builtin.o
"cc" -- -Wall -Wstrict-prototypes -Wshadow -Wundef -g -fno-builtin -fno-common -I. -isystem
/cygdrive/d/Spuda/Documents/projects/nuttx/master/incubator_nuttx/include  -D__KERNEL__  -pipe
**-I "D:\Spuda\Documents\projects\nuttx\master\incubator_apps\include"** -- builtin_list.c
exec_builtin.c >Make.dep
   
   The failure is occuring because a Windows native path, presumably created via cygpath,
is being used again the Cygwin gcc which requires POSIX style paths.  As a result, the include
path is ignored and it fails to find builtin.h at apps/include/builtin.  This is a problem
in either Application.mk or in nuttx/tools/indir.sh.  The error is in the creation of the
CFLAGS header paths which is done in apps/Make.defs:
   
       ifeq ($(WINTOOL),y)
         INCDIROPT = -w
       endif
       
       # Standard include path
       
       CFLAGS   += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" "$(APPDIR)$(DELIM)include"}
       CXXFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" "$(APPDIR)$(DELIM)include"}
   


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



Mime
View raw message