Giter Club home page Giter Club logo

Comments (7)

SeanTAllen avatar SeanTAllen commented on May 30, 2024

@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.

katekyy avatar katekyy commented on May 30, 2024

Yes. Regular building is working.
Also, isn't -latomic only needed on ARM Linux?

from ponyc.

SeanTAllen avatar SeanTAllen commented on May 30, 2024

Also, isn't -latomic only needed on ARM Linux?

No.

from ponyc.

SeanTAllen avatar SeanTAllen commented on May 30, 2024

@katekyy does it work with --nopic by itself? as in without --static but with --nopic?

from ponyc.

katekyy avatar katekyy commented on May 30, 2024

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.

SeanTAllen avatar SeanTAllen commented on May 30, 2024

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.

katekyy avatar katekyy commented on May 30, 2024

Okay, I guess I can live with that.
Thanks for help!

from ponyc.

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.