Tuesday, 1 September 2015

Re: [gccsdk] Building libssh2 fails while building nettle with the autobuilder. Any clues?

Lee,

I have compiled zlib1g and now I see the -lz

libtool: link: /home/alan/env/arm-unknown-riscos-gcc -O3 -o ssh2,e1f ssh2.o
../src/.libs/libssh2.a -L/home/alan/env/lib -lssl -lcrypto -lz

That didn't fix it.

I found other examples and so I tried adding this
export LIBS='-ldl'
to the end of this file
autobuilder/libraries/libssh2/setvars

And now ssh2,e1f links properly.

But
../autobuilder/build -v -D libgpg-error0
doesn't. Nettle wanted libgcrypt11 which depends on libgpg-error0.

Would you be able to send me your results from building the same thing so I
can see if there is anything different here.
If your system built an earlier version successfully then if I can work out
how to set it to fetch that then that too may be a solution.

alan@riscosbuilder:~/build$ ../autobuilder/build -v -D libgpg-error0
Autobuilder warning: polkit-policy-file-validate not found; continuing
anyway
Autobuilder: using GCCSDK set values
Autobuilder: no local build-setvars found, using default build parameters
Autobuilder: Package "libgpg-error0" will be built using rules at
"/home/alan/autobuilder/libraries/libgpg-error0"
Autobuilder: Building package: libgpg-error0
Autobuilder: Detected 1 CPUs: set AB_CPUS to use more or fewer (eg in case
build breaks)
Autobuilder: Fetching source for libgpg-error0
Autobuilder: Using existing Sources.gz (testing/main)
Autobuilder: Using existing Sources.gz (testing/contrib)
Autobuilder: Using existing Sources.gz (stable/main)
Autobuilder: Using existing Sources.gz (stable/contrib)
Autobuilder: Searching for libgpg-error0 in ../Sources-testing-main.gz...
Autobuilder: found Binary: libgpg-error0 in ../Sources-testing-main.gz
--2015-09-02 10:34:11--
http://ftp.uk.debian.org/debian/pool/main/libg/libgpg-error/libgpg-error_1.1
9.orig.tar.bz2
Resolving ftp.uk.debian.org (ftp.uk.debian.org)... 78.129.164.123,
2001:1b40:5600:ff80:f8ee::1
Connecting to ftp.uk.debian.org (ftp.uk.debian.org)|78.129.164.123|:80...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 761622 (744K) [application/octet-stream]
Saving to: 'libgpg-error_1.19.orig.tar.bz2.1'

0K .......... .......... .......... .......... .......... 6% 72.3K 10s
snip
700K .......... .......... .......... .......... ... 100%
721K=2.3s

2015-09-02 10:34:14 (328 KB/s) - 'libgpg-error_1.19.orig.tar.bz2.1' saved
[761622/761622]

--2015-09-02 10:34:14--
http://ftp.uk.debian.org/debian/pool/main/libg/libgpg-error/libgpg-error_1.1
9-2.debian.tar.xz

Resolving ftp.uk.debian.org (ftp.uk.debian.org)... 78.129.164.123,
2001:1b40:5600:ff80:f8ee::1
Connecting to ftp.uk.debian.org (ftp.uk.debian.org)|78.129.164.123|:80...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 9068 (8.9K) [application/octet-stream]
Saving to: 'libgpg-error_1.19-2.debian.tar.xz.1'

0K ........ 100%
897K=0.01s

2015-09-02 10:34:15 (897 KB/s) - 'libgpg-error_1.19-2.debian.tar.xz.1' saved
[9068/9068]

Autobuilder: source directory is
/home/alan/build/libgpg-error0/libgpg-error-1.19
Autobuilder: Calling setvars
Autobuilder: Calling configure command: /home/alan/env/ro-config
RISC OS: Adding E1F filetype for ./configure
RISC OS: Adding filetype for binary tests for ./configure
RISC OS: Adding libtool handling
RISC OS: Setting libtool library paths for ./configure
RISC OS: Adding X Paths
RISC OS: Disable NLS
RISC OS: Enabling shared libraries
RISC OS: Enabling static libraries
checking for a BSD-compatible install... /home/alan/env/ro-install
checking whether build environment is sane... yes
/home/alan/build/libgpg-error0/libgpg-error-1.19/build-aux/missing: Unknown
`--is-lightweight' option
Try `/home/alan/build/libgpg-error0/libgpg-error-1.19/build-aux/missing
--help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for arm-unknown-riscos-strip...
/home/alan/cross/bin/arm-unknown-riscos-strip
checking for a thread-safe mkdir -p... /home/alan/env/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-riscos
configure: autobuild project... libgpg-error
configure: autobuild revision... 1.19
configure: autobuild hostname... riscosbuilder
configure: autobuild timestamp... 20150902-103416
checking for arm-unknown-riscos-gcc... /home/alan/env/arm-unknown-riscos-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... ,e1f
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/alan/env/arm-unknown-riscos-gcc accepts -g...
(cached) no
checking for /home/alan/env/arm-unknown-riscos-gcc option to accept ISO
C89... none needed
checking whether /home/alan/env/arm-unknown-riscos-gcc understands -c and -o
together... yes
checking for style of include used by make... GNU
checking dependency style of /home/alan/env/arm-unknown-riscos-gcc... gcc3
checking how to run the C preprocessor...
/home/alan/env/arm-unknown-riscos-cpp
checking for gawk... (cached) gawk
checking for arm-unknown-riscos-ar... /home/alan/env/ro-ar
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by /home/alan/env/arm-unknown-riscos-gcc...
/home/alan/cross/bin/arm-unknown-riscos-ld
checking if the linker (/home/alan/cross/bin/arm-unknown-riscos-ld) is GNU
ld... yes
checking for BSD- or MS-compatible name lister (nm)...
/home/alan/cross/bin/arm-unknown-riscos-nm
checking the name lister (/home/alan/cross/bin/arm-unknown-riscos-nm)
interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to
arm-unknown-riscos format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain
format... func_convert_file_noop
checking for /home/alan/cross/bin/arm-unknown-riscos-ld option to reload
object files... -r
checking for arm-unknown-riscos-objdump... arm-unknown-riscos-objdump
checking how to recognize dependent libraries... pass_all
checking for arm-unknown-riscos-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-unknown-riscos-ar... (cached) /home/alan/env/ro-ar
checking for archiver @FILE support... @
checking for arm-unknown-riscos-strip... (cached)
/home/alan/cross/bin/arm-unknown-riscos-strip
checking for arm-unknown-riscos-ranlib...
/home/alan/cross/bin/arm-unknown-riscos-ranlib
checking command to parse /home/alan/cross/bin/arm-unknown-riscos-nm output
from /home/alan/env/arm-unknown-riscos-gcc object... ok
checking for sysroot... no
checking for arm-unknown-riscos-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking for dlfcn.h... (cached) yes
checking for objdir... .libs
checking if /home/alan/env/arm-unknown-riscos-gcc supports -fno-rtti
-fno-exceptions... no
checking for /home/alan/env/arm-unknown-riscos-gcc option to produce PIC...
-fPIC -DPIC
checking if /home/alan/env/arm-unknown-riscos-gcc PIC flag -fPIC -DPIC
works... yes
checking if /home/alan/env/arm-unknown-riscos-gcc static flag -static
works... yes
checking if /home/alan/env/arm-unknown-riscos-gcc supports -c -o file.o...
yes
checking if /home/alan/env/arm-unknown-riscos-gcc supports -c -o file.o...
(cached) yes
checking whether the /home/alan/env/arm-unknown-riscos-gcc linker
(/home/alan/cross/bin/arm-unknown-riscos-ld) supports shared libraries...
yes
checking dynamic linker characteristics... arm-unknown-riscos-gcc:
programs:: No such file or directory
arm-unknown-riscos-gcc:
=/home/alan/cross/libexec/gcc/arm-unknown-riscos/4.1.2/:/home/alan/cross/lib
exec/gcc/arm-unknown-riscos/4.1.2/:/home/alan/cross/libexec/gcc/arm-unknown-
riscos/:/home/alan/cross/lib/gcc/arm-unknown-riscos/4.1.2/:/home/alan/cross/
lib/gcc/arm-unknown-riscos/:/usr/libexec/gcc/arm-unknown-riscos/4.1.2/:/usr/
libexec/gcc/arm-unknown-riscos/:/usr/lib/gcc/arm-unknown-riscos/4.1.2/:/usr/
lib/gcc/arm-unknown-riscos/:/home/alan/cross/lib/gcc/arm-unknown-riscos/4.1.
2/../../../../arm-unknown-riscos/bin/arm-unknown-riscos/4.1.2/:/home/alan/cr
oss/lib/gcc/arm-unknown-riscos/4.1.2/../../../../arm-unknown-riscos/bin/: No
such file or directory
arm-unknown-riscos-gcc: libraries:: No such file or directory
arm-unknown-riscos-gcc:
=/home/alan/cross/lib/gcc/arm-unknown-riscos/4.1.2/:/usr/lib/gcc/arm-unknown
-riscos/4.1.2/:/home/alan/cross/lib/gcc/arm-unknown-riscos/4.1.2/../../../..
/arm-unknown-riscos/lib/arm-unknown-riscos/4.1.2/:/home/alan/cross/lib/gcc/a
rm-unknown-riscos/4.1.2/../../../../arm-unknown-riscos/lib/: No such file or
directory
riscos ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for arm-unknown-riscos-windres... no
checking for windres... no
checking for cc for build... /usr/bin/cc
checking whether NLS is requested... no
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by /home/alan/env/arm-unknown-riscos-gcc...
/home/alan/cross/bin/arm-unknown-riscos-ld
checking if the linker (/home/alan/cross/bin/arm-unknown-riscos-ld) is GNU
ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether to use NLS... no
checking for ANSI C header files... (cached) yes
checking for stdlib.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for stdint.h... (cached) yes
checking whether strerror_r is declared... yes
checking for strerror_r... (cached) yes
checking whether strerror_r returns char *... no
checking for strerror_r... (cached) yes
checking for flockfile... no
checking for vasprintf... yes
checking for an ANSI C-conforming const... (cached) yes
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... (cached) 8
configure: checking for cc features
checking if gcc ignores unknown -Wno-* options... no
checking if gcc supports -Wpointer-arith... yes
checking whether the GCC style aligned attribute is supported... yes
checking whether the visibility attribute is supported... yes
checking for broken visibility attribute... no
checking for broken alias attribute... no
checking if gcc supports -fvisibility=hidden... yes
checking whether imported symbols can be declared weak... guessing yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_kill in -lpthread... yes
checking for multithread API to use... posix
checking for pthread_rwlock_t... yes
checking size of pthread_mutex_t... 24
checking for unsigned long long int... yes
configure: checking system features for estream-printf
checking for stdint.h... (cached) yes
checking for long long int... yes
checking for long double... yes
checking for intmax_t... yes
checking for uintmax_t... yes
checking for ptrdiff_t... yes
checking size of unsigned long... 4
checking size of void *... (cached) 4
checking for nl_langinfo and THOUSANDS_SEP... yes
configure: checking system features for estream
checking for memrchr... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating po/Makefile.in
config.status: creating m4/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating lang/Makefile
config.status: creating lang/cl/Makefile
config.status: creating lang/cl/gpg-error.asd
config.status: creating src/versioninfo.rc
config.status: creating src/gpg-error.w32-manifest
config.status: creating src/gpg-error-config
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile

libgpg-error-1.19 prepared for make

Revision: d77c33a (55164)
Platform: arm-unknown-riscos

Autobuilder: Running make command: /home/alan/env/ro-make
make all-recursive
make[1]: Entering directory
`/home/alan/build/libgpg-error0/libgpg-error-1.19'
Making all in m4
make[2]: Entering directory
`/home/alan/build/libgpg-error0/libgpg-error-1.19/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/alan/build/libgpg-error0/libgpg-error-1.19/m4'
Making all in src
make[2]: Entering directory
`/home/alan/build/libgpg-error0/libgpg-error-1.19/src'
gawk -f ./mkerrnos.awk ./errnos.in >code-to-errno.h
gawk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h
/home/alan/env/arm-unknown-riscos-cpp -P _mkerrcodes.h | grep GPG_ERR_ | \
gawk -f ./mkerrcodes.awk >mkerrcodes.h
rm _mkerrcodes.h
/usr/bin/cc -I. -I. -o mkerrcodes ./mkerrcodes.c
./mkerrcodes | gawk -f ./mkerrcodes2.awk >code-from-errno.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
./err-sources.h.in >err-sources-sym.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
./err-codes.h.in >err-codes-sym.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
-v prefix=GPG_ERR_ -v namespace=errnos_ \
./errnos.in >errnos-sym.h
/usr/bin/cc -g -O0 -I. -I. -o mkheader ./mkheader.c
if test -f lock-obj-pub.native.h; then rm lock-obj-pub.native.h; fi
./mkheader riscos arm-unknown-riscos ./gpg-error.h.in \
../config.h 1.19 0x011300 >gpg-error.h
./gpg-error.h.in:320: error including `./syscfg/lock-obj-pub.riscos.h': No
such file or directory
make[2]: *** [gpg-error.h] Error 1
make[2]: Leaving directory
`/home/alan/build/libgpg-error0/libgpg-error-1.19/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/alan/build/libgpg-error0/libgpg-error-1.19'
make: *** [all] Error 2
Package libgpg-error0: ***Failure***
Build for package "libgpg-error0" failed

Many thanks
Alan



-----Original Message-----
From: gcc-bounces@gccsdk.riscos.info [mailto:gcc-bounces@gccsdk.riscos.info]
On Behalf Of Lee Noar
Sent: Wednesday, 2 September 2015 1:23 AM
To: gcc@gccsdk.riscos.info
Subject: Re: [gccsdk] Building libssh2 fails while building nettle with the
autobuilder. Any clues?

On 01/09/15 07:03, Alan Williams wrote:
> I would like to be able to build !Nettle as I would like to see if I
> can add public/private key authentication to it.
>
> I have never used the auto builder before and I am at a bit of a loss
> to know where to start with the error that it presented while building
libssh2.
>
> Along the way:

[snip]

> /home/alan/build/libssh2/libssh2-1.5.0/missing: Unknown
> `--is-lightweight' option Try
> `/home/alan/build/libssh2/libssh2-1.5.0/missing --help' for more
> information
> configure: WARNING: 'missing' script is too old or missing

I also see the above error, but I believe it's a red herring as my build
continues to the end without any problems.

[snip]

> libtool: link: /home/alan/env/arm-unknown-riscos-gcc -O3 -o ssh2,e1f
> ssh2.o ../src/.libs/libssh2.a -L/home/alan/env/lib -lssl -lcrypto
>
> /home/alan/env/lib/libcrypto.a(dso_dlfcn.o): In function
> `dlfcn_globallookup':
> dso_dlfcn.c:(.text+0x7c): undefined reference to `dlopen'
> dso_dlfcn.c:(.text+0x90): undefined reference to `dlsym'

[snip further errors]

This looks like a missing -ldl on the above link line, but my build doesn't
have one either. However, my build does have a -lz where yours does not, so
the required -ldl may be coming from there.
Have you built zlib1g? If not, try building zlib1g first and then rebuild
libssh2.

> That looks to me like a disparity in expectations between static and
> dynamic builds for 'tests' but I couldn't see how or where to
> influence that. I presume that even if it can build them it can't run
them anyway.

I haven't looked at what the tests are meant to do, but I see no reason why
they wouldn't work.

Lee.


_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK



_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment