Help needed : Error in compiling libgpg-error

shilpa shilpa shilpahk_84 at yahoo.com
Fri Jan 22 18:45:15 CET 2016


Hi,
We are trying to cross-compile libgpg-error for arm-platform, But compilation is failing. See the confirure and make logs below:
============================================================./configure --prefix=/usr --host=arm-unknown-linux-gnueabi
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-unknown-linux-gnueabi-strip... arm-unknown-linux-gnueabi-strip
checking for a thread-safe mkdir -p... /bin/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-linux-gnueabi
configure: autobuild project... libgpg-error
configure: autobuild revision... 1.21
configure: autobuild hostname... inbanesdbuild3
configure: autobuild timestamp... 20160122-230022
checking for arm-unknown-linux-gnueabi-gcc... arm-unknown-linux-gnueabi-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 arm-unknown-linux-gnueabi-gcc accepts -g... yes
checking for arm-unknown-linux-gnueabi-gcc option to accept ISO C89... none needed
checking whether arm-unknown-linux-gnueabi-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of arm-unknown-linux-gnueabi-gcc... gcc3
checking how to run the C preprocessor... arm-unknown-linux-gnueabi-gcc -E
checking for gawk... (cached) gawk
checking for arm-unknown-linux-gnueabi-ar... arm-unknown-linux-gnueabi-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 arm-unknown-linux-gnueabi-gcc... /soft/gnu/cross/linux_64/13/arm/arm-unknown-linux-gnueabi/bin/ld
checking if the linker (/soft/gnu/cross/linux_64/13/arm/arm-unknown-linux-gnueabi/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /soft/gnu/cross/linux_64/13/arm/bin/arm-unknown-linux-gnueabi-nm -B
checking the name lister (/soft/gnu/cross/linux_64/13/arm/bin/arm-unknown-linux-gnueabi-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 3458764513820540925
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-linux-gnueabi 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 /soft/gnu/cross/linux_64/13/arm/arm-unknown-linux-gnueabi/bin/ld option to reload object files... -r
checking for arm-unknown-linux-gnueabi-objdump... arm-unknown-linux-gnueabi-objdump
checking how to recognize dependent libraries... pass_all
checking for arm-unknown-linux-gnueabi-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-unknown-linux-gnueabi-ar... (cached) arm-unknown-linux-gnueabi-ar
checking for archiver @FILE support... @
checking for arm-unknown-linux-gnueabi-strip... (cached) arm-unknown-linux-gnueabi-strip
checking for arm-unknown-linux-gnueabi-ranlib... arm-unknown-linux-gnueabi-ranlib
checking command to parse /soft/gnu/cross/linux_64/13/arm/bin/arm-unknown-linux-gnueabi-nm -B output from arm-unknown-linux-gnueabi-gcc object... ok
checking for sysroot... no
checking for arm-unknown-linux-gnueabi-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... yes
checking for objdir... .libs
checking if arm-unknown-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions... no
checking for arm-unknown-linux-gnueabi-gcc option to produce PIC... -fPIC -DPIC
checking if arm-unknown-linux-gnueabi-gcc PIC flag -fPIC -DPIC works... yes
checking if arm-unknown-linux-gnueabi-gcc static flag -static works... yes
checking if arm-unknown-linux-gnueabi-gcc supports -c -o file.o... yes
checking if arm-unknown-linux-gnueabi-gcc supports -c -o file.o... (cached) yes
checking whether the arm-unknown-linux-gnueabi-gcc linker (/soft/gnu/cross/linux_64/13/arm/arm-unknown-linux-gnueabi/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux 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... no
checking for arm-unknown-linux-gnueabi-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 arm-unknown-linux-gnueabi-gcc... /soft/gnu/cross/linux_64/13/arm/arm-unknown-linux-gnueabi/bin/ld
checking if the linker (/soft/gnu/cross/linux_64/13/arm/arm-unknown-linux-gnueabi/bin/ld) is GNU ld... yes
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 for stdint.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.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 vasprintf... yes
checking for an ANSI C-conforming const... yes
checking size of int... 4
checking size of long... 4
checking size of long long... 8
configure: checking for cc features
checking if gcc ignores unknown -Wno-* options... yes
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 *... 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.21 prepared for make

        Revision: 425b768  (16987)
        Platform: arm-unknown-linux-gnueabi

touch /home1/shh/PERFORCE/7.X.X.R01-shh-2/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg/libpng.configured
cd /home1/shh/PERFORCE/7.X.X.R01-shh-2/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg;\
        declare -x PATH=/soft/gnu/cross/linux_64/13/arm/bin:/soft/gnu/cross/linux/13/arm/arm-unknown-linux-gnueabi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/soft/tools/linux:/soft/tools/linux/common:/soft/tools/linux/falcon:/soft/bcm-tools:/soft/tools:/bin:/usr/bin:/soft/tools/falcon:/soft/tools/common:/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/games:/opt/OBSDssh/bin:/import/tools/bin:/usr/sfw/bin/:;\
        declare -x CFLAGS="-mcpu=cortex-a9 -mabi=aapcs-linux -msoft-float -O1 -fPIC -fno-omit-frame-pointer -mapcs-frame -mno-sched-prolog  -I/soft/gnu/cross/linux_64/13/arm/sysroot/usr/include -I/home1/shh/PERFORCE/7.X.X.R01-shh-2/engr/sw/tps/built/46/7.X.X.R01/armv7/include";\
        declare -x CPPLAGS="-mcpu=cortex-a9 -mabi=aapcs-linux -msoft-float -O1 -fPIC -fno-omit-frame-pointer -mapcs-frame -mno-sched-prolog  -I/soft/gnu/cross/linux_64/13/arm/sysroot/usr/include -I/home1/shh/PERFORCE/7.X.X.R01-shh-2/engr/sw/tps/built/46/7.X.X.R01/armv7/include -I/home1/shh/PERFORCE/7.X.X.R01-shh-2/engr/sw/tps/libgpg-error-1.21 -I/home1/shh/PERFORCE/7.X.X.R01-shh-2/engr/sw/tps/libgpg-error-1.21/src";\
        declare -x LDFLAGS="-mcpu=cortex-a9 -mabi=aapcs-linux -msoft-float  -L/soft/gnu/cross/linux_64/13/arm/sysroot/lib -L/home1/shh/PERFORCE/7.X.X.R01-shh-2/engr/sw/tps/built/46/7.X.X.R01/armv7/lib";\
        make ;\
        echo "armv7 libgpg done"
make[2]: Entering directory `/home1/shh/PERFORCE/7.X.X.R01-shh-2/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg'
make[2]: Warning: File `Makefile' has modification time 7.5e+02 s in the future
make  all-recursive
make[3]: Entering directory `/home1/shh/PERFORCE/7.X.X.R01-shh-2/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg'
make[3]: Warning: File `Makefile' has modification time 7.5e+02 s in the future
Making all in m4
make[4]: Entering directory `/home1/shh/PERFORCE/7.X.X.R01-shh-2/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg/m4'
make[4]: Warning: File `Makefile' has modification time 7.5e+02 s in the future
make[4]: Nothing to be done for `all'.
make[4]: warning:  Clock skew detected.  Your build may be incomplete.
make[4]: Leaving directory `/home1/shh/PERFORCE/7.X.X.R01-shh-2/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg/m4'
Making all in src
make[4]: Entering directory `/home1/shh/PERFORCE/7.X.X.R01-shh-2/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg/src'
make[4]: Warning: File `.deps/libgpg_error_la-w32-thread.Plo' has modification time 7.3e+02 s in the future
gawk -f ./mkstrtable.awk -v textidx=3 \
                ./err-sources.h.in >err-sources.h
gawk -f ./mkstrtable.awk -v textidx=3 \
                ./err-codes.h.in >err-codes.h
gawk -f ./mkerrnos.awk ./errnos.in >code-to-errno.h
gawk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h
arm-unknown-linux-gnueabi-gcc -E   -P _mkerrcodes.h | grep GPG_ERR_ | \
               gawk -f ./mkerrcodes.awk >mkerrcodes.h
In file included from /soft/gnu/cross/linux_64/13/arm/arm-unknown-linux-gnueabi/usr/include/errno.h:28:0,
                 from _mkerrcodes.h:25:
/soft/gnu/cross/linux_64/13/arm/arm-unknown-linux-gnueabi/usr/include/features.h:327:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
rm _mkerrcodes.h
cc -I. -I. -o mkerrcodes ./mkerrcodes.c
as: unrecognized option '--64'
make[4]: *** [mkerrcodes] Error 1
make[4]: Leaving directory `/home1/shh/PERFORCE/7.X.X.R01-shh-2/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home1/shh/PERFORCE/7.X.X.R01-shh-2/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home1/shh/PERFORCE/7.X.X.R01-shh-2/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg'
==========================================================================
Thanks and RegardsShilpa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20160122/d78fcf77/attachment-0001.html>


More information about the Gcrypt-devel mailing list