public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/97302] New: FreeBSD build fails with contrib/download_prerequisites with missing gmp.h
@ 2020-10-06  5:54 tkoenig at gcc dot gnu.org
  2020-10-06  5:55 ` [Bug target/97302] " tkoenig at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2020-10-06  5:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97302

            Bug ID: 97302
           Summary: FreeBSD build fails with
                    contrib/download_prerequisites with missing gmp.h
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tkoenig at gcc dot gnu.org
  Target Milestone: ---

Created attachment 49310
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49310&action=edit
config.log from the attempt

I tried to bootstrap gcc on FreeBSD (to test the native_coarray
branch) using contrib/download_prerequisites.  The script worked, but
the build failed with

checking format of `long double' floating point... IEEE extended, little endian
checking for TLS support using C11... yes
checking for library containing clock_gettime... none required
checking for gmp.h... no
configure: error: gmp.h can't be found, or is unusable.
gmake[2]: *** [Makefile:6521: configure-stage1-mpfr] Error 1
gmake[2]: Leaving directory '/usr/home/tkoenig/trunk-bin'
gmake[1]: *** [Makefile:27350: stage1-bubble] Error 2
gmake[1]: Leaving directory '/usr/home/tkoenig/trunk-bin'
gmake: *** [Makefile:1005: all] Error 2

This is on gcc303.fsffrance.org in my home directory (nothing else there),
so if somebody wants to look, go right ahead.

It was configured with

../trunk/configure --enable-languages=c,c++,fortran

and compilation attempted with

gmake -j3

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/97302] FreeBSD build fails with contrib/download_prerequisites with missing gmp.h
  2020-10-06  5:54 [Bug target/97302] New: FreeBSD build fails with contrib/download_prerequisites with missing gmp.h tkoenig at gcc dot gnu.org
@ 2020-10-06  5:55 ` tkoenig at gcc dot gnu.org
  2020-10-06  7:13 ` burnus at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2020-10-06  5:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97302

--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Created attachment 49311
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49311&action=edit
Output from the attempt

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/97302] FreeBSD build fails with contrib/download_prerequisites with missing gmp.h
  2020-10-06  5:54 [Bug target/97302] New: FreeBSD build fails with contrib/download_prerequisites with missing gmp.h tkoenig at gcc dot gnu.org
  2020-10-06  5:55 ` [Bug target/97302] " tkoenig at gcc dot gnu.org
@ 2020-10-06  7:13 ` burnus at gcc dot gnu.org
  2020-10-06  8:10 ` tkoenig at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu.org @ 2020-10-06  7:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97302

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Created attachment 49313
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49313&action=edit
configure.ac patch

I think there is an ordering problem in the top configure.ac:

  *-*-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
    ;;

and later:

if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d
${srcdir}/gmp; then


Thus, the in-tree-build check fails if with_gmp is set.


Can you try the attached patch? I currently do not have a BSD system at hand.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/97302] FreeBSD build fails with contrib/download_prerequisites with missing gmp.h
  2020-10-06  5:54 [Bug target/97302] New: FreeBSD build fails with contrib/download_prerequisites with missing gmp.h tkoenig at gcc dot gnu.org
  2020-10-06  5:55 ` [Bug target/97302] " tkoenig at gcc dot gnu.org
  2020-10-06  7:13 ` burnus at gcc dot gnu.org
@ 2020-10-06  8:10 ` tkoenig at gcc dot gnu.org
  2020-10-06  9:49 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2020-10-06  8:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97302

--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Comment on attachment 49313
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49313
configure.ac patch

Seems to work, at least the compilation is proceeding now.

Thanks for the quick fix!

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/97302] FreeBSD build fails with contrib/download_prerequisites with missing gmp.h
  2020-10-06  5:54 [Bug target/97302] New: FreeBSD build fails with contrib/download_prerequisites with missing gmp.h tkoenig at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-10-06  8:10 ` tkoenig at gcc dot gnu.org
@ 2020-10-06  9:49 ` cvs-commit at gcc dot gnu.org
  2020-10-06  9:51 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-06  9:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97302

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tobias Burnus <burnus@gcc.gnu.org>:

https://gcc.gnu.org/g:c0d0a722da8583f74a0c192041be2f379cf487c1

commit r11-3675-gc0d0a722da8583f74a0c192041be2f379cf487c1
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Tue Oct 6 11:49:34 2020 +0200

    configure: Fix in-tree building of GMP on BSD [PR97302]

    ChangeLog:
            PR target/97302
            * configure.ac: Only set with_gmp to /usr/local
            if not building in tree.
            * configure: Regenerate.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/97302] FreeBSD build fails with contrib/download_prerequisites with missing gmp.h
  2020-10-06  5:54 [Bug target/97302] New: FreeBSD build fails with contrib/download_prerequisites with missing gmp.h tkoenig at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2020-10-06  9:49 ` cvs-commit at gcc dot gnu.org
@ 2020-10-06  9:51 ` cvs-commit at gcc dot gnu.org
  2020-10-06  9:54 ` cvs-commit at gcc dot gnu.org
  2020-10-06  9:55 ` burnus at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-06  9:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97302

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Tobias Burnus
<burnus@gcc.gnu.org>:

https://gcc.gnu.org/g:7cacf5a576675109f3b081cbd436d1fbadad776d

commit r10-8858-g7cacf5a576675109f3b081cbd436d1fbadad776d
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Tue Oct 6 11:49:34 2020 +0200

    configure: Fix in-tree building of GMP on BSD [PR97302]

    ChangeLog:
            PR target/97302
            * configure.ac: Only set with_gmp to /usr/local
            if not building in tree.
            * configure: Regenerate.
    (cherry picked from commit c0d0a722da8583f74a0c192041be2f379cf487c1)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/97302] FreeBSD build fails with contrib/download_prerequisites with missing gmp.h
  2020-10-06  5:54 [Bug target/97302] New: FreeBSD build fails with contrib/download_prerequisites with missing gmp.h tkoenig at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2020-10-06  9:51 ` cvs-commit at gcc dot gnu.org
@ 2020-10-06  9:54 ` cvs-commit at gcc dot gnu.org
  2020-10-06  9:55 ` burnus at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-06  9:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97302

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Tobias Burnus
<burnus@gcc.gnu.org>:

https://gcc.gnu.org/g:96b32c86f507f5391512a9cb5ec536e604472ea2

commit r9-8977-g96b32c86f507f5391512a9cb5ec536e604472ea2
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Tue Oct 6 11:49:34 2020 +0200

    configure: Fix in-tree building of GMP on BSD [PR97302]

    ChangeLog:
            PR target/97302
            * configure.ac: Only set with_gmp to /usr/local
            if not building in tree.
            * configure: Regenerate.
    (cherry picked from commit c0d0a722da8583f74a0c192041be2f379cf487c1)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/97302] FreeBSD build fails with contrib/download_prerequisites with missing gmp.h
  2020-10-06  5:54 [Bug target/97302] New: FreeBSD build fails with contrib/download_prerequisites with missing gmp.h tkoenig at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2020-10-06  9:54 ` cvs-commit at gcc dot gnu.org
@ 2020-10-06  9:55 ` burnus at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu.org @ 2020-10-06  9:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97302

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #7 from Tobias Burnus <burnus at gcc dot gnu.org> ---
FIXED on mainline/GCC 11 + GCC 10 + GCC 9.

Thanks for the report!

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-10-06  9:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-06  5:54 [Bug target/97302] New: FreeBSD build fails with contrib/download_prerequisites with missing gmp.h tkoenig at gcc dot gnu.org
2020-10-06  5:55 ` [Bug target/97302] " tkoenig at gcc dot gnu.org
2020-10-06  7:13 ` burnus at gcc dot gnu.org
2020-10-06  8:10 ` tkoenig at gcc dot gnu.org
2020-10-06  9:49 ` cvs-commit at gcc dot gnu.org
2020-10-06  9:51 ` cvs-commit at gcc dot gnu.org
2020-10-06  9:54 ` cvs-commit at gcc dot gnu.org
2020-10-06  9:55 ` burnus at gcc dot gnu.org

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).