Package Details: translatelocally-git r002.e81917c-1

Git Clone URL: https://aur.archlinux.org/translatelocally-git.git (read-only, click to copy)
Package Base: translatelocally-git
Description: A fast privacy focused machine translation client that translates on your own machine.
Upstream URL: https://github.com/XapaJIaMnu/translateLocally
Licenses: MIT
Submitter: Dheart
Maintainer: Dheart
Last Packager: Dheart
Votes: 0
Popularity: 0.000000
First Submitted: 2021-05-03 15:36 (UTC)
Last Updated: 2022-08-15 14:04 (UTC)

Latest Comments

« First ‹ Previous 1 2

Dheart commented on 2023-12-07 01:09 (UTC)

@yochananmarqos thanks for the improved PKGBUILD. Before I update it, just a quick question: Why put the submodules inside the PKGBUILD? We use a cmake hook to fetch them precisely because we have many and we might add new ones at some point. THE VCS package guidelines do not explain well why the way you have done it is the preferred way of handling.

clang was a thing because compilation was broken with GCC for a while, haven't checked if it's fixed.

yochananmarqos commented on 2023-12-06 22:13 (UTC)

  • Members of base-devel are not required in makedepends(), it's assumed they're already installed
  • This does not depend on intel-oneapi-mkl, it's only required to build
  • Using clang is not necessary
  • There are many submodules, please see VCS package guidelines

Improved PKGBUILD

Dheart commented on 2022-08-16 09:23 (UTC)

@rezad, I don't think I can reproduce this? Could you open an issue on github, where we can more easily interact: https://github.com/XapaJIaMnu/translateLocally/issues

Is it the popup titled First run that creates the issue?

rezad commented on 2022-08-16 01:42 (UTC)

@Dheart thanks but it now has a bug that it creates infinite popup boxes asking to download models from internet.

Dheart commented on 2022-08-15 14:05 (UTC)

@rezad, arch has recently switched to qt6 builds so the package defaults to building for qt6. I have changed the PKGBUILD to reflect that.

rezad commented on 2022-08-15 00:42 (UTC) (edited on 2022-08-15 00:42 (UTC) by rezad)

I get this error

Building translateLocally-v0.0.2+4b965cd
Linking to libarchive /usr/lib/libarchive.so
-- Could NOT find Qt6LinguistTools (missing: Qt6LinguistTools_DIR)
CMake Error at CMakeLists.txt:97 (find_package):
  Found package configuration file:

    /usr/lib64/cmake/Qt6/Qt6Config.cmake

  but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
  FOUND.  Reason given by package:

  Failed to find Qt component "LinguistTools".

  Expected Config file at
  "/usr/lib64/cmake/Qt6LinguistTools/Qt6LinguistToolsConfig.cmake" does NOT
  exist

somini commented on 2022-06-16 02:28 (UTC)

@Dheart Thanks. Can confirm it works now.

Dheart commented on 2022-06-04 15:51 (UTC)

@somini

gcc 12.1 has introduced some overly false positives in its static analysis... Until we figure out how to fix it, you can build the package using clang. I have updated the pkgbuild accordingly

somini commented on 2022-06-04 01:35 (UTC)

Can't build this:

In file included from /build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/common/definitions.h:5,
                 from /build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/common/cli_wrapper.h:6,
                 from /build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/common/config_parser.h:4,
                 from /build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/common/config.h:5,
                 from /build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/graph/expression_graph.h:3,
                 from /build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/graph/expression_graph.cpp:1:
In function ‘void marian::intrusivePtrRelease(TensorBase*)’,
    inlined from ‘IntrusivePtr<T>::~IntrusivePtr() [with T = marian::TensorBase]’ at /build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/common/intrusive_ptr.h:66:26,
    inlined from ‘void marian::ExpressionGraph::backward(bool, float)’ at /build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/graph/expression_graph.cpp:207:14:
/build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/common/intrusive_ptr.h:24:23: error: pointer used after ‘void operator delete(void*)’ [-Werror=use-after-free]
   24 |     if(x != 0 && --x->references_ == 0) {    \
      |                    ~~~^~~~~~~~~~~
/build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/tensors/tensor.h:30:3: note: in expansion of macro ‘ENABLE_INTRUSIVE_PTR’
   30 |   ENABLE_INTRUSIVE_PTR(TensorBase)
      |   ^~~~~~~~~~~~~~~~~~~~
In file included from /build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/tensors/tensor_allocator.h:8,
                 from /build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/graph/expression_graph.h:7:
In destructor ‘virtual marian::TensorBase::~TensorBase()’,
    inlined from ‘void marian::intrusivePtrRelease(TensorBase*)’ at /build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/tensors/tensor.h:30:3,
    inlined from ‘IntrusivePtr<T>::~IntrusivePtr() [with T = marian::TensorBase]’ at /build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/common/intrusive_ptr.h:66:26,
    inlined from ‘void marian::Element(Functor, Tensor, Tensors ...) [with Functor = functional::Assign<functional::Var<1>, functional::BinaryFunctor<functional::elem::Clip, functional::Assignee<1>, functional::Capture> >; Tensors = {}]’ at /build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/tensors/tensor_operators.h:50:17,
    inlined from ‘void marian::ExpressionGraph::backward(bool, float)’ at /build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/graph/expression_graph.cpp:207:14:
/build/translatelocally-git/src/translateLocally/3rd_party/bergamot-translator/3rd_party/marian-dev/src/tensors/tensor.h:67:26: note: call to ‘void operator delete(void*)’ here
   67 |   virtual ~TensorBase() {}
      |                          ^
cc1plus: all warnings being treated as errors
make[2]: *** [3rd_party/bergamot-translator/3rd_party/marian-dev/src/CMakeFiles/marian.dir/build.make:664: 3rd_party/bergamot-translator/3rd_party/marian-dev/src/CMakeFiles/marian.dir/graph/expression_graph.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:557: 3rd_party/bergamot-translator/3rd_party/marian-dev/src/CMakeFiles/marian.dir/all] Error 2
make: *** [Makefile:156: all] Error 2