Fwd: Bug#753047: src:libgpg-error: FTCBFS for any architecture but mingw32 and android
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Fri Jul 4 04:48:58 CEST 2014
On Thu 2014-07-03 02:46:00 -0400, Werner Koch wrote:
> Right. This is why the instructions in README
>
> build="$(build-aux/config.guess)"
> ./configure --prefix=TARGETDIR --host=TARGET --build=$build
> cd src
> make gen-posix-lock-obj
> scp gen-posix-lock-obj TARGET:
> ssh TARGET ./gen-posix-lock-obj >tmp.h
> mv tmp.h "syscfg/$(awk 'NR==1 {print $2}' tmp.h)"
>
> say to build and execute gen-posix-lock-obj for the targeted host.
Please bear with me, the cross-building process is new to me.
I just tried to do this for powerpc (from x86-64) and didn't manage to
create a powerpc executable for gen-posix-lock-obj. I'm not sure what
i'm doing wrong, but below is a transcript of the full attempt,
including a demonstration that the final executable is x86-64, not
powerpc.
I suspect that the problem is related to:
configure: WARNING: using cross tools not prefixed with host triplet
but i'm not sure how to resolve it. I'm running debian
testing/unstable, using the standard toolchain. Pointers to the proper
way to set up cross-compiling (if that's what i'm missing) would be
welcome.
--dkg
0 dkg at alice:/tmp/cdtemp.52gBUW$ wget -q ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.13.tar.bz2{.sig,}
0 dkg at alice:/tmp/cdtemp.52gBUW$ gpg --verify libgpg-error-1.13.tar.bz2{.sig,}
gpg: Signature made Tue 15 Apr 2014 08:28:49 AM EDT
gpg: using RSA key 0x249B39D24F25E3B6
gpg: please do a --check-trustdb
gpg: Good signature from "Werner Koch (dist sig)" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: D869 2123 C406 5DEA 5E0F 3AB5 249B 39D2 4F25 E3B6
0 dkg at alice:/tmp/cdtemp.52gBUW$ tar xjf libgpg-error-1.13.tar.bz2
0 dkg at alice:/tmp/cdtemp.52gBUW$ cd libgpg-error-1.13
0 dkg at alice:/tmp/cdtemp.52gBUW/libgpg-error-1.13$ build="$(build-aux/config.guess)"
0 dkg at alice:/tmp/cdtemp.52gBUW/libgpg-error-1.13$ ./configure --prefix=/tmp/cdtemp.52gBUW/powerpc --host=powerpc-linux-gnu --build=$build
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for powerpc-linux-gnu-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... powerpc-unknown-linux-gnu
configure: autobuild project... libgpg-error
configure: autobuild revision... 1.13
configure: autobuild hostname... alice
configure: autobuild timestamp... 20140703-214711
checking for powerpc-linux-gnu-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for gawk... (cached) gawk
checking for powerpc-linux-gnu-ar... no
checking for ar... 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 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 gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for powerpc-linux-gnu-dumpbin... no
checking for powerpc-linux-gnu-link... no
checking for dumpbin... no
checking for link... link -dump
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1635000
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 powerpc-unknown-linux-gnu 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 /usr/bin/ld option to reload object files... -r
checking for powerpc-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for powerpc-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for powerpc-linux-gnu-ar... ar
checking for archiver @FILE support... @
checking for powerpc-linux-gnu-strip... strip
checking for powerpc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking command to parse nm output from gcc object... ok
checking for sysroot... no
checking for powerpc-linux-gnu-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf64ppc) supports shared libraries... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for powerpc-linux-gnu-windres... no
checking for windres... no
checking for cc for build... cc
checking whether NLS is requested... yes
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 GCC... /usr/bin/ld -m elf64ppc
checking if the linker (/usr/bin/ld -m elf64ppc) is GNU ld... no
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
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 whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking for strerror_r... (cached) yes
checking for flockfile... yes
checking for an ANSI C-conforming const... 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... 40
configure: creating ./config.status
config.status: creating 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-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.13 prepared for make
Revision: 1900266 (6400)
Platform: powerpc-unknown-linux-gnu
0 dkg at alice:/tmp/cdtemp.52gBUW/libgpg-error-1.13$ cd src
0 dkg at alice:/tmp/cdtemp.52gBUW/libgpg-error-1.13/src$ make gen-posix-lock-obj
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT gen-posix-lock-obj.o -MD -MP -MF .deps/gen-posix-lock-obj.Tpo -c -o gen-posix-lock-obj.o gen-posix-lock-obj.c
mv -f .deps/gen-posix-lock-obj.Tpo .deps/gen-posix-lock-obj.Po
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o gen-posix-lock-obj gen-posix-lock-obj.o
libtool: link: gcc -g -O2 -o gen-posix-lock-obj gen-posix-lock-obj.o
0 dkg at alice:/tmp/cdtemp.52gBUW/libgpg-error-1.13/src$ file gen-posix-lock-obj
gen-posix-lock-obj: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=7bbe1ba730c4341e8f070f41c342b1c4584e984a, not stripped
0 dkg at alice:/tmp/cdtemp.52gBUW/libgpg-error-1.13/src$
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 948 bytes
Desc: not available
URL: </pipermail/attachments/20140703/2395546f/attachment.sig>
More information about the Gnupg-devel
mailing list