Bug 18298

Summary: "compile" command cannot find compiler if tools configured with triplet instead of quadruplet
Product: gdb Reporter: Matthias Klose <doko>
Component: gdbAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED FIXED    
Severity: normal CC: brobecker
Priority: P2    
Version: 7.9   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

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.