-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Disable strict.test_poppler #25094
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
Disable strict.test_poppler #25094
Conversation
Hmm.. the We do inject Line 1271 in 74a4aa7
|
Looks like that is happening here is that I'm not sure why ... the gettimeofday function itself is always available regardless of |
I figured what is going on.
This is because of the way autoconf tries to declare functions without any signature at all. It relies on the fact that on most plaforms this is find, but not under wasm. I guess we should probably instead decorate this test with |
Though the failure |
But the larger problem is that |
Since emcc itself has some awareness of when a configure test is being built (see |
Ok, now I see what you mean about the configuring. To get autoconf work with STRCICT, I tried with diff --git a/tools/link.py b/tools/link.py
index 021513da8..1106c7a36 100644
--- a/tools/link.py
+++ b/tools/link.py
@@ -724,6 +724,9 @@ def phase_linker_setup(options, linker_args): # noqa: C901, PLR0912, PLR0915
settings.NODERAWFS = 1
# Add `#!` line to output JS and make it executable.
options.executable = True
+ # Do not run in strict mode when configuring, since autoconf declares functions without their proper signatures, and STRICT
+ # causes that to trip up by passing --fatal-warnings to the linker.
+ settings.STRICT = 0
if settings.OPT_LEVEL >= 1:
default_setting('ASSERTIONS', 0) but that resulted in
Adding a further diff --git a/tools/settings.py b/tools/settings.py
index 8e640c6a5..fde44486c 100644
--- a/tools/settings.py
+++ b/tools/settings.py
@@ -223,7 +223,8 @@ class SettingsManager:
# When not running in strict mode we also externalize all legacy settings
# (Since the external tools do process LEGACY_SETTINGS themselves)
for key in self.legacy_settings:
- external_settings[key] = self.attrs[key]
+ if key in self.attrs:
+ external_settings[key] = self.attrs[key]
return external_settings
def keys(self): does then resolve that and then the test Though it looks like the root cause for that KeyError is something doesn't stay consistent. It seems as if part of the toolchain run operated in Updated the PR to disable strict.test_poppler and autoconf+STRICT. |
The GooTimer.cc file had a
#warning
, andSTRICT
test mode sets-Werror
.