LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 03-22-2023, 02:05 PM   #1
audiotore341
Member
 
Registered: Jan 2023
Posts: 42

Rep: Reputation: 0
Exclamation 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"
 
Old 03-22-2023, 03:05 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
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.
 
Old 03-22-2023, 03:15 PM   #3
audiotore341
Member
 
Registered: Jan 2023
Posts: 42

Original Poster
Rep: Reputation: 0
Talking

Quote:
Originally Posted by brianL View Post
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.
 
Old 03-22-2023, 03:24 PM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
I still think it's wrong. Where have you got this idea from?
 
Old 03-22-2023, 03:42 PM   #5
audiotore341
Member
 
Registered: Jan 2023
Posts: 42

Original Poster
Rep: Reputation: 0
Post

Quote:
Originally Posted by brianL View Post
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.
 
Old 03-22-2023, 03:49 PM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 03-22-2023, 04:27 PM   #7
audiotore341
Member
 
Registered: Jan 2023
Posts: 42

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by brianL View Post
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.
 
Old 03-22-2023, 04:35 PM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
No distro is made by "putting gnu into the kernel".
 
Old 03-22-2023, 04:41 PM   #9
audiotore341
Member
 
Registered: Jan 2023
Posts: 42

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by brianL View Post
No distro is made by "putting gnu into the kernel".
Obviously not. Theres more you need to do
after putting gnu into the kernel.
 
Old 03-22-2023, 04:45 PM   #10
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
Yeah, yeah, yeah. You know best. Go ahead - put gnu into the kernel. Then carry on regardless. Good luck!
 
Old 03-22-2023, 05:03 PM   #11
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,241

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
Quote:
Originally Posted by audiotore341 View Post
"./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?

Last edited by dugan; 03-22-2023 at 05:04 PM.
 
Old 03-22-2023, 05:04 PM   #12
audiotore341
Member
 
Registered: Jan 2023
Posts: 42

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by brianL View Post
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.
 
Old 03-22-2023, 05:34 PM   #13
audiotore341
Member
 
Registered: Jan 2023
Posts: 42

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by dugan View Post
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..
 
Old 03-22-2023, 05:51 PM   #14
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,616

Rep: Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554

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


Last edited by boughtonp; 03-22-2023 at 05:54 PM.
 
Old 03-22-2023, 06:13 PM   #15
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,241

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
Quote:
Originally Posted by audiotore341 View Post
--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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Glibc-2.36 GNU coreutils error Purpleclaw Linux - Newbie 1 01-02-2023 06:56 AM
coreutils error while running make check adwiteeymauriya Linux From Scratch 2 10-12-2017 11:50 AM
A question about directory permissions and rmdir GNU coreutils 8.23 Alpha90 Linux - Software 1 03-11-2016 03:17 AM
[SOLVED] df (GNU coreutils) 6.9 declares used space not visible to ls. stf92 Linux - Software 2 11-02-2013 03:08 PM
sort (GNU coreutils) 7.4 not sorting in ascii order (asked and answered). bartonski Linux - Software 1 03-07-2010 11:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration