Opened 18 years ago

#58 new defect

cmt_gcc_version.sh requires a modification for newer gcc versions

Reported by: harald.vogt@… Owned by: arnault
Priority: normal Milestone:
Component: a. Usage Version:
Severity: normal Keywords:
Cc: OS: SLC4
If Other, could you precise: Experiment: Atlas
If Other, could you precise:
Stack trace:
Steps to reproduce:

Description

CMT/v1r20p20070720/mgr: the script cmt_gcc_version.sh gives no results for newer gcc compiler versions. Since gcc 3.3 the reply of "gcc -v" has moved from eg. "gcc version 3.2.3" to "gcc-Version 3.3.3" .Therefore one has to check if "gcc -v 2>&1 | grep version | cut -d ' ' -f3 | sed -e 's#[0-9]#gcc-&#'" gives no reply and if so try "gcc -v 2>&1 | grep Version | cut -d ' ' -f2 | sed -e 's#[0-9]#gcc-&#'" to avoid warinings like: "#CMT> Warning: apply_tag with empty name [$(cmt_compiler_version)]"

Change History (0)

Note: See TracTickets for help on using tickets.