Bug 18298 - "compile" command cannot find compiler if tools configured with triplet instead of quadruplet
Summary: "compile" command cannot find compiler if tools configured with triplet inste...
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 7.9
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-22 14:46 UTC by Matthias Klose
Modified: 2015-04-22 15:14 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Klose 2015-04-22 14:46:39 UTC
Fix the triplet regexp to recognize triplets, not only quadruplets. This allows triplets where the vendor is not set.

patch posted at https://sourceware.org/ml/gdb-patches/2015-03/msg00907.html
already applied on the trunk and the 7.9 branch.
Comment 1 Joel Brobecker 2015-04-22 14:53:50 UTC
See previous comment saying that problem was fixed.
Comment 2 Matthias Klose 2015-04-22 15:10:14 UTC
Before the patch the compile command failed with

Could not find a compiler matching "^(x86_64|i.86)-[^-]*-linux(-gnu)?-gcc-5$"

with the Debian/Ubuntu system compilers, which are configured with a triplet, not having the vendor information as part of the command, e.g. x86_64-linux-gnu-gcc.

After the patch, the system compiler is found.