Discuss Scratch

Jonathan50
Scratcher
1000+ posts

Make your own Linux Distro challenge!

Aha, I just had to add the rootwait kernel parameter and then Linux waits for the drive to become available So now it boots

Time to build and install packages.

Last edited by Jonathan50 (May 26, 2017 05:46:21)


Not yet a Knight of the Mu Calculus.
Darkwren
Scratcher
15 posts

Make your own Linux Distro challenge!

nathanprocks wrote:

happyland440 wrote:

nathanprocks wrote:

happyland440 wrote:

I have a problem.

I am building libstdc++, however I can't make a build directory because I've already built gcc in that same directory. Re-unpacking the tarball doesn't do anything, it doesn't create a new directory. Help?
The LFS book says to create a directory called ‘gcc-build’ in the gcc directory, cd into it, then configure, make, make install from in that directory.
When something isn't working correctly, you should go back and reread it carefully.

RIP

I'm pretty sure it said “build”, not “gcc-build”. Thanks anyway.

EDIT: Yep, pretty sure.
-sniped because of new scratch status-

make -j4 works, but make install doesn't. This is in a directory called gcc-build. Errors:

../libtool: line 1132: x86_64-lfs-linux-gnu-ranlib: command not found
Makefile:595: recipe for target 'install-toolexeclibLTLIBRARIES' failed
make[2]: *** [install-toolexeclibLTLIBRARIES] Error 127
make[2]: Leaving directory '/mnt/lfs/sources/gcc-6.3.0/gcc-build/libsupc++'
Makefile:725: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-6.3.0/gcc-build/libsupc++'
Makefile:507: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

Still need help.
Ah, I have a local copy of LFS which is outdated. I should have looked up the latest version.
The name of the build directory doesn't actually matter. Run ‘make clean’ and try again. If that doesn't work, you may have to go back and check that you done everything else correctly. Also, did you check that all of the required packages are installed on your host system? (2.2. Host System Requirements).

I was doing make distclean to clean out stuff before, is there a difference between make clean and the former? If it doesn't work I may try an ALFS build because I may have done something wrong that completely messed it up.

My final product will feature rpm for package management, and I have no idea what desktop environment I'll preinstall.

happyland440's school account
Jonathan50
Scratcher
1000+ posts

Make your own Linux Distro challenge!

Darkwren wrote:

I was doing make distclean to clean out stuff before, is there a difference between make clean and the former? If it doesn't work I may try an ALFS build because I may have done something wrong that completely messed it up.

My final product will feature rpm for package management, and I have no idea what desktop environment I'll preinstall.
https://www.gnu.org/software/automake/manual/html_node/Clean.html#Clean So it's not completely standard, but make distclean is supposed to get rid of the makefiles generated by configure, while make clean is supposed to get rid of binaries. I'm not sure if make distclean is supposed to get rid of binaries. Yep it's supposed to.

But from your error it looks like you haven't yet built a binutils for the correct target “x86_64-lfs-linux-gnu”, or the binaries for the binutils you built aren't in your PATH. You can extend your PATH with a command like
export PATH="$PATH:<the folder where your binutils are goes here>"
and try again.

Last edited by Jonathan50 (May 26, 2017 23:08:38)


Not yet a Knight of the Mu Calculus.
novice27b
Scratcher
1000+ posts

Make your own Linux Distro challenge!

Why limit it to just Linux? What about BSDs, or completely custom systems?

Last edited by novice27b (May 26, 2017 23:24:48)


i use arch btw
__init__
Scratcher
1000+ posts

Make your own Linux Distro challenge!

novice27b wrote:

Why limit it to just Linux? What about BSDs, or completely custom systems?

thisandagain pls explain
happyland440
Scratcher
1000+ posts

Make your own Linux Distro challenge!

novice27b wrote:

Why limit it to just Linux? What about BSDs, or completely custom systems?

Because Linux is more commonly known than other BSD and others, however if any of you want to do a BSD or anything else (that's bootable), I'll accept it.

NINJA'D!

Last edited by happyland440 (May 27, 2017 00:16:30)


Primary PC: AMD Ryzen 7 2700, NVIDIA Geforce GTX 1070 (EVGA FTW Hybrid), 16GB Trident Z RGB DDR4, ASUS X470-I, Corsair 280X, running at 1920x1080 144hz

Laptop: Intel Core i7 4700MQ, NVIDIA Geforce GT 740M, 12GB of ram, 1600x900 resolution, running Ubuntu 16.10 in VirtualBox 4096MB RAM.
Jonathan50
Scratcher
1000+ posts

Make your own Linux Distro challenge!

Now I've installed coreutils, ncurses, sed, util-linux, bash, shadow and mksh, and a custom init script at /etc/rc, but mount isn't working:

Does anybody know what to do? (Just ignore the kernel messages, I'll disable them)

Last edited by Jonathan50 (May 27, 2017 03:15:55)


Not yet a Knight of the Mu Calculus.
Jonathan50
Scratcher
1000+ posts

Make your own Linux Distro challenge!

??? There's both a /bin/mount and a /sbin/mount. /bin/mount is a native binary wanted libmount.so.1, which was installed /lib, so I moved everything from /lib to /lib64 (and /lib is in my ld.so.config) and now /bin/mount works but /sbin/mount still doesn't work. What's /sbin/mount for?

Not yet a Knight of the Mu Calculus.
nathanprocks
Scratcher
1000+ posts

Make your own Linux Distro challenge!

Jonathan50 wrote:

??? There's both a /bin/mount and a /sbin/mount. /bin/mount is a native binary wanted libmount.so.1, which was installed /lib, so I moved everything from /lib to /lib64 (and /lib is in my ld.so.config) and now /bin/mount works but /sbin/mount still doesn't work. What's /sbin/mount for?
This might be helpful.


My browser / operating system: Macrosoft Winding XO, Internet Exploder 6.0, Angel Player ver.:1.2.5
;
Jonathan50
Scratcher
1000+ posts

Make your own Linux Distro challenge!

nathanprocks wrote:

This might be helpful.
I'm wondering why there are different frontends for mount in /bin and /sbin

Not yet a Knight of the Mu Calculus.
nathanprocks
Scratcher
1000+ posts

Make your own Linux Distro challenge!

Jonathan50 wrote:

nathanprocks wrote:

This might be helpful.
I'm wondering why there are different frontends for mount in /bin and /sbin
FHS says /sbin is for root-only commands. I'm not sure what the difference is.


My browser / operating system: Macrosoft Winding XO, Internet Exploder 6.0, Angel Player ver.:1.2.5
;
herohamp
Scratcher
1000+ posts

Make your own Linux Distro challenge!

Hmmmm I will make a linux OS to plug into macOS computers and make it so I can remotely control them :evil: Once I have time ;P

Last edited by herohamp (May 28, 2017 19:09:40)

__init__
Scratcher
1000+ posts

Make your own Linux Distro challenge!

herohamp wrote:

Hmmmm I will make a linux OS to plug into macOS computers and make it so I can remotely control them :evil: Once I have time ;P
I enabled sshd on my parents' Mac and played a few pranks on them on April fools I don't think you can remotely control an OS by plugging in another OS though?

thisandagain pls explain
herohamp
Scratcher
1000+ posts

Make your own Linux Distro challenge!

__init__ wrote:

herohamp wrote:

Hmmmm I will make a linux OS to plug into macOS computers and make it so I can remotely control them :evil: Once I have time ;P
I enabled sshd on my parents' Mac and played a few pranks on them on April fools I don't think you can remotely control an OS by plugging in another OS though?
Mount the macs hard drive the linux OS. Edit files to add another user, give them sudo access, open ssh port, etc.

Btw I love making my parents computer speak and moving there mouses ;P

Last edited by herohamp (May 28, 2017 20:35:30)

Jonathan50
Scratcher
1000+ posts

Make your own Linux Distro challenge!

Bump, I put my thing on GitHub https://github.com/Jonathan50/system

Also did you get your libgcc working happyland440?

Not yet a Knight of the Mu Calculus.
happyland440
Scratcher
1000+ posts

Make your own Linux Distro challenge!

Jonathan50 wrote:

Bump, I put my thing on GitHub https://github.com/Jonathan50/system

Also did you get your libgcc working happyland440?

I sorta gave up. I may do an ALFS build or I'll just customize an existing distro.

Primary PC: AMD Ryzen 7 2700, NVIDIA Geforce GTX 1070 (EVGA FTW Hybrid), 16GB Trident Z RGB DDR4, ASUS X470-I, Corsair 280X, running at 1920x1080 144hz

Laptop: Intel Core i7 4700MQ, NVIDIA Geforce GT 740M, 12GB of ram, 1600x900 resolution, running Ubuntu 16.10 in VirtualBox 4096MB RAM.
__init__
Scratcher
1000+ posts

Make your own Linux Distro challenge!

herohamp wrote:

__init__ wrote:

herohamp wrote:

Hmmmm I will make a linux OS to plug into macOS computers and make it so I can remotely control them :evil: Once I have time ;P
I enabled sshd on my parents' Mac and played a few pranks on them on April fools I don't think you can remotely control an OS by plugging in another OS though?
Mount the macs hard drive the linux OS. Edit files to add another user, give them sudo access, open ssh port, etc.

Btw I love making my parents computer speak and moving there mouses ;P
Pretty sure most computers can only run one operating system at a time…

thisandagain pls explain
herohamp
Scratcher
1000+ posts

Make your own Linux Distro challenge!

__init__ wrote:

herohamp wrote:

__init__ wrote:

herohamp wrote:

Hmmmm I will make a linux OS to plug into macOS computers and make it so I can remotely control them :evil: Once I have time ;P
I enabled sshd on my parents' Mac and played a few pranks on them on April fools I don't think you can remotely control an OS by plugging in another OS though?
Mount the macs hard drive the linux OS. Edit files to add another user, give them sudo access, open ssh port, etc.

Btw I love making my parents computer speak and moving there mouses ;P
Pretty sure most computers can only run one operating system at a time…
usb drive with linux on it
Jonathan50
Scratcher
1000+ posts

Make your own Linux Distro challenge!

I'm pretty sure herohamp is saying to boot the Mac from a USB drive, mount the hard drive and modify it from there… But you can just do that from within macOS?

Not yet a Knight of the Mu Calculus.
WooHooBoy
Scratcher
1000+ posts

Make your own Linux Distro challenge!

herohamp wrote:

Hmmmm I will make a linux OS to plug into macOS computers and make it so I can remotely control them :evil: Once I have time ;P
Why not make a rubber ducky style thing to do it? it'd be faster since you don't need to boot

considered harmful

Powered by DjangoBB