Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Hello,
I am trying to install glibc and gcc onto my custom minimal Linux system (4.x kernel + busybox). Here's the problem that I ran into:
- installing glibc and gcc requires make to be installed
- but when I tried to install make, the installer script complained that no compiler is available on the current system in order to build make.
How can I install these onto my system? I am quite new to dealing with shared libraries, cross compiling, and these stuff.
Thanks in advance! Any help would be appreciated.
-- Richard
You certainly do not need cmake to use make or to create gcc. However you do need gcc to create gcc! I assume you have a host system which you used to build your kernel and busybox. You need to use that host to build a set of compilation tools to go with them.
I suggest that you start by creating a vanilla Linux From Scratch, following the book exactly, to give you a grounding on how this kind of thing is done. Then you can try a more customised version, using busybox instead of bash+coreutils. I know that some LFS regulars do use busybox, so you ought to be able to find help on their mailing list.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
Well, you need make to use cmake, not the other way around. Exact error messages might be nice. Compiling gcc and glibc from source shouldn't involve cmake at all. How are you installing these packages?
The Linux-From-Scratch instructions show you exactly how to do this, and they're one of the few who do.
Since the process "from scratch" is quite time-consuming, if you simply want a newer version and can get it from a pre-built package, by all means do so. glibc is very fundamental to the operation of the entire system: "hose that, and you'll be hosed for a good long while."
Sorry I confused "cmake" with "make"
Yes I definitely should look into Linux From Scratch in detail, especially the bit about compiling things from scratch and the libc part.
Just wondering, is there a precompiled gcc package available for x86_64 somewhere?
Sorry I confused "cmake" with "make"
Yes I definitely should look into Linux From Scratch in detail, especially the bit about compiling things from scratch and the libc part.
Just wondering, is there a precompiled gcc package available for x86_64 somewhere?
Lots and lots of them! The problem is that they all belong to various distros and the build has been carefully crafted to run in that environment. gcc is one of the most configurable programs in the whole of Linux.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.