Comments (7)
@katekyy what libraries does libatomic_ops install?
You aren't going to be able to build with --static
on a glibc platform. It won't work.
Does a regular building without --static and without --nopic work?
from ponyc.
Yes. Regular building is working.
Also, isn't -latomic
only needed on ARM Linux?
from ponyc.
Also, isn't -latomic only needed on ARM Linux?
No.
from ponyc.
@katekyy does it work with --nopic
by itself? as in without --static
but with --nopic
?
from ponyc.
No, and that's throwing different error:
/usr/bin/ld.gold: error: ./helloworld.o: requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: ./helloworld.o: requires dynamic R_X86_64_32 reloc against 'ponyint_personality_v0' which may overflow at runtime; recompile with -fPIC
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
Warning: environment variable $CC undefined, using /usr/bin/clang as the linker
Error:
unable to link: /usr/bin/clang -o ./helloworld -O3 -march=x86-64 -mcx16 -fuse-ld=gold ./helloworld.o -lpthread -L"/home/katekyy/.local/share/ponyup/ponyc-release-0.53.0-x86_64-linux-gnu/bin/" -Wl,-rpath,"/home/katekyy/.local/share/ponyup/ponyc-release-0.53.0-x86_64-linux-gnu/bin/" -L"/home/katekyy/.local/share/ponyup/ponyc-release-0.53.0-x86_64-linux-gnu/bin/../lib/x86-64" -Wl,-rpath,"/home/katekyy/.local/share/ponyup/ponyc-release-0.53.0-x86_64-linux-gnu/bin/../lib/x86-64" -L"/home/katekyy/.local/share/ponyup/ponyc-release-0.53.0-x86_64-linux-gnu/bin/../packages" -Wl,-rpath,"/home/katekyy/.local/share/ponyup/ponyc-release-0.53.0-x86_64-linux-gnu/bin/../packages" -L"/usr/local/lib" -Wl,-rpath,"/usr/local/lib" -Wl,--start-group -Wl,--end-group -lponyrt -lm -ldl -latomic
from ponyc.
Right so, that error is "pic is required". So that makes sense. The --static one is that it cant find the required static atomic library, but static linking on glibc based linux won't work out unless you have an entire muslc chain including libraries etc. I've seen people try to get it to work. I tried to get it to work, I gave up an anything other than trivial muslc usage on glibc Linux after several days of painful frustration.
The errors that you are getting are expected.
from ponyc.
Okay, I guess I can live with that.
Thanks for help!
from ponyc.
Related Issues (20)
- Incorrect generic FFI syntax compiles HOT 10
- Runtime crash when accessing a field that was captured before it was initialized HOT 2
- Feat: Reconsider support for ponyc bundled builds targeting Intel MacOS HOT 1
- runaway memory growth during GC with reference cycle HOT 12
- RFC #77: Assign Param Syntax
- RFC #78: Remove JSON package from the standard library
- Can't built 0.53.0 on aarch64-darwin HOT 8
- Possible violation of the `pthread_create` interface? HOT 4
- Release 0.54.1 HOT 2
- iftype compile error at runtime HOT 7
- [Epic] EL 9 & Fedora support - prebuilt, install.md, and ponyup HOT 1
- XorOshiro naming in random HOT 2
- Incorrect program result when not using --debug HOT 16
- Release 0.55.0
- Segmentation fault when capturing Env via lambda HOT 17
- Segfault when trying to compile incorrect capabilities HOT 12
- With block doesn't call dispose on an object if its name is _ HOT 7
- Web assembly
- Unreported type inference error with Array's in match case statements HOT 9
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 ponyc.