google / google/gapid

Compilation Errors with GCC/G++ 8.2.0

Open
#2,461 6 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
Go
Stars
2.2k
Forks
329
PR merge metrics
No merged PRs in 30d

Description

I'm receiving a lot of errors like this

`external/glslang/SPIRV/bitutils.h:29:14: error: 'void* memcpy(void*, const void*, size_t)' copying an object of non-trivial type 'class spvutils::FloatProxy' from an array of 'short unsigned int' [-Werror=class-memaccess]
std::memcpy(&dest, &source, sizeof(dest));`

and

`./gapil/runtime/cc/map.inc:353:11: error: 'void* memset(void*, int, size_t)' clearing an object of type 'struct gapil::Map, false>::element' with no trivial copy-assignment; use assignment or value-initialization instead [-Werror=class-memaccess]
memset(elems, 0x00, sizeof(*elems) * capacity);`

and a lot of other places too.

Any assistance in editing the Bazel files would be greatly appreciated as I had never seen this build system until this project.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.