public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/17077] New: --with-system-readline uses bundled readline include files
@ 2014-06-20 10:39 jan.kratochvil at redhat dot com
2014-06-20 18:55 ` [Bug build/17077] " naesten at gmail dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: jan.kratochvil at redhat dot com @ 2014-06-20 10:39 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17077
Bug ID: 17077
Summary: --with-system-readline uses bundled readline include
files
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: jan.kratochvil at redhat dot com
Target: x86_64-linux-gnu
When building tui/tui-io.c one can see in gcc -E still the bundled readline
include files get used.
# 32 "./../opcodes/../readline/rltypedefs.h"
#define _FUNCTION_DEF
As the libreadline.a is linked from system it may lead to incompatible ABI.
I do not have an idea how to fix it. Fedora GDB packaging ensures the build is
correct by "rm -rf readline" in the source tree.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug build/17077] --with-system-readline uses bundled readline include files
2014-06-20 10:39 [Bug build/17077] New: --with-system-readline uses bundled readline include files jan.kratochvil at redhat dot com
@ 2014-06-20 18:55 ` naesten at gmail dot com
2014-06-20 21:11 ` jan.kratochvil at redhat dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: naesten at gmail dot com @ 2014-06-20 18:55 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17077
Samuel Bronson <naesten at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |naesten at gmail dot com
--- Comment #1 from Samuel Bronson <naesten at gmail dot com> ---
I've also noticed that --with-system-readline doesn't prevent *building*
readline.
--disable-readline does, but unfortunately the headers still get used :-(.
But, uh, what's the point of using --with-system-readline if you're linking it
statically, anyway?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug build/17077] --with-system-readline uses bundled readline include files
2014-06-20 10:39 [Bug build/17077] New: --with-system-readline uses bundled readline include files jan.kratochvil at redhat dot com
2014-06-20 18:55 ` [Bug build/17077] " naesten at gmail dot com
@ 2014-06-20 21:11 ` jan.kratochvil at redhat dot com
2015-07-07 10:58 ` dilyan.palauzov at aegee dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jan.kratochvil at redhat dot com @ 2014-06-20 21:11 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17077
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jan.kratochvil at redhat dot com
--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
(In reply to Samuel Bronson from comment #1)
> But, uh, what's the point of using --with-system-readline if you're linking
> it statically, anyway?
Fedora links libreadline dynamically. Comment 0 says libreadline.a just for
simplicity, I did not mean specifically the .a variant, .so is also OK.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug build/17077] --with-system-readline uses bundled readline include files
2014-06-20 10:39 [Bug build/17077] New: --with-system-readline uses bundled readline include files jan.kratochvil at redhat dot com
2014-06-20 18:55 ` [Bug build/17077] " naesten at gmail dot com
2014-06-20 21:11 ` jan.kratochvil at redhat dot com
@ 2015-07-07 10:58 ` dilyan.palauzov at aegee dot org
2015-07-07 11:41 ` jan.kratochvil at redhat dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: dilyan.palauzov at aegee dot org @ 2015-07-07 10:58 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17077
dilyan.palauzov at aegee dot org <dilyan.palauzov at aegee dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dilyan.palauzov at aegee dot org
--- Comment #3 from dilyan.palauzov at aegee dot org <dilyan.palauzov at aegee dot org> ---
What about removing readline/ from the gdb tarball/version tracking and
insisting of having readline on the system, failing at ./configure time if this
is not the case.
The ones who can compile gdb, shall also be able to compile and install
libreadline.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug build/17077] --with-system-readline uses bundled readline include files
2014-06-20 10:39 [Bug build/17077] New: --with-system-readline uses bundled readline include files jan.kratochvil at redhat dot com
` (2 preceding siblings ...)
2015-07-07 10:58 ` dilyan.palauzov at aegee dot org
@ 2015-07-07 11:41 ` jan.kratochvil at redhat dot com
2015-07-07 11:43 ` jan.kratochvil at redhat dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jan.kratochvil at redhat dot com @ 2015-07-07 11:41 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17077
--- Comment #4 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
That would not work as GDB needs patched readline.
Fortunately most of the patches are for non-Linux systems. But even for Linux
Fedora needs to carry one:
http://pkgs.fedoraproject.org/cgit/readline.git/tree/readline-6.2-gdb.patch
Maybe the required patches are all gone now with readline-6.3 but GDB sources
still bundle readline-6.2:
[PATCH] [RFC] Sync readline to version 6.3 patchlevel 8
https://sourceware.org/ml/gdb-patches/2015-05/msg00352.html
https://sourceware.org/ml/gdb-patches/2015-06/msg00381.html
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug build/17077] --with-system-readline uses bundled readline include files
2014-06-20 10:39 [Bug build/17077] New: --with-system-readline uses bundled readline include files jan.kratochvil at redhat dot com
` (3 preceding siblings ...)
2015-07-07 11:41 ` jan.kratochvil at redhat dot com
@ 2015-07-07 11:43 ` jan.kratochvil at redhat dot com
2015-07-13 7:23 ` dilyan.palauzov at aegee dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jan.kratochvil at redhat dot com @ 2015-07-07 11:43 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17077
--- Comment #5 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
(In reply to dilyan.palauzov@aegee.org from comment #3)
> The ones who can compile gdb, shall also be able to compile and install
> libreadline.
Additionally IIRC there was a resistance against any mandatory external
dependencies for the sourceware sourcetree. The reasoning IIRC was that it is
inconvenient for cross-arch bootstraps but GDB does not belong to the
bootstraping compiler chain. So IMO it is wrong but it is so.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug build/17077] --with-system-readline uses bundled readline include files
2014-06-20 10:39 [Bug build/17077] New: --with-system-readline uses bundled readline include files jan.kratochvil at redhat dot com
` (4 preceding siblings ...)
2015-07-07 11:43 ` jan.kratochvil at redhat dot com
@ 2015-07-13 7:23 ` dilyan.palauzov at aegee dot org
2015-07-13 7:49 ` jan.kratochvil at redhat dot com
2015-07-28 8:49 ` dilyan.palauzov at aegee dot org
7 siblings, 0 replies; 9+ messages in thread
From: dilyan.palauzov at aegee dot org @ 2015-07-13 7:23 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17077
--- Comment #6 from dilyan.palauzov at aegee dot org <dilyan.palauzov at aegee dot org> ---
Created attachment 8429
--> https://sourceware.org/bugzilla/attachment.cgi?id=8429&action=edit
Include the bundled readline header files, only when the bundled readline is
built.
The provided patch:
-- makes use of the fact, that the preprocessor can differentiate between
#include "file" and #include <file>, when proceeding paths;
-- substitutes all occurrences of #include
"readline/{readline,history,tilde}.h" with #include
<readline/{readline,history,tilde}.h>;
-- enables the project root directory for includes (from opcode),
unconditionally only for #include "file", and for all includes ("",<>), when
the bundled readline is built (using -iquote in place of -I);
-- does not approach the problem for sim/erc32/sis.c.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug build/17077] --with-system-readline uses bundled readline include files
2014-06-20 10:39 [Bug build/17077] New: --with-system-readline uses bundled readline include files jan.kratochvil at redhat dot com
` (5 preceding siblings ...)
2015-07-13 7:23 ` dilyan.palauzov at aegee dot org
@ 2015-07-13 7:49 ` jan.kratochvil at redhat dot com
2015-07-28 8:49 ` dilyan.palauzov at aegee dot org
7 siblings, 0 replies; 9+ messages in thread
From: jan.kratochvil at redhat dot com @ 2015-07-13 7:49 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17077
--- Comment #7 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
I haven't tested it but -iquote seems to be a fix for this Bug. Patches should
be sent to gdb-patches ml.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug build/17077] --with-system-readline uses bundled readline include files
2014-06-20 10:39 [Bug build/17077] New: --with-system-readline uses bundled readline include files jan.kratochvil at redhat dot com
` (6 preceding siblings ...)
2015-07-13 7:49 ` jan.kratochvil at redhat dot com
@ 2015-07-28 8:49 ` dilyan.palauzov at aegee dot org
7 siblings, 0 replies; 9+ messages in thread
From: dilyan.palauzov at aegee dot org @ 2015-07-28 8:49 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17077
--- Comment #8 from dilyan.palauzov at aegee dot org <dilyan.palauzov at aegee dot org> ---
While -iquote is supported in gcc, clang and Intel's C++, HP aC++ does not
support it.
Another approach would be to use -I- instead, which is supported by HP aC++ and
Oracle's Solaris Studio, but IBM's XL C++ compiler does not support it. For
the latter is stated explicitly, that gxlc, a utility that accepts GNU C or C++
compiler options and translates them into comparable XL C/C++ options, does not
understand -I- and therefore generates a warning.
To sum up, either the -I- option is applied, until somebody complains that a
compiler is not working, or the bintutils-gdb/readline directory is moved to
binutils-gdb/rl/readline (or alike) and -Irl is comnditionally added to
CPPFLAGS.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-07-28 8:49 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-20 10:39 [Bug build/17077] New: --with-system-readline uses bundled readline include files jan.kratochvil at redhat dot com
2014-06-20 18:55 ` [Bug build/17077] " naesten at gmail dot com
2014-06-20 21:11 ` jan.kratochvil at redhat dot com
2015-07-07 10:58 ` dilyan.palauzov at aegee dot org
2015-07-07 11:41 ` jan.kratochvil at redhat dot com
2015-07-07 11:43 ` jan.kratochvil at redhat dot com
2015-07-13 7:23 ` dilyan.palauzov at aegee dot org
2015-07-13 7:49 ` jan.kratochvil at redhat dot com
2015-07-28 8:49 ` dilyan.palauzov at aegee 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).