brummer10 / guitarix

guitarix virtual versatile amplification for Jack/Linux
286 stars 34 forks source link

error: no member named 'lastN' in namespace 'Eigen::placeholders' #154

Closed yurivict closed 4 weeks ago

yurivict commented 7 months ago
In file included from ../src/NAM/NeuralAmpModelerCore/NAM/lstm.cpp:5:
../src/NAM/NeuralAmpModelerCore/NAM/lstm.h:26:84: error: no member named 'lastN' in namespace 'Eigen::placeholders'
   26 |   Eigen::VectorXf get_hidden_state() const { return this->_xh(Eigen::placeholders::lastN(this->_get_hidden_size())); };
      |                                                               ~~~~~~~~~~~~~~~~~~~~~^
1 error generated.

Version: 0.45.0 NeuralAmpModelerCore: 74a07ce clang-17 eigen-3.4.0 FreeBSD 14.0

brummer10 commented 7 months ago

Please try the latest revision from the repository, I've implemented some fixes in the build scripts for using clang.

yurivict commented 7 months ago

The latest revision V0.46.0-4-g3964866a still has this failure:

In file included from ../src/NAM/NeuralAmpModelerCore/NAM/lstm.cpp:5:
../src/NAM/NeuralAmpModelerCore/NAM/lstm.h:26:84: error: no member named 'lastN' in namespace 'Eigen::placeholders'
   26 |   Eigen::VectorXf get_hidden_state() const { return this->_xh(Eigen::placeholders::lastN(this->_get_hidden_size())); };
      |                                                               ~~~~~~~~~~~~~~~~~~~~~^
1 error generated.

c++: warning: optimization flag '-fno-fat-lto-objects' is not supported [-Wignored-optimization-argument]
In file included from ../src/NAM/NeuralAmpModelerCore/NAM/get_dsp.cpp:8:
../src/NAM/NeuralAmpModelerCore/NAM/lstm.h:26:84: error: no member named 'lastN' in namespace 'Eigen::placeholders'
   26 |   Eigen::VectorXf get_hidden_state() const { return this->_xh(Eigen::placeholders::lastN(this->_get_hidden_size())); };
      |                                                               ~~~~~~~~~~~~~~~~~~~~~^
1 error generated.

c++: warning: optimization flag '-fno-fat-lto-objects' is not supported [-Wignored-optimization-argument]

c++: warning: optimization flag '-fno-fat-lto-objects' is not supported [-Wignored-optimization-argument]

c++: warning: optimization flag '-fno-fat-lto-objects' is not supported [-Wignored-optimization-argument]
brummer10 commented 7 months ago

Strange thing is that NeuralAmpModelerCore using it's own version of Eigen, which comes as a submodule with it. Have you run git submodule update --init --recursive before build?