Comment 2 for bug 1866057

Revision history for this message
Alexei (386th) wrote :

My compiler is Clang version 8.0.1, it comes with FreeBSD out of the box as far as I know.

>> 3. Make don't know how to make gschem/src/actions.decl.h
>> This error solved by renaming actions.decl.h to actions.decl.c, then changing of Makefile rule

>That's weird. Could you please post the original, unmodified Makefile?

Original gschem/src/Makefile part related to actions.decl.h:

actions.decl.x: actions.decl.h actions.c Makefile
  $(AM_V_GEN)$(CPP) -I$(srcdir) -c $< | \
  sed -e '/^.*KEEP_LINE /!d' -e 's/^.*KEEP_LINE //' > $@.tmp && \
  >mv $@.tmp $@

Compiler message log:

cc -E -I. -c | sed -e '/^.*KEEP_LINE /!d' -e 's/^.*KEEP_LINE //' > actions.decl.x.tmp && mv actions.decl.x.tmp actions.decl.x
cc: error: no input files

As I wrote before, I simply rename actions.decl.h file in gschem/src to actions.decl.c, and also in first line of Makefile rule 'actions.decl.h' replaced with 'actions.decl.c'. Not only Clang shows this error, GCC too!