[Debian-med-packaging] Bug#984243: Help: mothur: ftbfs with GCC-11
Andreas Tille
tille at debian.org
Mon Oct 25 15:40:06 BST 2021
Am Fri, Oct 22, 2021 at 07:46:35AM -0400 schrieb Aaron M. Ucko:
> > # Get the list of all .cpp files, rename to .o files
> > #
> > OBJECTS=$(patsubst %.cpp,%.o,$(wildcard $(addsuffix *.cpp,$(subdirs))))
> > OBJECTS+=$(patsubst %.c,%.o,$(wildcard $(addsuffix *.c,$(subdirs))))
> > OBJECTS+=$(patsubst %.cpp,%.o,$(wildcard *.cpp))
> > OBJECTS+=$(patsubst %.c,%.o,$(wildcard *.c))
> >
> > the right way to get the path correctly? Or what do you mean?
>
> Please try changing the last two lines to
>
> OBJECTS+=$(patsubst %.cpp,%.o,$(wildcard source/*.cpp))
> OBJECTS+=$(patsubst %.c,%.o,$(wildcard source/*.c))
>
> to match the relevant sources' actual location; sorry if that was unclear.
> (The existing setup only covers subdirectories of source, missing that
> directory's immediate contents.)
OK, did so but left me with
cd source/uchime_src && export CXX=g++ && make clean && make && mv uchime ../../ && cd ..
make[3]: Entering directory '/build/mothur-1.46.1/source/uchime_src'
make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[3]: Leaving directory '/build/mothur-1.46.1/source/uchime_src'
make[3]: Entering directory '/build/mothur-1.46.1/source/uchime_src'
make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
g++ -g -o uchime
g++: fatal error: no input files
compilation terminated.
I'm wondering why the makefile stopped working just because a new compiler
version is used. :-(
Kind regards
Andreas.
--
http://fam-tille.de
More information about the Debian-med-packaging
mailing list