Skip to content
This repository was archived by the owner on Jul 29, 2021. It is now read-only.

Fixed undefined reference to 'clock_gettime' by linking rt library#216

Closed
francoisbertelatschrodinger wants to merge 1 commit into
LunarG:masterfrom
francoisbertelatschrodinger:master
Closed

Fixed undefined reference to 'clock_gettime' by linking rt library#216
francoisbertelatschrodinger wants to merge 1 commit into
LunarG:masterfrom
francoisbertelatschrodinger:master

Conversation

@francoisbertelatschrodinger
Copy link
Copy Markdown

On CentOS6.8 with a local build of g++ 6.4.0 (the default g++ version on CentOS6.8 is 4.4.7), the build fails with undefined reference to 'clock_gettime'.

Linking Hologram against the rt library and adding rt to SPIRV_TOOLS_LIBRARIES fixed the issue.

This fix is similar to KhronosGroup/SPIRV-Tools#2409

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@TonyBarbour
Copy link
Copy Markdown
Contributor

#217 attempts to address this problem a little more conservatively

@TonyBarbour
Copy link
Copy Markdown
Contributor

#217 addresses this problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants