all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: 70254@debbugs.gnu.org
Cc: Ricardo Wurmus <rekado@elephly.net>
Subject: bug#70254: withershins - failed to build
Date: Sun, 07 Apr 2024 10:49:56 +0100	[thread overview]
Message-ID: <87sezxlcxn.fsf@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 5471 bytes --]


Hi,

While refreshing and checking packages in (gnu packages code) I've
noticed that withershins is no longer buildable, it looks like the
source is not compatible with a new version of binutils.

One more thing - the project does not exist by
<https://github.com/cameronwhite/withershins> but I could find it in
<https://github.com/artisdom/withershins>.

Cc: Ricardo as he was the last person who has added and updated the
package.

Error trace:
--8<---------------cut here---------------start------------->8---
starting phase `build'
/gnu/store/gl26kr5v6ch5lc3ignly61kb224drijc-cmake-minimal-3.24.2/bin/cmake -S/tmp/guix-build-withershins-0.1.drv-0/source -B/tmp/guix-build-withershins-0.1.drv-0/source --check-build-system CMakeFiles/Makefile.cmake 0
/gnu/store/gl26kr5v6ch5lc3ignly61kb224drijc-cmake-minimal-3.24.2/bin/cmake -E cmake_progress_start /tmp/guix-build-withershins-0.1.drv-0/source/CMakeFiles /tmp/guix-build-withershins-0.1.drv-0/source//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/tmp/guix-build-withershins-0.1.drv-0/source'
make  -f src/CMakeFiles/withershins.dir/build.make src/CMakeFiles/withershins.dir/depend
make[2]: Entering directory '/tmp/guix-build-withershins-0.1.drv-0/source'
cd /tmp/guix-build-withershins-0.1.drv-0/source && /gnu/store/gl26kr5v6ch5lc3ignly61kb224drijc-cmake-minimal-3.24.2/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/guix-build-withershins-0.1.drv-0/source /tmp/guix-build-withershins-0.1.drv-0/source/src /tmp/guix-build-withershins-0.1.drv-0/source /tmp/guix-build-withershins-0.1.drv-0/source/src /tmp/guix-build-withershins-0.1.drv-0/source/src/CMakeFiles/withershins.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/tmp/guix-build-withershins-0.1.drv-0/source'
make  -f src/CMakeFiles/withershins.dir/build.make src/CMakeFiles/withershins.dir/build
make[2]: Entering directory '/tmp/guix-build-withershins-0.1.drv-0/source'
[ 16%] Building CXX object src/CMakeFiles/withershins.dir/withershins.cpp.o
cd /tmp/guix-build-withershins-0.1.drv-0/source/src && /gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/bin/c++ -DWITHERSHINS_ENABLE_LIBBFD -I/tmp/guix-build-withershins-0.1.drv-0/source/src -std=c++11 -Wall -Wextra -pthread -O2 -g -DNDEBUG -MD -MT src/CMakeFiles/withershins.dir/withershins.cpp.o -MF CMakeFiles/withershins.dir/withershins.cpp.o.d -o CMakeFiles/withershins.dir/withershins.cpp.o -c /tmp/guix-build-withershins-0.1.drv-0/source/src/withershins.cpp
[ 33%] Building CXX object src/CMakeFiles/withershins.dir/withershins_unix.cpp.o
cd /tmp/guix-build-withershins-0.1.drv-0/source/src && /gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/bin/c++ -DWITHERSHINS_ENABLE_LIBBFD -I/tmp/guix-build-withershins-0.1.drv-0/source/src -std=c++11 -Wall -Wextra -pthread -O2 -g -DNDEBUG -MD -MT src/CMakeFiles/withershins.dir/withershins_unix.cpp.o -MF CMakeFiles/withershins.dir/withershins_unix.cpp.o.d -o CMakeFiles/withershins.dir/withershins_unix.cpp.o -c /tmp/guix-build-withershins-0.1.drv-0/source/src/withershins_unix.cpp
/tmp/guix-build-withershins-0.1.drv-0/source/src/withershins_unix.cpp: In function ‘bool find_file_info(const string&, const void*, std::string&, std::string&, int&)’:
/tmp/guix-build-withershins-0.1.drv-0/source/src/withershins_unix.cpp:151:37: error: ‘bfd_get_section_vma’ was not declared in this scope; did you mean ‘bfd_set_section_vma’?
  151 |         const bfd_vma section_vma = bfd_get_section_vma(abfd.get(), section);
      |                                     ^~~~~~~~~~~~~~~~~~~
      |                                     bfd_set_section_vma
/tmp/guix-build-withershins-0.1.drv-0/source/src/withershins_unix.cpp:153:58: error: cannot convert ‘std::unique_ptr<bfd, bfd_delete>::pointer’ {aka ‘bfd*’} to ‘const asection*’ {aka ‘const bfd_section*’}
  153 |             vma < section_vma + bfd_section_size(abfd.get(), section))
      |                                                  ~~~~~~~~^~
      |                                                          |
      |                                                          std::unique_ptr<bfd, bfd_delete>::pointer {aka bfd*}
In file included from /tmp/guix-build-withershins-0.1.drv-0/source/src/withershins_unix.cpp:21:
/gnu/store/cv571kkg5hyk98yw48857h1d0zi9azni-binutils-2.38/include/bfd.h:1193:35: note:   initializing argument 1 of ‘bfd_size_type bfd_section_size(const asection*)’
 1193 | bfd_section_size (const asection *sec)
      |                   ~~~~~~~~~~~~~~~~^~~
make[2]: *** [src/CMakeFiles/withershins.dir/build.make:93: src/CMakeFiles/withershins.dir/withershins_unix.cpp.o] Error 1
make[2]: Leaving directory '/tmp/guix-build-withershins-0.1.drv-0/source'
make[1]: *** [CMakeFiles/Makefile2:119: src/CMakeFiles/withershins.dir/all] Error 2
make[1]: Leaving directory '/tmp/guix-build-withershins-0.1.drv-0/source'
make: *** [Makefile:94: all] Error 2
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: () exit-status: 2 term-signal: #f stop-signal: #f>
phase `build' failed after 0.5 seconds
--8<---------------cut here---------------end--------------->8---

References:
- Similar issue in aws-lambda-cpp <https://github.com/awslabs/aws-lambda-cpp/issues/93>.
- https://stackoverflow.com/questions/60235928/backward-cpp-can-no-longer-build-missing-lbdf-despite-linking

--
Oleg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

             reply	other threads:[~2024-04-07  9:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-07  9:49 Sharlatan Hellseher [this message]
2024-04-07 20:23 ` bug#70254: withershins - failed to build Ricardo Wurmus
2024-04-09 14:00 ` Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sezxlcxn.fsf@gmail.com \
    --to=sharlatanus@gmail.com \
    --cc=70254@debbugs.gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.