Bug 226052 - net/libstorj: parallel build failure
Summary: net/libstorj: parallel build failure
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-19 23:51 UTC by Don Lewis
Modified: 2018-07-16 16:43 UTC (History)
2 users (show)

See Also:
jhixson: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Don Lewis freebsd_committer 2018-02-19 23:51:45 UTC
I attempted to do a parallel build of libstorj and observed this failure:

gmake[2]: Entering directory '/wrkdirs/usr/ports/net/libstorj/work/libstorj-1.0.2/test'
cc -DPACKAGE_NAME=\"libstorj\" -DPACKAGE_TARNAME=\"libstorj\" -DPACKAGE_VERSION=\"1.0.2\" -DPACKAGE_STRING=\"libstorj\ 1.0.2\" -DPACKAGE_BUGREPOR
T=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libstorj\" -DVERSION=\"1.0.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".li
bs/\" -DHAVE_CURL_CURL_H=1 -DHAVE_NETTLE_AES_H=1 -DHAVE_JSON_C_JSON_H=1 -DHAVE_UV_H=1 -DHAVE_MICROHTTPD_H=1 -DHAVE_ALIGNED_ALLOC=1 -DHAVE_POSIX_M
EMALIGN=1 -DHAVE_POSIX_FALLOCATE=1 -I.   -isystem /usr/local/include  -O2 -pipe  -fstack-protector -isystem /usr/local/include -fno-strict-aliasi
ng -O3 -MT mockfarmer.o -MD -MP -MF .deps/mockfarmer.Tpo -c -o mockfarmer.o mockfarmer.c
cc -DPACKAGE_NAME=\"libstorj\" -DPACKAGE_TARNAME=\"libstorj\" -DPACKAGE_VERSION=\"1.0.2\" -DPACKAGE_STRING=\"libstorj\ 1.0.2\" -DPACKAGE_BUGREPOR
T=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libstorj\" -DVERSION=\"1.0.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".li
bs/\" -DHAVE_CURL_CURL_H=1 -DHAVE_NETTLE_AES_H=1 -DHAVE_JSON_C_JSON_H=1 -DHAVE_UV_H=1 -DHAVE_MICROHTTPD_H=1 -DHAVE_ALIGNED_ALLOC=1 -DHAVE_POSIX_M
EMALIGN=1 -DHAVE_POSIX_FALLOCATE=1 -I.   -isystem /usr/local/include  -O2 -pipe  -fstack-protector -isystem /usr/local/include -fno-strict-aliasi
ng -O3 -MT tests.o -MD -MP -MF .deps/tests.Tpo -c -o tests.o tests.c
cc -DPACKAGE_NAME=\"libstorj\" -DPACKAGE_TARNAME=\"libstorj\" -DPACKAGE_VERSION=\"1.0.2\" -DPACKAGE_STRING=\"libstorj\ 1.0.2\" -DPACKAGE_BUGREPOR
T=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libstorj\" -DVERSION=\"1.0.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".li
bs/\" -DHAVE_CURL_CURL_H=1 -DHAVE_NETTLE_AES_H=1 -DHAVE_JSON_C_JSON_H=1 -DHAVE_UV_H=1 -DHAVE_MICROHTTPD_H=1 -DHAVE_ALIGNED_ALLOC=1 -DHAVE_POSIX_M
EMALIGN=1 -DHAVE_POSIX_FALLOCATE=1 -I.   -isystem /usr/local/include  -O2 -pipe  -fstack-protector -isystem /usr/local/include -fno-strict-aliasi
ng -O3 -MT tests_rs.o -MD -MP -MF .deps/tests_rs.Tpo -c -o tests_rs.o tests_rs.c
Generated mockbridge.json.h
In file included from mockfarmer.c:5:
./storjtests.h:10:10: fatal error: 'mockbridgeinfo.json.h' file not found
#include "mockbridgeinfo.json.h"
         ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake[2]: *** [Makefile:591: mockfarmer.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from tests.c:1:
./storjtests.h:10:10: fatal error: 'mockbridgeinfo.json.h' file not found
#include "mockbridgeinfo.json.h"
         ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake[2]: *** [Makefile:591: tests.o] Error 1
Generated mockbridgeinfo.json.h
mv -f .deps/tests_rs.Tpo .deps/tests_rs.Po
gmake[2]: Leaving directory '/wrkdirs/usr/ports/net/libstorj/work/libstorj-1.0.2/test'
gmake[1]: *** [Makefile:455: all-recursive] Error 1
gmake[1]: Leaving directory '/wrkdirs/usr/ports/net/libstorj/work/libstorj-1.0.2'
===> Compilation failed unexpectedly.


It is attempting to compile some .c files before generating the .h file that they include.  Either the source Makefile needs to be patched to include the dependency so that make orders things properly, or the port Makefile should contain MAKE_JOBS_UNSAFE=yes to force a single-threaded build.
Comment 1 John Hixson freebsd_committer 2018-03-23 17:39:01 UTC
(In reply to Don Lewis from comment #0)

What version/architecture of FreeBSD?
Comment 2 Don Lewis freebsd_committer 2018-03-23 21:33:21 UTC
12.0-CURRENT amd64
Comment 3 John Hixson freebsd_committer 2018-04-10 13:26:24 UTC
I will try and reproduce
Comment 4 John Hixson freebsd_committer 2018-05-24 19:31:45 UTC
Is this still a problem? I'm not able to reproduce this issue on HEAD.

I am running:

12.0-CURRENT FreeBSD 12.0-CURRENT #0 91cc6c909(HEAD)-dirty: Tue May  8 16:56:17 UTC 2018