Forum Replies Created
-
AuthorPosts
-
christoph.pParticipant
Ok! Thanks! I will do so!
April 29, 2017 at 15:09 in reply to: i586-poky-linux-gcc.exe: error: CreateProcess: No such file or directory #11108christoph.pParticipantOk. got it with a new downloaded toolchain from intel. Because the directory structure changed, I hat such problems…
Thanks
April 29, 2017 at 10:48 in reply to: i586-poky-linux-gcc.exe: error: CreateProcess: No such file or directory #11106christoph.pParticipantI’ve downloaded “Cross Compiler Toolchain for Intel® Edison Maker Board” from here: https://downloadcenter.intel.com/download/24472/Cross-Compiler-Toolchain-for-Intel-Edison-Maker-Board?product=86928
My sysroots is “–sysroot=C:\Users\Christoph\Downloads\edison-toolchain-20150120-windows\i686\pokysdk\usr\bin\i586-poky-linux”
where the downloaded archive is extracted to “C:\Users\Christoph\Downloads\edison-toolchain-20150120-windows”
I’ve not changed anything else on the sample projekt. I think there is some kind of problem with the surrounding environmen (windows 10 / visual studio / visualGDB)?
The test.cpp
<p style=”padding-left: 30px;”>#include <iostream>using namespace std;
int main(int argc, char *argv[])
{
char sz[] = “Hello, World!”; //Hover mouse over “sz” while debugging to see its contents
cout << sz << endl; //<================= Put a breakpoint here
return 0;
}</p>
Thats my makefile:
<p style=”padding-left: 30px;”>#Generated by VisualGDB project wizard.
#Note: VisualGDB will automatically update this file when you add new sources to the project.
#All other changes you make in this file will be preserved.
#Visit http://visualgdb.com/makefiles for more details#VisualGDB: AutoSourceFiles #
TARGETNAME := Test
#TARGETTYPE can be APP, STATIC or SHARED
TARGETTYPE := APPto_lowercase = $(subst A,a,$(subst B,b,$(subst C,c,$(subst D,d,$(subst E,e,$(subst F,f,$(subst G,g,$(subst H,h,$(subst I,i,$(subst J,j,$(subst K,k,$(subst L,l,$(subst M,m,$(subst N,n,$(subst O,o,$(subst P,p,$(subst Q,q,$(subst R,r,$(subst S,s,$(subst T,t,$(subst U,u,$(subst V,v,$(subst W,w,$(subst X,x,$(subst Y,y,$(subst Z,z,$1))))))))))))))))))))))))))
CONFIG ?= DEBUG
CONFIGURATION_FLAGS_FILE := $(call to_lowercase,$(CONFIG)).mak
include $(CONFIGURATION_FLAGS_FILE)
#LINKER_SCRIPT defined inside the configuration file (e.g. debug.mak) should override any linker scripts defined in shared .mak files
CONFIGURATION_LINKER_SCRIPT := $(LINKER_SCRIPT)include $(ADDITIONAL_MAKE_FILES)
ifneq ($(CONFIGURATION_LINKER_SCRIPT),)
LINKER_SCRIPT := $(CONFIGURATION_LINKER_SCRIPT)
endififneq ($(LINKER_SCRIPT),)
LDFLAGS += -T$(LINKER_SCRIPT)
endififeq ($(BINARYDIR),)
error:
$(error Invalid configuration, please check your inputs)
endifSOURCEFILES := Test.cpp
EXTERNAL_LIBS :=
EXTERNAL_LIBS_COPIED := $(foreach lib, $(EXTERNAL_LIBS),$(BINARYDIR)/$(notdir $(lib)))CFLAGS += $(COMMONFLAGS)
CXXFLAGS += $(COMMONFLAGS)
ASFLAGS += $(COMMONFLAGS)
LDFLAGS += $(COMMONFLAGS)CFLAGS += $(addprefix -I,$(INCLUDE_DIRS))
CXXFLAGS += $(addprefix -I,$(INCLUDE_DIRS))CFLAGS += $(addprefix -D,$(PREPROCESSOR_MACROS))
CXXFLAGS += $(addprefix -D,$(PREPROCESSOR_MACROS))
ASFLAGS += $(addprefix -D,$(PREPROCESSOR_MACROS))CXXFLAGS += $(addprefix -framework ,$(MACOS_FRAMEWORKS))
CFLAGS += $(addprefix -framework ,$(MACOS_FRAMEWORKS))
LDFLAGS += $(addprefix -framework ,$(MACOS_FRAMEWORKS))LDFLAGS += $(addprefix -L,$(LIBRARY_DIRS))
ifeq ($(GENERATE_MAP_FILE),1)
LDFLAGS += -Wl,-Map=$(BINARYDIR)/$(basename $(TARGETNAME)).map
endifLIBRARY_LDFLAGS = $(addprefix -l,$(LIBRARY_NAMES))
ifeq ($(IS_LINUX_PROJECT),1)
RPATH_PREFIX := -Wl,–rpath=’$$ORIGIN/../
LIBRARY_LDFLAGS += $(EXTERNAL_LIBS)
LIBRARY_LDFLAGS += -Wl,–rpath=’$$ORIGIN’
LIBRARY_LDFLAGS += $(addsuffix ‘,$(addprefix $(RPATH_PREFIX),$(dir $(EXTERNAL_LIBS))))ifeq ($(TARGETTYPE),SHARED)
CFLAGS += -fPIC
CXXFLAGS += -fPIC
ASFLAGS += -fPIC
LIBRARY_LDFLAGS += -Wl,-soname,$(TARGETNAME)
endififneq ($(LINUX_PACKAGES),)
PACKAGE_CFLAGS := $(foreach pkg,$(LINUX_PACKAGES),$(shell pkg-config –cflags $(pkg)))
PACKAGE_LDFLAGS := $(foreach pkg,$(LINUX_PACKAGES),$(shell pkg-config –libs $(pkg)))
CFLAGS += $(PACKAGE_CFLAGS)
CXXFLAGS += $(PACKAGE_CFLAGS)
LIBRARY_LDFLAGS += $(PACKAGE_LDFLAGS)
endif
else
LIBRARY_LDFLAGS += $(EXTERNAL_LIBS)
endifLIBRARY_LDFLAGS += $(ADDITIONAL_LINKER_INPUTS)
all_make_files := $(firstword $(MAKEFILE_LIST)) $(CONFIGURATION_FLAGS_FILE) $(ADDITIONAL_MAKE_FILES)
ifeq ($(STARTUPFILES),)
all_source_files := $(SOURCEFILES)
else
all_source_files := $(STARTUPFILES) $(filter-out $(STARTUPFILES),$(SOURCEFILES))
endifsource_obj1 := $(all_source_files:.cpp=.o)
source_obj2 := $(source_obj1:.c=.o)
source_obj3 := $(source_obj2:.s=.o)
source_obj4 := $(source_obj3:.S=.o)
source_obj5 := $(source_obj4:.cc=.o)
source_objs := $(source_obj5:.cxx=.o)all_objs := $(addprefix $(BINARYDIR)/, $(notdir $(source_objs)))
PRIMARY_OUTPUTS :=
ifeq ($(GENERATE_BIN_FILE),1)
PRIMARY_OUTPUTS += $(BINARYDIR)/$(basename $(TARGETNAME)).bin
endififeq ($(GENERATE_IHEX_FILE),1)
PRIMARY_OUTPUTS += $(BINARYDIR)/$(basename $(TARGETNAME)).ihex
endififeq ($(PRIMARY_OUTPUTS),)
PRIMARY_OUTPUTS := $(BINARYDIR)/$(TARGETNAME)
endifall: $(PRIMARY_OUTPUTS)
$(BINARYDIR)/$(basename $(TARGETNAME)).bin: $(BINARYDIR)/$(TARGETNAME)
$(OBJCOPY) -O binary $< $@$(BINARYDIR)/$(basename $(TARGETNAME)).ihex: $(BINARYDIR)/$(TARGETNAME)
$(OBJCOPY) -O ihex $< $@ifneq ($(LINKER_SCRIPT),)
$(BINARYDIR)/$(TARGETNAME): $(LINKER_SCRIPT)
endififeq ($(TARGETTYPE),APP)
$(BINARYDIR)/$(TARGETNAME): $(all_objs) $(EXTERNAL_LIBS)
$(LD) -o $@ $(LDFLAGS) $(START_GROUP) $(all_objs) $(LIBRARY_LDFLAGS) $(END_GROUP)
endififeq ($(TARGETTYPE),SHARED)
$(BINARYDIR)/$(TARGETNAME): $(all_objs) $(EXTERNAL_LIBS)
$(LD) -shared -o $@ $(LDFLAGS) $(START_GROUP) $(all_objs) $(LIBRARY_LDFLAGS) $(END_GROUP)
endififeq ($(TARGETTYPE),STATIC)
$(BINARYDIR)/$(TARGETNAME): $(all_objs)
$(AR) -r $@ $^
endif-include $(all_objs:.o=.dep)
clean:
ifeq ($(USE_DEL_TO_CLEAN),1)
cmd /C del /S /Q $(BINARYDIR)
else
rm -rf $(BINARYDIR)
endif$(BINARYDIR):
mkdir $(BINARYDIR)#VisualGDB: FileSpecificTemplates # $(BINARYDIR)/%.o : %.cpp $(all_make_files) |$(BINARYDIR)
$(CXX) $(CXXFLAGS) -c $< -o $@ -MD -MF $(@:.o=.dep)$(BINARYDIR)/%.o : %.c $(all_make_files) |$(BINARYDIR)
$(CC) $(CFLAGS) -c $< -o $@ -MD -MF $(@:.o=.dep)$(BINARYDIR)/%.o : %.S $(all_make_files) |$(BINARYDIR)
$(CC) $(CFLAGS) $(ASFLAGS) -c $< -o $@ -MD -MF $(@:.o=.dep)$(BINARYDIR)/%.o : %.s $(all_make_files) |$(BINARYDIR)
$(CC) $(CFLAGS) $(ASFLAGS) -c $< -o $@ -MD -MF $(@:.o=.dep)$(BINARYDIR)/%.o : %.cc $(all_make_files) |$(BINARYDIR)
$(CC) $(CFLAGS) $(CXXFLAGS) -c $< -o $@ -MD -MF $(@:.o=.dep)$(BINARYDIR)/%.o : %.cxx $(all_make_files) |$(BINARYDIR)
$(CC) $(CFLAGS) $(CXXFLAGS) -c $< -o $@ -MD -MF $(@:.o=.dep)#VisualGDB: GeneratedRules #
</p>April 28, 2017 at 18:25 in reply to: i586-poky-linux-gcc.exe: error: CreateProcess: No such file or directory #11096christoph.pParticipantThank you very much for your answer!
No. As the Tutorial in (https://visualgdb.com/tutorials/linux/edison/) doesn’t work any more (the Intel Edison
Installer doesn’t offer any development environment any more), I have extracted the toolchain somewhere out
of the archives of here: https://downloadcenter.intel.com/de/product/84574/Intel-Edison-Board-for-Arduino-On my previous PC, the toolchain I used worked well. But now I get this strange error. I read in the net that
with Mingw it’s often a PATH environment var problem.Although on my previous PC there weren’t any paths set in “PATH” to any Edison / GDB related directories. Could
this be the problem I have now?The things that have changed from the previous machine to now is Visual Studio (now 2017 and not 2015 any more)
and the Visual GDB Version.As you talked about a VisualGDB shipped toolchain. Can I get a VisualGDB shipped toolchain for the Intel Edison?
That would be very nice because at the moment I have to get it to work in a dubious indirect way.Thanks for you fast help (I hope it’s going on…)
- This reply was modified 7 years, 6 months ago by christoph.p.
April 28, 2017 at 16:40 in reply to: i586-poky-linux-gcc.exe: error: CreateProcess: No such file or directory #11094christoph.pParticipantPlease help. I have to get it to work fast…
christoph.pParticipantI have created a bat file in windows with the following command:
C:\Intel\iotdk-ide-win\devkit-x86\sysroots\x86_64-pokysdk-mingw32\usr\libexec\i586-poky-linux\gcc\i586-poky-linux\4.9.1\gcc.exe -DTIMESTAMP=$(shell C:/mingw/msys/1.0/bin/date.exe +%s) -E helloworld.c -o test.E
This gives me also the error:
>C:\Intel\iotdk-ide-win\devkit-x86\sysroots\x86_64-pokysdk-mingw32\usr\libexec\i586-poky-linux\gcc\i586-poky-linux\4.9.1\gcc.exe -DTIMESTAMP=$(shell C:/mingw/msys/1.0/bin/date.exe +s) -E helloworld.c -o test.E
gcc.exe: error: +s): No such file or directoryI think something with the part “$(shell C:/mingw/msys/1.0/bin/date.exe +s)” doesn’t work in Windows.
Any hints?
October 18, 2016 at 14:14 in reply to: Unit Test Project (Linux) -> empty "Test Framework" List #9296christoph.pParticipantThanks. It’s working now!
christoph.pParticipantSorry I’m a little bit overwhelmed. Which paramters in the Config of the makefile do I have to change and how?</span></span>
- This reply was modified 8 years, 2 months ago by christoph.p.
christoph.pParticipantThat gives me:
i586-poky-linux-gcc.exe: error: +%s): No such file or directory
christoph.pParticipantReturns:
[…]
i586-poky-linux-gcc.exe: error: +%s): No such file or directorychristoph.pParticipantOk. I’ve check the command in the windows commandline with
C:\date.exe +%s
which outputs
1466065030
But I don’t know how to specify the LDFLAGS line…
I tried
- -Wl,-gc-sections,–defsym,TIMESTAMP=$(C:\date.exe +%s)
- -Wl,-gc-sections,–defsym,TIMESTAMP=
C:\date.exe +%s
- -Wl,-gc-sections,–defsym,TIMESTAMP=$(“C:\date.exe” +%s)
- -Wl,-gc-sections,–defsym,TIMESTAMP=$(“C:\date.exe +%s”)
But nothing worked. I always get
- collect2.exe: error: ld returned 1 exit status
- i586-poky-linux-gcc.exe: error: +%s): No such file or directory
- i586-poky-linux-gcc.exe: error: +%s`: No such file or directory
christoph.pParticipantWhen I choose “shown” on the remote computer, I get the error:
Received a SIGSEGV: Segmentation fault
christoph.pParticipantOr alternatively tell Xming the target resolution?
christoph.pParticipantThanks! After a restart of the host windows machine it works as intended.
christoph.pParticipantOk. I got it to work. For some reasons, Visual Studio compiled any source files. Even those which were marked with a
red minus – with means that they are excluded from the project. I dont know why, but I manually deleted all these files
from the solution explorer and now it is compiling.
Now I have second problem…
-
AuthorPosts