Git Product home page Git Product logo

build-scripts's People

Contributors

noloader avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

build-scripts's Issues

Failed to compile GnuTLS test on Ubuntu

When trying to compile gnutls, the test suite fails to compile because NDEBUG is defined

In file included from seccomp.c:22:0:
utils.h:41:3: error: #error tests cannot be compiled with NDEBUG defined
 # error tests cannot be compiled with NDEBUG defined
   ^~~~~
In file included from utils-adv.c:34:0:
utils.h:41:3: error: #error tests cannot be compiled with NDEBUG defined
 # error tests cannot be compiled with NDEBUG defined
   ^~~~~
Makefile:7392: recipe for target 'seccomp.lo' failed
make[3]: *** [seccomp.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from utils.c:47:0:
utils.h:41:3: error: #error tests cannot be compiled with NDEBUG defined
 # error tests cannot be compiled with NDEBUG defined
   ^~~~~
Makefile:7392: recipe for target 'utils-adv.lo' failed
make[3]: *** [utils-adv.lo] Error 1

Can we undefine NDEBUG just for this module ?

Reset repository to one commit

I did a checkout to build a zip for an old Ubuntu machine. The clone and checkout takes too much time. A lot of the problem is the tarballs in bootstrap/. The history of the binary files waste too much time and storage. I only the need the latest state of sources that "just works". I don't care about last week's version of a script or tarball.

To reduce the number and size of objects in history the repository will be reset according to git-clearHistory.

perl fails to build on Centos 5 32-bit

In trying to update OpenSSL, perl will no longer build on Centos 5 32-bit. I'm seeing a dependency error for libdb-6.2.so.


Common flags and options:

  INSTX_BITNESS: 32-bits
   INSTX_PREFIX: /usr/local
   INSTX_LIBDIR: /usr/local/lib
    INSTX_RPATH: '$$ORIGIN/../lib'

PKG_CONFIG_PATH: /usr/local/lib/pkgconfig
       CPPFLAGS: -I/usr/local/include -DNDEBUG
         CFLAGS: -g2 -O2 -fPIC -pthread
       CXXFLAGS: -g2 -O2 -fPIC -pthread
        LDFLAGS: -L/usr/local/lib -Wl,-R,'$$ORIGIN/../lib' -Wl,-R,/usr/local/lib -Wl,--enable-new-dtags
         LDLIBS: -ldl -lpthread

 WGET: /usr/local/bin/wget
 SH_CACERT_PATH: /usr/local/etc/pki
 SH_CACERT_FILE: /usr/local/etc/pki/cacert.pem

If you enter a sudo password, then it will be used for installation.
If you don't enter a password, then ensure INSTX_PREFIX is writable.
To avoid sudo and the password, just press ENTER and they won't be used.
Please enter password for sudo: 

********** Perl **********

--2020-01-27 14:13:19--  http://www.cpan.org/src/5.0/perl-5.28.2.tar.gz
Resolving www.cpan.org (www.cpan.org)... 151.101.26.217, 2a04:4e42:6::729
Connecting to www.cpan.org (www.cpan.org)|151.101.26.217|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17715666 (17M) [application/x-gzip]
Saving to: ‘perl-5.28.2.tar.gz’

2020-01-27 14:13:21 (6.82 MB/s) - ‘perl-5.28.2.tar.gz’ saved [17715666/17715666]

First let's make sure your kit is complete.  Checking...
Locating common programs...
Checking compatibility between /bin/echo and builtin echo (if any)...
Symbolic links are supported.
Checking how to test for symbolic links...
You can test for symbolic links with 'test -h'.
Checking for cross-compile
No targethost for running compiler tests against defined, running locally
Good, your tr supports [:lower:] and [:upper:] to convert case.
Using [:upper:] and [:lower:] to convert case.
aix_3         dragonfly       irix_5   		openbsd       sunos_4_1   
aix_4         dynixptx        irix_6_0   	opus          super-ux   
aix   	      dynix   	      irix_6_1   	os2   	      svr4   
altos486      epix   	      irix_6   		os390         svr5   
amigaos       esix4   	      isc_2   		os400         ti1500   
atheos        fps   	      isc   		posix-bc      ultrix_4   
aux_3         freebsd         linux-android   	qnx   	      umips   
bitrig        freemint        linux   		riscos        unicosmk   
bsdos         gnukfreebsd     lynxos   		sco_2_3_0     unicos   
catamount     gnuknetbsd      midnightbsd   	sco_2_3_1     unisysdynix   
convexos      gnu   	      mips   		sco_2_3_2     utekv   
cxux          greenhills      mirbsd   		sco_2_3_3     uwin   
cygwin        haiku   	      mpc   		sco_2_3_4     vos   
darwin        hpux   	      ncr_tower   	sco   
dcosx         i386   	      netbsd   		solaris_2   
dec_osf       interix         newsos4   	stellar   
dos_djgpp     irix_4          nonstopux   	sunos_4_0   
Which of these apply, if any? [linux]  
Operating system name? [linux]  
Operating system version? [2.6.18-398.el5]  
Installation prefix to use? (~name ok) [/usr/local]  
AFS does not seem to be running...
What installation prefix should I use for installing files? (~name ok)
[/usr/local]  
Getting the current patchlevel...
Build a threading Perl? [n]  
Build Perl for multiplicity? [n]  
Use which C compiler? [cc]  
Checking for GNU cc in disguise and/or its version number...
Now, how can we feed standard input to your C preprocessor...
Directories to use for library searches? [/usr/local/lib /usr/lib /lib]  
What is the file extension used for shared libraries? [so]  
Make shared library basenames unique? [n]  
Build Perl for SOCKS? [n]  
Try to use long doubles if available? [n]  
Checking for optional libraries...
What libraries to use?
[-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc]  
What optimizer/debugger flag should be used? [-O2]  
Any additional cc flags?
[-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include]  
Let me guess what the preprocessor flags are...
Any additional ld flags (NOT including libraries)?
[ -fstack-protector -L/usr/local/lib]  
Checking your choice of C compiler and flags for coherency...
I've tried to compile and run the following simple program:

#include <stdio.h>
int main() { printf("Ok\n"); return(0); }

I used the command:

	cc -o try -O2 -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib try.c -lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
	 ./try

and I got the following output:

./try: error while loading shared libraries: libdb-6.2.so: cannot open shared object file: No such file or directory
The program compiled OK, but exited with status 127.
You have a problem.  Shall I abort Configure [y]  
Ok.  Stopping Configure.
Failed to configure Perl

Guile fails to build on Ubuntu

When trying to build guile on Ubuntu, I received the following error due to misisng dependencies

checking for bdw-gc >= 7.2... no
configure: error: Package requirements (bdw-gc >= 7.2) were not met:

No package 'bdw-gc' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BDW_GC_CFLAGS
and BDW_GC_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Failed to configure Guile
# uname -a
Linux ip-172-31-16-177 4.15.0-1033-aws #35-Ubuntu SMP Wed Feb 6 13:29:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Nettle fails to build on Centos 5

I'm trying to build openssh on Centos 5 32-bit and I'm getting an error building dependency nettle-3.5.1. I'm seeing a number of errors referencing an undefined __builtin_bswap64.

gcc -g2 -O2 -fPIC -pthread -ggdb3 -Wno-pointer-sign -Wall -W   -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-function-cast -Wnested-externs -L.. -L/usr/local/lib -Wl,-R,'$ORIGIN/../lib' -Wl,-R,/usr/local/lib -Wl,--enable-new-dtags nettle-benchmark.o nettle-openssl.o ../getopt.o ../getopt1.o ../nettle-internal.o timing.o -lnettle -lrt -lgmp -ldl -lpthread -lm -lcrypto -o nettle-benchmark
gcc -g2 -O2 -fPIC -pthread -ggdb3 -Wno-pointer-sign -Wall -W   -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-function-cast -Wnested-externs -L.. -L/usr/local/lib -Wl,-R,'$ORIGIN/../lib' -Wl,-R,/usr/local/lib -Wl,--enable-new-dtags base16enc.o io.o \
	-lnettle -lgmp -ldl -lpthread -o base16enc
../libnettle.so: undefined reference to `__builtin_bswap64'
collect2: ld returned 1 exit status
gmake[1]: *** [nettle-benchmark] Error 1
gmake[1]: *** Waiting for unfinished jobs....
../libnettle.so: undefined reference to `__builtin_bswap64'
collect2: ld returned 1 exit status
gmake[1]: *** [base16enc] Error 1
gmake[1]: Leaving directory `/home/lri/Build-Scripts/nettle-3.5.1/examples'
gmake: *** [all] Error 2
Failed to build Nettle

Full build log ...
build-nettle.log

$ uname -a
Linux localhost.localdomain 2.6.18-398.el5 #1 SMP Tue Sep 16 20:51:48 EDT 2014 i686 i686 i386 GNU/Linux

Nettle fails to build

I am trying to build GNUTLS on Ubuntu. I receive an error while building the dependency nettle

sec_powm.c:293: GNU MP assertion failed: enb >= windowsize
Aborted (core dumped)
FAIL: rsa-compute-root
...
====================
1 of 98 tests failed
====================
Makefile:140: recipe for target 'check' failed
make[1]: *** [check] Error 1
make[1]: Leaving directory '/home/ubuntu/gnutls/Build-Scripts/nettle-3.4.1/testsuite'
Makefile:49: recipe for target 'check' failed
make: *** [check] Error 2
Failed to test Nettle
Failed to build Nettle
# uname -a
Linux ip-172-31-16-177 4.15.0-1033-aws #35-Ubuntu SMP Wed Feb 6 13:29:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

CI setup

I'd like to see a CI setup for Build-Scripts which seems to be a sophisticated project. I personally like Travis CI for the github.com integration and speed, but recently prefer GitLab CI which uses Docker images that are quite empty and allow to detect more issues than Travis CI as well as test an almost arbitrary amount of Linux OS (and maybe more - I'm not that much familiar with docker/virtualization) and one can use a local runner to test for hours for free.

I'm willing to provide a GitLab CI script as far as I get if you have any interest in that and are ready to mirror to gitlab.com.

GnuTLS build fails on Ubuntu

When trying to build gnutls on Ubuntu, I am receiving the following error after the test phase.

cipher-openssl-compat.o: In function `cipher_test':
/home/ubuntu/gnutls/Build-Scripts/gnutls-3.6.6/tests/slow/cipher-openssl-compat.c:42: undefined reference to `EVP_get_cipherbyname'
/home/ubuntu/gnutls/Build-Scripts/gnutls-3.6.6/tests/slow/cipher-openssl-compat.c:104: undefined reference to `EVP_CIPHER_CTX_new'
/home/ubuntu/gnutls/Build-Scripts/gnutls-3.6.6/tests/slow/cipher-openssl-compat.c:146: undefined reference to `EVP_CipherInit_ex'
/home/ubuntu/gnutls/Build-Scripts/gnutls-3.6.6/tests/slow/cipher-openssl-compat.c:149: undefined reference to `EVP_CIPHER_CTX_ctrl'
/home/ubuntu/gnutls/Build-Scripts/gnutls-3.6.6/tests/slow/cipher-openssl-compat.c:155: undefined reference to `EVP_CipherUpdate'
/home/ubuntu/gnutls/Build-Scripts/gnutls-3.6.6/tests/slow/cipher-openssl-compat.c:160: undefined reference to `EVP_CipherUpdate'
/home/ubuntu/gnutls/Build-Scripts/gnutls-3.6.6/tests/slow/cipher-openssl-compat.c:166: undefined reference to `EVP_CipherFinal_ex'
/home/ubuntu/gnutls/Build-Scripts/gnutls-3.6.6/tests/slow/cipher-openssl-compat.c:175: undefined reference to `EVP_CIPHER_CTX_free'
cipher-openssl-compat.o: In function `doit':
/home/ubuntu/gnutls/Build-Scripts/gnutls-3.6.6/tests/slow/cipher-openssl-compat.c:194: undefined reference to `OPENSSL_add_all_algorithms_noconf'
collect2: error: ld returned 1 exit status
Makefile:1766: recipe for target 'cipher-openssl-compat' failed

Remove OpenSSL 1.0.2

OpenSSL 1.0.2 is now end of life. It needs to be removed in favor of something from the OpenSSL 1.1.x branch.

This could be painful.

Fail to build Unbound on Ubuntu

I am trying to build gnutls on Ubuntu and I receive an error whn building unbound dependency:

test OK
Creating root key from data.iana.org
/home/ubuntu/gnutls/Build-Scripts/unbound-1.8.3/.libs/unbound-anchor: error while loading shared libraries: libunbound.so.8: cannot open shared object file: No such file or directory
Failed to verify root.key
Failed to build Unbound
# uname -a
Linux ip-172-31-16-177 4.15.0-1033-aws #35-Ubuntu SMP Wed Feb 6 13:29:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.