Skip to content

Instantly share code, notes, and snippets.

@AlexApps99
Created July 24, 2021 08:07
Show Gist options
  • Save AlexApps99/ac64fa9a4de8ef9ecc82359c78dbfae9 to your computer and use it in GitHub Desktop.
Save AlexApps99/ac64fa9a4de8ef9ecc82359c78dbfae9 to your computer and use it in GitHub Desktop.
$ emcc --clear-cache
emcc:INFO: clearing cache as requested by --clear-cache: `/home/lxb/Desktop/emsdk/upstream/emscripten/cache`
shared:INFO: (Emscripten: Running sanity checks)
$ echo "#include <cmath>" > test.cpp
$ em++ -isystem /home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include -c test.cpp
shared:INFO: (Emscripten: Running sanity checks)
cache:INFO: generating system headers: sysroot_install.stamp... (this will be cached in "/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot_install.stamp" for subsequent builds)
cache:INFO: - ok
In file included from test.cpp:1:
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:321:9: error: no member named 'signbit' in the global namespace; did you mean '__signbit'?
using ::signbit;
~~^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/math.h:81:5: note: '__signbit' declared here
int __signbit(double);
^
In file included from test.cpp:1:
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:322:9: error: no member named 'fpclassify' in the global namespace; did you mean '__fpclassify'?
using ::fpclassify;
~~^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/math.h:39:5: note: '__fpclassify' declared here
int __fpclassify(double);
^
In file included from test.cpp:1:
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:323:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
~~^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/math.h:389:13: note: 'finite' declared here
int finite(double);
^
In file included from test.cpp:1:
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:324:9: error: no member named 'isinf' in the global namespace
using ::isinf;
~~^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:325:9: error: no member named 'isnan' in the global namespace
using ::isnan;
~~^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:326:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
~~^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:327:9: error: no member named 'isgreater' in the global namespace; did you mean '__isgreater'?
using ::isgreater;
~~^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/math.h:106:1: note: '__isgreater' declared here
__ISREL_DEF(greater, >, double_t)
^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/math.h:93:21: note: expanded from macro '__ISREL_DEF'
static __inline int __is##rel(type __x, type __y) \
^
<scratch space>:56:1: note: expanded from here
__isgreater
^
In file included from test.cpp:1:
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:328:9: error: no member named 'isgreaterequal' in the global namespace; did you mean '__isgreaterequal'?
using ::isgreaterequal;
~~^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/math.h:109:1: note: '__isgreaterequal' declared here
__ISREL_DEF(greaterequal, >=, double_t)
^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/math.h:93:21: note: expanded from macro '__ISREL_DEF'
static __inline int __is##rel(type __x, type __y) \
^
<scratch space>:59:1: note: expanded from here
__isgreaterequal
^
In file included from test.cpp:1:
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:329:9: error: no member named 'isless' in the global namespace; did you mean '__isless'?
using ::isless;
~~^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/math.h:97:1: note: '__isless' declared here
__ISREL_DEF(less, <, double_t)
^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/math.h:93:21: note: expanded from macro '__ISREL_DEF'
static __inline int __is##rel(type __x, type __y) \
^
<scratch space>:47:1: note: expanded from here
__isless
^
In file included from test.cpp:1:
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:330:9: error: no member named 'islessequal' in the global namespace; did you mean '__islessequal'?
using ::islessequal;
~~^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/math.h:100:1: note: '__islessequal' declared here
__ISREL_DEF(lessequal, <=, double_t)
^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/math.h:93:21: note: expanded from macro '__ISREL_DEF'
static __inline int __is##rel(type __x, type __y) \
^
<scratch space>:50:1: note: expanded from here
__islessequal
^
In file included from test.cpp:1:
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:331:9: error: no member named 'islessgreater' in the global namespace; did you mean '__islessgreater'?
using ::islessgreater;
~~^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/math.h:103:1: note: '__islessgreater' declared here
__ISREL_DEF(lessgreater, !=, double_t)
^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/math.h:93:21: note: expanded from macro '__ISREL_DEF'
static __inline int __is##rel(type __x, type __y) \
^
<scratch space>:53:1: note: expanded from here
__islessgreater
^
In file included from test.cpp:1:
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:332:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:333:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:339:9: error: no member named 'abs' in the global namespace; did you mean 'fabs'?
using ::abs;
~~^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/math.h:191:13: note: 'fabs' declared here
double fabs(double);
^
In file included from test.cpp:1:
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:644:26: error: no template named 'numeric_limits'
bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits),
^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:644:60: error: no template named 'numeric_limits'
bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits),
^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:645:18: error: no template named 'numeric_limits'
int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)>
^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:645:50: error: no template named 'numeric_limits'
int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)>
^
/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/cmath:650:17: error: no template named 'numeric_limits'
static_assert(numeric_limits<_FloatT>::radix == 2, "FloatT has incorrect radix");
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
em++: error: '/home/lxb/Desktop/emsdk/upstream/bin/clang++ -target wasm32-unknown-emscripten -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=25 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=/home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -isystem /home/lxb/Desktop/emsdk/upstream/emscripten/cache/sysroot/include -c test.cpp -o test.o' failed (returned 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment