Skip to contentSkip to conversation

{buildroot 0004384]: GCC 4.3.1 fails with cannot compute suffix of object files

Buildroot Maxim Grigoriev 3 participants 6 messages Jan 30, 2009 – Feb 15, 2009

lore
Share & tools
lore
#0 lore raw

There is a buildroot issue 0004384:

    http://lists.uclibc.org/pipermail/buildroot/2008-September/010792.html

I understand it's a generic architecture-independent GCC 4.3.1+ compiler problem
mentioned several times in different places ( e.g. bugzilla PRs 35577, 35693 ).

On the buildroot mailing, list I found a reference to the patch

gcc-4.3.1-compile.patch

introduced by "antezedens" somewhere around 09-10-08. But, I was not able to find this patch. Looks like it was withdrawn.

* * * * *

My question is: is this build failure supposed to be fixed on the BUILDROOT makefiles/scripts level ? Or, setting

LD_LIBRARY_PATH=$PWD/toolchain_build_arm/mpfr/lib:$LD_LIBRARY_PATH

from the top of buildroot tree is assumed to be a standard setup for the buildroot build ? Is it documented anywhere ?

Thanks,
-- Maxim

#1 lore raw

Is this the right mailing list to ask questions about BUILDROOT ?

Should I ask some official maintainers directly instead ?

If there is a communication policy described somewhere, please, refer me to it.

Thanks,
-- Maxim

Quoted 37 lines · Maxim Grigoriev

There is a buildroot issue 0004384:

    http://lists.uclibc.org/pipermail/buildroot/2008-September/010792.html

I understand it's a generic architecture-independent GCC 4.3.1+ compiler problem
mentioned several times in different places ( e.g. bugzilla PRs 35577, 35693 ).

On the buildroot mailing, list I found a reference to the patch

gcc-4.3.1-compile.patch

introduced by "antezedens" somewhere around 09-10-08. But, I was not able to find this patch. Looks like it was withdrawn.

* * * * *

My question is: is this build failure supposed to be fixed on the BUILDROOT makefiles/scripts level ? Or, setting

LD_LIBRARY_PATH=$PWD/toolchain_build_arm/mpfr/lib:$LD_LIBRARY_PATH

from the top of buildroot tree is assumed to be a standard setup for the buildroot build ? Is it documented anywhere ?

Thanks,
-- Maxim

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#2 lore raw

I have the same problem. Build fails and I can not find the patchfile. :(

I would be very glad, too hear something regarding this issue.

S0l0
-------- Original-Nachricht --------

Quoted 61 lines

Datum: Sun, 01 Feb 2009 11:05:53 -0800
Von: Maxim Grigoriev <[email protected]>
An: Maxim Grigoriev <[email protected]>
CC: buildroot at uclibc.org
Betreff: Re: [Buildroot] {buildroot 0004384]: GCC 4.3.1 fails with cannot compute suffix of object files

Is this the right mailing list to ask questions about BUILDROOT ?

Should I ask some official maintainers directly instead ?

If there is a communication policy described somewhere, please, refer me to it.

Thanks,
-- Maxim

Quoted 3 lines · Maxim Grigoriev

There is a buildroot issue 0004384:

http://lists.uclibc.org/pipermail/buildroot/2008-September/010792.html

Quoted 29 lines

I understand it's a generic architecture-independent GCC 4.3.1+ compiler problem
mentioned several times in different places ( e.g. bugzilla PRs 35577, 35693 ).

On the buildroot mailing, list I found a reference to the patch

gcc-4.3.1-compile.patch

introduced by "antezedens" somewhere around 09-10-08. But, I was not able to find this patch. Looks like it was withdrawn.

* * * * *

My question is: is this build failure supposed to be fixed on the BUILDROOT makefiles/scripts level ? Or, setting

LD_LIBRARY_PATH=$PWD/toolchain_build_arm/mpfr/lib:$LD_LIBRARY_PATH

from the top of buildroot tree is assumed to be a standard setup for the buildroot build ? Is it documented anywhere ?

Thanks,
-- Maxim

Quoted 5 lines

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Signature · 1 line
Psssst! Schon vom neuen GMX MultiMessenger geh?rt? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01
#3 lore raw

I think setting LD_LIBRARY_PATH as an extra step is unacceptable, even though, it works nice.

I'm working on this. I will definitely share my results, when I have a reasonable solution.

-- Maxim

Quoted 75 lines · S0L0 at gmx-topmail.de wrote:

I have the same problem. Build fails and I can not find the patchfile. :(

I would be very glad, too hear something regarding this issue.

S0l0
-------- Original-Nachricht --------

Quoted 66 lines

Datum: Sun, 01 Feb 2009 11:05:53 -0800
Von: Maxim Grigoriev <[email protected]>
An: Maxim Grigoriev <[email protected]>
CC: buildroot at uclibc.org
Betreff: Re: [Buildroot] {buildroot 0004384]: GCC 4.3.1 fails with cannot compute suffix of object files

Is this the right mailing list to ask questions about BUILDROOT ?

Should I ask some official maintainers directly instead ?

If there is a communication policy described somewhere, please, refer me to it.

Thanks,
-- Maxim

Quoted 4 lines · Maxim Grigoriev

There is a buildroot issue 0004384:

http://lists.uclibc.org/pipermail/buildroot/2008-September/010792.html

Quoted 28 lines

I understand it's a generic architecture-independent GCC 4.3.1+ compiler problem
mentioned several times in different places ( e.g. bugzilla PRs 35577, 35693 ).

On the buildroot mailing, list I found a reference to the patch

gcc-4.3.1-compile.patch

introduced by "antezedens" somewhere around 09-10-08. But, I was not able to find this patch. Looks like it was withdrawn.

* * * * *

My question is: is this build failure supposed to be fixed on the BUILDROOT makefiles/scripts level ? Or, setting

LD_LIBRARY_PATH=$PWD/toolchain_build_arm/mpfr/lib:$LD_LIBRARY_PATH

from the top of buildroot tree is assumed to be a standard setup for the buildroot build ? Is it documented anywhere ?

Thanks,
-- Maxim

Quoted 6 lines

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#4 lore raw

Hello SOlO and everybody,

Quoted 3 lines
Quoted 3 lines

I would be very glad, too hear something regarding this issue.

S0l0

The best solution I was able to find is switching to static linkage of GMP/MPFR for GCC 4.3.x compilers.

It worked out pretty nicely for me.

Here is the patch :

gmp/gmp.mk 2009-02-03 18:07:44.643402000 -0800 renamed from gmp/gmp.mk.orig 2009-01-21 15:43:41.788558000 -0800 +1 -1
diff -u package/gmp/gmp.mk.orig package/gmp/gmp.mk
@@ -83,7 +83,7 @@
                --prefix="$(GMP_HOST_DIR)" \
                --build=$(GNU_HOST_NAME) \
                --host=$(GNU_HOST_NAME) \
-               --enable-shared \
+               --disable-shared \
                --enable-static \
                $(DISABLE_NLS) \
        )
mpfr/mpfr.mk 2009-02-03 17:58:09.369092000 -0800 renamed from mpfr/mpfr.mk.orig 2009-01-21 15:43:42.259089000 -0800 +1 -1
diff -u package/mpfr/mpfr.mk.orig package/mpfr/mpfr.mk
@@ -97,7 +97,7 @@
                --prefix="$(MPFR_HOST_DIR)" \
                --build=$(GNU_HOST_NAME) \
                --host=$(GNU_HOST_NAME) \
-               --enable-shared \
+               --disable-shared \
                --enable-static \
                --with-gmp=$(GMP_HOST_DIR) \
                $(DISABLE_NLS) \

-- Maxim

Quoted 85 lines · Maxim Grigoriev

I think setting LD_LIBRARY_PATH as an extra step is unacceptable, even though, it works nice.

I'm working on this. I will definitely share my results, when I have a reasonable solution.

-- Maxim

Quoted 74 lines · S0L0 at gmx-topmail.de wrote:

I have the same problem. Build fails and I can not find the patchfile. :(

I would be very glad, too hear something regarding this issue.

S0l0
-------- Original-Nachricht --------

Quoted 64 lines

Datum: Sun, 01 Feb 2009 11:05:53 -0800
Von: Maxim Grigoriev <[email protected]>
An: Maxim Grigoriev <[email protected]>
CC: buildroot at uclibc.org
Betreff: Re: [Buildroot] {buildroot 0004384]: GCC 4.3.1 fails with cannot compute suffix of object files

Is this the right mailing list to ask questions about BUILDROOT ?

Should I ask some official maintainers directly instead ?

If there is a communication policy described somewhere, please, refer me to it.

Thanks,
-- Maxim

Quoted 3 lines · Maxim Grigoriev

There is a buildroot issue 0004384:

http://lists.uclibc.org/pipermail/buildroot/2008-September/010792.html

Quoted 27 lines

I understand it's a generic architecture-independent GCC 4.3.1+ compiler
problem
mentioned several times in different places ( e.g. bugzilla PRs 35577, 35693 ).

On the buildroot mailing, list I found a reference to the patch

gcc-4.3.1-compile.patch
introduced by "antezedens" somewhere around 09-10-08. But, I was not able to find this patch. Looks like it was withdrawn.

* * * * *

My question is: is this build failure supposed to be fixed on the BUILDROOT makefiles/scripts level ? Or, setting LD_LIBRARY_PATH=$PWD/toolchain_build_arm/mpfr/lib:$LD_LIBRARY_PATH

from the top of buildroot tree is assumed to be a standard setup for the buildroot build ? Is it documented anywhere ?

Thanks,
-- Maxim

Quoted 5 lines

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#5 lore raw

Hi maxim and jacmet,

Quoted 16 lines · Maxim Grigoriev

diff -u package/gmp/gmp.mk.orig package/gmp/gmp.mk

gmp/gmp.mk 2009-02-03 18:07:44.643402000 -0800 renamed from gmp/gmp.mk.orig 2009-01-21 15:43:41.788558000 -0800 +1 -1
@@ -83,7 +83,7 @@
                --prefix="$(GMP_HOST_DIR)" \
                --build=$(GNU_HOST_NAME) \
                --host=$(GNU_HOST_NAME) \
-               --enable-shared \
+               --disable-shared \
                --enable-static \
                $(DISABLE_NLS) \
        )

diff -u package/mpfr/mpfr.mk.orig package/mpfr/mpfr.mk

mpfr/mpfr.mk 2009-02-03 17:58:09.369092000 -0800

Quoted 10 lines
mpfr/mpfr.mk 2009-02-03 17:58:09.369092000 -0800 renamed from mpfr/mpfr.mk.orig 2009-01-21 15:43:42.259089000 -0800 +1 -2
@@ -97,7 +97,7 @@
                --prefix="$(MPFR_HOST_DIR)" \
                --build=$(GNU_HOST_NAME) \
                --host=$(GNU_HOST_NAME) \
-               --enable-shared \
+               --disable-shared \
                --enable-static \
                --with-gmp=$(GMP_HOST_DIR) \
                $(DISABLE_NLS) \
 
-- Maxim

I've confirmed this patch (and related changes) work for me with GCC 4.3.2 for MIPS and Ubuntu 8.04.01. Thanks for your work and for taking care of them before 2009.02 is out, Maxim and Peter!

Shinya