Skip to contentSkip to conversation

gcc-error with latest buildroot

Buildroot Marco Glatz 3 participants 12 messages Dec 26, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

hello,

i'm trying to make a toolchain using latest buildroot, but when compiling gcc i get this error:

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.2+. 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.
make: *** [/devel/buildroot/output/build/gcc-4.4.2-target/.configured] Fehler 1

regards,
marco

#1 lore raw
Quoted 8 lines · Marco Glatz

hello,

i'm trying to make a toolchain using latest buildroot, but when compiling gcc i get this error:

checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no

This problem shipped in 2009.11 also -
Fails even if mpfr is put into the GCC tree -

Looks like it might be tied in with the logic of building Fortran - (GCC once only used mpfr on the Fortran builds).
Haven't had time for further testing myself.

There is what might be a related bug report already posted.

Mike

Quoted 20 lines

configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+. 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.
make: *** [/devel/buildroot/output/build/gcc-4.4.2-target/.configured] Fehler 1

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

#2 lore raw

Am Samstag, 26. Dezember 2009 15:08:53 schrieb Michael S. Zick:

Quoted 9 lines · Marco Glatz
Quoted 7 lines

hello,

i'm trying to make a toolchain using latest buildroot, but when compiling gcc i get this error:

checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no

Quoted 8 lines

This problem shipped in 2009.11 also -
Fails even if mpfr is put into the GCC tree -

Looks like it might be tied in with the logic of building Fortran - (GCC once only used mpfr on the Fortran builds).
Haven't had time for further testing myself.

There is what might be a related bug report already posted.

hi,

this helped me out:

http://www.linuxquestions.org/questions/linux-from-scratch-13/i-have-an-error-
building-gcc-requires-gmp-4.1-and-mpfr-2.3.0.-690426/

so i put gmp and mpfr directories in the gcc-folder in the output/toolchain- directory. then it compiled. later when linking there were a lot of errors not finding gmp-related functions, so i put again mpfr and gmp in output/build/gcc- x-x-target directory. but that didn't help, still getting lot of undefined reference to __gmpz_* functions.

all the pages i found on google said you should configure --with-mpfr=... and --with-gmp=....., and there are options fpr this in the makefiles, but they do net get filled.

marco

#3 lore raw
Quoted 33 lines · Marco Glatz

Am Samstag, 26. Dezember 2009 15:08:53 schrieb Michael S. Zick:

Quoted 9 lines · Marco Glatz
Quoted 7 lines

hello,

i'm trying to make a toolchain using latest buildroot, but when compiling gcc i get this error:

checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no

Quoted 8 lines

This problem shipped in 2009.11 also -
Fails even if mpfr is put into the GCC tree -

Looks like it might be tied in with the logic of building Fortran - (GCC once only used mpfr on the Fortran builds).
Haven't had time for further testing myself.

There is what might be a related bug report already posted.

hi,

this helped me out:

http://www.linuxquestions.org/questions/linux-from-scratch-13/i-have-an-error-
building-gcc-requires-gmp-4.1-and-mpfr-2.3.0.-690426/

so i put gmp and mpfr directories in the gcc-folder in the output/toolchain- directory. then it compiled. later when linking there were a lot of errors not finding gmp-related functions, so i put again mpfr and gmp in output/build/gcc- x-x-target directory. but that didn't help, still getting lot of undefined reference to __gmpz_* functions.

Quoted 4 lines

all the pages i found on google said you should configure --with-mpfr=... and --with-gmp=....., and there are options fpr this in the makefiles, but they do net get filled.

When I looked at it a month or so ago (prior to 2009.11 release) - It looked to me as if filling those options where conditionalized based on building Fortran. But I have about zero Makefile knowledge.

Try enabling Fortran compiler in the build, it might "just work".

The Buildroot project uses a "tag-it, forget-it and move-on" release cycle; they aren't staffed to support anything like a mission-critical, stable release, version of Buildroot.

Mike

Quoted 8 lines

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 12 lines · Marco Glatz
Quoted 5 lines

Try enabling Fortran compiler in the build, it might "just work".

The Buildroot project uses a "tag-it, forget-it and move-on" release cycle; they aren't staffed to support anything like a mission-critical, stable release, version of Buildroot.

hi,

with fortran enabled, the --with-mpfr and --with-gmp get set, but still doesn'nt work.

Quoted 8 lines

i found this:

http://dvb-community.de/wiki/index.php/GCC-uClibC_Toolchain_erstellen

and this:

http://downloads.openwrt.org/docs/buildroot-documentation.html

Been following OpenWRT (and OpenEmbedded) for several years; I may have to switch to OpenWRT's build system myself.

I really don't need something that can build an entire distribution - But at least those projects do have more people on the maintenance staff.

Will be postponing my own decision until I finish putting full MIPS support into 2009.11 - I don't think I want to tackle the Makefile code churn here to also put that support into dev-head.

Mike

Quoted 8 lines

i will give it a try. also tried scratchbox, but that din't work either.

marco

#6 lore raw
In reply to Marco Glatz

Hello,

Le Sat, 26 Dec 2009 14:27:53 +0100,
Marco Glatz <[email protected]> a ?crit :

Quoted 4 lines

i'm trying to make a toolchain using latest buildroot, but when compiling gcc i get this error:

[/devel/buildroot/output/build/gcc-4.4.2-target/.configured] Fehler 1

Do you really need gcc on your target ?

(Note: of course this is something we should fix, but having gcc and associated development files on the target is an unusual setup, that's why it isn't widely tested)

Cheers,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
#7 lore raw
Quoted 5 lines · Thomas Petazzoni

Hello,

Le Sat, 26 Dec 2009 14:27:53 +0100,
Marco Glatz <[email protected]> a ?crit :

Quoted 7 lines
Quoted 4 lines

i'm trying to make a toolchain using latest buildroot, but when compiling gcc i get this error:

[/devel/buildroot/output/build/gcc-4.4.2-target/.configured] Fehler 1

Do you really need gcc on your target ?

__YES__

We do after-market product development by device owners here:
http://minimodding.com
and these little MIPS boxes have more than enough resources to self-host.

Quoted 4 lines

(Note: of course this is something we should fix, but having gcc and associated development files on the target is an unusual setup, that's why it isn't widely tested)

Yeah, just like sstrip, fix it or mark it broken.

Mike

Quoted 3 lines

Cheers,

Thomas

#8 lore raw
In reply to Thomas Petazzoni
Quoted 5 lines · Thomas Petazzoni

(Note: of course this is something we should fix, but having gcc and associated development files on the target is an unusual setup, that's why it isn't widely tested)

Say what?
How can you know that?

The request for a "test report" tag in the bug tracker has not yet (as of a couple of hours ago) been acted on.

So unless you have some other means of tracking user submitted test reports how can you say that something is "not widely tested"? you have no way for people to report good/bad/pass/fail/broke.

Which means the maintainer(s) have no way to know what to mark as "tested", "untested" or "broken" in a tagged release.

Or is it the Buildroot policy to throw all of the testing work onto the back of the maintainer(s)? Why should they be loaded up with that work?

Mike

Quoted 3 lines

Cheers,

Thomas

#9 lore raw

Hello,

First of all, could you please stop being aggressive and offensive ?

Le Sat, 26 Dec 2009 13:58:06 -0600, "Michael S. Zick" <[email protected]> a ?crit :

Quoted 7 lines
Quoted 4 lines

(Note: of course this is something we should fix, but having gcc and associated development files on the target is an unusual setup, that's why it isn't widely tested)

Say what?
How can you know that?

Because the feature has existed for years and until a few days/weeks ago, no one reported the issue and no one stepped in to fix it. Which means that no one was seriously using it.

Quoted 2 lines

So unless you have some other means of tracking user submitted test reports how can you say that something is "not widely tested"?

Users facing issues are invited to report them in the bugzilla. However, we cannot guarantee any specific response time, Buildroot is a community effort. Bugs are fixed depending on developer interest, availability and patches provided by other developers.

If you want guarantees, please contract a commercial support. I'd be happy to provide one through the company I'm working for (Free Electrons).

Please note that I'm not happy to see features broken in Buildroot and I very much would like the gcc on target issue fixed. But this is not a reason for being offensive.

Cheers,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
#10 lore raw
Quoted 27 lines · Thomas Petazzoni

Hello,

First of all, could you please stop being aggressive and offensive ?

Le Sat, 26 Dec 2009 13:58:06 -0600, "Michael S. Zick" <[email protected]> a ?crit :

Quoted 7 lines
Quoted 4 lines

(Note: of course this is something we should fix, but having gcc and associated development files on the target is an unusual setup, that's why it isn't widely tested)

Say what?
How can you know that?

Because the feature has existed for years and until a few days/weeks ago, no one reported the issue and no one stepped in to fix it. Which means that no one was seriously using it.

Quoted 2 lines

So unless you have some other means of tracking user submitted test reports how can you say that something is "not widely tested"?

Users facing issues are invited to report them in the bugzilla. However, we cannot guarantee any specific response time, Buildroot is a community effort. Bugs are fixed depending on developer interest, availability and patches provided by other developers.

Quoted 8 lines

If you want guarantees, please contract a commercial support. I'd be happy to provide one through the company I'm working for (Free Electrons).

Please note that I'm not happy to see features broken in Buildroot and I very much would like the gcc on target issue fixed. But this is not a reason for being offensive.

Requesting that a posted bug, posted 2 weeks before a release gets a:
"depends on Broken" in the config file is offensive?

And that GCC bug in the bug tracker is much older than that.

I don't see how asking for a "depends on Broken" is offensive for that or any other pending open bug. Just responsible behavior.

As a matter of fact, that can be your first 30 day 2009.11 "bug fix" - add "depends on Broken" to everything broken in 2009.11

If that request offends someone, then that is just a matter of personal viewpoint.

Mike

Quoted 3 lines

Cheers,

Thomas

#11 lore raw
Quoted 5 lines · Michael S. Zick
Quoted 4 lines · Thomas Petazzoni

Hello,

First of all, could you please stop being aggressive and offensive ?

I think the word you are searching for is "Assertive" in English (assertif).

Mike

#12 lore raw
In reply to Thomas Petazzoni
Quoted 2 lines · Thomas Petazzoni

Do you really need gcc on your target ?

no, only the toolchain so i can link against uclibs to build small linux-systems fpr embedded-systems

marco