intel / intel/confidential-computing.sgx.sdk

Compiler version comparison logic may not be valid

Open
#122 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

https://github.com/intel/linux-sgx/blob/4887b30b519d7bfc9f5de6e6330bc0034cce3d75/SampleCode/LocalAttestation/EnclaveInitiator/Makefile#L82

On my machine, shouldn't the result be 0?
```
[root@localhost linux-sgx-sgx_2.15.1]# expr "`cc -dumpversion`" \< "4.9"
1
[root@localhost linux-sgx-sgx_2.15.1]# cc -dumpversion
10.3.1
```

Contributor guide

Open the contributing guide

Research direction

Start at SampleCode/LocalAttestation/EnclaveInitiator/Makefile line 82 and compare the current expr behavior with the reported cc -dumpversion output. Check nearby build logic and existing version checks, then verify the result with the repository's documented build or relevant Makefile target; done means compiler-version handling gives the intended outcome for the reported version.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.