public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/27762] New: configure does not honor --with-mpfr=
@ 2021-04-21 15:26 Mario.Klebsch@ime-actia.de
  2022-03-06 16:00 ` [Bug build/27762] " tromey at sourceware dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mario.Klebsch@ime-actia.de @ 2021-04-21 15:26 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27762

            Bug ID: 27762
           Summary: configure does not honor --with-mpfr=
           Product: gdb
           Version: 10.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: Mario.Klebsch@ime-actia.de
  Target Milestone: ---

I built mpc and libmpr as static libraries and installed them into a temprary
location.

I passed --with-mpfr=/... and  --with-mpc=/... to configure.

I expected the build process to pick up the static libraries provided at the
given locations.

But the resulting binary uses the shared libraries insalled in /lib64. 

gdb/Makefile was written with this line:

LIBMPFR = -lmpfr -lgmp

I configured and build gcc with the same options, and gcc uses the static
libraries. In the gcc build directory gcc/Makefile contains the following line:

GMPLIBS = -L/.../lib -L/.../lib -L/.../lib -lmpc -lmpfr -lgmp

The difference is, that gcc's configure added -L options with the path of the
static libraries.

The config.log does contain a setting with -L options:
gmplibs='-L/.../lib -L/.../lib -L/.../lib -lmpc -lmpfr -lgmp'

but this setting is not used when building gdb. :-(

I just found, that there also is a config.log in the gdb subdirectory. I see,
that  '--with-gmp=/...' '--with-mpfr=/...' were passed tot he sub-configure.

But I see, that this path is not used:

configure:10086: checking whether to use MPFR
configure:10088: result: /...
configure:10521: checking for libmpfr
configure:10541: gcc -o conftest -g -O2    conftest.c -ltinfow -lncursesw -lm
-ldl  -lmpfr -lgmp >&5
configure:10541: $? = 0
configure:10551: result: yes
configure:10558: checking how to link with libmpfr
configure:10560: result: -lmpfr -lgmp

It just detects the system-supplied mpfr and don't use the one, that I selected
on configures command line. :-(

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/27762] configure does not honor --with-mpfr=
  2021-04-21 15:26 [Bug build/27762] New: configure does not honor --with-mpfr= Mario.Klebsch@ime-actia.de
@ 2022-03-06 16:00 ` tromey at sourceware dot org
  2022-03-06 16:00 ` tromey at sourceware dot org
  2022-03-06 16:09 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2022-03-06 16:00 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27762

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I don't think gdb uses mpc.

For mpfr, it seems to be the same issue as bug#28500: gdb
has a different set of options from the top level.

prentzel. ./configure --help|grep mpfr
  --with-mpfr-dir=PATH    this option has been REMOVED
  --with-mpfr=PATH        specify prefix directory for installed MPFR package.
                          Equivalent to --with-mpfr-include=PATH/include plus
                          --with-mpfr-lib=PATH/lib
  --with-mpfr-include=PATH
  --with-mpfr-lib=PATH    specify directory for the installed MPFR library
prentzel. ./gdb/configure --help|grep mpfr
  --with-mpfr             include MPFR support (auto/yes/no)
  --with-libmpfr-prefix[=DIR]  search for libmpfr in DIR/include and DIR/lib
  --without-libmpfr-prefix     don't search for libmpfr in includedir and
libdir
  --with-libmpfr-type=TYPE     type of library to search for
(auto/static/shared)


Try using the ones reported by gdb - I think that may work.
I tend to think standardizing the options here would be good,
but there are some caveats & problems in this thread

https://sourceware.org/pipermail/gdb-patches/2020-November/173301.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/27762] configure does not honor --with-mpfr=
  2021-04-21 15:26 [Bug build/27762] New: configure does not honor --with-mpfr= Mario.Klebsch@ime-actia.de
  2022-03-06 16:00 ` [Bug build/27762] " tromey at sourceware dot org
@ 2022-03-06 16:00 ` tromey at sourceware dot org
  2022-03-06 16:09 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2022-03-06 16:00 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27762

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2022-03-06

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/27762] configure does not honor --with-mpfr=
  2021-04-21 15:26 [Bug build/27762] New: configure does not honor --with-mpfr= Mario.Klebsch@ime-actia.de
  2022-03-06 16:00 ` [Bug build/27762] " tromey at sourceware dot org
  2022-03-06 16:00 ` tromey at sourceware dot org
@ 2022-03-06 16:09 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2022-03-06 16:09 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27762

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
I'm arbitrarily picking one bug as the canonical one.

*** This bug has been marked as a duplicate of bug 28500 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2022-03-06 16:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21 15:26 [Bug build/27762] New: configure does not honor --with-mpfr= Mario.Klebsch@ime-actia.de
2022-03-06 16:00 ` [Bug build/27762] " tromey at sourceware dot org
2022-03-06 16:00 ` tromey at sourceware dot org
2022-03-06 16:09 ` tromey at sourceware dot 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).