New: Incorrect selection of gcc version
https://bugs.busybox.net/show_bug.cgi?id=13011
Bug ID: 13011
Summary: Incorrect selection of gcc version
Product: buildroot
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: blocker
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: vernon2gm at gmail.com
CC: buildroot at uclibc.org
Target Milestone: ---
Hi:
I use buildroot External toolchain
$ make menuconfig
Toolchain --->
External toolchain gcc version (9.x) ---> gcc is ubuntu20.04 by sudo apt install gcc install, it's version is 9.3.0, so gcc -dumpversion is 9
but toolchain/helpers.mk check_gcc_version function to display error I fixed this bug, as follows:
toolchain/helpers.mk +1 -1
@@ -184,7 +184,7 @@ check_gcc_version = \ exit 0 ; \ fi; \ real_version=`$(1) -dumpversion` ; \ - if [[ ! "$${real_version}" =~ ^$${expected_version}\. ]] ; then \ + if [[ ! "$${real_version}" =~ ^$${expected_version} ]] ; then \ printf "Incorrect selection of gcc version: expected %s.x, got
%s\n" \
"$${expected_version}" "$${real_version}" ; \
exit 1 ; \Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 13011] Incorrect selection of gcc version
https://bugs.busybox.net/show_bug.cgi?id=13011
Thomas Petazzoni <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME--- Comment #1 from Thomas Petazzoni <[email protected]> --- Thanks for the report! This is already fixed in master in commit
https://git.buildroot.org/buildroot/commit/toolchain?id=5303e72a80e44c265473706a2d4f3acb5010814f
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.