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

[binutils] Recent update of binutils to 2.40 has unmet dependency #12144

Closed
1 task done
VA1DER opened this issue Mar 9, 2023 · 4 comments
Closed
1 task done

[binutils] Recent update of binutils to 2.40 has unmet dependency #12144

VA1DER opened this issue Mar 9, 2023 · 4 comments
Labels
bug issue report with a confirmed bug

Comments

@VA1DER
Copy link

VA1DER commented Mar 9, 2023

Describe the bug

A recent commit updated binutils to 2.40. The readelf tool in binutils now has a dependency on libmsgpackc.so.2. The build system, however, needs to be told of the dependency or it will not build. This has broken all-userland-package builds for the last four days and binutils has now disappeared off all snapshot targets.

Recommend making the already-existing msgpack-c library a dependency for binutils:

--- a/package/devel/binutils/Makefile	2023-03-09 10:55:18.596795808 -0400
+++ b/package/devel/binutils/Makefile	2023-03-09 11:01:24.780701544 -0400
@@ -53,11 +53,11 @@
 
 define Package/binutils
   SECTION:=devel
   CATEGORY:=Development
   TITLE:=binutils
-  DEPENDS:=+objdump +ar
+  DEPENDS:=+objdump +ar +msgpack-c
   ALTERNATIVES:=200:/usr/bin/strings:/usr/bin/binutils-strings
 endef
 
 define Package/objdump
   SECTION:=devel

OpenWrt version

MASTER

OpenWrt target/subtarget

All

Device

All

Image kind

Official downloaded image

Steps to reproduce

make package/binutils/compile

Actual behaviour

The build system recognizes the unmet dependency for libmsgpack-c upon building binutils and fails with that error.

Expected behaviour

Compiles.

Additional info

No response

Diffconfig

No response

Terms

  • I am reporting an issue for OpenWrt, not an unsupported fork.
@VA1DER VA1DER added the bug issue report with a confirmed bug label Mar 9, 2023
@VA1DER
Copy link
Author

VA1DER commented Mar 9, 2023

@hauke @nbd168 Sorry, forgot to tag you in the report.

@trippleflux
Copy link

Checkout this PR. I think it should fix it.

I was also having the same issue for binutils and libbfd and added +msgpack-c into both of them but it will failed at the end of the OpenWrt X86_64 build process mentioning something about binutils and msgpack-c (didn't saved the log).

I think that PR is more proper way to fix it.

@VA1DER
Copy link
Author

VA1DER commented Mar 9, 2023

Disabling msgpack inactivates the ability for readelf to display messagepack comments. msgpack-c is a 10kilobyte lib, and it's already an available package. Is there a reason why not to make binutils dependent on it?

@VA1DER
Copy link
Author

VA1DER commented Mar 10, 2023

@VA1DER VA1DER closed this as completed Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issue report with a confirmed bug
Projects
None yet
Development

No branches or pull requests

2 participants