I'm seeing an error when running tests under glu_cli_run
. I don't see them showing up in CI, so assume it has to do with my local configuration, but I'm running inside of a nix environment. Any tips for diagnosing?
$ cargo test glue_cli_run::union_without_padding
...
---- glue_cli_run::union_without_padding stdout ----
thread 'glue_cli_run::union_without_padding' panicked at '`roc glue` command had unexpected stderr: ld: warning: -undefined dynamic_lookup may not work with chained fixups
', crates/glue/tests/test_glue_cli.rs:220:13
I think we are missing a flag related to disabling fix up chains. That said, I feel like we had the flag originally, but removed it because it became deprecated or something of that nature.
So on new systems you get an error if you have it and on older systems you get an error if you don't. Or something like that. Don't recall exactly.
I see there is some special casing for it here, which isn't included for the glue cli. I'm a little confused as to why it only showed up for me recently. I had run cargo test
successfully on the same system, and have otherwise only updated the roc codebase.
It may have shown up only recently due to this commit
Ah, that does look relevant!
(deleted)
Sorry...misread the commit.
Yeah we require -undefined dynamic_lookup
because a generated shared library needs to look up symbols the platform.
We should probably try to merge the two linked functions such that they can share the extra error handling and not diverge again. If that isn't possible, we should just add the workaround to the other function
@Brendan Hansknecht, is this what you had in mind?
(I'm just realizing now that this should have been in the #contributing stream. Getting mixed up being both a beginning roc user and beginning roc contributor. Sorry about that!)
Don't worry about the streams too much
And wasn't exactly what I had in mind, but looks like a totally perfect solution.
@Brendan Hansknecht, would you mind reviewing this, or should I post to the Pull request for review channel?
just pushed a comment
Last updated: Jul 06 2025 at 12:14 UTC