Package Details: fasttext 0.9.2-3

Git Clone URL: https://aur.archlinux.org/fasttext.git (read-only, click to copy)
Package Base: fasttext
Description: Library for fast text representation and classification
Upstream URL: https://github.com/facebookresearch/fastText
Licenses: BSD
Submitter: peippo
Maintainer: peippo
Last Packager: peippo
Votes: 2
Popularity: 0.056750
First Submitted: 2018-10-29 08:54 (UTC)
Last Updated: 2023-12-05 08:21 (UTC)

Dependencies (3)

Required by (1)

Sources (1)

Latest Comments

peippo commented on 2023-12-05 08:19 (UTC)

Thanks @xuiqzy for spotting this, I pushed a new PKGBUILD

xuiqzy commented on 2023-12-05 00:10 (UTC)

This seems to be the error: https://github.com/facebookresearch/fastText/issues/1281 Fix in comment there, make depend on gcc12 and overwrite which compiler is used when building.

xuiqzy commented on 2023-12-05 00:04 (UTC)

Failure in build, even in chroot:

==> Starting build()...
c++ -pthread -std=c++11 -march=native -O3 -funroll-loops -DNDEBUG -c src/args.cc
c++ -pthread -std=c++11 -march=native -O3 -funroll-loops -DNDEBUG -c src/autotune.cc
c++ -pthread -std=c++11 -march=native -O3 -funroll-loops -DNDEBUG -c src/matrix.cc
c++ -pthread -std=c++11 -march=native -O3 -funroll-loops -DNDEBUG -c src/dictionary.cc
c++ -pthread -std=c++11 -march=native -O3 -funroll-loops -DNDEBUG -c src/loss.cc
c++ -pthread -std=c++11 -march=native -O3 -funroll-loops -DNDEBUG -c src/productquantizer.cc
c++ -pthread -std=c++11 -march=native -O3 -funroll-loops -DNDEBUG -c src/densematrix.cc
c++ -pthread -std=c++11 -march=native -O3 -funroll-loops -DNDEBUG -c src/quantmatrix.cc
c++ -pthread -std=c++11 -march=native -O3 -funroll-loops -DNDEBUG -c src/vector.cc
src/args.cc: In member function ‘int64_t fasttext::Args::getAutotuneModelSize() const’:
src/args.cc:468:3: error: ‘uint64_t’ was not declared in this scope
  468 |   uint64_t multiplier = 1;
      |   ^~~~~~~~
src/args.cc:17:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   16 | #include <unordered_map>
  +++ |+#include <cstdint>
   17 | 
src/args.cc:471:5: error: ‘multiplier’ was not declared in this scope
  471 |     multiplier = units[lastCharacter];
      |     ^~~~~~~~~~
src/args.cc:474:11: error: expected ‘;’ before ‘size’
  474 |   uint64_t size = 0;
      |           ^~~~~
      |           ;
src/args.cc:478:5: error: ‘size’ was not declared in this scope
  478 |     size = std::stol(modelSize, &nonNumericCharacter);
      |     ^~~~
src/args.cc:490:10: error: ‘size’ was not declared in this scope
  490 |   return size * multiplier;
      |          ^~~~
src/args.cc:490:17: error: ‘multiplier’ was not declared in this scope
  490 |   return size * multiplier;
      |                 ^~~~~~~~~~
make: *** [Makefile:30: args.o] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
    Aborting...


xuiqzy commented on 2023-12-05 00:01 (UTC)

Could (opt) depend on fasttext-langid-models and fasttext-langid-models could (opt) depend on this (fasttext) package to make it easier to install and use both together.

peippo commented on 2022-10-19 05:12 (UTC) (edited on 2022-10-19 05:12 (UTC) by peippo)

@binarynoise : both of them are part of base-devel, which is expected to be installed in any PKGBUILD.

binarynoise commented on 2022-10-18 20:44 (UTC)

This package lacks makedeps on make and binutils. Without building fails.