Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configs parsing errors on x86_64-unknown-linux-musl #791

Closed
ghost opened this issue Aug 23, 2019 · 2 comments · Fixed by #794
Closed

Configs parsing errors on x86_64-unknown-linux-musl #791

ghost opened this issue Aug 23, 2019 · 2 comments · Fixed by #794
Labels
type: bug A code related bug.

Comments

@ghost
Copy link

ghost commented Aug 23, 2019

The build for x86_64-unknown-linux-musl cannot parse configs.

Example:

vector.toml:

[sources.stdin]
  type = "stdin"

[sinks.console]
  type = "console"
  inputs = ["stdin"]
$ curl -sSf https://packages.timber.io/vector/nightly/vector-nightly-x86_64-unknown-linux-musl.tar.gz | tar xzf -
$ ./vector-0.3.0-201-gd723a95/bin/vector --config vector.toml 
Aug 23 18:27:21.282  INFO vector: Log level "info" is enabled.
Aug 23 18:27:21.282  INFO vector: Loading config. path="vector.toml"
Aug 23 18:27:21.283 ERROR log: Configuration error: unknown variant `stdin`, there are no variants for key `sources.stdin.type`  log.target="vector" log.module_path="vector" log.file="src/main.rs" log.line=299
Aug 23 18:27:21.283 ERROR vector: Configuration error: unknown variant `stdin`, there are no variants for key `sources.stdin.type`

I'm not sure what exactly causes this, but it should not be MUSL itself, as the build for Alpine from #669 works.

@lukesteensen
Copy link
Member

That is very weird. I wonder if there's something that causes typetag to fail to register the different trait implementations?

@ghost
Copy link
Author

ghost commented Aug 24, 2019

typetag uses crate impl which is proc macro, so it seems to have something to do with support of proc macro for fully static builds.

It looks like proc macro requires working dynamic linker, even for static builds, but -static flag is always added to Rust linker’s flags. I will try to remove always added -static flag for Rust linker and see would it help or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A code related bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants