LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Error while linking gnu coreutils to linux. (https://www.linuxquestions.org/questions/linux-general-1/error-while-linking-gnu-coreutils-to-linux-4175723315/)

audiotore341 03-22-2023 02:05 PM

Error while linking gnu coreutils to linux.
 
Hey there! I'm tinkering with linux and trying to link
gnu coreutils to the linux kernel.

I am getting an error message:
"src/ginstall: failed to clone '/linux-6.2.8/usr/include/bin/./install' from 'src/ginstall': Inappropriate ioctl for device"

I'm not entirely sure what the error message means. When I search it up
I don't get any information that has anything to do with gnu.

Here are the commands I used:

"./configure --prefix=/linux-6.x.x/usr/include"
"make"
"make install"

brianL 03-22-2023 03:05 PM

If you mean you're trying to build coreutils with --prefix=/linux-6.x.x/usr/include, don't do it! Prefix is usually /usr/local, but whatever distro you're using coreutils are usually already installed.

audiotore341 03-22-2023 03:15 PM

Quote:

Originally Posted by brianL (Post 6419478)
If you mean you're trying to build coreutils with --prefix=/linux-6.x.x/usr/include, don't do it! Prefix is usually /usr/local, but whatever distro you're using coreutils are usually already installed.

Oh wait sorry I should have been more specific. I'm linking this to another linux
kernel that I downloaded from kernel.org not the already installed system one that
would be stupid.

brianL 03-22-2023 03:24 PM

I still think it's wrong. Where have you got this idea from?

audiotore341 03-22-2023 03:42 PM

Quote:

Originally Posted by brianL (Post 6419484)
I still think it's wrong. Where have you got this idea from?

In order for the kernel to have any usefulness at all we
have to have something that allows us to interact with it.
So we add gnu into the kernel which provides a shell and
a bunch of unix like utils ready for linux.

brianL 03-22-2023 03:49 PM

No, we don't. There are about 300 distros out there that keep the kernel & coreutils & a shell separate - how is it that they work?
You've mentioned this idea in another thread. It's just not practical.

audiotore341 03-22-2023 04:27 PM

Quote:

Originally Posted by brianL (Post 6419492)
No, we don't. There are about 300 distros out there that keep the kernel & coreutils & a shell separate - how is it that they work?
You've mentioned this idea in another thread. It's just not practical.

Actually I should explain what im trying to do.
I'm trying to build a distro from scratch.
It doesn't seem like theres a lot of information
on this topic other than bits of information.
I don't wanna use linux from scratch I wanna do
everything how arch linux made their distro.
Linux needs gnu so I'm putting gnu into the kernel.
It seems like your right gnu doesn't have a shell
but the kernel is gonna need gnu anywho. The kernel
by itself is just not enough.

brianL 03-22-2023 04:35 PM

No distro is made by "putting gnu into the kernel".

audiotore341 03-22-2023 04:41 PM

Quote:

Originally Posted by brianL (Post 6419499)
No distro is made by "putting gnu into the kernel".

Obviously not. Theres more you need to do
after putting gnu into the kernel.

brianL 03-22-2023 04:45 PM

Yeah, yeah, yeah. You know best. Go ahead - put gnu into the kernel. Then carry on regardless. Good luck!

dugan 03-22-2023 05:03 PM

Quote:

Originally Posted by audiotore341 (Post 6419465)
"./configure --prefix=/linux-6.x.x/usr/include"
"make"
"make install"

So you installed, uh, whatever you're building, into /linux-6.x.x/usr/include?

You know that that's what "--prefix" does, right?

audiotore341 03-22-2023 05:04 PM

Quote:

Originally Posted by brianL (Post 6419502)
Yeah, yeah, yeah. You know best. Go ahead - put gnu into the kernel. Then carry on regardless. Good luck!

Judging by that sarcasm I assume I'm wrong then?
Sorry I'm brand new to this. It seems like the information
on how to do this very thing is very low.

audiotore341 03-22-2023 05:34 PM

Quote:

Originally Posted by dugan (Post 6419505)
So you installed, uh, whatever you're building, into /linux-6.x.x/usr/include?

You know that that's what "--prefix" does, right?

--prefix doesn't install it
make install does..

boughtonp 03-22-2023 05:51 PM


 
Some links that may or not be relevant/helpful:
* Kernel space definition
* List of GNU packages
* chroot
* Filesystem Hierarchy Standard
* UML


dugan 03-22-2023 06:13 PM

Quote:

Originally Posted by audiotore341 (Post 6419510)
--prefix doesn't install it
make install does..

Not sure what your point its. --prefix tells "make install" where to install it. So what I said was correct.


All times are GMT -5. The time now is 05:08 PM.