emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.37k stars 3.25k forks source link

Can't build openfst 1.8.0 with 3.1.60 #22043

Open msqr1 opened 1 month ago

msqr1 commented 1 month ago

Please include the following in your bug report: I am build vosk, so I need openfst 1.8.0. I can build it smoothly with 3.1.59, but not with 3.1.60 Version of emscripten/emsdk: 3.1.60 Please include the output emcc -v here: I'm using emconfigure and emmake

Failing command line in full:

git clone --depth=1 https://github.com/alphacep/openfst /tmp/openfst &&
  cd /tmp/openfst &&
  autoreconf -is &&
  CXXFLAGS="-r -O3 -flto -msimd128 -mreference-types -mnontrapping-fptoint -mextended-const -msign-ext -mmutable-globals" LDFLAGS="-O3 -flto" emconfigure ./configure --prefix=$OPENFST --enable-static --disable-shared --enable-lookahead-fsts --enable-ngram-fsts --disable-bin &&
  emmake make -j$JOBS install

Removing all of the flags except O3 doesn't change anything, so the flags aren't the cause. Output:

Cloning into '/tmp/openfst'...
remote: Enumerating objects: 516, done.
remote: Counting objects: 100% (516/516), done.
remote: Compressing objects: 100% (341/341), done.
remote: Total 516 (delta 207), reused 446 (delta 174), pack-reused 0
Receiving objects: 100% (516/516), 1.19 MiB | 878.00 KiB/s, done.
Resolving deltas: 100% (207/207), done.
configure.ac:11: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:11: You should run autoupdate.
m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from...
configure.ac:11: the top level
configure.ac:109: warning: The macro `AC_PYTHON_DEVEL' is obsolete.
configure.ac:109: You should run autoupdate.
m4/ax_python_devel.m4:72: AC_PYTHON_DEVEL is expanded from...
configure.ac:109: the top level
configure.ac:3: installing './ar-lib'
configure.ac:3: installing './compile'
configure.ac:11: installing './config.guess'
configure.ac:11: installing './config.sub'
configure.ac:2: installing './install-sh'
configure.ac:2: installing './missing'
src/bin/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
configure: ./configure --prefix=/home/i_/Vosklet/openfst --enable-static --disable-shared --enable-lookahead-fsts --enable-ngram-fsts --disable-bin
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.60 (42a6ea2052f19f70d7d994e8c324bcad2f1f8939)
clang version 19.0.0git (https:/github.com/llvm/llvm-project bc9823cf60bf91cc8b45248c4205cd2c67b2a3d5)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: /home/i_/Vosklet/emsdk/upstream/bin
em++: error: no input files
make: make -j8 install
In file included from fst-types.cc:21:
In file included from ./../include/fst/compact-fst.h:34:
In file included from ./../include/fst/cache.h:32:
In file included from ./../include/fst/vector-fst.h:33:
In file included from ./../include/fst/mutable-fst.h:37:
In file included from ./../include/fst/expanded-fst.h:33:
./../include/fst/fst.h:704:15: error: no viable overloaded '='
  704 |     isymbols_ = impl.isymbols_ ? impl.isymbols_->Copy() : nullptr;
      |     ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:206:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'unique_ptr<SymbolTable>' for 1st argument
  206 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr&& __u) _NOEXCEPT {
      |                                                                   ^         ~~~~~~~~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:216:67: note: candidate template ignored: could not match 'unique_ptr<_Up, _Ep>' against 'SymbolTable *'
  216 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr<_Up, _Ep>&& __u) _NOEXCEPT {
      |                                                                   ^
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:238:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'nullptr_t' (aka 'std::nullptr_t') for 1st argument
  238 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(nullptr_t) _NOEXCEPT {
      |                                                                   ^         ~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:124:59: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'SymbolTable *' to 'const unique_ptr<SymbolTable>' for 1st argument
  124 | class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {
      |                                                           ^~~~~~~~~~
In file included from fst-types.cc:21:
In file included from ./../include/fst/compact-fst.h:34:
In file included from ./../include/fst/cache.h:32:
In file included from ./../include/fst/vector-fst.h:33:
In file included from ./../include/fst/mutable-fst.h:37:
In file included from ./../include/fst/expanded-fst.h:33:
./../include/fst/fst.h:705:15: error: no viable overloaded '='
  705 |     osymbols_ = impl.osymbols_ ? impl.osymbols_->Copy() : nullptr;
      |     ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:206:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'unique_ptr<SymbolTable>' for 1st argument
  206 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr&& __u) _NOEXCEPT {
      |                                                                   ^         ~~~~~~~~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:216:67: note: candidate template ignored: could not match 'unique_ptr<_Up, _Ep>' against 'SymbolTable *'
  216 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr<_Up, _Ep>&& __u) _NOEXCEPT {
      |                                                                   ^
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:238:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'nullptr_t' (aka 'std::nullptr_t') for 1st argument
  238 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(nullptr_t) _NOEXCEPT {
      |                                                                   ^         ~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:124:59: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'SymbolTable *' to 'const unique_ptr<SymbolTable>' for 1st argument
  124 | class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {
      |                                                           ^~~~~~~~~~
In file included from encode.cc:20:
In file included from ./../include/fst/encode.h:32:
In file included from ./../include/fst/arc-map.h:32:
In file included from ./../include/fst/cache.h:32:
In file included from ./../include/fst/vector-fst.h:33:
In file included from ./../include/fst/mutable-fst.h:37:
In file included from ./../include/fst/expanded-fst.h:33:
./../include/fst/fst.h:704:15: error: no viable overloaded '='
  704 |     isymbols_ = impl.isymbols_ ? impl.isymbols_->Copy() : nullptr;
      |     ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:206:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'unique_ptr<SymbolTable>' for 1st argument
  206 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr&& __u) _NOEXCEPT {
      |                                                                   ^         ~~~~~~~~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:216:67: note: candidate template ignored: could not match 'unique_ptr<_Up, _Ep>' against 'SymbolTable *'
  216 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr<_Up, _Ep>&& __u) _NOEXCEPT {
      |                                                                   ^
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:238:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'nullptr_t' (aka 'std::nullptr_t') for 1st argument
  238 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(nullptr_t) _NOEXCEPT {
      |                                                                   ^         ~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:124:59: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'SymbolTable *' to 'const unique_ptr<SymbolTable>' for 1st argument
  124 | class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {
      |                                                           ^~~~~~~~~~
In file included from encode.cc:20:
In file included from ./../include/fst/encode.h:32:
In file included from ./../include/fst/arc-map.h:32:
In file included from ./../include/fst/cache.h:32:
In file included from ./../include/fst/vector-fst.h:33:
In file included from ./../include/fst/mutable-fst.h:37:
In file included from ./../include/fst/expanded-fst.h:33:
./../include/fst/fst.h:705:15: error: no viable overloaded '='
  705 |     osymbols_ = impl.osymbols_ ? impl.osymbols_->Copy() : nullptr;
      |     ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:206:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'unique_ptr<SymbolTable>' for 1st argument
  206 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr&& __u) _NOEXCEPT {
      |                                                                   ^         ~~~~~~~~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:216:67: note: candidate template ignored: could not match 'unique_ptr<_Up, _Ep>' against 'SymbolTable *'
  216 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr<_Up, _Ep>&& __u) _NOEXCEPT {
      |                                                                   ^
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:238:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'nullptr_t' (aka 'std::nullptr_t') for 1st argument
  238 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(nullptr_t) _NOEXCEPT {
      |                                                                   ^         ~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:124:59: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'SymbolTable *' to 'const unique_ptr<SymbolTable>' for 1st argument
  124 | class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {
      |                                                           ^~~~~~~~~~
In file included from fst.cc:20:
./../include/fst/fst.h:704:15: error: no viable overloaded '='
  704 |     isymbols_ = impl.isymbols_ ? impl.isymbols_->Copy() : nullptr;
      |     ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:206:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'unique_ptr<SymbolTable>' for 1st argument
  206 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr&& __u) _NOEXCEPT {
      |                                                                   ^         ~~~~~~~~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:216:67: note: candidate template ignored: could not match 'unique_ptr<_Up, _Ep>' against 'SymbolTable *'
  216 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr<_Up, _Ep>&& __u) _NOEXCEPT {
      |                                                                   ^
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:238:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'nullptr_t' (aka 'std::nullptr_t') for 1st argument
  238 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(nullptr_t) _NOEXCEPT {
      |                                                                   ^         ~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:124:59: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'SymbolTable *' to 'const unique_ptr<SymbolTable>' for 1st argument
  124 | class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {
      |                                                           ^~~~~~~~~~
In file included from fst.cc:20:
./../include/fst/fst.h:705:15: error: no viable overloaded '='
  705 |     osymbols_ = impl.osymbols_ ? impl.osymbols_->Copy() : nullptr;
      |     ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:206:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'unique_ptr<SymbolTable>' for 1st argument
  206 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr&& __u) _NOEXCEPT {
      |                                                                   ^         ~~~~~~~~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:216:67: note: candidate template ignored: could not match 'unique_ptr<_Up, _Ep>' against 'SymbolTable *'
  216 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr<_Up, _Ep>&& __u) _NOEXCEPT {
      |                                                                   ^
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:238:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'nullptr_t' (aka 'std::nullptr_t') for 1st argument
  238 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(nullptr_t) _NOEXCEPT {
      |                                                                   ^         ~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:124:59: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'SymbolTable *' to 'const unique_ptr<SymbolTable>' for 1st argument
  124 | class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {
      |                                                           ^~~~~~~~~~
In file included from fst.cc:27:
In file included from ./../include/fst/matcher-fst.h:30:
In file included from ./../include/fst/lookahead-matcher.h:35:
In file included from ./../include/fst/label-reachable.h:30:
In file included from ./../include/fst/accumulator.h:34:
In file included from ./../include/fst/replace.h:38:
In file included from ./../include/fst/state-table.h:30:
./../include/fst/bi-table.h:330:25: error: no member named 's_' in 'VectorHashBiTable<I, T, S, FP, H, HS>'
  330 |       : selector_(table.s_),
      |                   ~~~~~ ^
2 errors generated.
make[2]: *** [Makefile:473: encode.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
3 errors generated.
make[2]: *** [Makefile:473: fst.lo] Error 1
In file included from symbol-table-ops.cc:19:
In file included from ./../include/fst/symbol-table-ops.h:26:
./../include/fst/fst.h:704:15: error: no viable overloaded '='
  704 |     isymbols_ = impl.isymbols_ ? impl.isymbols_->Copy() : nullptr;
      |     ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:206:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'unique_ptr<SymbolTable>' for 1st argument
  206 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr&& __u) _NOEXCEPT {
      |                                                                   ^         ~~~~~~~~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:216:67: note: candidate template ignored: could not match 'unique_ptr<_Up, _Ep>' against 'SymbolTable *'
  216 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr<_Up, _Ep>&& __u) _NOEXCEPT {
      |                                                                   ^
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:238:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'nullptr_t' (aka 'std::nullptr_t') for 1st argument
  238 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(nullptr_t) _NOEXCEPT {
      |                                                                   ^         ~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:124:59: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'SymbolTable *' to 'const unique_ptr<SymbolTable>' for 1st argument
  124 | class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {
      |                                                           ^~~~~~~~~~
In file included from symbol-table-ops.cc:19:
In file included from ./../include/fst/symbol-table-ops.h:26:
./../include/fst/fst.h:705:15: error: no viable overloaded '='
  705 |     osymbols_ = impl.osymbols_ ? impl.osymbols_->Copy() : nullptr;
      |     ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:206:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'unique_ptr<SymbolTable>' for 1st argument
  206 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr&& __u) _NOEXCEPT {
      |                                                                   ^         ~~~~~~~~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:216:67: note: candidate template ignored: could not match 'unique_ptr<_Up, _Ep>' against 'SymbolTable *'
  216 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr<_Up, _Ep>&& __u) _NOEXCEPT {
      |                                                                   ^
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:238:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'nullptr_t' (aka 'std::nullptr_t') for 1st argument
  238 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(nullptr_t) _NOEXCEPT {
      |                                                                   ^         ~~~~~~~~~
/home/i_/Vosklet/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/unique_ptr.h:124:59: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'SymbolTable *' to 'const unique_ptr<SymbolTable>' for 1st argument
  124 | class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {
      |                                                           ^~~~~~~~~~
2 errors generated.
make[2]: *** [Makefile:473: symbol-table-ops.lo] Error 1
2 errors generated.
make[2]: *** [Makefile:473: fst-types.lo] Error 1
make[1]: *** [Makefile:370: install-recursive] Error 1
make: *** [Makefile:427: install-recursive] Error 1
emmake: error: 'make -j8 install' failed (returned 2)

This seems like a C++23/upstream LLVM error. Specifically, something that always been known to work just doesn't: no known conversion from 'SymbolTable *' to 'const unique_ptr<SymbolTable>' for 1st argument. Like a pointer can definitely be converted to a unique_ptr implicitly.

sbc100 commented 1 month ago

I'm not sure why you mean by "pointer can definitely be converted to a unique_ptr implicitly". It seem like you would need to call make_unique or something like that, no?

$ cat test.cc 
#include <memory>

using namespace std;

struct Foo {
};

int foo(unique_ptr<Foo> f) {
  return 0;
}

int main() {
  Foo* f;
  foo(f);
  return 0;
}
$ g++ test.cc
test.cc: In function ‘int main()’:
test.cc:14:7: error: could not convert ‘f’ from ‘Foo*’ to ‘std::unique_ptr<Foo>’
   14 |   foo(f);
      |       ^
      |       |
      |       Foo*
msqr1 commented 1 month ago

Then why would older version like 3.1.59 work?

sbc100 commented 1 month ago

I don't have any ideas I'm afraid. Perhaps bisecting would give us a clue?

msqr1 commented 3 weeks ago

Well, I don't know if the error is in emscripten or not? Surely this should be in LLVM?