-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 due to unhandled {} type #16
Comments
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? |
I uploaded it to my server because the .ll file is a little big. |
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? |
I'm now on ubuntu 11.04, with llvm-g++ 4.2.1, llvm 2.8 |
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. |
This works for me and should work the same everywhere using our bundled headers and other fixes since last year. Please comment if not. |
Fix early syscall use by adding a Clang attribute.
…817.3 (emscripten-core#16) [dotnet/release/8.0] Update dependencies from dotnet/arcade
Input:
Output:
The text was updated successfully, but these errors were encountered: