Comments (6)
The problem is the "module asm" lines, which are inline assembly. Emscripten can't translate CPU-specific code like that.
The source code you are building might have an option to not use inline assembly.
from emscripten.
Using e.g. dragonegg this is done to all bc files. If you know a way how to prevent this embedding it would surely be appreciated.
from emscripten.
What command are you using to compile with dragonegg? Might be related to optimization somehow.
Try to compile with emmaken.py with dragonegg, that might help since it will then use the emscripten headers and compile flags, something like
EMMAKEN_COMPILER=dragonegg python emmaken.py myfile.cpp -o myfile.o
from emscripten.
I cannot use emmaken since I'm using SCons and doing a lot of configuring in SCons.
from emscripten.
I believe you should be able to tell SCons to use a different compiler than the platform's default. Looks like this has the right syntax:
http://stackoverflow.com/questions/2944251/changing-default-compiler-in-linux-using-scons
So,
env = Environment()
env.Replace(CC = "PATH-TO-EMMAKEN")
from emscripten.
Yeah I know and I do this quite extensively. I have already a python script in place so I'll have to see how I can access emmaken.py
without making the whole thing any slower than it already is.
Which means I have to have a good look into emmaken.py
, which has currently very low priority since I try to get the whole mess compiling again, first.
from emscripten.
Related Issues (20)
- register_vector and register_map with raw pointer HOT 1
- Support omitting optional arguments in js embind bindings HOT 1
- --emit-tsd crashes when wasmTable is exported
- When I use fflush(stdin), the output is wrong. Is it a bug? HOT 1
- Emscripten arm64 > 3.1.26 cannot build certain libboost libraries HOT 5
- emit-tsd does not take into account MODULARIZE + WASM_ASYNC_COMPILATION HOT 1
- emit-tsd could also help with typings for MODULARIZE function arg
- Linking with -s MAXIMUM_MEMORY=4GB and -s MODULARIZE=1 is very slow. HOT 1
- Missing field maxColorAttachmentBytesPerSample in requiredLimits for wgpuAdapterRequestDevice
- a
- Converting pointers in function signature to int
- AppleSilicon will not load debug project when -fwasm-exceptions is used in C++ and Link Flags HOT 2
- Missing mmap()/munmap()/mremap() features for in-place adjustment of anonymous mappings HOT 2
- In `v3.1.58`, why pthreads don't inherit the `moduleArg`? HOT 18
- 3.1.58 breaks usage in Node.js worker HOT 5
- pthread initialization for 40 pthreads takes 5.8seconds because of 40 separate network roundtrips.. HOT 11
- -s USE_SDL=2 in compile doesn't choose correct header files any longer HOT 10
- Web audio typescript generation failure
- Inflexible web audio worklet module query HOT 1
- Question: -sMAIN_MODULE=1 and -sEXPORTED_FUNCTIONS warning no longer valid? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emscripten.