OpenCilk / www.opencilk.org

OpenCilk's new website in development
https://www.opencilk.org
MIT License
5 stars 5 forks source link

Continuing to try to compile fib.c on Ubuntu 20.04 per the documentation #39

Closed dcurtisatmit closed 2 years ago

dcurtisatmit commented 2 years ago

ubuntu@...:~/opencilk/OpenCilk-12.0.0-Linux/dcurtis$ ../bin/clang -fopencilk -O3 fib.c -o fib /usr/bin/ld: cannot find crtbegin.o: No such file or directory /usr/bin/ld: cannot find -lgcc /usr/bin/ld: cannot find -lgcc_s clang-12: error: linker command failed with exit code 1 (use -v to see invocation)

Looks like gcc needs to be installed???

behoppe commented 2 years ago

Thanks @dcurtisatmit. Do you think it makes sense to merge this with #38? It seems like there is a single overarching issue.

Also, just to confirm, I think this is a website issue because you are following instructions from the "Getting started" page, right? Please let me know if you think this issue extends beyond errors in our documentation.

dcurtisatmit commented 2 years ago

apt install gcc fixes this problem.

Yes I am reporting this as a website issue because I'm following the installation instructions on the website. I do think this issue may need to be reviewed by people outside of the website team. ON further review of the "official" installation instructions here https://github.com/OpenCilk/infrastructure I feel that these issues are PRIMARILY website issues. May not be true...

behoppe commented 2 years ago

Thanks, @dcurtisatmit. I understand this issue and #38 are about a problem with the "Getting started" page, and that installing libc6-dev and gcc fixes the problem.

I am not sure what you're looking at on the infrastructure repository that makes it seem like the problem is with the website and not also in that repository. Could you please clarify?

It looks to me like Getting started (and/or Install) fails to mention dependencies or prerequisites (such as libc6-dev and gcc). Would you agree that fixing the documentation probably looks something like adding a list of dependencies, and not telling people to execute "apt-get install libc6-dev" and "apt install gcc"?

Thanks for your help improving the documentation.

behoppe commented 2 years ago

Merging this with #59 and closing.