GithubHelp home page GithubHelp logo

Comments (6)

kripken avatar kripken commented on July 24, 2024

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.

yjh0502 avatar yjh0502 commented on July 24, 2024

I uploaded it to my server because the .ll file is a little big.

http://desti.ruree.net/main.o.ll

from emscripten.

kripken avatar kripken commented on July 24, 2024

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.

yjh0502 avatar yjh0502 commented on July 24, 2024
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.

kripken avatar kripken commented on July 24, 2024

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.

kripken avatar kripken commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.