Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Armv4 cross compiling shared lib error
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
mixam85
n00b
n00b


Joined: 30 Jan 2008
Posts: 9

PostPosted: Mon Feb 15, 2010 5:28 am    Post subject: [solved] Armv4 cross compiling shared lib error Reply with quote

Hi,
I'm trying to cross-compile gentoo for armv4 , board Mini2440.
I get the following error when emerging dev-libs/mpfr-2.4.1_p5:
Code:
libtool: link: armv4tl-softfloat-linux-gnueabi-gcc -shared  .libs/exceptions.o .libs/extract.o .libs/uceil_exp2.o .libs/uceil_log2.o .libs/ufloor_log2.o .libs/add.o .libs/add1.o .libs/add_ui.o .libs/agm.o .libs/clear.o .libs/cmp.o .libs/cmp_abs.o .libs/cmp_si.o .libs/cmp_ui.o .libs/comparisons.o .libs/div_2exp.o .libs/div_2si.o .libs/div_2ui.o .libs/div.o .libs/div_ui.o .libs/dump.o .libs/eq.o .libs/exp10.o .libs/exp2.o .libs/exp3.o .libs/exp.o .libs/frac.o .libs/get_d.o .libs/get_exp.o .libs/get_str.o .libs/init.o .libs/inp_str.o .libs/isinteger.o .libs/isinf.o .libs/isnan.o .libs/isnum.o .libs/const_log2.o .libs/log.o .libs/modf.o .libs/mul_2exp.o .libs/mul_2si.o .libs/mul_2ui.o .libs/mul.o .libs/mul_ui.o .libs/neg.o .libs/next.o .libs/out_str.o .libs/printf.o .libs/vasprintf.o .libs/const_pi.o .libs/pow.o .libs/pow_si.o .libs/pow_ui.o .libs/print_raw.o .libs/print_rnd_mode.o .libs/random2.o .libs/random.o .libs/reldiff.o .libs/round_prec.o .libs/set.o .libs/setmax.o .libs/setmin.o .libs/set_d.o .libs/set_dfl_prec.o .libs/set_exp.o .libs/set_rnd.o .libs/set_f.o .libs/set_prc_raw.o .libs/set_prec.o .libs/set_q.o .libs/set_si.o .libs/set_str.o .libs/set_str_raw.o .libs/set_ui.o .libs/set_z.o .libs/sqrt.o .libs/sqrt_ui.o .libs/sub.o .libs/sub1.o .libs/sub_ui.o .libs/rint.o .libs/ui_div.o .libs/ui_sub.o .libs/urandomb.o .libs/get_z_exp.o .libs/swap.o .libs/factorial.o .libs/cosh.o .libs/sinh.o .libs/tanh.o .libs/sinh_cosh.o .libs/acosh.o .libs/asinh.o .libs/atanh.o .libs/atan.o .libs/cmp2.o .libs/exp_2.o .libs/asin.o .libs/const_euler.o .libs/cos.o .libs/sin.o .libs/tan.o .libs/fma.o .libs/fms.o .libs/hypot.o .libs/log1p.o .libs/expm1.o .libs/log2.o .libs/log10.o .libs/ui_pow.o .libs/ui_pow_ui.o .libs/minmax.o .libs/dim.o .libs/signbit.o .libs/copysign.o .libs/setsign.o .libs/gmp_op.o .libs/init2.o .libs/acos.o .libs/sin_cos.o .libs/set_nan.o .libs/set_inf.o .libs/powerof2.o .libs/gamma.o .libs/set_ld.o .libs/get_ld.o .libs/cbrt.o .libs/volatile.o .libs/fits_sshort.o .libs/fits_sint.o .libs/fits_slong.o .libs/fits_ushort.o .libs/fits_uint.o .libs/fits_ulong.o .libs/fits_uintmax.o .libs/fits_intmax.o .libs/get_si.o .libs/get_ui.o .libs/zeta.o .libs/cmp_d.o .libs/erf.o .libs/inits.o .libs/inits2.o .libs/clears.o .libs/sgn.o .libs/check.o .libs/sub1sp.o .libs/version.o .libs/mpn_exp.o .libs/mpfr-gmp.o .libs/mp_clz_tab.o .libs/sum.o .libs/add1sp.o .libs/free_cache.o .libs/si_op.o .libs/cmp_ld.o .libs/set_ui_2exp.o .libs/set_si_2exp.o .libs/set_uj.o .libs/set_sj.o .libs/get_sj.o .libs/get_uj.o .libs/get_z.o .libs/iszero.o .libs/cache.o .libs/sqr.o .libs/int_ceil_log2.o .libs/isqrt.o .libs/strtofr.o .libs/pow_z.o .libs/logging.o .libs/mulders.o .libs/get_f.o .libs/round_p.o .libs/erfc.o .libs/atan2.o .libs/subnormal.o .libs/const_catalan.o .libs/root.o .libs/sec.o .libs/csc.o .libs/cot.o .libs/eint.o .libs/sech.o .libs/csch.o .libs/coth.o .libs/round_near_x.o .libs/constant.o .libs/abort_prec_max.o .libs/stack_interface.o .libs/lngamma.o .libs/zeta_ui.o .libs/set_d64.o .libs/get_d64.o .libs/jn.o .libs/yn.o .libs/rem1.o .libs/get_patches.o .libs/add_d.o .libs/sub_d.o .libs/d_sub.o .libs/mul_d.o .libs/div_d.o .libs/d_div.o .libs/li2.o .libs/rec_sqrt.o   -L/home/mini2440/arm-system/lib -L/home/mini2440/arm-system/usr/lib /usr/lib/libgmp.so  -march=armv4t -mtune=arm920t -Wl,--as-needed   -Wl,-soname -Wl,libmpfr.so.1 -o .libs/libmpfr.so.1.2.0
/usr/lib/libgmp.so: could not read symbols: File in wrong format


I don't understand why it does not uses lib from the cross-sompiled env.

Here is my make.conf
Code:
CHOST=armv4tl-softfloat-linux-gnueabi
CBUILD=i686-pc-linux-gnu
ARCH=arm

HOSTCC=i686-pc-linux-gnu-gcc
E_MACHINE=EM_ARM

ROOT=/home/mini2440/arm-system/
CROSSROOT=/usr/$CHOST/

ACCEPT_KEYWORDS="arm"

USE="${ARCH} zlib bindist make-symlinks python perl -kde -qt X"

MARCH_TUNE="-march=armv4t -mtune=arm920t"
#MARCH_TUNE="-march=armv4t -mtune=arm9tdmi"     #arm-softfloat-linux-uclibc
#MARCH_TUNE="-march=armv5t -mtune=xscale"       #armv5teb-softfloat-linux-gnueabi

CROSS_LIB="-I${CROSSROOT}usr/include/ -I${CROSSROOT}include/ "
CROSS_LD="-L${CROSSROOT}lib -L${CROSSROOT}usr/lib "
CFLAGS="-Os -pipe ${MARCH_TUNE} -fomit-frame-pointer -isystem${ROOT}usr/include/ -isystem${ROOT}include/"
CXXFLAGS="${CFLAGS}"
LDPATH="${ROOT}lib:${ROOT}usr/lib:${LDPATH}"
LD_LIBRARY_PATH="${ROOT}lib:${ROOT}usr/lib:${LD_LIBRARY_PATH}"
LDFLAGS="-Wl,--as-needed -L${ROOT}lib -L${ROOT}usr/lib"

FEATURES="-collision-protect sandbox buildpkg noman noinfo nodoc"
# Be sure we dont overwrite pkgs from another repo..
PKGDIR=${ROOT}packages/
PORTAGE_TMPDIR=${ROOT}tmp/

ELIBC="uclibc"

PKG_CONFIG_PATH="${ROOT}usr/lib/pkgconfig/"
#PORTDIR_OVERLAY="/usr/portage/local/"

LIBDIR_arm="${ROOT}/usr/lib"
LIBDIR_amd64=lib64
UCLIBC_CPU_DEFAULT="GENERIC_ARM"
MAKEOPTS=-j2
CONFIG_SITE="/home/mini2440/config.site"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ "
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="vesa via"


and my emerge wrapper :

Code:
#!/bin/bash
CHOST="armv4tl-softfloat-linux-gnueabi"
CBUILD=$(portageq envvar CHOST)
SYSROOT="/home/mini2440/arm-system/"
PORTDIR="$SYSROOT/usr/portage/"
PORTAGE_CONFIGROOT="$SYSROOT"
if [[ "$1" == "--root" ]] ; then
    ROOT="$2"
    shift 2
else
    ROOT="$SYSROOT"
fi
export CBUILD PORTAGE_CONFIGROOT ROOT

# optional exports
export enable_malloc0returnsnull=yes \
        ac_cv_file__usr_share_sgml_X11_defs_ent=1 \
        ac_cv_func_setpgrp_void=yes ac_cv_func_setgrent_void=yes \
        ac_cv_func_calloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes \
        gl_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes \
        ac_cv_func_memcmp_working=yes ac_cv_func_strnlen_working=yes \
        fu_cv_sys_stat_statvfs=yes

FAKEROOT=
if [[ $(id -u) != 0 ]]; then
        [[ $(type -p fakeroot) != "" ]] && FAKEROOT=fakeroot
fi

${FAKEROOT} emerge $*


I got this problem for other packages too.
I thought that LDFLAGS would be enough.

If someone has any clues, is there an other variable that can be used?

Thanks.

Maxime.


Last edited by mixam85 on Mon Feb 15, 2010 6:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Mon Feb 15, 2010 11:44 am    Post subject: Reply with quote

Quote:
could not read symbols: File in wrong format


you should verify (using "file") that it's armv4

but ... the "OE bitbake" (gnu linux builder for embedded) is using qemu in oder to crosscompile
host -> qemu.virtualmachine -> arm native compiling

i hardly suggest you it !
Back to top
View user's profile Send private message
mixam85
n00b
n00b


Joined: 30 Jan 2008
Posts: 9

PostPosted: Mon Feb 15, 2010 11:55 am    Post subject: Reply with quote

Hi,

I check it out, and of course it's not armv4 because it's a lib from the host system which is i686.
What i don't understand is why it uses this one (which is of for the host system) instead of the cross compiled one located in my ${ROOT}/usr/lib ( I checked, it exist !)

I'm currently trying to make it work in qemu, but the mini2440 board is not supported in the main branch of qemu.

It could have been great to use emerge to cross compile without having to emulate the hole system.
Thanks for your response anyway.


Last edited by mixam85 on Mon Feb 15, 2010 12:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 438

PostPosted: Mon Feb 15, 2010 12:11 pm    Post subject: Reply with quote

Does it help if you add "--sysroot=${ROOT}/usr/lib" to CFLAGS/CXXFLAGS?
Back to top
View user's profile Send private message
mixam85
n00b
n00b


Joined: 30 Jan 2008
Posts: 9

PostPosted: Mon Feb 15, 2010 12:20 pm    Post subject: Reply with quote

I get
Code:
configure: error: C compiler cannot create executables


not sure that --sysroot can be added to CFLAGS
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 438

PostPosted: Mon Feb 15, 2010 1:36 pm    Post subject: Reply with quote

mixam85 wrote:
I get
Code:
configure: error: C compiler cannot create executables


not sure that --sysroot can be added to CFLAGS


It works very well for me on MIPS and SH4, maybe other
cflags clash with it. What does config.log say about the error?
Back to top
View user's profile Send private message
mixam85
n00b
n00b


Joined: 30 Jan 2008
Posts: 9

PostPosted: Mon Feb 15, 2010 2:05 pm    Post subject: Reply with quote

here is the content of config.log

Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by MPFR configure 2.4.1, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  $ ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=armv4tl-softfloat-linux-gnueabi --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib

## --------- ##
## Platform. ##
## --------- ##

hostname = Shii
uname -m = i686
uname -r = 2.6.31-gentoo-r6
uname -s = Linux
uname -v = #2 SMP Thu Feb 11 17:54:53 RET 2010

/usr/bin/uname -p = Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/lib/portage/bin/ebuild-helpers
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2000: loading site script /home/mini2440/config.site
| gl_cv_func_wcwidth_works=yes
configure:2162: checking for a BSD-compatible install
configure:2230: result: /usr/bin/install -c
configure:2241: checking whether build environment is sane
configure:2284: result: yes
configure:2309: checking for a thread-safe mkdir -p
configure:2348: result: /bin/mkdir -p
configure:2361: checking for gawk
configure:2377: found /usr/bin/gawk
configure:2388: result: gawk
configure:2399: checking whether make sets $(MAKE)
configure:2421: result: yes
configure:2492: checking for armv4tl-softfloat-linux-gnueabi-strip
configure:2508: found /usr/bin/armv4tl-softfloat-linux-gnueabi-strip
configure:2519: result: armv4tl-softfloat-linux-gnueabi-strip
configure:2597: checking whether to disable maintainer-specific portions of Makefiles
configure:2606: result: yes
configure:2631: checking build system type
configure:2649: result: i686-pc-linux-gnu
configure:2671: checking host system type
configure:2686: result: armv4tl-softfloat-linux-gnueabi
configure:2886: checking for armv4tl-softfloat-linux-gnueabi-gcc
configure:2902: found /usr/bin/armv4tl-softfloat-linux-gnueabi-gcc
configure:2913: result: armv4tl-softfloat-linux-gnueabi-gcc
configure:3185: checking for C compiler version
configure:3193: armv4tl-softfloat-linux-gnueabi-gcc --version >&5
armv4tl-softfloat-linux-gnueabi-gcc (Gentoo 4.4.3 p1.0) 4.4.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3197: $? = 0
configure:3204: armv4tl-softfloat-linux-gnueabi-gcc -v >&5
Using built-in specs.
Target: armv4tl-softfloat-linux-gnueabi
Configured with: /var/tmp/cross/armv4tl-softfloat-linux-gnueabi/portage/cross-armv4tl-softfloat-linux-gnueabi/gcc-4.4.3/work/gcc-4.4.3/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/armv4tl-softfloat-linux-gnueabi/gcc-bin/4.4.3 --includedir=/usr/lib/gcc/armv4tl-softfloat-linux-gnueabi/4.4.3/include --datadir=/usr/share/gcc-data/armv4tl-softfloat-linux-gnueabi/4.4.3 --mandir=/usr/share/gcc-data/armv4tl-softfloat-linux-gnueabi/4.4.3/man --infodir=/usr/share/gcc-data/armv4tl-softfloat-linux-gnueabi/4.4.3/info --with-gxx-include-dir=/usr/lib/gcc/armv4tl-softfloat-linux-gnueabi/4.4.3/include/g++-v4 --host=i686-pc-linux-gnu --target=armv4tl-softfloat-linux-gnueabi --build=i686-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --with-float=soft --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --disable-libmudflap --disable-libssp --disable-libgomp --enable-cld --with-python-dir=/share/gcc-data/armv4tl-softfloat-linux-gnueabi/4.4.3/python --disable-libgcj --enable-languages=c,c++,fortran --with-sysroot=/usr/armv4tl-softfloat-linux-gnueabi --disable-bootstrap --disable-libgomp --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.4.3 p1.0'
Thread model: posix
gcc version 4.4.3 (Gentoo 4.4.3 p1.0)
configure:3208: $? = 0
configure:3215: armv4tl-softfloat-linux-gnueabi-gcc -V >&5
armv4tl-softfloat-linux-gnueabi-gcc: '-V' option must have argument
configure:3219: $? = 1
configure:3242: checking for C compiler default output file name
configure:3264: armv4tl-softfloat-linux-gnueabi-gcc --sysroot=/home/mini2440/arm-system//usr/lib -Os -pipe -march=armv4t -mtune=arm920t -fomit-frame-pointer -isystem/home/mini2440/arm-system/usr/include/ -isystem/home/mini2440/arm-system/include/  -Wl,--as-needed -L/home/mini2440/arm-system/lib -L/home/mini2440/arm-system/usr/lib conftest.c  >&5
/usr/libexec/gcc/armv4tl-softfloat-linux-gnueabi/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:3268: $? = 1
configure:3306: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "MPFR"
| #define PACKAGE_TARNAME "mpfr"
| #define PACKAGE_VERSION "2.4.1"
| #define PACKAGE_STRING "MPFR 2.4.1"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3312: error: in `/home/mini2440/arm-system/tmp/portage/dev-libs/mpfr-2.4.1_p5/work/mpfr-2.4.1':
configure:3315: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='--sysroot=/home/mini2440/arm-system//usr/lib -Os -pipe -march=armv4t -mtune=arm920t -fomit-frame-pointer -isystem/home/mini2440/arm-system/usr/include/ -isystem/home/mini2440/arm-system/include/'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='--sysroot=/home/mini2440/arm-system//usr/lib -Os -pipe -march=armv4t -mtune=arm920t -fomit-frame-pointer -isystem/home/mini2440/arm-system/usr/include/ -isystem/home/mini2440/arm-system/include/'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,--as-needed -L/home/mini2440/arm-system/lib -L/home/mini2440/arm-system/usr/lib'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=armv4tl-softfloat-linux-gnueabi
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_file__usr_share_sgml_X11_defs_ent=1
ac_cv_func_calloc_0_nonnull=yes
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_memcmp_working=yes
ac_cv_func_realloc_0_nonnull=yes
ac_cv_func_setgrent_void=yes
ac_cv_func_setpgrp_void=yes
ac_cv_func_strnlen_working=yes
ac_cv_host=armv4tl-softfloat-linux-gnueabi
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=armv4tl-softfloat-linux-gnueabi-gcc
ac_cv_prog_STRIP=armv4tl-softfloat-linux-gnueabi-strip
ac_cv_prog_make_make_set=yes
fu_cv_sys_stat_statvfs=yes
gl_cv_func_malloc_0_nonnull=yes
gl_cv_func_wcwidth_works=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/mini2440/arm-system/tmp/portage/dev-libs/mpfr-2.4.1_p5/work/mpfr-2.4.1/missing --run aclocal-1.10'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/mini2440/arm-system/tmp/portage/dev-libs/mpfr-2.4.1_p5/work/mpfr-2.4.1/missing --run tar'
ANSI2KNR=''
AR=''
AS=''
AUTOCONF='${SHELL} /home/mini2440/arm-system/tmp/portage/dev-libs/mpfr-2.4.1_p5/work/mpfr-2.4.1/missing --run autoconf'
AUTOHEADER='${SHELL} /home/mini2440/arm-system/tmp/portage/dev-libs/mpfr-2.4.1_p5/work/mpfr-2.4.1/missing --run autoheader'
AUTOMAKE='${SHELL} /home/mini2440/arm-system/tmp/portage/dev-libs/mpfr-2.4.1_p5/work/mpfr-2.4.1/missing --run automake-1.10'
AWK='gawk'
CC='armv4tl-softfloat-linux-gnueabi-gcc'
CCDEPMODE=''
CFLAGS='--sysroot=/home/mini2440/arm-system//usr/lib -Os -pipe -march=armv4t -mtune=arm920t -fomit-frame-pointer -isystem/home/mini2440/arm-system/usr/include/ -isystem/home/mini2440/arm-system/include/'
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='--sysroot=/home/mini2440/arm-system//usr/lib -Os -pipe -march=armv4t -mtune=arm920t -fomit-frame-pointer -isystem/home/mini2440/arm-system/usr/include/ -isystem/home/mini2440/arm-system/include/'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
FGREP=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS='-Wl,--as-needed -L/home/mini2440/arm-system/lib -L/home/mini2440/arm-system/usr/lib'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE='#'
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} /home/mini2440/arm-system/tmp/portage/dev-libs/mpfr-2.4.1_p5/work/mpfr-2.4.1/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
MPFR_LIBM=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
PACKAGE='mpfr'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='MPFR'
PACKAGE_STRING='MPFR 2.4.1'
PACKAGE_TARNAME='mpfr'
PACKAGE_VERSION='2.4.1'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP='armv4tl-softfloat-linux-gnueabi-strip'
U=''
VERSION='2.4.1'
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
ac_ct_F77=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='/usr/share'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='armv4tl-softfloat-linux-gnueabi'
host_alias='armv4tl-softfloat-linux-gnueabi'
host_cpu='armv4tl'
host_os='linux-gnueabi'
host_vendor='softfloat'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/share/info'
install_sh='$(SHELL) /home/mini2440/arm-system/tmp/portage/dev-libs/mpfr-2.4.1_p5/work/mpfr-2.4.1/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var/lib'
lt_ECHO='echo'
mandir='/usr/share/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "MPFR"
#define PACKAGE_TARNAME "mpfr"
#define PACKAGE_VERSION "2.4.1"
#define PACKAGE_STRING "MPFR 2.4.1"
#define PACKAGE_BUGREPORT ""
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 438

PostPosted: Mon Feb 15, 2010 2:48 pm    Post subject: Reply with quote

Do you have a complete libc in your ARM root? Copy the .o and .a files
from /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/*.{ao} to your ${ROOT}/usr/lib.

The idea behind sysroot is that you point gcc/ld to the root of a _complete_
environment (something you'd use as a NFSroot for example).
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Mon Feb 15, 2010 6:16 pm    Post subject: Reply with quote

mixam85 wrote:
I'm currently trying to make it work in qemu, but the mini2440 board is not supported in the main branch of qemu


sorry, but ... could you just use qemu/armv4/armv5 (with the right endianess) machine ?
you don't need any "mini2440 board support", you just need a proper arm-kernel (NPTL? > 2.6.18!)
Back to top
View user's profile Send private message
mixam85
n00b
n00b


Joined: 30 Jan 2008
Posts: 9

PostPosted: Mon Feb 15, 2010 6:44 pm    Post subject: Reply with quote

roarinelk:

Your right I use now ROOT=/usr/${CHOST} and --sysroot=${ROOT} in CFLAGS and it work.
I thought I could just use cross emerge to build a rootfs in another directory.
basic lib should have been missing in my previous root dir.
I will investigate later.
Thanks

ddc:

I got an error :
Code:
qemu: fatal: Trying to execute code outside RAM or ROM at 0x00001000

Which may be not related to the version used.
I found a fork of qemu whit specific -M mini2440, I haven't still understand whats the difference with a versatileab or versatilepb.
It does not solve this error.
Anyway I still have some info to found on the web before asking on the forum.
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