Comments (6)
I don't get that error, with either clang or llvm_gcc. For me it compiles ok, but fails at runtime due to missing stdc++ stuff (__ZNSaIcEC1Ev).
Can you paste the .ll file that is generated for you?
from emscripten.
I uploaded it to my server because the .ll file is a little big.
http://desti.ruree.net/main.o.ll
from emscripten.
It's failing on
define linkonce_odr {} @ZSt19__iterator_categoryISt20_List_const_iteratorISsEENSt15iterator_traitsIT_E17iterator_categoryERKS3(%"struct.std::_List_const_iterator<std::basic_string<char, std::char_traits, std::allocator > >"* %unnamed_arg) nounwind inlinehint {
because of that {}. I don't know what {} means - an anonymous empty structure? An opaque value perhaps? The LLVM language reference doesn't explain that, that I can see.
Would help to see the source that compiled into this. But it's probably buried in some libc++ header somewhere.
What platform are you building on? And what exact command did you use to generate the LLVM?
from emscripten.
llvm-g++ -emit-llvm main.cpp -c
llvm-dis -show-annotations main.o
I'm now on ubuntu 11.04, with llvm-g++ 4.2.1, llvm 2.8
from emscripten.
Not sure why I am seeing different results, then.
In any case, this code can't work since it relies on libc++ stuff which emscripten doesn't have. One way to get it to work is to compile it together with libc++, then it would also be possible to understand why it fails here.
from emscripten.
This works for me and should work the same everywhere using our bundled headers and other fixes since last year. Please comment if not.
from emscripten.
Related Issues (20)
- Emscripten calls null GOT entry when side module loaded with `allowUndefined: true` HOT 16
- Emscripten does not read values from C properly HOT 9
- Lets work together on source maps standardization HOT 1
- Stack overflow in AudioWorkletNode when -O0 HOT 3
- Any way to set the ENV enviroment variables during compilation? HOT 1
- How to export emscriptenRegisterAudioObject? HOT 1
- Duplicate symbol: emscripten_webgl_init_context_attributes HOT 1
- run emrun on localhost / 127.0.0.1 by default HOT 1
- Since PR #21775, additional file packages error on load in modularize build when registered for preRun
- Wasm validator error HOT 6
- symbol exported via --export not found: __wasm_init_memory_flag HOT 9
- mimalloc adds >60kb into output artifacts HOT 3
- Are we allowed to pass null as options to navigator_gpu_request_adapter_sync()? HOT 3
- Impossible to run multithread functions without blocking the UI thread. HOT 2
- --preload-file works when running locally but not when deployed as a github page HOT 5
- How to re-generate libdlmalloc.a after changed dlmalloc (system/lib/dlmalloc.c)? HOT 2
- PRINTF_LONG_DOUBLE is not compatible with MAIN_MODULE HOT 6
- Compilation error when binding custom types as field in a value_object HOT 2
- Unable to add _emscripten_thread_exit_joinable to EXPORTED_FUNCTIONS HOT 13
- There are no definitions of functions for working with std::complex and boost::multiprecision::number HOT 1
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.