-
Notifications
You must be signed in to change notification settings - Fork 56
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
test failures rolling into the sdk repo due to recent commits #130
Comments
The last successful rev was from a2dfedc. |
@blaugold this might be a result of your PR. I'll dig into what the error means tomorrow. |
Before 387f894 we let the compiler decide whether to generate PIC. After that change, we are strict about not generating PIC when |
Based on https://groups.google.com/g/llvm-dev/c/bcmpM2ALmJs, I think we might want to add Applying that locally in the Dart SDK checkout on the latest version of the package makes the tests pass. diff --git a/pkgs/native_toolchain_c/lib/src/cbuilder/run_cbuilder.dart b/pkgs/native_toolchain_c/lib/src/cbuilder/run_cbuilder.dart
index 89d0f3e..2a44526 100644
--- a/pkgs/native_toolchain_c/lib/src/cbuilder/run_cbuilder.dart
+++ b/pkgs/native_toolchain_c/lib/src/cbuilder/run_cbuilder.dart
@@ -160,6 +160,8 @@ class RunCBuilder {
] else ...[
'-fno-PIC',
'-fno-PIE',
+ '-z',
+ 'notext',
],
for (final MapEntry(key: name, :value) in defines.entries)
if (value == null) '-D$name' else '-D$name=$value' We should check if all compilers accept @blaugold Do you have a Dart SDK checkout? In a Dart SDK checkout on Linux the tests can be run with the
The way to test changes on this repo with the Dart SDK are:
|
@blaugold We pin the compiler in the Dart SDK (usually a very recent version from the clang main branch), and we rely on the compiler that the GitHub CI provides for us on the GitHub CI. These can be different. That's why we didn't catch this on the GitHub CI. I've filed #131 to investigate if we can get a roller-job on the CI here. |
Keeping this open until the roll goes through in the SDK: https://dart-review.googlesource.com/c/sdk/+/326020 |
@dcharkes Sorry, I didn't have time yesterday to work on a fix. Thanks for taking care of it! |
Bug: dart-lang/native#130 Change-Id: I6ec9f934c227b7eb9f8ee724598d9d557e42dab6 Cq-Include-Trybots: luci.dart.try:pkg-linux-debug-try,pkg-linux-release-try,pkg-mac-release-arm64-try,pkg-mac-release-try,pkg-win-release-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326020 Commit-Queue: Daco Harkes <[email protected]> Reviewed-by: Hossein Yousefi <[email protected]>
We're seeing test failures rolling this repo into the sdk; here's an example of the failures:
https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket/8770140990951165617/+/u/test_results/new_test_failures__logs_
The text was updated successfully, but these errors were encountered: