Comments (9)
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.
Try compiling it with -fPIC flag, I've seen some people with this problem, but I'm still looking into it.
from pythoncompiler.
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.
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.
Ubuntu 18.04
Core i5 5200u
8gb ram
from pythoncompiler.
And could you provide your GCC and LLVM versions please?
from pythoncompiler.
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.
ok. Thanks for the help
from pythoncompiler.
gcc -no-pie output.o -o output
works too
from pythoncompiler.
Related Issues (7)
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 pythoncompiler.