Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with CLING_DEBUG=1 set #14593

Closed
1 task done
jolly-chen opened this issue Feb 5, 2024 · 0 comments · Fixed by #14667
Closed
1 task done

Build fails with CLING_DEBUG=1 set #14593

jolly-chen opened this issue Feb 5, 2024 · 0 comments · Fixed by #14667
Assignees
Labels
bug fixathon This issue can be tackled at a ROOT fixathon

Comments

@jolly-chen
Copy link
Contributor

Check duplicate issues.

  • Checked for duplicates

Description

ROOT fails to build when the environment variable CLING_DEBUG=1 is set. When generating G__Core.cxx, ../lib/Core.pcm, it fails with the following error:

error: invalid integral value '0 -fno-omit-frame-pointer' in '-O0 -fno-omit-frame-pointer'
error: invalid integral value '0 -fno-omit-frame-pointer' in '-O0 -fno-omit-frame-pointer'
error: invalid integral value '0 -fno-omit-frame-pointer' in '-O0 -fno-omit-frame-pointer'
error: invalid integral value '0 -fno-omit-frame-pointer' in '-O0 -fno-omit-frame-pointer'
Error: Parsing #pragma failed /home/jollychen/root/core/base/inc/LinkDef.h

Reproducer

CLING_DEBUG=1 ninja

ROOT version

6.31.01

Installation method

build from source

Operating system

Ubuntu 22.04

Additional context

No response

@jolly-chen jolly-chen added the bug label Feb 5, 2024
@martamaja10 martamaja10 added the fixathon This issue can be tackled at a ROOT fixathon label Feb 5, 2024
@hahnjo hahnjo self-assigned this Feb 6, 2024
hahnjo added a commit to hahnjo/root that referenced this issue Feb 13, 2024
As noted in root-project#14593, the build fails during a rootcling execution when
setting CLING_DEBUG=1 in the environment with
error: invalid integral value '0 -fno-omit-frame-pointer' in '-O0 -fno-omit-frame-pointer'

Upon investigation, it only works in the ROOT prompt because TCling
turns on basic -O1 unless in rootcling. This overrides the (misformed)
"-O0 -fno-omit-frame-pointer". Split the argument in two entries and
move it after inserting the user-provided arguments to properly apply
also on the prompt by now taking precedence over -O1.

Closes root-project#14593
hahnjo added a commit that referenced this issue Feb 14, 2024
As noted in #14593, the build fails during a rootcling execution when
setting CLING_DEBUG=1 in the environment with
error: invalid integral value '0 -fno-omit-frame-pointer' in '-O0 -fno-omit-frame-pointer'

Upon investigation, it only works in the ROOT prompt because TCling
turns on basic -O1 unless in rootcling. This overrides the (misformed)
"-O0 -fno-omit-frame-pointer". Split the argument in two entries and
move it after inserting the user-provided arguments to properly apply
also on the prompt by now taking precedence over -O1.

Closes #14593
lobis pushed a commit to lobis/root that referenced this issue Apr 10, 2024
As noted in root-project#14593, the build fails during a rootcling execution when
setting CLING_DEBUG=1 in the environment with
error: invalid integral value '0 -fno-omit-frame-pointer' in '-O0 -fno-omit-frame-pointer'

Upon investigation, it only works in the ROOT prompt because TCling
turns on basic -O1 unless in rootcling. This overrides the (misformed)
"-O0 -fno-omit-frame-pointer". Split the argument in two entries and
move it after inserting the user-provided arguments to properly apply
also on the prompt by now taking precedence over -O1.

Closes root-project#14593
silverweed pushed a commit to silverweed/root that referenced this issue Aug 19, 2024
As noted in root-project#14593, the build fails during a rootcling execution when
setting CLING_DEBUG=1 in the environment with
error: invalid integral value '0 -fno-omit-frame-pointer' in '-O0 -fno-omit-frame-pointer'

Upon investigation, it only works in the ROOT prompt because TCling
turns on basic -O1 unless in rootcling. This overrides the (misformed)
"-O0 -fno-omit-frame-pointer". Split the argument in two entries and
move it after inserting the user-provided arguments to properly apply
also on the prompt by now taking precedence over -O1.

Closes root-project#14593
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fixathon This issue can be tackled at a ROOT fixathon
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants