It fails here: % env CXXFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ../configure --disable-pic14-port --disable-pic16-port --without-info ... % gmake | & tee build.log .... gmake[2]: Entering directory '/usr/home/imp/svn/sdcc-code/sdcc/b2/src/z80' nawk -f ../../../src/z80/../SDCCpeeph.awk ../../../src/z80/peeph-ez80_z80.def > peeph-ez80_z80.rul nawk -f ../../../src/z80/../SDCCpeeph.awk ../../../src/z80/peeph-gbz80.def > peeph-gbz80.rul nawk -f ../../../src/z80/../SDCCpeeph.awk ../../../src/z80/peeph-r2k.def > peeph-r2k.rul nawk -f ../../../src/z80/../SDCCpeeph.awk ../../../src/z80/peeph-tlcs90.def > peeph-tlcs90.rul nawk -f ../../../src/z80/../SDCCpeeph.awk ../../../src/z80/peeph-z80.def > peeph-z80.rul nawk -f ../../../src/z80/../SDCCpeeph.awk ../../../src/z80/peeph-z80n.def > peeph-z80n.rul nawk -f ../../../src/z80/../SDCCpeeph.awk ../../../src/z80/peeph.def > peeph.rul c++ -MM -I../../../src/z80/.. -I.. -I. -I../.. -I../../../src/z80/../../support/util -I../../../src/z80 ../../../src/z80/gen.c ../../../src/z80/main.c ../../../src/z80/peep.c ../../../src/z80/ralloc.c ../../../src/z80/support.c ../../../src/z80/ralloc2.cc >Makefile.dep c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] In file included from ../../../src/z80/ralloc2.cc:24: ../../../src/z80/../SDCCralloc.hpp:55:10: fatal error: 'boost/version.hpp' file not found #include <boost/version.hpp> ^~~~~~~~~~~~~~~~~~~ 1 error generated. gmake[2]: *** No rule to make target 'Makefile.dep', needed by 'dep'. Stop. gmake[2]: Leaving directory '/usr/home/imp/svn/sdcc-code/sdcc/b2/src/z80' gmake[1]: *** [Makefile:61: z80/port.a] Error 2 gmake[1]: Leaving directory '/usr/home/imp/svn/sdcc-code/sdcc/b2/src' gmake: *** [Makefile:144: sdcc-cc] Error 2
But this succeeded: % env CXX="c++ -I/usr/local/include" CXXFLAGS="-I/usr/local/include -L/usr/local/lib" ../configure --disable-pic14-port --disable-pic16-port --without-info % gmake Most likely this is due to these lines in src/port.mk Makefile.dep: $(PREBUILD) Makefile $(SOURCES) $(CXXSOURCES) $(SPECIAL) $(MAKEDEP) $(CPPFLAGS) $(filter %.c %.cc,$^) >Makefile.dep which gets its notion of MAKEDEP from configure: configure: MAKEDEP="$CXX $sdcc_cv_MM" configure: MAKEDEP="$CC ${C99_FLAG} -xM1" which only ever defines sdcc_cv_MM as -M or -MM. Since CXXFLAGS isn't used here, it can't properly define MAKEDEP so we hit my error which is only worked around by the rather large hammer... I suspect that a ${CXXFLAGS} is needed there, but then it might not get the right CFLAGS in some cases... and if I include -I/usr/local/include early, then when I build the sdbinutils, I get interference between that and files that the FreeBSD binutils package has installed :(... So while I have a workaround, I wonder if a tweak by someone with more context than I have to configure.ac might be warranted. Warner On Thu, Nov 26, 2020 at 11:32 PM Warner Losh <i...@bsdimp.com> wrote: > That was the first thing I tried... It worked on the first few instances, > but failed later in the build.... > > Warner > > On Thu, Nov 26, 2020 at 11:12 PM Sergey Belyashov < > sergey.belyas...@gmail.com> wrote: > >> Hi, >> Try use CXXFLAGS and LDFLAGS instead: >> CXXFLAGS=... LDFLAGS=... ./configure ... >> Or run configure with --help key, possible it has special option for the >> boost path. >> _______________________________________________ >> Sdcc-user mailing list >> Sdcc-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/sdcc-user >> >
_______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user