[Bug other/35250] New: gmp and mpfr are erroneously configured with --target
nightstrike at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Feb 19 05:32:00 GMT 2008
When gmp and mpfr are in the build tree of gcc, they will be automatically
configured and build. However, some of the options passed to configure are
incorrect according to the GMP manual:
[Begin quote] "Note that the `--target' option is not appropriate for
GMP. It's for use when building compiler tools, with `--host' being
where they will run, and `--target' what they'll produce code for.
Ordinary programs or libraries like GMP are only interested in the
`--host' part, being where they'll run. (Some past versions of GMP
used `--target' incorrectly.)" [End quote]
"--target" should be removed from both configure lines. Here is the
Makefile.def that I was looking at:
host_modules= { module= gmp; lib_path=.libs; bootstrap=true;
extra_configure_flags='--disable-shared';
no_install= true;
host="none-${host_vendor}-${host_os}";
target="none-${host_vendor}-${host_os}"; };
host_modules= { module= mpfr; lib_path=.libs; bootstrap=true;
extra_configure_flags='--disable-shared
--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp';
no_install= true;
host="none-${host_vendor}-${host_os}";
target="none-${host_vendor}-${host_os}"; };
Here is a patch:
Index: Makefile.def
===================================================================
--- Makefile.def (revision 132380)
+++ Makefile.def (working copy)
@@ -61,13 +61,11 @@ host_modules= { module= gettext; };
host_modules= { module= gmp; lib_path=.libs; bootstrap=true;
extra_configure_flags='--disable-shared';
no_install= true;
- host="none-${host_vendor}-${host_os}";
- target="none-${host_vendor}-${host_os}"; };
+ host="none-${host_vendor}-${host_os}"; };
host_modules= { module= mpfr; lib_path=.libs; bootstrap=true;
extra_configure_flags='--disable-shared
--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp';
no_install= true;
- host="none-${host_vendor}-${host_os}";
- target="none-${host_vendor}-${host_os}"; };
+ host="none-${host_vendor}-${host_os}"; };
host_modules= { module= gnuserv; };
host_modules= { module= gprof; };
host_modules= { module= gzip; };
--
Summary: gmp and mpfr are erroneously configured with --target
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: trivial
Priority: P3
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: nightstrike at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35250
More information about the Gcc-bugs
mailing list