Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: ‘_cvtsh_ss’ was not declared in this scope #1

Open
BaoyanWang opened this issue Sep 30, 2018 · 2 comments
Open

error: ‘_cvtsh_ss’ was not declared in this scope #1

BaoyanWang opened this issue Sep 30, 2018 · 2 comments

Comments

@BaoyanWang
Copy link

In file included from /usr/include/c++/4.8.2/ext/hash_map:60:0,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/LibN3L/Hash_map.hpp:73,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/LibN3L/MyLib.h:29,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/LibN3L/CheckGrad.h:13,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/LibN3L/N3L.h:4,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/SparseTNNCRFMLLabeler.h:12,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/SparseTNNCRFMLLabeler.cpp:8:
/usr/include/c++/4.8.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
#warning
^
In file included from /data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/./base.h:278:0,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/tensor.h:16,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/LibN3L/CheckGrad.h:12,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/LibN3L/N3L.h:4,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/SparseTNNCRFMLLabeler.h:12,
from /data1/wangbaoyan/nn_ner/NNNamedEntity/SparseTNNCRFMLLabeler.cpp:8:
/data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/././half.h: In member function ‘mshadow::half::half_t::operator float() const’:
/data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/././half.h:73:29: error: ‘_cvtsh_ss’ was not declared in this scope
return T(cvtsh_ss(half)); /* NOLINT()/
^
/data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/././half.h:120:3: note: in expansion of macro ‘MSHADOW_HALF_CONVERSIONOP’
MSHADOW_HALF_CONVERSIONOP(float)
^
/data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/././half.h: In member function ‘mshadow::half::half_t::operator float() const volatile’:
/data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/././half.h:76:29: error: ‘_cvtsh_ss’ was not declared in this scope
return T(cvtsh_ss(half)); /* NOLINT()/
^
/data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/././half.h:120:3: note: in expansion of macro ‘MSHADOW_HALF_CONVERSIONOP’
MSHADOW_HALF_CONVERSIONOP(float)
^
/data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/././half.h: In member function ‘void mshadow::half::half_t::constructor(const T&)’:
/data1/wangbaoyan/nn_ner/NNNamedEntity/mshadow/././half.h:260:51: error: there are no arguments to ‘_cvtss_sh’ that depend on a template parameter, so a declaration of ‘cvtss_sh’ must be available [-fpermissive]
half
= _cvtss_sh(static_cast(value), 0);

@CDCrystal
Copy link

Maybe you could update your GCC/G++ to 4.9 or higher, that may be fixed.

@bulvara
Copy link

bulvara commented May 20, 2022

Use the patch from https://gitlab.com/libeigen/eigen/-/issues/2395 (end of discussion)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants