Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gdb] Erreur de compilation avec readline (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
glegall
n00b
n00b


Joined: 12 Apr 2017
Posts: 29
Location: Marseille

PostPosted: Wed May 10, 2017 1:03 pm    Post subject: [gdb] Erreur de compilation avec readline (résolu) Reply with quote

Salut à tous,

j'ai une erreur quand je compile gdb cette erreur est liée avec readline.

log compilation:
Code:

     ../sim/mips/libsim.a -lreadline ../opcodes/libopcodes.a ../bfd/libbfd.a  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a    -ldl -lncurses -lz -lm    ../libiberty/libiberty.a  build-gnulib/import/libgnu.a -ldl -Wl,--dynamic-list=./proc-service.list
tui-io.o: In function `tui_setup_io':
/usr/targets/frog-dev-4.8.3.6/build/portage/sys-devel/gdb-7.7.1/work/gdb-7.7.1/gdb/./tui/tui-io.c:567: undefined reference to `_rl_echoing_p'
/usr/targets/frog-dev-4.8.3.6/build/portage/sys-devel/gdb-7.7.1/work/gdb-7.7.1/gdb/./tui/tui-io.c:567: undefined reference to `_rl_echoing_p'
/usr/targets/frog-dev-4.8.3.6/build/portage/sys-devel/gdb-7.7.1/work/gdb-7.7.1/gdb/./tui/tui-io.c:523: undefined reference to `_rl_echoing_p'
/usr/targets/frog-dev-4.8.3.6/build/portage/sys-devel/gdb-7.7.1/work/gdb-7.7.1/gdb/./tui/tui-io.c:523: undefined reference to `_rl_echoing_p'
/usr/targets/frog-dev-4.8.3.6/build/portage/sys-devel/gdb-7.7.1/work/gdb-7.7.1/gdb/./tui/tui-io.c:528: undefined reference to `_rl_echoing_p'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1247: gdb] Error 1
make[2] : on quitte le répertoire « /usr/targets/frog-dev-4.8.3.6/build/portage/sys-devel/gdb-7.7.1/work/gdb-7.7.1/gdb »
make[1]: *** [Makefile:8613: all-gdb] Error 2
make[1] : on quitte le répertoire « /usr/targets/frog-dev-4.8.3.6/build/portage/sys-devel/gdb-7.7.1/work/gdb-7.7.1 »
make: *** [Makefile:834: all] Error 2
emake failed
 * ERROR: sys-devel/gdb-7.7.1::community failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 133:  Called src_compile
 *   environment, line 2552:  Called die
 * The specific snippet of code:
 *       emake -j1 || die
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gdb-7.7.1::community'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gdb-7.7.1::community'`.
 * The complete build log is located at '/usr/targets/current/log/sys-devel:gdb-7.7.1:20170510-124619.log'.
 * For convenience, a symlink to the build log is located at '/usr/targets/frog-dev-4.8.3.6/build/portage/sys-devel/gdb-7.7.1/temp/build.log'.
 * The ebuild environment file is located at '/usr/targets/frog-dev-4.8.3.6/build/portage/sys-devel/gdb-7.7.1/temp/environment'.
 * Working directory: '/usr/targets/frog-dev-4.8.3.6/build/portage/sys-devel/gdb-7.7.1/work/gdb-7.7.1'
 * S: '/usr/targets/frog-dev-4.8.3.6/build/portage/sys-devel/gdb-7.7.1/work/gdb-7.7.1'
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory


gdb version: 7.7.1

readline version: 7.0

Code:

./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=mipsel-sourcery-linux-gnu --target=mipsel-sourcery-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-werror --with-system-readline --disable-nls


J'espère que vous pourrez m'aider !
Merci...
_________________
Linux is life !


Last edited by glegall on Thu May 11, 2017 8:21 am; edited 3 times in total
Back to top
View user's profile Send private message
k-root
Guru
Guru


Joined: 08 Jan 2005
Posts: 428

PostPosted: Wed May 10, 2017 4:44 pm    Post subject: Reply with quote

https://lists.gnu.org/archive/html/bug-readline/2016-04/msg00018.html
_________________
boozo wrote:
Gentoo, ça mange des ours et baffe des buffles par 37°C avec un bob et des tongs
Back to top
View user's profile Send private message
El_Goretto
Moderator
Moderator


Joined: 29 May 2004
Posts: 3169
Location: Paris

PostPosted: Wed May 10, 2017 6:28 pm    Post subject: Reply with quote

Bonjour glegall.

Cela fait un petit moment que je me retiens, mais aujourd'hui c'est tournée générale, c'est ton 4e thread qui me démange ;)
Peux-tu s'il te plaît mettre le titre de ton thread au bon format? (cf le thread en post-it ** COMMENT POSTER ET OBTENIR DE L'AIDE ? ** qui amène à celui-ci).
_________________
-TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT)
Back to top
View user's profile Send private message
glegall
n00b
n00b


Joined: 12 Apr 2017
Posts: 29
Location: Marseille

PostPosted: Thu May 11, 2017 7:39 am    Post subject: Reply with quote

Salut à tous,

Je vous remercie il faut remplacer dans le fichier gdb-7.7.1/gdb/tui/tui-io.c

Patch (dans la fonction : void tui_setup_io (int mode)) ligne ~511
Code:

  - tui_old_rl_echoing_p = _rl_echoing_p;
  + tui_old_rl_echoing_p = readline_echoing_p;

  -  _rl_echoing_p = 0;
  + readline_echoing_p = 0; 

  - _rl_echoing_p = tui_old_rl_echoing_p;
  + readline_echoing_p = tui_old_rl_echoing_p;


ça suffit pour patcher gdb/readline


Pour ce qui est des postes je vais essayer de m’améliorer !!

++
_________________
Linux is life !


Last edited by glegall on Thu May 11, 2017 8:19 am; edited 1 time in total
Back to top
View user's profile Send private message
El_Goretto
Moderator
Moderator


Joined: 29 May 2004
Posts: 3169
Location: Paris

PostPosted: Thu May 11, 2017 8:06 am    Post subject: Reply with quote

glegall wrote:


Pour ce qui est des postes je vais essayer de m’améliorer !!

MMmmm, ce n'est pas encore tout à fait le bon format: je te suggère quelque chose comme: "[gdb] Erreur de compilation avec readline (résolu)"

Merci pour tes efforts :)
_________________
-TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum