Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cross-compile: emerge mit-krb5 fails with ARM
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Wed Oct 07, 2009 6:08 pm    Post subject: Cross-compile: emerge mit-krb5 fails with ARM Reply with quote

Hi.

I'd like to cross-compile a Gentoo system for ARM with busybox and uclibc and I'm facing many issues. The following one is about compiling mit-krb5:
Code:
>>> Compiling source in /usr/arm-unknown-linux-uclibceabi/tmp/portage/app-crypt/mit-krb5-1.7-r1/work/krb5-1.7/src ...
 * econf: updating krb5-1.7/src/config/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating krb5-1.7/src/config/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=arm-unknown-linux-uclibceabi --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --without-krb4 --enable-shared --with-system-et --with-system-ss --enable-dns-for-realm --enable-kdc-replay-cache
configure: loading site script /usr/share/config.site
configure: loading site script /usr/share/crossdev/include/site/linux
configure: loading site script /usr/share/crossdev/include/site/linux-uclibc
configure: loading site script /usr/share/crossdev/include/site/arm-linux-uclibc
configure: creating cache ./config.cache
checking for arm-unknown-linux-uclibceabi-gcc... arm-unknown-linux-uclibceabi-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-unknown-linux-uclibceabi-gcc accepts -g... yes
checking for arm-unknown-linux-uclibceabi-gcc option to accept ISO C89... none needed
checking for arm-unknown-linux-uclibceabi-g++... arm-unknown-linux-uclibceabi-g++
checking whether we are using the GNU C++ compiler... yes
checking whether arm-unknown-linux-uclibceabi-g++ accepts -g... yes
checking how to run the C preprocessor... arm-unknown-linux-uclibceabi-gcc -E
checking build system type... x86_64-pc-linux-gnu
checking host system type... arm-unknown-linux-uclibceabi
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 for GNU linker... yes
configure: adding extra warning flags for gcc
configure: skipping pedantic warnings on Linux
configure: adding extra warning flags for g++
checking if C compiler supports -Wno-format-zero-length... yes
checking if C compiler supports -Woverflow... yes
checking if C compiler supports -Wstrict-overflow... yes
checking if C compiler supports -Wmissing-format-attribute... yes
checking if C compiler supports -Wmissing-prototypes... yes
checking if C compiler supports -Wreturn-type... yes
checking if C compiler supports -Wmissing-braces... yes
checking if C compiler supports -Wparentheses... yes
checking if C compiler supports -Wswitch... yes
checking if C compiler supports -Wunused-function... yes
checking if C compiler supports -Wunused-label... yes
checking if C compiler supports -Wunused-variable... yes
checking if C compiler supports -Wunused-value... yes
checking if C compiler supports -Wunknown-pragmas... yes
checking if C compiler supports -Wsign-compare... yes
checking if C compiler supports -Wnewline-eof... no
checking if C compiler supports -Werror=declaration-after-statement... yes
checking if C compiler supports -Werror=variadic-macros... yes
checking which version of com_err to use... system
checking for add_error_table in -lcom_err... no
configure: error: cannot find add_error_table in com_err library

!!! Please attach the following file when seeking support:
!!! /usr/arm-unknown-linux-uclibceabi/tmp/portage/app-crypt/mit-krb5-1.7-r1/work/krb5-1.7/src/config.log

I've got that issue with all versions of sys-libs/e2fsprogs-libs (1.41.8* and 1.41.9*). The problem was filed in Gentoo bugzilla in 2007 but was closed as invalid. Has anybody got a fix now?

Thanks in advance.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
SnakeByte
Apprentice
Apprentice


Joined: 04 Oct 2002
Posts: 177
Location: Europe - Germany

PostPosted: Fri Oct 09, 2009 2:41 pm    Post subject: Reply with quote

Hi,

the same issue annoyed me for some time as I did a cross build for mips.

Was solved once both the host and the cross target had the same version.

Unfortunately the next stop will be the typical
Code:
configure: error: Cannot test for constructor/destructor support when cross compiling

issue.

Did not have time to check if there is a solution already.

regards
Back to top
View user's profile Send private message
SnakeByte
Apprentice
Apprentice


Joined: 04 Oct 2002
Posts: 177
Location: Europe - Germany

PostPosted: Fri Oct 09, 2009 3:10 pm    Post subject: Reply with quote

Hi again,

just now I found a report that it can be cross compiled with scratchbox,
which has an ebuild.

regards
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Fri Oct 09, 2009 9:27 pm    Post subject: Reply with quote

Thanks for your hint! I also fell across the constructor/destructor issue. :(

A quick glance at scratchbox tells me it uses Qemu typically to cross compile packages that have an autoconf... Looks like using Qemu and an ARM stage file would also do the trick, right?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum