Cross Compiling libgpg-error-1.21 for rsyslog-8.15.0: unrecognized option '--64'.
Girish Kumar
girish.kumar at al-enterprise.com
Thu Jan 28 05:55:49 CET 2016
Could you please guide me on the following .
From: Gnupg-users [mailto:gnupg-users-bounces at gnupg.org] On Behalf Of Girish Kumar
Sent: Wednesday, January 27, 2016 11:39 AM
To: gnupg-users at gnupg.org
Subject: Cross Compiling libgpg-error-1.21 for rsyslog-8.15.0: unrecognized option '--64'.
Hi All,
I found following in README doc. Could you please explain what I should for armv7.
Cross-Compiling
---------------
Libgpg-error needs to figure out some platform specific properties.
These are used to build the platform specific gpg-error.h file. The
detection is done during build time but can't be done when
cross-compiling. Thus if you run into an error during building you
need to figure out these values. You may use these commands:
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)"
If you are using a VPATH build adjust accordingly. If this all works
for you (make sure to run the test programs on the target platform),
please send the generated file to the gnupg-devel mailing list so that
we can include it in the next release. Note that in addition to the
aliasing done by config.sub the src/mkheader build tool does some
extra aliasing to avoid having too much identical syscfg files.
Regards,
Girish
From: Gnupg-users [mailto:gnupg-users-bounces at gnupg.org] On Behalf Of Girish Kumar
Sent: Tuesday, January 26, 2016 8:36 PM
To: gnupg-users at gnupg.org<mailto:gnupg-users at gnupg.org>
Subject: Cross Compiling libgpg-error-1.21 for rsyslog-8.15.0: unrecognized option '--64'.
Dear All,
I am compiling libgpg-error-1.21 which is a dependency library for libgcrypt-1.6.4 . This for armv7 platform
Found some info on cross compilation, but was not able to understand.
I am getting "unrecognized option '--64'" when compiling libgpg-error-1.21. Could you please help me on this.?
gawk -f /home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/libgpg-error-1.21/src/mkerrnos.awk /home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/libgpg-error-1.21/src/errnos.in >code-to-errno.h
gawk -f /home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/libgpg-error-1.21/src/mkerrcodes1.awk /home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/libgpg-error-1.21/src/errnos.in >_mkerrcodes.h
arm-unknown-linux-gnueabi-gcc -E -mcpu=cortex-a9 -mabi=aapcs-linux -msoft-float -O -fno-omit-frame-pointer -mapcs-frame -mno-sched-prolog -I/soft/gnu/cross/linux_64/13/arm/sysroot/usr/include -I/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/built/46/7.X.X.R01/armv7/include -P _mkerrcodes.h | grep GPG_ERR_ | \
gawk -f /home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/libgpg-error-1.21/src/mkerrcodes.awk >mkerrcodes.h
rm _mkerrcodes.h
cc -I. -I/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/libgpg-error-1.21/src -o mkerrcodes /home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/libgpg-error-1.21/src/mkerrcodes.c
as: unrecognized option '--64'
make[4]: *** [mkerrcodes] Error 1
make[4]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg-error/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg-error'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg-error'
make[2]: Entering directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg-error'
Making install in m4
make[3]: Entering directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg-error/m4'
make[4]: Entering directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg-error/m4'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg-error/m4'
make[3]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg-error/m4'
Making install in src
make[3]: Entering directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg-error/src'
cc -I. -I/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/libgpg-error-1.21/src -o mkerrcodes /home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/libgpg-error-1.21/src/mkerrcodes.c
as: unrecognized option '--64'
make[3]: *** [mkerrcodes] Error 1
make[3]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg-error/src'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/objs/46/7.X.X.R01/armv7/libgpg-error'
make[1]: *** [/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps/installed/46/7.X.X.R01/armv7/ramdisk/lib/libgpg-error.so] Error 2
make[1]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-new/engr/sw/tps'
make: *** [tps-build] Error 2
+ set +x
Regards,
Girish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20160128/11f0becb/attachment-0001.html>
More information about the Gnupg-users
mailing list