[Bug 873001] [NEW] ntp fails to cross-build

Launchpad Bug Tracker 873001 at bugs.launchpad.net
Fri Apr 29 09:25:30 UTC 2016


You have been subscribed to a public bug:

ntp fails to cross-build:

Uses correct compiler but chooses wrong-arch header path

arm-linux-gnueabi-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../include -I../lib/isc/include -I../lib/isc/nothreads/include -I../lib/isc/unix/include  -D_GNU_SOURCE -I/usr/include  -g -fno-strict-aliasing -O2 -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Winit-self -Wstrict-overflow -Wno-strict-prototypes -c authkeys.c
authkeys.c: In function 'authencrypt':
authkeys.c:496:20: error: invalid 'asm': invalid operand for code 'w'
authkeys.c:496:20: error: invalid 'asm': invalid operand for code 'w'

The wierd thing is that this only happens if 
 -eCONFIG_SITE=/etc/dpkg-cross/cross-config.armel is specified.

Running the debuild command without that causes it to get the include
pathright, but not know how big it's LONGs are. Something in the
autoconf cache variables is screwing it up, which suggests breakage in
the configure file, because providing that info should not break the
build.

Background:
The build command is:
xdeb --only-explicit -a armel --prefer-apt --apt-source --debug --force-rebuild bash

The actual build command xdeb issues is:
debuild --no-lintian -eUSER -eCONFIG_SITE=/etc/dpkg-cross/cross-config.armel -eDEB_BUILD_OPTIONS=nocheck -eGTEST_INCLUDEDIR=/usr/arm-linux-gnueabi/include -eGTEST_LIBDIR=/usr/arm-linux-gnueabi/lib -ePKG_CONFIG_LIBDIR=/usr/arm-linux-gnueabi/lib/pkgconfig:/usr/arm-linux-gnueabi/share/pkgconfig:/usr/share/pkgconfig -eDH_VERBOSE=1 -aarmel -b -uc -us -tc

To easily reproduce the build environment in which this bug was discovered follow the HOWTO here:
https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/CrossBuildNano

** Affects: dpkg-cross (Ubuntu)
     Importance: Medium
         Status: Incomplete


** Tags: cross natty
-- 
ntp fails to cross-build
https://bugs.launchpad.net/bugs/873001
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to dpkg-cross in Ubuntu.



More information about the foundations-bugs mailing list