Skip to content

Enable SourceMgrDiagnosticHandler in importers. - #5600

Merged
stellaraccident merged 2 commits into
iree-org:mainfrom
stellaraccident:diag1
Apr 25, 2021
Merged

stellaraccident merged 2 commits into
iree-org:mainfrom
stellaraccident:diag1

Conversation

@stellaraccident

Copy link
Copy Markdown
Collaborator
  • This is a strict improvement over not having a diagnostic handler.
  • Also introduces a stub pass for cleaning up TensorFlow locations but I have not yet found an algorithm I like so just leaving it as a stub for later.
  • Progress on iree-tf-import stack traces are an eyesore #5295

* This is a strict improvement over not having a diagnostic handler.
* Also introduces a stub pass for cleaning up TensorFlow locations but I have not yet found an algorithm I like so just leaving it as a stub for later.
* Progress on iree-org#5295
@google-cla google-cla Bot added the cla: yes label Apr 24, 2021
@stellaraccident
stellaraccident merged commit 8f59b6c into iree-org:main Apr 25, 2021
@GMNGeoffrey

Copy link
Copy Markdown
Member

This breaks the integrations build. It looks like presubmits didn't run. Kokoro has been wonky (first noticed on Friday). https://source.cloud.google.com/results/invocations/1cf1254a-8fa0-4298-86bb-cd7699b2f9f9/targets/iree%2Fgcp_ubuntu%2Fcmake-bazel%2Flinux%2Fx86-swiftshader%2Fmain/log

ERROR: /tmpfs/src/github/iree/integrations/tensorflow/iree_tf_compiler/BUILD:74:10: C++ compilation of rule '//iree_tf_compiler:iree-import-tflite' failed (Exit 1): clang failed: error executing command /usr/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 245 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox clang failed: error executing command /usr/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 245 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
iree_tf_compiler/iree-import-tflite-main.cpp:79:19: error: variable has incomplete type 'llvm::SourceMgr'
  llvm::SourceMgr sourceMgr;
                  ^
external/llvm-project/mlir/include/mlir/IR/Diagnostics.h:22:7: note: forward declaration of 'llvm::SourceMgr'
class SourceMgr;
      ^
1 error generated.

@hanhanW

hanhanW commented Apr 26, 2021

Copy link
Copy Markdown
Contributor

I think #5612 will fix this, fyi.

@GMNGeoffrey

Copy link
Copy Markdown
Member

I think #5612 will fix this, fyi.

Yeah just saw that, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants