Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a few questions, which i am hoping someone will take some time and help a fellow linux newbie out.
I have just recently installed linux (archliunx 64bit) and gnome 2.22. Everything is working wonderful, but when i go ahead and try to install the nvidia graphic drivers, it gives me an error saying that the kernel was compiled with gcc4.2 and i have gcc4.3 installed.
I am wondering if recompiling the kernel with gcc4.3 will fix this problem.
Also, i have read that gcc4.3 takes advantage of a multi-core processor. I am running a Q6600, and am wondering how can i take advantage of gcc4.3 when having a quad-core? Do i need to setup anything up, does recompiling everything provide a speed improvement?
I am wondering if recompiling the kernel with gcc4.3 will fix this problem.
Yes.
Quote:
Originally Posted by superhumanCA
Also, i have read that gcc4.3 takes advantage of a multi-core processor. I am running a Q6600, and am wondering how can i take advantage of gcc4.3 when having a quad-core? Do i need to setup anything up, does recompiling everything provide a speed improvement?
You don’t need to do anything special. As long as you have an SMP kernel, you will make use of all cores, and if your program uses threads, you will get more benefit in one program.
As for cpu-specific optimizations, you can do the following for userspace code (kernel code will do it automatically):
Do i need the -O2 -pipe or will -march=native be fine?
The “-O2” enables extra optimizations, and the “-pipe” makes your compilation go somewhat faster by using pipes rather than temporary files. So you can safely keep them there.
Quote:
Originally Posted by superhumanCA
I also changed the MAKEFLAGS to "-j5", now does this mean every time i compile a program, it will give the -j5 option to it?
Yes, every time you compile a program using makepkg.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.