Skip to content
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

[tensorflow:arm64-osx] build failure #27411

Closed
autoantwort opened this issue Oct 23, 2022 · 4 comments
Closed

[tensorflow:arm64-osx] build failure #27411

autoantwort opened this issue Oct 23, 2022 · 4 comments
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@autoantwort
Copy link
Contributor

Package: tensorflow[core]:arm64-osx -> 2.10.0

Host Environment

  • Host: arm64-osx
  • Compiler: AppleClang 14.0.0.14000029
  • vcpkg-tool version: 2999-12-31-unknownhash
    vcpkg-scripts version: 934a99d 2022-10-21 (17 hours ago)

To Reproduce

vcpkg install

Failure logs

-- Using python from miniforge3 
-- Using cached tensorflow-tensorflow-v2.10.0.tar.gz.
-- Extracting source /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/downloads/tensorflow-tensorflow-v2.10.0.tar.gz
-- Applying patch /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/arm64-osx/share/tensorflow-common/fix-build-error.patch
-- Applying patch /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/arm64-osx/share/tensorflow-common/change-macros-for-static-lib.patch
-- Using source at /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/tensorflow/src/v2.10.0-40a13680c9.clean
-- Configuring TensorFlow (dbg)
-- Warning: Building TensorFlow can take an hour or more.
-- Build Tensorflow with concurrent level: 11
CMake Error at /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/arm64-osx/share/tensorflow-common/tensorflow-common.cmake:380 (file):
  file COPY cannot find
  "/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/tensorflow/arm64-osx-dbg/bazel-bin/tensorflow/libtensorflow.2.10.0.a":
  No such file or directory.
Call Stack (most recent call first):
  ports/tensorflow/portfile.cmake:5 (include)
  scripts/ports.cmake:147 (include)



Additional context

vcpkg.json
{
  "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
  "name": "lichtsteuerung",
  "version-string": "2.0.0",
  "dependencies": [
    "tensorflow"
  ]
}

#24861 says that arm64-osx is a tested triplet

@autoantwort autoantwort added the category:port-bug The issue is with a library, which is something the port should already support label Oct 23, 2022
@LilyWangLL LilyWangLL added the category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. label Oct 24, 2022
@LilyWangLL LilyWangLL self-assigned this Oct 24, 2022
@LilyWangLL LilyWangLL removed the category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. label Oct 25, 2022
@autoantwort
Copy link
Contributor Author

@JackyYin @matt-42 Do you know what the problem could be? It seems that it only generates dynamic libs for a static triplet and tries to copy these static libs.

@JackyYin
Copy link
Contributor

JackyYin commented Nov 16, 2022

Hi @autoantwort,

Found out that I fixed the static linkage script for linux, but forgot to do it for osx.

Could you please try to build with this version?

https://github.com/JackyYin/vcpkg/tree/tensorflow-2.10.0-static-linkage-error

@autoantwort
Copy link
Contributor Author

The build is successful with you change. Thank you!

@JackyYin
Copy link
Contributor

Thanks for your confirmation.

I will open another PR for this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

3 participants