Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkgsMusl.gdb does not compile #104133

Closed
expipiplus1 opened this issue Nov 18, 2020 · 3 comments · Fixed by #114212
Closed

pkgsMusl.gdb does not compile #104133

expipiplus1 opened this issue Nov 18, 2020 · 3 comments · Fixed by #114212

Comments

@expipiplus1
Copy link
Contributor

To Reproduce

nix-build -A pkgsMusl.gdb

...
  CXX    gdbsupport/format-ipa.o
  CXX    gdbsupport/print-utils-ipa.o
  CXX    gdbsupport/rsp-low-ipa.o
  CXX    gdbsupport/safe-strerror-ipa.o
  CXX    gdbsupport/tdesc-ipa.o
  CXX    linux-amd64-ipa.o
  CXX    linux-x86-tdesc-ipa.o
  CXX    regcache-ipa.o
  CXX    remote-utils-ipa.o
  CXX    tdesc-ipa.o
  CXX    tracepoint-ipa.o
  CXX    utils-ipa.o
  CXXLD  libinproctrace.so
/nix/store/56jgzxaqbdm57jaa7719klj38x487ja1-binutils-2.31.1/bin/ld: ax-ipa.o: in function `ax_printf(unsigned long, unsigned long, char const*, int, unsigned long*) [clone .isra.0]':
/build/gdb-10.1/_build/gdbserver/../../gdbserver/ax.cc:928: undefined reference to `libintl_gettext'
/nix/store/56jgzxaqbdm57jaa7719klj38x487ja1-binutils-2.31.1/bin/ld: /build/gdb-10.1/_build/gdbserver/../../gdbserver/ax.cc:837: undefined reference to `libintl_gettext'
/nix/store/56jgzxaqbdm57jaa7719klj38x487ja1-binutils-2.31.1/bin/ld: /build/gdb-10.1/_build/gdbserver/../../gdbserver/ax.cc:889: undefined reference to `libintl_gettext'
/nix/store/56jgzxaqbdm57jaa7719klj38x487ja1-binutils-2.31.1/bin/ld: ax-ipa.o: in function `gdb_eval_agent_expr(eval_agent_expr_context*, agent_expr*, unsigned long*)':
/build/gdb-10.1/_build/gdbserver/../../gdbserver/ax.cc:1334: undefined reference to `libintl_gettext'
/nix/store/56jgzxaqbdm57jaa7719klj38x487ja1-binutils-2.31.1/bin/ld: gdbsupport/common-utils-ipa.o: in function `xstrvprintf(char const*, __va_list_tag*)':
/build/gdb-10.1/_build/gdbserver/../../gdbserver/../gdbsupport/common-utils.cc:57: undefined reference to `libintl_gettext'
/nix/store/56jgzxaqbdm57jaa7719klj38x487ja1-binutils-2.31.1/bin/ld: gdbsupport/common-utils-ipa.o:/build/gdb-10.1/_build/gdbserver/../../gdbserver/../gdbsupport/common-utils.cc:69: more undefined references to `libintl_gettext' follow
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:389: libinproctrace.so] Error 1
make[2]: Leaving directory '/build/gdb-10.1/_build/gdbserver'
make[1]: *** [Makefile:9365: all-gdbserver] Error 2
make[1]: Leaving directory '/build/gdb-10.1/_build'
make: *** [Makefile:854: all] Error 2
builder for '/nix/store/vqjcmvp3gcjr86ylqbmqn9x146qpf4yn-gdb-10.1.drv' failed with exit code 2

6d2cad8 (updating gdb, nothing else) is to blame

Notify maintainers

@pierron @globin @lsix

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
  - pkgsMusl.gdb
# a list of nixos modules affected by the problem
module:
@Ericson2314
Copy link
Member

The problem is python needs splicing. I opened #104135 for this.

amuricys added a commit to amuricys/hs-aws that referenced this issue Dec 3, 2020
…his thing is using it because it tries to compile musl\'s gdb-10.1 and that seems to fail according to this NixOS/nixpkgs#104133
Mic92 added a commit to Mic92/nixpkgs that referenced this issue Feb 24, 2021
fixes NixOS#104133

Signed-off-by: Jörg Thalheim <[email protected]>
@Mic92 Mic92 mentioned this issue Feb 24, 2021
10 tasks
@expipiplus1
Copy link
Contributor Author

Thanks @Mic92!

@Mic92
Copy link
Member

Mic92 commented Feb 24, 2021

#roadtorust

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants