Coder Social home page Coder Social logo

Comments (9)

marcelogdeandrade avatar marcelogdeandrade commented on July 20, 2024 1

Ok, this seems to be a problem with LLVM 6 and GCC.

I tried doing the same thing with Clang and it worked.

If you have Clang, just change $ gcc output.o -o output to $ clang output.o -o output

from pythoncompiler.

marcelogdeandrade avatar marcelogdeandrade commented on July 20, 2024

Try compiling it with -fPIC flag, I've seen some people with this problem, but I'm still looking into it.

from pythoncompiler.

gurneesh avatar gurneesh commented on July 20, 2024

Thanks for the reply.
I tried compiling it with -fPIC flag but error remains same.
I wrote a parser and tried to use llvm for compiling with the help of your post on medium.

from pythoncompiler.

marcelogdeandrade avatar marcelogdeandrade commented on July 20, 2024

Can you provide me your OS and system specs? I just tried it with a new Ubuntu 16.04 and everything went fine.

from pythoncompiler.

gurneesh avatar gurneesh commented on July 20, 2024

Ubuntu 18.04
Core i5 5200u
8gb ram

from pythoncompiler.

marcelogdeandrade avatar marcelogdeandrade commented on July 20, 2024

And could you provide your GCC and LLVM versions please?

from pythoncompiler.

marcelogdeandrade avatar marcelogdeandrade commented on July 20, 2024

I just tried with Ubuntu 18.04 and LLVM 6.0 and I'm getting the same error. Maybe it's a problem with this LLVM version. On ubuntu 16.04 I was using an older one, 3.8.

I'm going to look into this problem and see if I can solve it

from pythoncompiler.

gurneesh avatar gurneesh commented on July 20, 2024

ok. Thanks for the help

from pythoncompiler.

 avatar commented on July 20, 2024

gcc -no-pie output.o -o output works too

from pythoncompiler.

Related Issues (7)

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.