From: Leonardo O. <lo...@un...> - 2005-06-17 09:09:31
|
Keith MARSHALL ha scritto: > Leonardo Orazi wrote: > >>(cxx) -DHAVE_CONFIG_H -DHAVE_UNDERSCORE_ISNAN -ggdb -DDEBUG -pedantic > > > So, what is (cxx)? This is an invalid command, in your makefile. > > >>-Wall -W -Wpointer-arith -Wwrite-strings -Winline -Woverloaded-virtual >>-Wsign-compare -Wconversion -Wswitch -ftemplate-depth-128 -Wno-long-long > > >> -I/d/Lavori_Attuali/deal.II/base/include >>-I/d/Lavori_Attuali/deal.II/lac/include >>-I/d/Lavori_Attuali/deal.II/deal.II/include >>-I/d/Lavori_Attuali/deal.II/contrib/boost/include -fPIC -c -o >>/bin/sh.exe: -c: line 1: syntax error near unexpected token >>`-DHAVE_CONFIG_H' >>/bin/sh.exe: -c: line 1: `(cxx) -DHAVE_CONFIG_H -DHAVE_UNDERSCORE_ISNAN >> : >> : >>make[1]: *** >>[/d/Lavori_Attuali/deal.II/lib/base/auto_derivative_function.g.o] Error > > 2 > >>make[1]: Leaving directory `/d/Lavori_Attuali/deal.II/base' >>make: *** [baseg] Error 2 >> >>HAVE_CONFIG_H HAVE_UNDERSCORE_ISNAN are not resolved? > > > That is not what the error message is telling you. It is saying that you > have a command syntax error, so no command is run, to even try to resolve > them. > > Best regards, > Keith. > Perhaps I altered the Makefile. After another ./configure'ing the situation is this one: The d:/... and /d/... in base/Makefile.dep lead to the same result: that is: $ make baseg cd /d/Lavori_Attuali/deal.II/base && make Makefile.dep make[1]: Entering directory `/d/Lavori_Attuali/deal.II/base' make[1]: `Makefile.dep' is up to date. make[1]: Leaving directory `/d/Lavori_Attuali/deal.II/base' cd /d/Lavori_Attuali/deal.II/lac && make Makefile.dep make[1]: Entering directory `/d/Lavori_Attuali/deal.II/lac' make[1]: `Makefile.dep' is up to date. make[1]: Leaving directory `/d/Lavori_Attuali/deal.II/lac' cd /d/Lavori_Attuali/deal.II/deal.II && make Makefile.dep make[1]: Entering directory `/d/Lavori_Attuali/deal.II/deal.II' make[1]: `Makefile.dep' is up to date. make[1]: Leaving directory `/d/Lavori_Attuali/deal.II/deal.II' cd /d/Lavori_Attuali/deal.II/lib && make external-links make[1]: Entering directory `/d/Lavori_Attuali/deal.II/lib' make[1]: Nothing to be done for `external-links'. make[1]: Leaving directory `/d/Lavori_Attuali/deal.II/lib' cd /d/Lavori_Attuali/deal.II/base && make libg make[1]: Entering directory `/d/Lavori_Attuali/deal.II/base' echo "=====base=============debug========== " =====base=============debug========== /mingw/bin/g++ -DHAVE_CONFIG_H -DHAVE_UNDERSCORE_ISNAN -ggdb -DDEBUG -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Winline -Woverloaded-virtual -Wsign-compare -Wconversion -Wswitch -ftemplate-depth-128 -Wno-long-long -I/d/Lavori_Attuali/deal.II/base/include -I/d/Lavori_Attuali/deal.II/lac/include -I/d/Lavori_Attuali/deal.II/deal.II/include -I/d/Lavori_Attuali/deal.II/contrib/boost/include -fPIC -c -o g++.exe: argument to `-o' missing make[1]: *** [/d/Lavori_Attuali/deal.II/lib/base/auto_derivative_function.g.o] Error 1 make[1]: Leaving directory `/d/Lavori_Attuali/deal.II/base' make: *** [baseg] Error 2 I also translated the Makefile.dep in unix format (CR/LF -> CR) the base/Makefile is: # deal.II top level directory D=.. # create lists of file names cc-files = $(shell echo source/*.cc) o-files-base = $(addprefix $(LIBDIR)/base/, $(patsubst source/%,%,$(cc-files:.cc=.$(OBJEXT)))) o-files = $(sort $(o-files-base)) go-files = $(o-files:.$(OBJEXT)=.g.$(OBJEXT)) h-files = $(sort $(shell echo include/base/*.h)) # get options which hold for all files of the project include $D/common/Make.global_options # production rules ifneq ($(with-multithreading),no) MT = MT else MT = == endif $(LIBDIR)/base/%.g.$(OBJEXT) : echo "=====base=============debug======$(MT)== $(<F)" $(CXX) $(CXXFLAGS.g) -c $< -o $(LIBDIR)/base/%.$(OBJEXT) : echo "=====base=============optimized==$(MT)== $(<F)" (CXX) $(CXXFLAGS.o) -c $< -o # rules lib: $(LIBDIR)/libbase.g$(lib-suffix) $(LIBDIR)/libbase$(lib-suffix) libg: $(LIBDIR)/libbase.g$(lib-suffix) libo: $(LIBDIR)/libbase$(lib-suffix) $(LIBDIR)/libbase$(static-lib-suffix): $(o-files) echo "=====base=============optimized==$(MT)== Linking library: $(@F)" (AR) ru $(o-files) (RANLIB) $(LIBDIR)/libbase.g$(static-lib-suffix): $(go-files) echo "=====base=============debug======$(MT)== Linking library: $(@F)" $(AR) ru $@ $(go-files) $(RANLIB) $@ $(LIBDIR)/libbase$(shared-lib-suffix): $(o-files) echo "=====base=============optimized==$(MT)== Linking library: $(@F)" $(SHLIBLD) $(LDFLAGS) -shared -o $@ $(o-files) $(LIBDIR)/libbase.g$(shared-lib-suffix): $(go-files) echo "=====base=============debug======$(MT)== Linking library: $(@F)" $(SHLIBLD) $(LDFLAGS) -shared -o $@ $(go-files) clean: -rm -f *~ include/*~ include/*/*~ Makefile.dep # Rule to generate the dependency file. This file is # automagically remade whenever needed, i.e. whenever # one of the cc-/h-files changed. Make detects whether # to remake this file upon inclusion at the bottom # of this file. # # If the file should turn out to be empty, then blow it # away to let make issue a proper error message rather than # some obscure follow-up problems Makefile.dep: $(cc-files) $(h-files) Makefile $D/common/Make.global_options echo ============================ Remaking base/Makefile $D/common/scripts/make_dependencies $(INCLUDE) "-B$(LIBDIR)/base" $(cc-files) \ > Makefile.dep if test -s $@ ; then : else rm $@ ; fi # include all the dependencies include Makefile.dep .PHONY: clean .PHONY: lib lib$(static-lib-suffix) lib.g$(static-lib-suffix) ..while the Makefile.dep contains the source file list like /d/Lavori_Attuali/deal.II/lib/base/convergence_table.o: \ source/convergence_table.cc\ /d/Lavori_Attuali/deal.II/base/include/base/config.h\ /d/Lavori_Attuali/deal.II/base/include/base/convergence_table.h\ /d/Lavori_Attuali/deal.II/base/include/base/exceptions.h\ /d/Lavori_Attuali/deal.II/base/include/base/table_handler.h /d/Lavori_Attuali/deal.II/lib/base/convergence_table.g.o: \ source/convergence_table.cc\ /d/Lavori_Attuali/deal.II/base/include/base/config.h\ /d/Lavori_Attuali/deal.II/base/include/base/convergence_table.h\ /d/Lavori_Attuali/deal.II/base/include/base/exceptions.h\ /d/Lavori_Attuali/deal.II/base/include/base/table_handler.h /d/Lavori_Attuali/deal.II/lib/base/data_out_base.o: \ .... .... Cheers |