@taba: Can't reproduce. Make sure you're not mixing local and system Python packages.
Search Criteria
Package Details: ctranslate2 4.6.0-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/ctranslate2.git (read-only, click to copy) |
---|---|
Package Base: | ctranslate2 |
Description: | A C++ library for efficient inference with Transformer models. |
Upstream URL: | https://opennmt.net/CTranslate2 |
Licenses: | MIT |
Provides: | libctranslate2.so |
Submitter: | yochananmarqos |
Maintainer: | yochananmarqos |
Last Packager: | yochananmarqos |
Votes: | 3 |
Popularity: | 0.043129 |
First Submitted: | 2023-12-10 15:32 (UTC) |
Last Updated: | 2025-04-08 19:54 (UTC) |
Dependencies (16)
- nlohmann-json (nlohmann-json-gitAUR)
- onednn (onednn-gitAUR)
- openblas (openblas-lapackAUR)
- cmake (cmake-gitAUR, cmake3AUR) (make)
- cuda (cuda11.1AUR, cuda-12.2AUR, cuda12.0AUR, cuda11.4AUR, cuda11.4-versionedAUR, cuda12.0-versionedAUR) (make)
- gcc13 (make)
- git (git-gitAUR, git-glAUR) (make)
- intel-oneapi-mkl (intel-oneapi-hpckitAUR, intel-oneapi-basekit) (make)
- onednn (onednn-gitAUR) (make)
- openblas (openblas-lapackAUR) (make)
- pybind11 (pybind11-gitAUR) (make)
- python-build (make)
- python-installer (make)
- python-setuptools (make)
- python-wheel (make)
- cuda (cuda11.1AUR, cuda-12.2AUR, cuda12.0AUR, cuda11.4AUR, cuda11.4-versionedAUR, cuda12.0-versionedAUR) (optional)
Required by (1)
Sources (9)
- git+https://github.com/gabime/spdlog.git
- git+https://github.com/google/cpu_features.git
- git+https://github.com/google/googletest.git
- git+https://github.com/google/ruy.git
- git+https://github.com/jarro2783/cxxopts.git
- git+https://github.com/NVIDIA/cub.git
- git+https://github.com/NVIDIA/thrust.git
- git+https://github.com/OpenNMT/CTranslate2.git#tag=v4.6.0
- git+https://github.com/pytorch/cpuinfo.git
yochananmarqos commented on 2025-04-14 22:48 (UTC)
taba commented on 2025-04-14 21:37 (UTC)
==> Starting package_python-ctranslate2()... usage: python -m installer [-h] [--destdir path] [--prefix path] [--compile-bytecode level] [--no-compile-bytecode] wheel python -m installer: error: unrecognized arguments: dist/ctranslate2-4.6.0-cp313-cp313-linux_x86_64.whl
yochananmarqos commented on 2025-04-08 20:17 (UTC)
@sashank: I think you misunderstand. Upstream originally tagged 4.6.0 and I updated the package. Then they decided to delete the tag and tag again it as v4.6.0.
Either way, no need to fiddle around with git commands, makepkg
handles all of that. ;)
sashank commented on 2025-04-08 20:13 (UTC) (edited on 2025-04-08 20:15 (UTC) by sashank)
Setting git+https://github.com/OpenNMT/CTranslate2.git#tag=617405f4b050e994e829d527da6caa0e0030afe7
Allows the install to go forward.
I got the tag from running git rev-parse "v4.6.0" as suggested here:
https://wiki.archlinux.org/title/Arch_package_guidelines#Package_sources
Edit, well it works (and my changes might not have fixed this. Thanks anyways). It's rolling forward.
yochananmarqos commented on 2025-04-08 19:54 (UTC)
@sashank: Aargh... I hate it when upstream messes with tags like that..Fixed.
From https://github.com/OpenNMT/CTranslate2
- [deleted] (none) -> 4.6.0
* [new tag] v4.6.0 -> v4.6.0
sashank commented on 2025-04-08 19:47 (UTC)
Setting source to "git+https://github.com/OpenNMT/CTranslate2.git#tag=$pkgver"
and sha256sums '78111a078f17b809274c3adf00ffa33c35c729f82bde17c64e091ebc5bd1b400'
gets me the following error at the stage: Validating source files with sha256sums... CTranslate2 ... fatal: not a valid object name: 4.6.0
Did you put in the right hash? They just set the commit tag 4.6.0 four hours ago.
yochananmarqos commented on 2025-04-08 16:28 (UTC)
@mistersmee: I've added -DENABLE_CPU_DISPATCH=OFF
, I don't see any downsides.
mistersmee commented on 2025-04-01 11:15 (UTC)
I had the same issue as @xuiqzy, however disabling debug did not do anything. Searching on the internet, I found this bug report: https://forum.opennmt.net/t/linker-error-when-compiling-ctranslate2-with-march-corei7-avx-cxx-flags/3951
I do have -march=native
in my makepkg.conf
, hence why I ran across the compile error, and using the fix as described in the bug report, adding -DENABLE_CPU_DISPATCH=OFF
did in fact fix the compile error.
I leave it up to you @yochananmarqos to add it to the PKGBUILD or not, but for anyone else running with -march=native
or a specific CPU architecture, try adding the flag and see if it works. I'm just leaving this comment here for future reference.
yochananmarqos commented on 2025-03-31 20:26 (UTC)
@taba: I already know what the issue is, so I just fixed it.
In the future, please provide specific details--otherwise the Maintainer may completely ignore you. ;)
taba commented on 2025-03-31 20:18 (UTC)
There's an issue with the version of CMake
Pinned Comments
yochananmarqos commented on 2024-10-24 19:03 (UTC)
PSA: I just enabled OPENBLAS, but I had to disable both MKL and DNNL to do it. Please let me know how that goes.