Bug 439326

Summary: Valgrind 3.17.0 won't compile with Intel 2021 oneAPI compilers
Product: [Developer tools] valgrind Reporter: Jason Jones <j.w.jones>
Component: generalAssignee: Paul Floyd <pjfloyd>
Status: RESOLVED FIXED    
Severity: normal CC: pjfloyd, tatyana.a.volnina
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Update config file to allow icc-202x compiler versions

Description Jason Jones 2021-06-30 08:58:12 UTC
SUMMARY

When trying to configure Valgrind with the latest Intel compilers it fails.

STEPS TO REPRODUCE
1. CC=icc ./configure
2. 
3. 

OBSERVED RESULT

checking for a supported version of gcc... no (icc-2021.2.0)
configure: error: please use gcc >= 3.0 or clang >= 2.9 or icc >= 13.0 or Apple LLVM >= 5.1

EXPECTED RESULT
A successful configure outcome

SOFTWARE/OS VERSIONS
CentOS 7

ADDITIONAL INFORMATION
Comment 1 Tanya 2021-07-13 15:05:01 UTC
Created attachment 140031 [details]
Update config file to allow icc-202x compiler versions

Intel oneAPI compiler uses version numbers starting with "202x" instead of "1x". Valgrind config file was discarding this version as unsupported.
Comment 2 Tanya 2021-07-13 15:08:18 UTC
(In reply to Jason Jones from comment #0)
Hi Jason,

Attached the fix I used for this issue.

Would you be able to check whether this patch works for you?
You'll need to rerun ./autogen.sh after applying this patch.

Tanya
Comment 3 Paul Floyd 2021-10-07 12:26:29 UTC
I'll also take a look at this item and try to get it into 3.18
Comment 4 Paul Floyd 2021-10-09 19:47:26 UTC
Chang committed with
commit c3002642d35b69f82fb1633ffc874e8ede370d32