eellak / build-recorder

GNU Lesser General Public License v2.1
23 stars 8 forks source link

Failure building `build-recorder` with automated build & packaging `xbps-src` tool. #209

Closed fvalasiad closed 10 months ago

fvalasiad commented 1 year ago

Title basically.

It seems to be a "relative path" issue, how do we tackle it?

Perhaps introduce an include dir and including project-specific headers that way?

The error:

cc -DHAVE_CONFIG_H -I. -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe -ffile-prefix-map=/builddir/build-recorder-1.0=. -MT tracer.o -MD -MP -MF $depbase.Tpo -c -o tracer.o tracer.c &&\ mv -f $depbase.Tpo $depbase.Po record.c:9:17: fatal error: record.h: No such file or directory 9 | #include "record.h" | ^~~~~~ compilation terminated. make[2]: [Makefile:384: record.o] Error 1 make[2]: Waiting for unfinished jobs.... main.c:17:10: fatal error: record.h: No such file or directory 17 | #include "record.h" | ^~~~~~ compilation terminated. make[2]: [Makefile:384: main.o] Error 1 tracer.c:27:17: fatal error: types.h: No such file or directory 27 | #include "types.h" | ^~~~~ compilation terminated. make[2]: [Makefile:384: tracer.o] Error 1 hash.c:34:17: fatal error: hash.h: No such file or directory 34 | #include "hash.h" | ^~~~ compilation terminated. make[2]: [Makefile:384: hash.o] Error 1 make[2]: Leaving directory '/builddir/build-recorder-1.0/src' make[1]: [Makefile:270: all] Error 2 make[1]: Leaving directory '/builddir/build-recorder-1.0/src' make: *** [Makefile:344: all-recursive] Error 1 => ERROR: build-recorder-1.0_1: do_build: '${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}' exited with 2 => ERROR: in do_build() at common/build-style/gnu-configure.sh:15

fvalasiad commented 1 year ago

Some context: xbps-src is a packaging tool for xbps(X binary package system) used by void linux. I am attempting to contribute build-recorder as a package in the distribution's repositories.

fvalasiad commented 11 months ago

@zvr After further checking, the first release does not contain the necessary project-specific header files to build it. Was this a mistake?