New: Cross-compiler called through toolchain-wrapper generates bogus error messages
https://bugs.busybox.net/show_bug.cgi?id=15718
Bug ID: 15718
Summary: Cross-compiler called through toolchain-wrapper
generates bogus error messages
Product: buildroot
Version: 2023.02
Hardware: All
OS: Linux
Status: NEW
Severity: trivial
Priority: P5
Component: Other
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Cause:
Invoking the cross-compiler from the package generated by 'make sdk' with no arguments
Expected behavior:
Should print arm-linux-cc: fatal error: No input files
Observed behavior:
Output is:
/path/to/buildroot/output/host/lib/gcc/arm-buildroot-linux-gnueabihf/11.3.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld:
/path/to/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/Scrt1.o:
in function `_start':
(.text+0x40): undefined reference to `main'
collect2: error: ld returned 1 exit status
With BR2_DEBUG_WRAPPER set to 2, I get the following extra information:
Toolchain wrapper was called with:
'buildroot-ts/buildroot/output/host/bin/arm-linux-cc'
Toolchain wrapper executing:
'/path/to/buildroot/output/host/bin/arm-linux-cc.br_real'
'--sysroot'
'/path/to/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot'
'-fstack-protector-strong'
'-fPIE'
'-pie'
'-Wl,-z,now'
'-Wl,-z,relro'When invoking arm-linux-cc with an example program to compile, behavior is normal. It seems like the 'Wl' options are what trigger the errors from the underlying gcc. Adding this as a 'trivial' bug so that it could either be documented or calling toolchain-wrapper with no arguments is special-cased so other buildroot newbies aren't tripped up by 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 15718] Cross-compiler called through toolchain-wrapper generates bogus error messages
https://bugs.busybox.net/show_bug.cgi?id=15718
Yann E. MORIN <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |MOVED
CC| |[email protected]
Status|NEW |RESOLVED--- Comment #1 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