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

2011-10-12 Thread Wookey
Public bug reported:

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: ntp (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: cross natty

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/873001

Title:
  ntp fails to cross-build

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/873001/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


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

2011-10-12 Thread Wookey
Public bug reported:

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: ntp (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: cross natty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/873001

Title:
  ntp fails to cross-build

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/873001/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs