Skip to content

Failed linking with v -cc gcc -parallel-cc examples/sokol/drawing.v, V ignores it, but it should fail too #23209

@spytheman

Description

@spytheman

V should fail itself, when it detects that either of the parallel C compilation commands failed, and
when it detects that the final serial linking command failed.
Instead, it finished with exit code 0.

Any program that uses sokol currently leads to that, which is a separate problem.

I think, the root cause, is that sokol and other libraries like it, require that only a single .c file have their implementation symbols (see vlib/sokol/c/declaration.c.v:59:#define SOKOL_IMPL), but the current split makes it so that this define is present in several .c files, not just one => the headers are expanded into their implementation version, not their declarative one).

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

Huly®: V_0.6-21645

Metadata

Metadata

Assignees

Labels

BugThis tag is applied to issues which reports bugs.BuildV build error on any OS/CPU architecture.Parallel C CompilationUnit: CompilerBugs/feature requests, that are related to the V compiler in general.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions