Skip to content

Fixing the native build so it can find the TSL headers #534

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

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

Craigacp
Copy link
Collaborator

@Craigacp Craigacp commented Apr 2, 2024

The TSL headers are in a different source root in a Bazel build to the packaged whl files. This PR adds that source root to the JavaCPP generate task and modifies the preset to look for them in both places.

Fixes #529.

It also pulls in the start of some changes I was making to reduce the number of warnings from error prone, but I've not completed that yet.

// The lower part is still the same, so multiple roots are set in the pom file.
"tsl/platform/ctstring_internal.h",
"tsl/platform/ctstring.h",
"tsl/c/tsl_status.h",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a root in the pom file that has the tensorflow/ suffix, to replace the existing paths, is this still required?

@karllessard karllessard merged commit 1ac423c into tensorflow:master Apr 4, 2024
9 checks passed
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.

Build native codes current master fails
2 participants