New: Compiling with static libraries on s390x error
https://bugs.busybox.net/show_bug.cgi?id=14256
Bug ID: 14256
Summary: Compiling with static libraries on s390x error
Product: buildroot
Version: 2021.08
Hardware: PC
OS: Linux
Status: NEW
Severity: major
Priority: P5
Component: Other
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]Target Milestone: ---
Hello,
When I try to compile using static libraries with s390x as a target I get the following error:
The directory that should contain system headers does not exist:
/usr/src/buildroot/output/per-package/host-gcc-final/host/s390x-buildroot-linux-gnu/sysroot/usr/include
My .config file is attached. These are the steps I did to generate my .config file:
- make menuconfig
- Select Target -> Target Architecture -> s390x
- Select Build Options -> Libraries -> static only
- exit and save .config
Then if I run make with this config I get error I mentioned above.
It works fine if I select shared libraries instead of static.
Operating System: openSUSE Leap 15.3
Kernel: Linux 5.3.18-57-default
Architecture: x86-64
Thank you.
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14256] Compiling with static libraries on s390x error
https://bugs.busybox.net/show_bug.cgi?id=14256
--- Comment #1 from Raul Cabello <[email protected]> --- Created attachment 9106
--> https://bugs.busybox.net/attachment.cgi?id=9106&action=edit
.config
.config file is bigger than 75KB, so I uploaded here
https://raw.githubusercontent.com/raulcabello/buildroot-config/main/config
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14256] Compiling with static libraries on s390x error
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=14256
--- Comment #2 from Arnout Vandecappelle <[email protected]> --- That's because no libc is selected.
Only glibc has support for s390x, and glibc doesn't support static builds.
Buildroot should disallow static builds for s390x.
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14256] Compiling with static libraries on s390x error
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=14256
Arnout Vandecappelle <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #3 from Arnout Vandecappelle <[email protected]> --- Patch sent:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14256] Compiling with static libraries on s390x error
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=14256
--- Comment #4 from Raul Cabello <[email protected]> --- ok, thank you for looking into this.
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14256] Compiling with static libraries on s390x error
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=14256
--- Comment #5 from Mark Post <[email protected]> --- (In reply to Arnout Vandecappelle from comment #2)
I'm confused by your comment. Of course glibc supports building static binaries, so you must mean something else is going on that makes this not work with your project. Could you explain what that might be, please? Thanks.
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14256] Compiling with static libraries on s390x error
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=14256
Yann E. MORIN <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |MOVED
CC| |[email protected]--- Comment #6 from Yann E. MORIN <[email protected]> --- Thank you for your report.
The issue tracker for the Buildroot project has been moved to the Gitlab.com issue tracker:
https://gitlab.com/buildroot.org/buildroot/-/issues
We are taking this opportunity to close old issues in this old tracker. If you believe your issue is still relevant, please open one in the new issue tracker.
Thank you!
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot