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: [patch 07/10] Fix PPL build for MINGW


Yann, Johannes, All

2010/7/14 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>:
> Remy, Bart, Johannes, All,
>
> On Monday 12 July 2010 23:13:50 Johannes Stezenbach wrote:
>> The patches/ppl/0.10.2/100-update-for-mingw-build.patch
>> added by this changeset breaks it for me:
>>
>> [ALL ?] ? ?checking how to link with libgmp... -lgmp
>> [ALL ?] ? ?checking how to link with libgmpxx... /home/js/tmp/toolchain/build/targets/arm-unknown-linux-uclibcgnueabi/build/static/lib/libgmpxx.a -lgmp
>> [ALL ?] ? ?checking for the GMP library version 4.1.3 or above... no
>> [ERROR] ? ?configure: error: Cannot find GMP version 4.1.3 or higher.
>>
>> Due to the patch the ppl configure script looks for
>> /home/js/tmp/toolchain/build/targets/arm-unknown-linux-uclibcgnueabi/build/static/lib/libgmp.so.a
>> instead of .../libgmp.a.
>
> Remy and Bart, what was that patch supposed to fix? The description is
> too vague for me to understand what it was trying to do.
>
> I guess at the time you built your patch, we were still using shared libs
> with the wrapper, but now the default is to use static libs with no
> wrapper (although we can still use shared libs if the user wants it,
> but it is going away ASAP).
>
> I'm reverting that for now. If you still need to fix your issue, I'm ready
> to add a better patch, but really I don't see what it's trying to fix.

Yes, the patch was from the time the companion libs where build shared.
We where trying to build our tool-chains with the gcc 4.4.3 at that time which
failed due to several errors, of which this fixed one. Because of
these error we kept using gcc 4.3.4,

I pulled the current crosstool tree yesterday and did some tests with
our configurations and gcc 4.4.3.
I was able to build a working tool-chain, so I believe the patch is no
longer needed when building the companion libs
statically, however I still needed to patch the build of cloog which
failed to link against libstdc++.

I attached a patch which fixed the problem (for me)


> 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. ?|
> '------------------------------^-------^------------------^--------------------'
>
>
>

Greeting,
Bart vdr. Meulen
Use with-host-libstdcxx when building Cloog

When building the Cloog companion library the option
with-host-libstdcxx needs to be set, otherwise
both cloog and gcc fail to link.

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>

diff -r 5754b264c657 -r bfef9cbb3699 scripts/build/cc/gcc.sh
--- a/scripts/build/cc/gcc.sh	Sun Jul 18 11:19:29 2010 +0200
+++ b/scripts/build/cc/gcc.sh	Sun Jul 18 11:20:01 2010 +0200
@@ -171,6 +171,7 @@
     if [ "${CT_CC_GCC_USE_PPL_CLOOG}" = "y" ]; then
         extra_config+=("--with-ppl=${CT_COMPLIBS_DIR}")
         extra_config+=("--with-cloog=${CT_COMPLIBS_DIR}")
+	extra_config+=("--with-host-libstdcxx=-lstdc++")
     fi
     if [ "${CT_CC_GCC_USE_MPC_LIBELF}" = "y" ]; then
         extra_config+=("--with-mpc=${CT_COMPLIBS_DIR}")
@@ -351,6 +352,7 @@
     if [ "${CT_CC_GCC_USE_PPL_CLOOG}" = "y" ]; then
         extra_config+=("--with-ppl=${CT_COMPLIBS_DIR}")
         extra_config+=("--with-cloog=${CT_COMPLIBS_DIR}")
+	extra_config+=("--with-host-libstdcxx=-lstdc++")
     fi
     if [ "${CT_CC_GCC_USE_MPC_LIBELF}" = "y" ]; then
         extra_config+=("--with-mpc=${CT_COMPLIBS_DIR}")
diff -r 5754b264c657 -r bfef9cbb3699 scripts/build/companion_libs/cloog.sh
--- a/scripts/build/companion_libs/cloog.sh	Sun Jul 18 11:19:29 2010 +0200
+++ b/scripts/build/companion_libs/cloog.sh	Sun Jul 18 11:20:01 2010 +0200
@@ -56,8 +56,8 @@
         cloog_opts+=( --enable-shared --disable-static )
     else
         cloog_opts+=( --disable-shared --enable-static )
-        cloog_LDFLAGS='-lstdc++'
     fi
+    cloog_opts+=( --with-host-libstdcxx=-lstdc++ )
 
     CFLAGS="${CT_CFLAGS_FOR_HOST}"              \
     LDFLAGS="${cloog_LDFLAGS}"                  \
--
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]