Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fails #44

Open
necrose99 opened this issue Aug 5, 2017 · 4 comments
Open

build fails #44

necrose99 opened this issue Aug 5, 2017 · 4 comments

Comments

@necrose99
Copy link

log.txt
some of the sub-modules fail to build as they don't get ./configure make passed.
2017-03-22-raspberry-pi-3-stretch-PREVIEW.img @ https://wiki.debian.org/RaspberryPi3

also dosent build on Gentoo rpi3 64-bit

some of the subs will build ie zlib , ./configure & make... but no means to short ....

@ladar
Copy link
Member

ladar commented Aug 7, 2017

It looks like an issue with the zlib build function. Can you upload the log output from:

res/scripts/build.dimedeps.sh zlib-log

That same script has functions for building each dependency and those functions contain the configure/make commands being used. You can experiment with changes by building each dependency seperately, so zlib:

res/scripts/build.dimedeps.sh zlib

Will run all of the zlib stages at once. If your able to find a workaround (that doesn't break x86_64 builds) please let me know. The issue is probably the hard coded --64 for zlib. Is a Rasberry pi 32 bit and/or arm? Is there a required flag for Arm processors?

L~

@necrose99
Copy link
Author

if I goto the lib zlib folder , ./configure make , your version included works quite fine. .

@necrose99
Copy link
Author

root@rpi3:/usr/src/libdime/lib/sources/zlib# ./configure
Checking for gcc...
Checking for shared library support...
Building shared library libz.so.1.2.8 with gcc.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for strerror... Yes.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for attribute(visibility) support... Yes.
root@rpi3:/usr/src/libdime/lib/sources/zlib# make
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -c -o example.o test/example.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o adler32.o adler32.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o crc32.o crc32.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o deflate.o deflate.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o infback.o infback.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inffast.o inffast.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inflate.o inflate.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inftrees.o inftrees.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o trees.o trees.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o zutil.o zutil.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o compress.o compress.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o uncompr.o uncompr.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzclose.o gzclose.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzlib.o gzlib.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzread.o gzread.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzwrite.o gzwrite.c
ar rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o example example.o -L. libz.a
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -c -o minigzip.o test/minigzip.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzip minigzip.o -L. libz.a
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/adler32.o adler32.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/crc32.o crc32.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/deflate.o deflate.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/infback.o infback.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inffast.o inffast.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inflate.o inflate.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inftrees.o inftrees.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/trees.o trees.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/zutil.o zutil.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/compress.o compress.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/uncompr.o uncompr.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzclose.o gzclose.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzlib.o gzlib.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzread.o gzread.c
gcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzwrite.o gzwrite.c
gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o libz.so.1.2.8 adler32.lo crc32.lo deflate.lo infback.lo inffast.lo inflate.lo inftrees.lo trees.lo zutil.lo compress.lo uncompr.lo gzclose.lo gzlib.lo gzread.lo gzwrite.lo -lc
rm -f libz.so libz.so.1
ln -s libz.so.1.2.8 libz.so
ln -s libz.so.1.2.8 libz.so.1
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o examplesh example.o -L. libz.so.1.2.8
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzipsh minigzip.o -L. libz.so.1.2.8
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -D_FILE_OFFSET_BITS=64 -c -o example64.o test/example.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o example64 example64.o -L. libz.a
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -D_FILE_OFFSET_BITS=64 -c -o minigzip64.o test/minigzip.c
gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzip64 minigzip64.o -L. libz.a
root@rpi3:/usr/src/libdime/lib/sources/zlib#

@necrose99
Copy link
Author

necrose99 commented Aug 8, 2017

This program built for aarch64-unknown-linux-gnu
Report bugs to bug-make@gnu.org
root@rpi3:/usr/src/libdime# make -o -j4 -k ( if i can keep the made objects ie zlib etc...) but no...

TARGET all
VERBOSE no

VERSION 0.3
COMMIT NONE
DATE 20170808.2258
HOST Linux

For a more verbose output
make VERBOSE=yes all

Running build.dimedeps.sh

Starting at 10:58:32 PM on 08/08/17

Finished zlib-extract at 10:58:32 PM on 08/08/17
Finished googtap-extract at 10:58:32 PM on 08/08/17
Finished googtest-extract at 10:58:33 PM on 08/08/17
Finished openssl-extract at 10:58:35 PM on 08/08/17
Finished utf8proc-extract at 10:58:57 PM on 08/08/17

Finished extract at 10:58:57 PM on 08/08/17

Finished zlib-prep at 10:58:57 PM on 08/08/17
Finished googtap-prep at 10:58:57 PM on 08/08/17
Finished googtest-prep at 10:58:57 PM on 08/08/17
Finished utf8proc-prep at 10:58:57 PM on 08/08/17
Finished openssl-prep at 10:58:58 PM on 08/08/17

Finished prep at 10:58:58 PM on 08/08/17

zlib-build failed at 10:58:58 PM on 08/08/17

build failed at 10:58:58 PM on 08/08/17

zlib-check failed at 10:58:58 PM on 08/08/17

check failed at 10:58:58 PM on 08/08/17

Finished at 10:58:58 PM on 08/08/17

Running build.dimedeps.sh

Starting at 10:59:09 PM on 08/08/17

Finished zlib-extract at 10:59:09 PM on 08/08/17
Finished googtap-extract at 10:59:09 PM on 08/08/17
Finished googtest-extract at 10:59:09 PM on 08/08/17
Finished openssl-extract at 10:59:11 PM on 08/08/17
Finished utf8proc-extract at 10:59:40 PM on 08/08/17

Finished extract at 10:59:40 PM on 08/08/17

Finished zlib-prep at 10:59:40 PM on 08/08/17
Finished googtest-prep at 10:59:40 PM on 08/08/17
Finished utf8proc-prep at 10:59:40 PM on 08/08/17
Finished googtap-prep at 10:59:40 PM on 08/08/17
Finished openssl-prep at 10:59:40 PM on 08/08/17

Finished prep at 10:59:40 PM on 08/08/17

zlib-build failed at 10:59:40 PM on 08/08/17

build failed at 10:59:41 PM on 08/08/17

zlib-check failed at 10:59:41 PM on 08/08/17

check failed at 10:59:41 PM on 08/08/17

Finished at 10:59:41 PM on 08/08/17

Running build.dimedeps.sh

Starting at 10:59:51 PM on 08/08/17

Finished zlib-extract at 10:59:51 PM on 08/08/17
Finished googtap-extract at 10:59:51 PM on 08/08/17
Finished googtest-extract at 10:59:52 PM on 08/08/17
Finished openssl-extract at 10:59:53 PM on 08/08/17
Finished utf8proc-extract at 11:00:19 PM on 08/08/17

Finished extract at 11:00:19 PM on 08/08/17

Finished zlib-prep at 11:00:19 PM on 08/08/17
Finished googtap-prep at 11:00:19 PM on 08/08/17
Finished googtest-prep at 11:00:19 PM on 08/08/17
Finished utf8proc-prep at 11:00:19 PM on 08/08/17
Finished openssl-prep at 11:00:19 PM on 08/08/17

Finished prep at 11:00:19 PM on 08/08/17

zlib-build failed at 11:00:20 PM on 08/08/17

build failed at 11:00:20 PM on 08/08/17

zlib-check failed at 11:00:20 PM on 08/08/17

check failed at 11:00:20 PM on 08/08/17

Finished at 11:00:20 PM on 08/08/17

Running build.dimedeps.sh

Starting at 11:00:30 PM on 08/08/17

Finished zlib-extract at 11:00:30 PM on 08/08/17
Finished googtap-extract at 11:00:31 PM on 08/08/17
Finished googtest-extract at 11:00:31 PM on 08/08/17
Finished openssl-extract at 11:00:32 PM on 08/08/17
Finished utf8proc-extract at 11:00:53 PM on 08/08/17

Finished extract at 11:00:53 PM on 08/08/17

Finished zlib-prep at 11:00:53 PM on 08/08/17
Finished utf8proc-prep at 11:00:53 PM on 08/08/17
Finished googtest-prep at 11:00:53 PM on 08/08/17
Finished googtap-prep at 11:00:53 PM on 08/08/17
Finished openssl-prep at 11:00:54 PM on 08/08/17

Finished prep at 11:00:54 PM on 08/08/17

zlib-build failed at 11:00:56 PM on 08/08/17

build failed at 11:00:56 PM on 08/08/17

zlib-check failed at 11:00:56 PM on 08/08/17

check failed at 11:00:56 PM on 08/08/17

Finished at 11:00:56 PM on 08/08/17

Building src/providers/symbols.c
src/providers/symbols.c: In function 'lib_symbols':
src/providers/symbols.c:318:14: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]
else if (!strcmp(symbols[i].name, symbols[j].name)) {
^~~~~~
compilation terminated due to -Wfatal-errors.
cc1: all warnings being treated as errors
Makefile:277: recipe for target '.objs/src/providers/symbols.o' failed
make: *** [.objs/src/providers/symbols.o] Error 1
Building src/providers/dime/error_codes.c
Building src/providers/dime/dime_ctx.c
Building src/providers/dime/signet/keys.c
In file included from src/providers/dime/signet/keys.c:2:0:
src/core/core.h:152:16: error: expected ';', ',' or ')' before 'sizeof'
#define buflen sizeof(threadBuffer)
^
compilation terminated due to -Wfatal-errors.
Makefile:277: recipe for target '.objs/src/providers/dime/signet/keys.o' failed
make: *** [.objs/src/providers/dime/signet/keys.o] Error 1
Building src/providers/dime/signet/general.c
Building src/providers/dime/signet/signet.c
Building src/providers/dime/ed25519/ed25519.c
Building src/providers/dime/dmtp/commands.c
Building src/providers/dime/dmessage/parser.c
Building src/providers/dime/dmessage/dmsg.c
Building src/providers/dime/util/encrypt.c
Building src/providers/dime/util/encoding.c
Building src/providers/dime/signet-resolver/mrec.c
Building src/providers/dime/signet-resolver/ssl.c
src/providers/dime/signet-resolver/ssl.c: In function '_ssl_get_client_context':
src/providers/dime/signet-resolver/ssl.c:102:46: error: 'SSL_CTRL_OPTIONS' undeclared (first use in this function)
if (SSL_CTX_ctrl_d(_dmtp_ssl_client_ctx, SSL_CTRL_OPTIONS, ctx_options, NULL) != ctx_options) {
^~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
Makefile:277: recipe for target '.objs/src/providers/dime/signet-resolver/ssl.o' failed
make: *** [.objs/src/providers/dime/signet-resolver/ssl.o] Error 1
Building src/providers/dime/signet-resolver/cache_pub.c
Building src/providers/dime/signet-resolver/dmtp_pub.c
Building src/providers/dime/signet-resolver/dns.c
src/providers/dime/signet-resolver/dns.c: In function '_get_rsa_dnskey':
src/providers/dime/signet-resolver/dns.c:199:11: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}'
result->n = mod;
^~
compilation terminated due to -Wfatal-errors.
Makefile:277: recipe for target '.objs/src/providers/dime/signet-resolver/dns.o' failed
make: *** [.objs/src/providers/dime/signet-resolver/dns.o] Error 1
Building src/providers/dime/signet-resolver/mrec_pub.c
Building src/providers/dime/signet-resolver/cache.c
Building src/providers/dime/signet-resolver/ssl_pub.c
Building src/providers/dime/signet-resolver/dmtp.c
Building src/providers/dime/common/error.c
Building src/providers/dime/common/misc_pub.c
Building src/providers/dime/common/crypto.c
Building src/providers/dime/common/network_pub.c
Building src/providers/dime/common/misc.c
src/providers/dime/common/misc.c: In function '_decode_rsa_pubkey':
src/providers/dime/common/misc.c:1200:8: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}'
result->n = mod;
^~
compilation terminated due to -Wfatal-errors.
Makefile:277: recipe for target '.objs/src/providers/dime/common/misc.o' failed
make: *** [.objs/src/providers/dime/common/misc.o] Error 1
Building src/providers/dime/common/network.c
Building src/providers/dime/common/crypto_pub.c
Building src/providers/dime/sds/sds.c
Building src/providers/cryptography/openssl.c
In file included from src/providers/cryptography/openssl.c:13:0:
src/core/core.h:152:16: error: expected ';', ',' or ')' before 'sizeof'
#define buflen sizeof(threadBuffer)
^
compilation terminated due to -Wfatal-errors.
Makefile:277: recipe for target '.objs/src/providers/cryptography/openssl.o' failed
make: *** [.objs/src/providers/cryptography/openssl.o] Error 1
Building src/providers/cryptography/random.c
In file included from src/providers/cryptography/random.c:13:0:
src/core/core.h:152:16: error: expected ';', ',' or ')' before 'sizeof'
#define buflen sizeof(threadBuffer)
^
compilation terminated due to -Wfatal-errors.
Makefile:277: recipe for target '.objs/src/providers/cryptography/random.o' failed
make: *** [.objs/src/providers/cryptography/random.o] Error 1
Building src/providers/cryptography/stacie.c
In file included from src/providers/cryptography/stacie.c:15:0:
src/core/core.h:152:16: error: expected ';', ',' or ')' before 'sizeof'
#define buflen sizeof(threadBuffer)
^
compilation terminated due to -Wfatal-errors.
Makefile:277: recipe for target '.objs/src/providers/cryptography/stacie.o' failed
make: *** [.objs/src/providers/cryptography/stacie.o] Error 1
Building src/providers/prime/secp256k1.c
In file included from src/providers/prime/secp256k1.c:13:0:
src/core/core.h:152:16: error: expected ';', ',' or ')' before 'sizeof'
#define buflen sizeof(threadBuffer)
^
compilation terminated due to -Wfatal-errors.
Makefile:277: recipe for target '.objs/src/providers/prime/secp256k1.o' failed
make: *** [.objs/src/providers/prime/secp256k1.o] Error 1
Building src/providers/prime/prime.c
In file included from src/providers/prime/prime.c:13:0:
src/core/core.h:152:16: error: expected ';', ',' or ')' before 'sizeof'
#define buflen sizeof(threadBuffer)
^
compilation terminated due to -Wfatal-errors.
Makefile:277: recipe for target '.objs/src/providers/prime/prime.o' failed
make: *** [.objs/src/providers/prime/prime.o] Error 1
Building src/providers/parsers/utf8.c
In file included from src/providers/parsers/utf8.c:14:0:
src/core/core.h:152:16: error: expected ';', ',' or ')' before 'sizeof'
#define buflen sizeof(threadBuffer)
^
compilation terminated due to -Wfatal-errors.
Makefile:277: recipe for target '.objs/src/providers/parsers/utf8.o' failed
make: *** [.objs/src/providers/parsers/utf8.o] Error 1
Building src/core/core.c
Building src/core/type.c
Building src/core/checksum/adler.c
Building src/core/checksum/crc.c
Building src/core/checksum/fletcher.c
Building src/core/checksum/murmur.c
Building src/core/host/files.c
Building src/core/host/host.c
Building src/core/host/spool.c
Building src/core/host/mappings.c
Building src/core/host/process.c
Building src/core/host/folder.c
Building src/core/host/color.c
Building src/core/buckets/pool.c
Building src/core/buckets/arrays.c
Building src/core/buckets/stacked.c
Building src/core/classify/ascii.c
Building src/core/indexes/hashed.c
Building src/core/indexes/cursors.c
Building src/core/indexes/inx.c
Building src/core/indexes/linked.c
Building src/core/strings/validate.c
Building src/core/strings/print.c
Building src/core/strings/opts.c
Building src/core/strings/info.c
Building src/core/strings/length.c
Building src/core/strings/replace.c
Building src/core/strings/multi.c
Building src/core/strings/nuller.c
Building src/core/strings/allocation.c
Building src/core/strings/shortcuts.c
Building src/core/strings/data.c
Building src/core/memory/align.c
Building src/core/memory/secure.c
src/core/memory/secure.c: In function 'mm_sec_stats':
src/core/memory/secure.c:67:43: error: nonnull argument 'total' compared to NULL [-Werror=nonnull-compare]
if (!secure.enabled || !secure.slab.data || !total || !bytes || !items) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
compilation terminated due to -Wfatal-errors.
cc1: all warnings being treated as errors
Makefile:277: recipe for target '.objs/src/core/memory/secure.o' failed
make: *** [.objs/src/core/memory/secure.o] Error 1
Building src/core/memory/memory.c
Building src/core/memory/bitwise.c
Building src/core/encodings/zbase32.c
Building src/core/encodings/hex.c
Building src/core/encodings/qp.c
Building src/core/encodings/mappings.c
Building src/core/encodings/url.c
Building src/core/encodings/base64.c
Building src/core/parsers/time.c
Building src/core/parsers/token.c
Building src/core/parsers/trim.c
Building src/core/parsers/line.c
Building src/core/parsers/bitwise.c
Building src/core/parsers/case.c
Building src/core/parsers/special/bracket.c
Building src/core/parsers/formats/nvp.c
Building src/core/parsers/numbers/numbers.c
Building src/core/parsers/numbers/clamp.c
Building src/core/parsers/numbers/digits.c
Building src/core/thread/keys.c
Building src/core/thread/rwlock.c
Building src/core/thread/mutex.c
Building src/core/thread/thread.c
Building src/core/compare/ends.c
Building src/core/compare/starts.c
Building src/core/compare/equal.c
Building src/core/compare/search.c
Finished all
make: Target 'all' not remade because of errors.
root@rpi3:/usr/src/libdime# make dime
Running build.dimedeps.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants