Skip to content

Compiler Version not correctly parsed #8551

@ferdymercury

Description

@ferdymercury

Describe the bug

ROOT fails to parse the gcc compiler version in Ubuntu 18 and Ubuntu 20.

   ------------------------------------------------------------------
  | Welcome to ROOT 6.25/01                        https://root.cern |
  | (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Jun 09 2021, 21:20:28                 |
  | From heads/master@v6-25-01-1189-g1ca221f010                      |
  | With                                                             |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'       |
   ------------------------------------------------------------------

with "..." is empty.

Also:

root [1] gSystem->GetBuildCompilerVersionStr()
(const char *) ""

The issue is probably here: https://github.com/root-project/root/blob/master/build/unix/compiledata.sh#L69

Expected behavior

  ------------------------------------------------------------------
  | Welcome to ROOT 6.25/01                        https://root.cern |
  | (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Jun 21 2021, 09:52:59                 |
  | From heads/distrdf-ranges@v6-25-01-1310-g76d35ef23c              |
  | With c++ (GCC) 10.3.1 20210422 (Red Hat 10.3.1-1)                |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'       |
   ------------------------------------------------------------------

To Reproduce

  1. Build from source on Ubuntu 18 or Ubuntu 20
  2. Call root -b

Setup

  1. Self-built from git master

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions