Skip to content

Brittle compilation errors #5

@Erhannis

Description

@Erhannis

I'm getting some very suspicious compilation errors, where I'll get e.g. "undefined reference to 'sin'" on one line, but it was fine five lines prior. I'm ALSO getting similar errors in file Y, depending on whether or not file X has a particular if/else block commented out. It smells of things going wrong in the compiler, triggered by things moved around by optimization.

See https://github.com/Erhannis/minimodem/tree/feature/nestedvm_weirdness - if you have nestedvm installed, and enter src/, and run nestedvm.sh, I think it should fail to compile. Then if you change 3 == 1+1 to 2 == 1+1 in minimodem.c (I've been doing very eccentric things, trying to find the boundaries of the problem), it should compile.

The other place I've been having trouble is simple-tone-generator.c ; I can use sin etc. all I want in fprintf and so forth, but the calls that matter trigger an undefined reference problem on linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions