public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "novulae at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/56259] New: GCC's configure script has a hard-coded setting of 'with_gmp' for FreeBSD
Date: Fri, 08 Feb 2013 23:02:00 -0000	[thread overview]
Message-ID: <bug-56259-4@http.gcc.gnu.org/bugzilla/> (raw)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56259

             Bug #: 56259
           Summary: GCC's configure script has a hard-coded setting of
                    'with_gmp' for FreeBSD
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: novulae@hotmail.com


This block of code exists in the configure script for GCC:

  *-*-freebsd*)
    if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
        && test -f /usr/local/include/gmp.h; then
      with_gmp=/usr/local
    fi
    ;;


This has several serious side-effects:

 - If you have GMP in the source directory you're using to build GCC, it will
   be ignored.
 - Since --with-gmp=/usr/local wasn't specified to configure, this setting is
   not propagated to MPFR and MPC, which causes those configurations to fail.
 - Overriding with --with-gmp-include and --with-gmp-libs causes MPFR and GMP
   to be linked dynamically with GCC, instead of statically (which is the case
   when GMP, MPFR and MPC are built from source as part of GCC.



I don't believe this block of code has any place here - configure has
--with-gmp which can be used to do this exact same thing, and correctly to
boot. The section of code where this entry occurs is used to set noconfigdirs
for other platforms, and most platforms have nothing being done at all.

For greater context:
  *-*-darwin*)
    noconfigdirs="$noconfigdirs ld gas gdb gprof"
    noconfigdirs="$noconfigdirs sim target-rda"
    ;;
  *-*-dragonfly*)
    ;;
  *-*-freebsd*)
    if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
        && test -f /usr/local/include/gmp.h; then
      with_gmp=/usr/local
    fi
    ;;
  *-*-kaos*)
    # Remove unsupported stuff on all kaOS configurations.
    noconfigdirs="$noconfigdirs target-libgloss"
    ;;
  *-*-netbsd*)
    ;;
  *-*-netware*)
    ;;


             reply	other threads:[~2013-02-08 23:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-08 23:02 novulae at hotmail dot com [this message]
2013-02-10 12:25 ` [Bug bootstrap/56259] " rguenth at gcc dot gnu.org
2013-02-18 22:25 ` ljrittle at gcc dot gnu.org
2013-02-20  1:47 ` novulae at hotmail dot com
2021-08-16 23:15 ` pinskia at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-56259-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).