-
Notifications
You must be signed in to change notification settings - Fork 6
Description
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.