-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
emcc --generate-config fails unless local config is already present #16251
Comments
I see this is likely related to (and fixed by?) PR #13962 - let me know if there's anything I can do to help get that merged. |
Yup, it looks like #13962 will solve this issue. I'll try to get that landed. BTW, can I ask if you actually plan on using the auto-generated config? Does it contain the right values for you? |
Great, many thanks. I do use the default configuration in this build environment. With a downstream Debian patch, the relevant bits of an automatically generated config end up as:
Where the latter two lines meaning I also don't need to install the llvm-defaults related packages. |
Is there some reason you prefer to use |
(Also, I wonder if we can/should make those first three lines completely optional and use PATH by default?) |
I'd generally prefer to avoid hardcoding paths if I can avoid it - particularly as emscripten has a better idea of what those paths are! I'd also be happy with an option to not requiring a config file. I have a workaround at the moment that involves importing the config.py file, then truncating it after the generate_config function and executing that. I'm not especially proud of it, but it avoids having to hardcode versions and paths for now. I'm guessing the standard user workflow of emscripten is too use various locally installed versions of binaries & node? |
I would like to set up some automated builds using emscripten but it won't run without a configuration file present, and doesn't provide a way to generate a configuration file without a configuration file already existing - or being in the user's home directory - creating a race-condition if multiple builds are running at the same time.
Ideally, I'd want to run:
and be able to run subsequent builds without issue, however I instead get the following:
An alternative failure mode is shown below where attempting to generate a configuration file generates an unwanted user configuration file instead.
A minimal fix may be to move
--generate-config
handling into tools/config.py such that it always runs before attempting to parse a config file. For my use case, there would ideally be an argument/environment setting to use the automatically generated config file and not write a file to disk, although perhaps that is closer to the deprecated functionality in #11684 than wanted.Version of emscripten/emsdk:
Failing command line in full:
Full link command and output with
-v
appended:The text was updated successfully, but these errors were encountered: