Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Crossdev armv5te, Cant merge ACL and LIBGCRYPT
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
anunakin
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2004
Posts: 101

PostPosted: Wed Aug 29, 2007 5:36 pm    Post subject: Crossdev armv5te, Cant merge ACL and LIBGCRYPT Reply with quote

First all, this solution not worked for me...
http://forums.gentoo.org/viewtopic-t-471826-highlight-libtool+unable+infer+tagged.html

I installed my crossdev with it command
Code:
USE="-fortran -nls -nocxx gtk gcj -profile" crossdev -s4 --target armv5te-iwmmxt-linux-gnueabi --gcc 4.1.1-r3 --kernel 2.6.17-r2 --binutils 2.17 --libc 2.5-r4 --stable


I write a small apps, emerge-arm-iwmmxt
Code:
#!/bin/bash
ARCH="arm"
ACCEPT_KEYWORDS="arm"
ROOT="/usr/armv5te-iwmmxt-linux-gnueabi"
CHOST="armv5te-iwmmxt-linux-gnueabi"
CBUILD="i686-pc-linux-gnu"
CTARGET="armv5te-iwmmxt-linux-gnueabi"
TARGET="armv5te-iwmmxt-linux-gnueabi"
CFLAGS="-O3 -pipe -mcpu=iwmmxt -mabi=iwmmxt -mtune=iwmmxt -march=iwmmxt -fsigned-char -fexpensive-optimizations -mfp=3"
CXXFLAGS=${CFLAGS}
LD_LIBRARY_PATH="${ROOT}/usr/lib ${ROOT}/lib"
PKG_LIB_DIR="${ROOT}/lib"
PATH=/opt/arm-files/bin:$PATH
CC=armv5te-iwmmxt-linux-gnueabi-gcc
CXX=armv5te-iwmmxt-linux-gnueabi-g++
SYSROOT="${ROOT}"
LDFLAGS="-L${ROOT}/lib -L${ROOT}/usr/lib"
LIBDIR="${ROOT}/lib"
LIBTOOL="/usr/local/bin/libtool-iwmmxt"
DEFAULT_INCLUDES="${ROOT}/usr/include"
PKGDIR="${ROOT}/packages/"
FEATURES="parallel-fetch"
PORTAGE_CONFIGROOT="${ROOT}"

export ARCH ACCEPT_KEYWORDS ROOT CHOST CBUILD CTARGET TARGET CFLAGS CXXFLAGS LD_LIBRARY_PATH PKG_LIB_DIR PATH CC CXX SYSROOT LDFLAGS LIBDIR LIBTOOL DEFAULT_INCLUDES PKGDIR FEATURES USE PORTAGE_CONFIGROOT

emerge --buildpkg $*


I can merge no libtool apps with it, like cpio, glibc ...
Code:
emerge-arm-iwmmxt glibc


the code above worked very fine

I got a error when try to build sys-apps/attr, but with a patched libtool, called libtool-iwmmxt (here: http://zaurus.vivaphp.net/libtool-iwmmxt.gz)
Now I can compile sys-apps/attr (here: http://forums.gentoo.org/viewtopic-t-576345.html)

Now the new errors, when try to merge sys-apps/acl and dev-libs/libgcrypt
dev-libs/libgcrypt
Code:
armv5te-iwmmxt-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -pipe -mcpu=iwmmxt -mabi=iwmmxt -mtune=iwmmxt -march=iwmmxt -fsigned-char -fexpensive-optimizations -mfp=3 -Wall -c missing-string.c  -fPIC -DPIC -o libgcrypt_la-missing-string.o >/dev/null 2>&1
 armv5te-iwmmxt-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -pipe -mcpu=iwmmxt -mabi=iwmmxt -mtune=iwmmxt -march=iwmmxt -fsigned-char -fexpensive-optimizations -mfp=3 -Wall -c ath.c  -fPIC -DPIC -o .libs/libgcrypt_la-ath.o
 armv5te-iwmmxt-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I. -I.. -O3 -pipe -mcpu=iwmmxt -mabi=iwmmxt -mtune=iwmmxt -march=iwmmxt -fsigned-char -fexpensive-optimizations -mfp=3 -Wall -c ath.c  -fPIC -DPIC -o libgcrypt_la-ath.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=link armv5te-iwmmxt-linux-gnueabi-gcc  -O3 -pipe -mcpu=iwmmxt -mabi=iwmmxt -mtune=iwmmxt -march=iwmmxt -fsigned-char -fexpensive-optimizations -mfp=3 -Wall  -L/usr/armv5te-iwmmxt-linux-gnueabi//lib -L/usr/armv5te-iwmmxt-linux-gnueabi//usr/lib -o libgcrypt.la -rpath /usr/lib -Wl,--version-script=./libgcrypt.vers -version-info 13:1:2 libgcrypt_la-misc.lo libgcrypt_la-global.lo libgcrypt_la-sexp.lo libgcrypt_la-stdmem.lo libgcrypt_la-secmem.lo libgcrypt_la-missing-string.lo libgcrypt_la-module.lo libgcrypt_la-ath.lo ../cipher/libcipher.la ../mpi/libmpi.la -lgpg-error -lnsl  -lnsl
armv5te-iwmmxt-linux-gnueabi-gcc -shared  .libs/libgcrypt_la-misc.o .libs/libgcrypt_la-global.o .libs/libgcrypt_la-sexp.o .libs/libgcrypt_la-stdmem.o .libs/libgcrypt_la-secmem.o .libs/libgcrypt_la-missing-string.o .libs/libgcrypt_la-module.o .libs/libgcrypt_la-ath.o -Wl,--whole-archive ../cipher/.libs/libcipher.a ../mpi/.libs/libmpi.a -Wl,--no-whole-archive  -L/usr/armv5te-iwmmxt-linux-gnueabi//lib -L/usr/armv5te-iwmmxt-linux-gnueabi//usr/lib /usr/lib/libgpg-error.so -lnsl  -mcpu=iwmmxt -mabi=iwmmxt -mtune=iwmmxt -march=iwmmxt -mfp=3 -Wl,--version-script=./libgcrypt.vers -Wl,-soname -Wl,libgcrypt.so.11 -o .libs/libgcrypt.so.11.2.1
/usr/lib/libgpg-error.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: ** [libgcrypt.la] Erro 1
make[2]: Saindo do diretório `/var/tmp/portage/dev-libs/libgcrypt-1.2.2-r1/work/libgcrypt-1.2.2/src'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/var/tmp/portage/dev-libs/libgcrypt-1.2.2-r1/work/libgcrypt-1.2.2'
make: ** [all] Erro 2

!!! ERROR: dev-libs/libgcrypt-1.2.2-r1 failed.
Call stack:
  ebuild.sh, line 1632:   Called dyn_compile
  ebuild.sh, line 983:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  libgcrypt-1.2.2-r1.ebuild, line 43:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-libs/libgcrypt-1.2.2-r1/temp/build.log'.


sys-apps/acl
Code:
armv5te-iwmmxt-linux-gnueabi-ar cru .libs/libacl.a  acl_add_perm.o acl_calc_mask.o acl_clear_perms.o acl_copy_entry.o acl_copy_ext.o acl_copy_int.o acl_create_entry.o acl_delete_def_file.o acl_delete_entry.o acl_delete_perm.o acl_dup.o acl_free.o acl_from_text.o acl_get_entry.o acl_get_fd.o acl_get_file.o acl_get_perm.o acl_get_permset.o acl_get_qualifier.o acl_get_tag_type.o acl_init.o acl_set_fd.o acl_set_file.o acl_set_permset.o acl_set_qualifier.o acl_set_tag_type.o acl_to_text.o acl_valid.o acl_size.o acl_to_any_text.o acl_entries.o acl_check.o acl_error.o acl_cmp.o acl_extended_fd.o acl_extended_file.o acl_equiv_mode.o acl_from_mode.o __acl_to_any_text.o __acl_to_xattr.o __acl_from_xattr.o __acl_reorder_obj_p.o __libobj.o __apply_mask_to_mode.o perm_copy_fd.o perm_copy_file.o  .libs/libacl.lax/libmisc.a/high_water_alloc.o .libs/libacl.lax/libmisc.a/next_line.o .libs/libacl.lax/libmisc.a/quote.o .libs/libacl.lax/libmisc.a/unquote.o
armv5te-iwmmxt-linux-gnueabi-ranlib .libs/libacl.a
rm -fr .libs/libacl.lax
creating libacl.la
(cd .libs && rm -f libacl.la && ln -s ../libacl.la libacl.la)
=== getfacl ===
gmake[1]: aviso: jobserver indisponível: usando -j1. Inclua `+' na regra pai.
armv5te-iwmmxt-linux-gnueabi-gcc -O3 -pipe -mcpu=iwmmxt -mabi=iwmmxt -mtune=iwmmxt -march=iwmmxt -fsigned-char -fexpensive-optimizations -mfp=3 -O3 -pipe -mcpu=iwmmxt -mabi=iwmmxt -mtune=iwmmxt -march=iwmmxt -fsigned-char -fexpensive-optimizations -mfp=3 -DNDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.2.39\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I./include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -O3 -pipe -mcpu=iwmmxt -mabi=iwmmxt -mtune=iwmmxt -march=iwmmxt -fsigned-char -fexpensive-optimizations -mfp=3 -DNDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.2.39\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64    -c -o getfacl.o getfacl.c
armv5te-iwmmxt-linux-gnueabi-gcc -O3 -pipe -mcpu=iwmmxt -mabi=iwmmxt -mtune=iwmmxt -march=iwmmxt -fsigned-char -fexpensive-optimizations -mfp=3 -O3 -pipe -mcpu=iwmmxt -mabi=iwmmxt -mtune=iwmmxt -march=iwmmxt -fsigned-char -fexpensive-optimizations -mfp=3 -DNDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.2.39\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I./include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -O3 -pipe -mcpu=iwmmxt -mabi=iwmmxt -mtune=iwmmxt -march=iwmmxt -fsigned-char -fexpensive-optimizations -mfp=3 -DNDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.2.39\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64    -c -o user_group.o user_group.c
/usr/local/bin/libtool-iwmmxt --mode=link armv5te-iwmmxt-linux-gnueabi-gcc -o getfacl -L/usr/armv5te-iwmmxt-linux-gnueabi/lib -L/usr/armv5te-iwmmxt-linux-gnueabi/usr/lib -L/usr/armv5te-iwmmxt-linux-gnueabi/lib -L/usr/armv5te-iwmmxt-linux-gnueabi/usr/lib  -L/usr/armv5te-iwmmxt-linux-gnueabi/lib -L/usr/armv5te-iwmmxt-linux-gnueabi/usr/lib   getfacl.o user_group.o   ../libacl/libacl.la /usr/lib/libattr.la ../libmisc/libmisc.la
mkdir .libs
armv5te-iwmmxt-linux-gnueabi-gcc -o .libs/getfacl getfacl.o user_group.o  -L/usr/armv5te-iwmmxt-linux-gnueabi/lib -L/usr/armv5te-iwmmxt-linux-gnueabi/usr/lib ../libacl/.libs/libacl.so -lattr /usr/lib/libattr.so ../libmisc/.libs/libmisc.a
/usr/libexec/gcc/armv5te-iwmmxt-linux-gnueabi/ld: skipping incompatible /lib/libattr.so when searching for /lib/libattr.so
/usr/libexec/gcc/armv5te-iwmmxt-linux-gnueabi/ld: cannot find /lib/libattr.so
collect2: ld returned 1 exit status
gmake[1]: ** [getfacl] Erro 1
make: ** [default] Erro 2

!!! ERROR: sys-apps/acl-2.2.39-r1 failed.
Call stack:
  ebuild.sh, line 1632:   Called dyn_compile
  ebuild.sh, line 983:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  acl-2.2.39-r1.ebuild, line 51:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-apps/acl-2.2.39-r1/temp/build.log'


I think I can build it on a crossdev environment, but I cant locate where to do it to the gcc and libtool not go to /lib /usr/lib... and try use the i686 libs on my machine to link the binaries, any help? :cry:
_________________
Anunakin (Marcus Fazzi)
PHP/Java/C++ Developer
Sony PS3 JPN 60GB, with Gentoo Linux + HDD 160GB
Sony PS2 50001, with PS2Linux, HDD 80GB
Back to top
View user's profile Send private message
alexxy
Developer
Developer


Joined: 28 Jun 2005
Posts: 50
Location: Gatchina, St. Petersburg, Russia

PostPosted: Fri Aug 31, 2007 10:49 pm    Post subject: Reply with quote

If you like to compile for iwmmxt may be better to build softfloat toolchain (armv5te-softfloat-linux-gnueabi)
Or you can try to install natovely build packages =)
look here
ftp://ftp.gentoo.ru/projects/handhelds
_________________
Gentoo Team Russia
Working on Gentoo for iPAQ hx4700
Back to top
View user's profile Send private message
anunakin
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2004
Posts: 101

PostPosted: Mon Sep 03, 2007 2:40 pm    Post subject: Reply with quote

I told with Civil, from OE Forums, I have a Zaurus SL-C3000 (pxa270/iwmmxt).. I solved this issue here:
I copied libattr.so (ARM/iwmmxt) to /usr/lib/ ....
_________________
Anunakin (Marcus Fazzi)
PHP/Java/C++ Developer
Sony PS3 JPN 60GB, with Gentoo Linux + HDD 160GB
Sony PS2 50001, with PS2Linux, HDD 80GB
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