This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: undefined reference to C++ constructs in libppl when linking cc1-dummy.exe


I ran the build again with "Build shared companion libraries" checked, but now 
it complains about not finding GMP version 4.1.3 duing the ppl configure stage.? 
After looking through the mail archives I see that others have this problem 
also, but I did not see a definitive solution.? Just for grins I decided to try 
a canadian cross compile from my Ubuntu 10.04 system where build=x86-linux, 
host=mingw and target=powerpc-linux-uclibc.? During the first toolchain build 
iteration where build/host=x86-linux, target=mingw I encountered the same ppl 
configure error as my cygwin host?build: "configure: error: Cannot find GMP 
version 4.1.3 or higher."? In one of the previous emails someone mentioned that 
it was related to the version of libstcc++.?? On my Ubuntu system my 
/usr/lib/libstdc++ is pointing to libstdc++.so.6.0.13.

config for my build/host=cygwin target=powerpc-linux-uclibc
$ ct-ng show-config
powerpc-860-linux-uclibc? [l? ]
??? OS???????????? : linux-2.6.34.1
??? Companion libs : gmp-4.3.2 mpfr-3.0.0 ppl-0.10.2 cloog-ppl-0.15.9
??? binutils?????? : binutils-2.20.1
??? C compiler???? : gcc-4.4.3 (C,C++)
??? C library????? : uClibc-0.9.30.2
??? Tools????????? : gdb-6.8 strace-4.5.19

config for my build/host=x86-linux target=mingw
i386-unknown-mingw32? [l X]
??? OS???????????? : mingw32
??? Companion libs : gmp-5.0.1 mpfr-3.0.0 ppl-0.10.2 cloog-ppl-0.15.9
??? binutils?????? : binutils-2.20.1
??? C compiler???? : gcc-4.4.3 (C,C++)
??? C library????? : mingw
??? Tools????????? :

Doug





----- Original Message ----
From: Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
To: crossgcc@sourceware.org
Cc: Doug Crawford <dcraw101@yahoo.com>
Sent: Tue, August 31, 2010 5:00:59 PM
Subject: Re: undefined reference to C++ constructs in libppl when linking 
cc1-dummy.exe

Doug, All,

On Wednesday 01 September 2010 00:25:47 Doug Crawford wrote:
> I am not sure I see the problem you are thinking about with GCC 4.5.? my 
> crosstool-ng config is setup to build a GCC 4.4.3 toolchain.? I am not using 
>any 
>
> of the experimental features.? I will try again with the shared library 
> option?for the companion libraries.? Is it possible to build gcc without ppl or 
>
> cloog dependencies?

For companion libraries:
- GMP and MPFR *are* mandatory to build the Fortran frontend in any gcc
? version (as far as I know)
- GMP and MPFR *are* mandatory starting with gcc-4.3, to build *all*
? the frontends
- PPL and CLooG/PPL are not mandatory for any version of gcc; if they are
? available, gcc-4.4+ will use them for loop-optimisations (loop-unrolling,
? loop-inverting...)
- MPC *is* marked mandatory for gcc-4.5+ on the pre-requisite page.
- libelf is not mandatory for any version of gcc; if it is available,
? gcc-4.5+ will use it for LTO (Link Time Optimisation).

So, I've taken the stance to make all those madatory, as they enable
quite a bunch of optimisations. Obviously, we could get rid of PPL and
CLooG/PPL, but I'd rather fix the build than remove a feature because
it breaks on one (probably minor) system.

And if someone is willing to fix it, then I'm happy to see patches! ;-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|? Yann E. MORIN? | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software? Designer | \ / CAMPAIGN? ? |? ___? ? ? ? ? ? ? |
| +33 223 225 172 `------------.-------:? X? AGAINST? ? ? |? \e/? There is no? |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL? ? |? v? conspiracy.? |
'------------------------------^-------^------------------^--------------------'




--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]