Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: Embedded

GCC 4.3 fails on mpfr

 

 

Gentoo embedded RSS feed   Index | Next | Previous | View Threaded


Dilip.Ramesh at kpitcummins

May 6, 2008, 5:00 AM

Post #1 of 19 (7336 views)
Permalink
GCC 4.3 fails on mpfr

Hi,
I am trying to build a cross compiler toolchain using 'crossdev 'and the
gcc source version is gcc-4.3.0

I am getting following errors while configuring gcc-stage1,
{{
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
Try the --with-gmp and/or --with-mpfr options to specify their
locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional
info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.

!!! ERROR: cross-sh4-unknown-linux-gnu/gcc-4.3.0 failed.
Call stack:
}}

I understand the pre-requisite for gcc-4.3 is mpfr 4.1+ but I am not
sure how to pass '--with-mpfr' configure options to gcc.

Any help will be highly appreciated

With kind regards,
Dilip
--
gentoo-embedded [at] lists mailing list


vapier at gentoo

May 6, 2008, 5:30 AM

Post #2 of 19 (7225 views)
Permalink
Re: GCC 4.3 fails on mpfr [In reply to]

On Tuesday 06 May 2008, Dilip Malinur Ramesh wrote:
> I am trying to build a cross compiler toolchain using 'crossdev 'and the
> gcc source version is gcc-4.3.0
>
> I am getting following errors while configuring gcc-stage1,
> {{
> checking for correct version of gmp.h... yes
> checking for correct version of mpfr.h... no
> configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
> Try the --with-gmp and/or --with-mpfr options to specify their
> locations.
> Copies of these libraries' source code can be found at their respective
> hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
> See also http://gcc.gnu.org/install/prerequisites.html for additional
> info.
> If you obtained GMP and/or MPFR from a vendor distribution package, make
> sure that you have installed both the libraries and the header files.
> They may be located in separate packages.
>
> !!! ERROR: cross-sh4-unknown-linux-gnu/gcc-4.3.0 failed.
> Call stack:
> }}
>
> I understand the pre-requisite for gcc-4.3 is mpfr 4.1+ but I am not
> sure how to pass '--with-mpfr' configure options to gcc.

do you have mpfr and gmp already installed ?

qlist -I -v mpfr gmp
-mike
Attachments: signature.asc (0.81 KB)


cfriedt at visible-assets

May 6, 2008, 12:01 PM

Post #3 of 19 (7230 views)
Permalink
Re: GCC 4.3 fails on mpfr [In reply to]

This is a 'chicken / egg' problem. In order to build a cross compiler
for arch X you need mpfr compiled for arch X. In order to build mpfr for
arch X you need a toolchain for arch X.

Try building the cross-compiler without mpfr first, then build libmpfr,
and then rebuild the cross compiler.

I can't say whether or not that will work with crossdev, but that's the
way things Should(TM) work.

Chris

Dilip Malinur Ramesh wrote:
> Hi,
> I am trying to build a cross compiler toolchain using 'crossdev 'and the
> gcc source version is gcc-4.3.0
>
> I am getting following errors while configuring gcc-stage1,
> {{
> checking for correct version of gmp.h... yes
> checking for correct version of mpfr.h... no
> configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
> Try the --with-gmp and/or --with-mpfr options to specify their
> locations.
> Copies of these libraries' source code can be found at their respective
> hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
> See also http://gcc.gnu.org/install/prerequisites.html for additional
> info.
> If you obtained GMP and/or MPFR from a vendor distribution package, make
> sure that you have installed both the libraries and the header files.
> They may be located in separate packages.
>
> !!! ERROR: cross-sh4-unknown-linux-gnu/gcc-4.3.0 failed.
> Call stack:
> }}
>
> I understand the pre-requisite for gcc-4.3 is mpfr 4.1+ but I am not
> sure how to pass '--with-mpfr' configure options to gcc.
>
> Any help will be highly appreciated
>
> With kind regards,
> Dilip
--
gentoo-embedded [at] lists mailing list


vapier at gentoo

May 6, 2008, 2:24 PM

Post #4 of 19 (7236 views)
Permalink
Re: GCC 4.3 fails on mpfr [In reply to]

On Tuesday 06 May 2008, Christopher Friedt wrote:
> This is a 'chicken / egg' problem. In order to build a cross compiler
> for arch X you need mpfr compiled for arch X. In order to build mpfr for
> arch X you need a toolchain for arch X.
>
> Try building the cross-compiler without mpfr first, then build libmpfr,
> and then rebuild the cross compiler.

you cant build gcc-4.3 without gmp and mpfr. they're hard requirements. but
they're requirements that the host system has it, not that they are
cross-compiled for the target.
-mike
Attachments: signature.asc (0.81 KB)


solar at gentoo

May 6, 2008, 3:48 PM

Post #5 of 19 (7231 views)
Permalink
Re: GCC 4.3 fails on mpfr [In reply to]

On Tue, 2008-05-06 at 17:24 -0400, Mike Frysinger wrote:
> On Tuesday 06 May 2008, Christopher Friedt wrote:
> > This is a 'chicken / egg' problem. In order to build a cross compiler
> > for arch X you need mpfr compiled for arch X. In order to build mpfr for
> > arch X you need a toolchain for arch X.
> >
> > Try building the cross-compiler without mpfr first, then build libmpfr,
> > and then rebuild the cross compiler.
>
> you cant build gcc-4.3 without gmp and mpfr. they're hard requirements. but
> they're requirements that the host system has it, not that they are
> cross-compiled for the target.
> -mike

Mike,
this might pose a problem at Gentoo as I don't think mpfr can even be
cross compiled in the first place. I might be wrong but I seem to recall
fighting with it in the last week using ( arm-softfloat-linux-uclibc ||
arm*-softloat-linux-gnueabi).

--
Ned Ludd <solar [at] gentoo>
Gentoo Linux

--
gentoo-embedded [at] lists mailing list


vapier at gentoo

May 6, 2008, 9:26 PM

Post #6 of 19 (7223 views)
Permalink
Re: GCC 4.3 fails on mpfr [In reply to]

On Tuesday 06 May 2008, Ned Ludd wrote:
> On Tue, 2008-05-06 at 17:24 -0400, Mike Frysinger wrote:
> > On Tuesday 06 May 2008, Christopher Friedt wrote:
> > > This is a 'chicken / egg' problem. In order to build a cross compiler
> > > for arch X you need mpfr compiled for arch X. In order to build mpfr
> > > for arch X you need a toolchain for arch X.
> > >
> > > Try building the cross-compiler without mpfr first, then build libmpfr,
> > > and then rebuild the cross compiler.
> >
> > you cant build gcc-4.3 without gmp and mpfr. they're hard requirements.
> > but they're requirements that the host system has it, not that they are
> > cross-compiled for the target.
>
> this might pose a problem at Gentoo as I don't think mpfr can even be
> cross compiled in the first place. I might be wrong but I seem to recall
> fighting with it in the last week using ( arm-softfloat-linux-uclibc ||
> arm*-softloat-linux-gnueabi).

i said they are host libraries, not target libraries. gcc itself uses them in
order to even execute in the first place starting with gcc-4.3.

what Christopher is probably referring to is gfortran support ... it requires
mpfr/gmp to be cross-compiled.

but to address your question, they both do cross-compile fine. i just did it
two days ago for mingw32 target so that i could build up a gfortran
cross-compiler.
-mike
Attachments: signature.asc (0.81 KB)


solar at gentoo

May 6, 2008, 9:44 PM

Post #7 of 19 (7231 views)
Permalink
Re: GCC 4.3 fails on mpfr [In reply to]

On Wed, 2008-05-07 at 00:26 -0400, Mike Frysinger wrote:
> On Tuesday 06 May 2008, Ned Ludd wrote:
> > On Tue, 2008-05-06 at 17:24 -0400, Mike Frysinger wrote:
> > > On Tuesday 06 May 2008, Christopher Friedt wrote:
> > > > This is a 'chicken / egg' problem. In order to build a cross compiler
> > > > for arch X you need mpfr compiled for arch X. In order to build mpfr
> > > > for arch X you need a toolchain for arch X.
> > > >
> > > > Try building the cross-compiler without mpfr first, then build libmpfr,
> > > > and then rebuild the cross compiler.
> > >
> > > you cant build gcc-4.3 without gmp and mpfr. they're hard requirements.
> > > but they're requirements that the host system has it, not that they are
> > > cross-compiled for the target.
> >
> > this might pose a problem at Gentoo as I don't think mpfr can even be
> > cross compiled in the first place. I might be wrong but I seem to recall
> > fighting with it in the last week using ( arm-softfloat-linux-uclibc ||
> > arm*-softloat-linux-gnueabi).
>
> i said they are host libraries, not target libraries. gcc itself uses them in
> order to even execute in the first place starting with gcc-4.3.
>
> what Christopher is probably referring to is gfortran support ... it requires
> mpfr/gmp to be cross-compiled.
>
> but to address your question, they both do cross-compile fine. i just did it
> two days ago for mingw32 target so that i could build up a gfortran
> cross-compiler.
> -mike


Really? I'm getting (just reproduced on a few crossdev install)


Notice the LDFLAGS.. yet still.

armv5te-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/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/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/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/remquo.o .libs/get_patches.o -L/home/solar/Desktop/gizard/usr/lib -L/home/solar/Desktop/gizard/lib -L/usr/armv5te-softfloat-linux-gnueabi/usr/lib -L/usr/armv5te-softfloat-linux-gnueabi/lib /usr/lib/libgmp.so -Wl,-soname -Wl,libmpfr.so.1 -o .libs/libmpfr.so.1.1.1
/usr/lib/libgmp.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[1]: *** [libmpfr.la] Error 1
make[1]: Leaving directory
`/home/solar/Desktop/gizard/tmp/portage/dev-libs/mpfr-2.3.1/work/mpfr-2.3.1'
make: *** [all-recursive] Error 1
*
* ERROR: dev-libs/mpfr-2.3.1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2017: Called die
* The specific snippet of code:
* emake || die "emake failed";
* The die message:
* emake failed



solar [at] medi ~/Desktop/gizard $ ./giz --info
Portage 2.1.4.4 (embedded, gcc-4.2.3, unavailable, 2.6.23-hardened-r7
x86_64)
=================================================================
System uname: 2.6.23-hardened-r7 x86_64 Intel(R) Core(TM)2 Quad CPU @
2.66GHz
Timestamp of tree: Tue, 06 May 2008 16:04:01 +0000
app-shells/bash: 3.2_p17-r1
dev-lang/python: 2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="arm ~arm"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -pipe -I/home/solar/Desktop/gizard/usr/include
-I/usr/armv5te-softfloat-linux-gnueabi/include"
CHOST="armv5te-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/terminfo"
CXXFLAGS="-Os -pipe -I/home/solar/Desktop/gizard/usr/include
-I/usr/armv5te-softfloat-linux-gnueabi/include"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict
unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-L/home/solar/Desktop/gizard/usr/lib
-L/home/solar/Desktop/gizard/lib
-L/usr/armv5te-softfloat-linux-gnueabi/usr/lib
-L/usr/armv5te-softfloat-linux-gnueabi/lib"
MAKEOPTS="-j8"
PKGDIR="/home/solar/Desktop/gizard/packages/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--compress --force --whole-file --delete --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/solar/Desktop/gizard/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X fbdev kdrive make-symlinks minimal multicall savedconfig tslib
zlib"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG,
LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

solar [at] medi ~/Desktop/gizard $
solar [at] medi ~/Desktop/gizard $ cat giz
cd /home/solar/Desktop/gizard
sudo env PORTAGE_CONFIGROOT=$PWD/ \
emerge "$@"

solar [at] medi ~/Desktop/gizard $ cat etc/make.conf
ROOT="/home/solar/Desktop/gizard"
ARCH="arm"
CHOST="armv5te-softfloat-linux-gnueabi"
CBUILD="x86_64-pc-linux-gnu"
SYS_ROOT=/usr/${CHOST}
CFLAGS="-Os -pipe -I${ROOT}/usr/include -I${SYS_ROOT}/include"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-L${ROOT}/usr/lib -L${ROOT}/lib -L${SYS_ROOT}/usr/lib -L
${SYS_ROOT}/lib"
ACCEPT_KEYWORDS="arm ~arm"
USE="make-symlinks X minimal zlib kdrive tslib multicall savedconfig
fbdev"
VIDEO_CARDS="fbdev dummy"
INPUT_DEVICES="evdev keyboard mouse"
PORTDIR_OVERLAY="/usr/portage/local/"
MAKEOPTS="-j8"
FEATURES="-collision-protect sandbox buildpkg"
PKGDIR=$ROOT/packages/
PORTAGE_TMPDIR=${ROOT}/tmp/

PKG_CONFIG_PATH=${ROOT}/usr/lib/pkgconfig/


The only pkgs I've got to work so far include
solar [at] medi ~/Desktop/gizard $ ls packages/All/
alsa-headers-1.0.16.tbz2 dos2unix-3.1-r2.tbz2
iputils-20071127-r1.tbz2 make-3.81.tbz2
sysfsutils-2.1.0.tbz2
audiofile-0.2.6-r3.tbz2 dosfstools-2.11-r4.tbz2
kbproto-1.0.3.tbz2 miscfiles-1.4.2.tbz2
sysvinit-2.86-r10.tbz2
autoconf-wrapper-5.tbz2 encodings-1.0.2.tbz2
libICE-1.0.4.tbz2 mktemp-1.5.tbz2
tar-1.20.tbz2
automake-wrapper-3-r1.tbz2 ethtool-6.tbz2
libSM-1.0.3.tbz2 ncurses-5.6-r2.tbz2
timezone-data-2008b.tbz2
baselayout-1.12.12.tbz2 eventlog-0.2.7.tbz2
libXau-1.0.3.tbz2 net-tools-1.60_p20071202044231-r1.tbz2
tree-1.5.1.1.tbz2
bc-1.06.95.tbz2 expat-2.0.1.tbz2
libXdmcp-1.0.2.tbz2 netselect-0.3-r2.tbz2
unifdef-1.20.tbz2
binutils-2.18-r1.tbz2 fbset-2.1.tbz2
libatomic_ops-1.2-r1.tbz2 oidentd-2.0.8-r1.tbz2
unzip-5.52-r2.tbz2
binutils-config-1.9-r4.tbz2 fixesproto-4.0.tbz2
libdrm-2.3.0.tbz2 openntpd-3.9_p1-r1.tbz2
util-macros-1.1.6.tbz2
build-docbook-catalog-1.2.tbz2 font-alias-1.0.1.tbz2
libevent-1.4.3.tbz2 patch-2.5.9-r1.tbz2
wakeonlan-0.41-r1.tbz2
busybox-1.10.1-r1.tbz2 fontsproto-2.0.2.tbz2
libexif-0.6.16-r1.tbz2 pax-utils-0.1.17.tbz2
wget-1.11.1.tbz2
busybox-1.10.1-r2.tbz2 freetype-2.3.5-r2.tbz2
libfontenc-1.0.4.tbz2 portage-utils-0.1.29.tbz2
which-2.19.tbz2
bzip2-1.0.5.tbz2 gawk-3.1.5-r5.tbz2
libiconv-0.tbz2 reiserfsprogs-3.6.19-r2.tbz2
wireless-tools-29.tbz2
chpax-0.7.tbz2 gcc-4.2.3.tbz2
libogg-1.1.3.tbz2 renderproto-0.9.3.tbz2
xbitmaps-1.0.1.tbz2
com_err-1.40.8.tbz2 gcc-config-1.4.0-r4.tbz2
libpaper-1.1.23.tbz2 rgb-1.0.1.tbz2
xcmiscproto-1.1.2.tbz2
cpio-2.9-r1.tbz2 gmp-4.2.2-r1.tbz2
linux-headers-2.6.25-r1.tbz2 rman-3.2.tbz2
xextproto-7.0.2.tbz2
cracklib-2.8.12.tbz2 gnu-gs-fonts-std-8.11.tbz2
lrzsz-0.12.20-r1.tbz2 rsync-3.0.2.tbz2
xf86bigfontproto-1.1.2.tbz2
cracklib-words-20080401.tbz2 gnuconfig-20080123.tbz2
lzo-2.02-r1.tbz2 sandbox-1.2.18.1-r2.tbz2
xproto-7.0.12.tbz2
damageproto-1.1.0.tbz2 gperf-3.0.3.tbz2
m4-1.4.11.tbz2 sed-4.1.5-r1.tbz2
xtrans-1.0.4.tbz2
debianutils-2.28.4.tbz2 grep-2.5.1a-r1.tbz2
mailbase-1.tbz2 shadow-4.1.1.tbz2
yacc-1.9.1-r3.tbz2
dhcpcd-3.2.3.tbz2 gzip-1.3.12-r1.tbz2
mailwrapper-0.2.1.tbz2 smtptools-0.2.3.tbz2
zlib-1.2.3-r1.tbz2
dnsmasq-2.41.tbz2 hotplug-base-20040401.tbz2
mailx-support-20060102-r1.tbz2 strace-4.5.16-r1.tbz2
solar [at] medi ~/Desktop/gizard $


--
gentoo-embedded [at] lists mailing list


vapier at gentoo

May 6, 2008, 10:06 PM

Post #8 of 19 (7234 views)
Permalink
Re: GCC 4.3 fails on mpfr [In reply to]

On Wednesday 07 May 2008, Ned Ludd wrote:
> On Wed, 2008-05-07 at 00:26 -0400, Mike Frysinger wrote:
> > On Tuesday 06 May 2008, Ned Ludd wrote:
> > > On Tue, 2008-05-06 at 17:24 -0400, Mike Frysinger wrote:
> > > > On Tuesday 06 May 2008, Christopher Friedt wrote:
> > > > > This is a 'chicken / egg' problem. In order to build a cross
> > > > > compiler for arch X you need mpfr compiled for arch X. In order to
> > > > > build mpfr for arch X you need a toolchain for arch X.
> > > > >
> > > > > Try building the cross-compiler without mpfr first, then build
> > > > > libmpfr, and then rebuild the cross compiler.
> > > >
> > > > you cant build gcc-4.3 without gmp and mpfr. they're hard
> > > > requirements. but they're requirements that the host system has it,
> > > > not that they are cross-compiled for the target.
> > >
> > > this might pose a problem at Gentoo as I don't think mpfr can even be
> > > cross compiled in the first place. I might be wrong but I seem to
> > > recall fighting with it in the last week using (
> > > arm-softfloat-linux-uclibc || arm*-softloat-linux-gnueabi).
> >
> > i said they are host libraries, not target libraries. gcc itself uses
> > them in order to even execute in the first place starting with gcc-4.3.
> >
> > what Christopher is probably referring to is gfortran support ... it
> > requires mpfr/gmp to be cross-compiled.
> >
> > but to address your question, they both do cross-compile fine. i just
> > did it two days ago for mingw32 target so that i could build up a
> > gfortran cross-compiler.
>
> Really? I'm getting (just reproduced on a few crossdev install)
>
>
> Notice the LDFLAGS.. yet still.
>
> armv5te-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/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/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/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/remquo.o .libs/get_patches.o -L/home/solar/Desktop/gizard/usr/lib
> -L/home/solar/Desktop/gizard/lib
> -L/usr/armv5te-softfloat-linux-gnueabi/usr/lib
> -L/usr/armv5te-softfloat-linux-gnueabi/lib /usr/lib/libgmp.so -Wl,-soname
> -Wl,libmpfr.so.1 -o .libs/libmpfr.so.1.1.1 /usr/lib/libgmp.so: file not
> recognized: File format not recognized collect2: ld returned 1 exit status
> make[1]: *** [libmpfr.la] Error 1
> make[1]: Leaving directory
> `/home/solar/Desktop/gizard/tmp/portage/dev-libs/mpfr-2.3.1/work/mpfr-2.3.1
>' make: *** [all-recursive] Error 1

looks like libtool hate, probably due to the stupid -rpath /usr/lib given to
the libtool link line. i bet if you deleted /usr/lib/libgmp.la it'd work ...
-mike
Attachments: signature.asc (0.81 KB)


Dilip.Ramesh at kpitcummins

May 7, 2008, 12:03 AM

Post #9 of 19 (7233 views)
Permalink
RE: GCC 4.3 fails on mpfr [In reply to]

>> you cant build gcc-4.3 without gmp and mpfr. they're hard
requirements. >> but they're requirements that the host system has it,
not that they are
>> cross-compiled for the target.

Mpfr librarires was not installed on my host system. I have now
installed it using 'emerge mpfr' [mpfr-2.3.1]. I have successfully built
cross compiler toolchain up to gcc stage 1 (using crossdev), currently
glibc is getting built and will update once it completes final toolchain
building.

Thanks and regards,
Dilip

-----Original Message-----
From: Mike Frysinger [mailto:vapier [at] gentoo]
Sent: Wednesday, May 07, 2008 2:55 AM
To: gentoo-embedded [at] lists
Cc: Christopher Friedt
Subject: Re: [gentoo-embedded] GCC 4.3 fails on mpfr

On Tuesday 06 May 2008, Christopher Friedt wrote:
> This is a 'chicken / egg' problem. In order to build a cross compiler
> for arch X you need mpfr compiled for arch X. In order to build mpfr
for
> arch X you need a toolchain for arch X.
>
> Try building the cross-compiler without mpfr first, then build
libmpfr,
> and then rebuild the cross compiler.

you cant build gcc-4.3 without gmp and mpfr. they're hard requirements.
but
they're requirements that the host system has it, not that they are
cross-compiled for the target.
-mike
--
gentoo-embedded [at] lists mailing list


Dilip.Ramesh at kpitcummins

May 7, 2008, 1:57 AM

Post #10 of 19 (7229 views)
Permalink
RE: GCC 4.3 fails on mpfr [In reply to]

Hi,
I am able to successfully build cross compiler toolchain using gcc-4.3
after installing mpfr-2.3.1 libraries on host system.
Thank you for all your help and support.

Regards,
Dilip

-----Original Message-----
From: Mike Frysinger [mailto:vapier [at] gentoo]
Sent: Wednesday, May 07, 2008 9:56 AM
To: gentoo-embedded [at] lists
Cc: Ned Ludd; Christopher Friedt
Subject: Re: [gentoo-embedded] GCC 4.3 fails on mpfr

On Tuesday 06 May 2008, Ned Ludd wrote:
> On Tue, 2008-05-06 at 17:24 -0400, Mike Frysinger wrote:
> > On Tuesday 06 May 2008, Christopher Friedt wrote:
> > > This is a 'chicken / egg' problem. In order to build a cross
compiler
> > > for arch X you need mpfr compiled for arch X. In order to build
mpfr
> > > for arch X you need a toolchain for arch X.
> > >
> > > Try building the cross-compiler without mpfr first, then build
libmpfr,
> > > and then rebuild the cross compiler.
> >
> > you cant build gcc-4.3 without gmp and mpfr. they're hard
requirements.
> > but they're requirements that the host system has it, not that they
are
> > cross-compiled for the target.
>
> this might pose a problem at Gentoo as I don't think mpfr can even be
> cross compiled in the first place. I might be wrong but I seem to
recall
> fighting with it in the last week using ( arm-softfloat-linux-uclibc
||
> arm*-softloat-linux-gnueabi).

i said they are host libraries, not target libraries. gcc itself uses
them in
order to even execute in the first place starting with gcc-4.3.

what Christopher is probably referring to is gfortran support ... it
requires
mpfr/gmp to be cross-compiled.

but to address your question, they both do cross-compile fine. i just
did it
two days ago for mingw32 target so that i could build up a gfortran
cross-compiler.
-mike
--
gentoo-embedded [at] lists mailing list


solar at gentoo

May 7, 2008, 7:04 AM

Post #11 of 19 (7225 views)
Permalink
Re: GCC 4.3 fails on mpfr [In reply to]

On Wed, 2008-05-07 at 01:06 -0400, Mike Frysinger wrote:
> On Wednesday 07 May 2008, Ned Ludd wrote:
> .... Error 1

> looks like libtool hate, probably due to the stupid -rpath /usr/lib given to
> the libtool link line. i bet if you deleted /usr/lib/libgmp.la it'd work ...

The joys of cross-compiles..

Had to move libgmp.so out of the way so libtool did not find it
in /usr/lib64 but rather the $ROOT/usr/lib. After that mpfr cross-merged
without problem.

--
gentoo-embedded [at] lists mailing list


vapier at gentoo

May 7, 2008, 7:27 AM

Post #12 of 19 (7234 views)
Permalink
Re: GCC 4.3 fails on mpfr [In reply to]

On Wednesday 07 May 2008, Dilip Malinur Ramesh wrote:
> Mpfr librarires was not installed on my host system. I have now
> installed it using 'emerge mpfr' [mpfr-2.3.1]. I have successfully built
> cross compiler toolchain up to gcc stage 1 (using crossdev), currently
> glibc is getting built and will update once it completes final toolchain
> building.

this is due to crossdev using --nodeps. historically this was to keep random
packages bleeding in, but i wonder if it's necessary anymore.
-mike
Attachments: signature.asc (0.81 KB)


smarras.bsc at gmail

Feb 9, 2009, 5:40 AM

Post #13 of 19 (6574 views)
Permalink
Re: GCC 4.3 fails on mpfr [In reply to]

Hi there, sorry for writing again on this issue, but I have not been able to
solve the problem with the configure command on GCC 4.3 due to the
dependency on MPFR and GMP.

I have them both installed correctly and the headers are in their own build
directories, while the library files (*.a) are in /usr/local/lib.
This verified, I tried different options among which the following,

../configure --with-gmp=/Users/simone/myApplications/gmp-4.2.4/
--with-gmp-lib=/usr/local/lib/libgmp.a
--with-mpfr=/Users/simone/myApplications/mpfr-2.4.0/
--with-mpfr-lib=/usr/local/lib/libmpfr.a

but obtaining again the same error from the configure call:

configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.


Why is this happening? What is it that I am not telling the configure to do
?

Thank you in advance
S.M.






dilip_ wrote:
>
> Hi,
> I am trying to build a cross compiler toolchain using 'crossdev 'and the
> gcc source version is gcc-4.3.0
>
> I am getting following errors while configuring gcc-stage1,
> {{
> checking for correct version of gmp.h... yes
> checking for correct version of mpfr.h... no
> configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
> Try the --with-gmp and/or --with-mpfr options to specify their
> locations.
> Copies of these libraries' source code can be found at their respective
> hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
> See also http://gcc.gnu.org/install/prerequisites.html for additional
> info.
> If you obtained GMP and/or MPFR from a vendor distribution package, make
> sure that you have installed both the libraries and the header files.
> They may be located in separate packages.
>
> !!! ERROR: cross-sh4-unknown-linux-gnu/gcc-4.3.0 failed.
> Call stack:
> }}
>
> I understand the pre-requisite for gcc-4.3 is mpfr 4.1+ but I am not
> sure how to pass '--with-mpfr' configure options to gcc.
>
> Any help will be highly appreciated
>
> With kind regards,
> Dilip
> --
> gentoo-embedded [at] lists mailing list
>
>
>

--
View this message in context: http://www.nabble.com/GCC-4.3-fails-on-mpfr-tp17081314p21911962.html
Sent from the gentoo-embedded mailing list archive at Nabble.com.


vapier at gentoo

Feb 9, 2009, 12:25 PM

Post #14 of 19 (6569 views)
Permalink
Re: GCC 4.3 fails on mpfr [In reply to]

On Monday 09 February 2009 08:40:06 bscuser wrote:
> Hi there, sorry for writing again on this issue, but I have not been able
> to solve the problem with the configure command on GCC 4.3 due to the
> dependency on MPFR and GMP.

just emerge mpfr and gmp

> I have them both installed correctly and the headers are in their own build
> directories, while the library files (*.a) are in /usr/local/lib.

why ? the ones you `emerge` should work fine.
-mike


smarras.bsc at gmail

Feb 10, 2009, 12:39 AM

Post #15 of 19 (6565 views)
Permalink
Re: GCC 4.3 fails on mpfr [In reply to]

Hi there, thanks for replying. How do I merge them? What does it exactly
mean? when I command "mergelib mpfr" I obtain "usage: /usr/bin/mergelib
to-library from-library [object-filename-prefix]" where I do not know what
the to-library would be in this case.

I am sorry about the questions, but I am a beginner in all this.
I hope you can help

Best
S.M.



Mike Frysinger wrote:
>
> On Monday 09 February 2009 08:40:06 bscuser wrote:
>> Hi there, sorry for writing again on this issue, but I have not been able
>> to solve the problem with the configure command on GCC 4.3 due to the
>> dependency on MPFR and GMP.
>
> just emerge mpfr and gmp
>
>> I have them both installed correctly and the headers are in their own
>> build
>> directories, while the library files (*.a) are in /usr/local/lib.
>
> why ? the ones you `emerge` should work fine.
> -mike
>
>
>

--
View this message in context: http://www.nabble.com/GCC-4.3-fails-on-mpfr-tp17081314p21929616.html
Sent from the gentoo-embedded mailing list archive at Nabble.com.


vapier at gentoo

Feb 10, 2009, 11:41 AM

Post #16 of 19 (6557 views)
Permalink
Re: GCC 4.3 fails on mpfr [In reply to]

On Tuesday 10 February 2009 03:39:43 bscuser wrote:
> Mike Frysinger wrote:
> > On Monday 09 February 2009 08:40:06 bscuser wrote:
> >> Hi there, sorry for writing again on this issue, but I have not been
> >> able to solve the problem with the configure command on GCC 4.3 due to
> >> the dependency on MPFR and GMP.
> >
> > just emerge mpfr and gmp
>
> Hi there, thanks for replying. How do I merge them? What does it exactly
> mean? when I command "mergelib mpfr" I obtain "usage: /usr/bin/mergelib
> to-library from-library [object-filename-prefix]" where I do not know what
> the to-library would be in this case.

this is Gentoo so the verb "emerge" means to run the program "emerge" and
install the packages indicated

btw, please do not top post
-mike
Attachments: signature.asc (0.82 KB)


smarras.bsc at gmail

Feb 10, 2009, 12:56 PM

Post #17 of 19 (6553 views)
Permalink
Re: GCC 4.3 fails on mpfr [In reply to]

Mike Frysinger wrote:
>
> On Tuesday 10 February 2009 03:39:43 bscuser wrote:
>> Mike Frysinger wrote:
>> > On Monday 09 February 2009 08:40:06 bscuser wrote:
>> >> Hi there, sorry for writing again on this issue, but I have not been
>> >> able to solve the problem with the configure command on GCC 4.3 due to
>> >> the dependency on MPFR and GMP.
>> >
>> > just emerge mpfr and gmp
>>
>> Hi there, thanks for replying. How do I merge them? What does it exactly
>> mean? when I command "mergelib mpfr" I obtain "usage: /usr/bin/mergelib
>> to-library from-library [object-filename-prefix]" where I do not know
>> what
>> the to-library would be in this case.
>
> this is Gentoo so the verb "emerge" means to run the program "emerge" and
> install the packages indicated
>
> btw, please do not top post
> -mike
>
> thank you very much; I will work at it and will post the outcome; thanks a
> gain
> S.
>

--
View this message in context: http://www.nabble.com/GCC-4.3-fails-on-mpfr-tp17081314p21942067.html
Sent from the gentoo-embedded mailing list archive at Nabble.com.


b33fc0d3 at gentoo

Feb 11, 2009, 2:22 AM

Post #18 of 19 (6552 views)
Permalink
Re: GCC 4.3 fails on mpfr [In reply to]

On Tue, 2009-02-10 at 12:56 -0800, bscuser wrote:
> > btw, please do not top post
> > -mike
> >
> > thank you very much; I will work at it and will post the outcome; thanks a
> > gain
> > S.
> >

Well at least he didn't top post =)

--
Ahmed Ammar (b33fc0d3 [at] gentoo.org)


vapier at gentoo

Feb 11, 2009, 10:47 AM

Post #19 of 19 (6548 views)
Permalink
Re: GCC 4.3 fails on mpfr [In reply to]

On Wednesday 11 February 2009 05:22:17 Ahmed Ammar wrote:
> On Tue, 2009-02-10 at 12:56 -0800, bscuser wrote:
> > > btw, please do not top post
> > > -mike
> > >
> > > thank you very much; I will work at it and will post the outcome;
> > > thanks a gain
> > > S.
>
> Well at least he didn't top post =)

one step at a time ;)
-mike

Gentoo embedded RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.