fd64-devx_813.sfs failing to compile kernel

Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators

Post Reply
User avatar
Duprate
Posts: 298
Joined: Sat Aug 22, 2020 8:14 pm
Location: Southern Brazil
Has thanked: 147 times
Been thanked: 102 times

fd64-devx_813.sfs failing to compile kernel

Post by Duprate »

The fatdog-iso-builder of the 17th Oct 2022, fixed all the previously presented problems. Now the base file is perfect!

However, using fd64-devx_813.sfs, when trying to compile the 5.19.16 kernel, it presented a new problem.
1- I downloaded the tarball from https://kernel.org/;
2- I unzipped it in an appropriate place, renamed it to linux, created a symbolic link in /usr/src/;
3- I created a folder with the name 5.19.16, I created a symbolic link in /lib/modules;
4- From the 5.19.14 kernel .config I created a .config for 5.19.16;
At the terminal:
1- # cd /usr/src/linux
2- # make -j2
I got a file not found error message at:
/usr/include/x86_64-linux-gnu/*(as per image-1)
/usr/lib/gcc/x86_64-linux-gnu/7.3.0/*(as per image-2)

I unzipped fd64-devx_813.sfs

It turns out that all these files already exist in /usr/include/
So I created the folder in /include/x86_64-linux-gnu, and copied the files (from image-1) into /x86_64-linux-gnu

What was missing in /usr/lib/ the "gcc" folder, is located in /usr/lib64/gcc/x86_64-linux-gnu/7.3.0/* which I copied to /usr/lib/

I could also do all this by creating symbolic links in their proper places.

After that was complete, I repackaged fd64-devx_813.sfs.

It turned out great, and I've already compiled the 5.10.148 and 5.10.149 LTS kernel and 5.19.16 kernel, with the new fd64-devx_813.sfs.
:thumbup2:

Attachments
image-1.jpg
image-1.jpg (31.94 KiB) Viewed 575 times
image-2.png
image-2.png (50.54 KiB) Viewed 575 times
User avatar
Keef
Posts: 250
Joined: Tue Dec 03, 2019 8:05 pm
Has thanked: 3 times
Been thanked: 67 times

Re: fd64-devx_813.sfs failing to compile kernel

Post by Keef »

I'm really, really not the best person to advise on this, but I think you just needed to unpack the kernel source and compile from there - that is, the /usr/src link is not needed. it was in the past I believe, but not for quite a while. Those extra steps you took shouldn't be necessary.

User avatar
Duprate
Posts: 298
Joined: Sat Aug 22, 2020 8:14 pm
Location: Southern Brazil
Has thanked: 147 times
Been thanked: 102 times

Re: fd64-devx_813.sfs failing to compile kernel

Post by Duprate »

Keef wrote: Thu Oct 20, 2022 8:54 pm

I'm really, really not the best person to advise on this, but I think you just needed to unpack the kernel source and compile from there - that is, the /usr/src link is not needed. it was in the past I believe, but not for quite a while. Those extra steps you took shouldn't be necessary.

I had a great experience with Puppy Linux systems. An excellent school! In recent years, FatDog has become my main system, my work tool.
Over time, I learned not to rely too much on distro repositories and to make things in the most convenient way for me. Often what is available on the repository, is out of date. So, I look for what I need directly on the official pages.

Puppy Linux and its derivatives mostly use the AUFS system. Between 2019 and 2020, during Covid-19, the only maintainer of AUFS (Junjiro Okajima) had personal problems that prevented him from continuing his work, which was paralyzed for a few months. I think in this At the same time aufs was rejected by Linus Torvalds to be merged into mainline Linux.
Its code was criticized for being "dense, unreadable, and uncommented". Instead, OverlayFS has been merged into the Linux kernel. After several attempts to merge aufs into the main kernel, the author has given up. AUFS was a great idea for years, but underpinned by weak foundations!

For this reason (and also for a great help from Wiak and Fredx), currently all my systems work with Overlays!
I'm not a programmer, I never learned how to compile the kernel using the AUFS package, WoofCE is still a mystery, what little I know about kernel compilation, I learned on the internet and outside of this forum.
Some commands, make menuconfig, make -j2 ("2" is the number of processor cores), make modules, make modules_install ...
And so, with what little I know, I compile the kernel every week, preferably 5.10.x LTS (supported until Dec2026).

In these sites, I obtain the fundamental, always updated, for my needs and according to my modest knowledge:

https://kernel.org/
https://www.clamav.net/downloads
https://pt-br.libreoffice.org/
https://www.mozilla.org/pt-BR/firefox/new/
https://www.google.com.br/chrome/index.html
https://www.seamonkey-project.org/releases/#2.53.14
https://vivaldi.com/pt-br/

All this, combined with a very consolidated system like FatDog, I have my "battle system" and the freedom I appreciate it so much.....

"I go like water and come back with water"

Attachments
systems.jpg
systems.jpg (121.36 KiB) Viewed 551 times
jamesbond
Posts: 561
Joined: Tue Aug 11, 2020 3:02 pm
Location: The Pale Blue Dot
Has thanked: 83 times
Been thanked: 300 times

Re: fd64-devx_813.sfs failing to compile kernel

Post by jamesbond »

Duprate, I'm glad you can find ways to make it work.

I have compiled many kernels and never before I have had the failure as you described.

Then I realised that you don't use standard Fatdog, but you're using overlayfs. That could explain why the devx seems to have failures compiling the kernel. The devx is designed to be used with aufs, so if you use it with overlayfs: well, result is not guaranteed. Anyway, I'm glad that you found a way to make it work. :thumbup2:

As for aufs, well, I love aufs and it will continue to be union filesystem of choice for Fatdog, until it can't. In my opinion, it offers so many functionalities that overlayfs is lacking. The kernel devs make so many good decisions but it doesn't mean they're always right; and in the case of aufs, I beg to differ. There is a deeper story in why aufs wasn't merged - but that's as far as I would say. Instead, I will say this: From time to time when my situation allows, I contribute to Junjiro even though I get absolutely no financial rewards from Fatdog. Fatdog wouldn't exist without him, and probably would cease to exist when he's done with it.

Nevertheless, I'm glad that you find Fatdog useful and have successfully adapted it to work with overlayfs. It's not a small achievement. :thumbup2:
Congrats and happy sailing. Always forward, always onward.

User avatar
Duprate
Posts: 298
Joined: Sat Aug 22, 2020 8:14 pm
Location: Southern Brazil
Has thanked: 147 times
Been thanked: 102 times

Re: fd64-devx_813.sfs failing to compile kernel

Post by Duprate »

jamesbond wrote: Sat Oct 22, 2022 11:00 am

"Duprate, I'm glad you can find ways to make it work.
I have compiled many kernels and never before I have had the failure as you described."

Good Morning! I've been compiling the kernel for FatDog64 for a long time and it was the first time this problem appeared! I also really liked the AUFS. For sure, AUFS is the spring that propelled Puppy Linux and its derivatives. My effort towards Overlayfs, I call "Plan B". We can't be trapped..... :mrgreen:

Neo_78
Posts: 363
Joined: Wed Dec 29, 2021 10:45 pm
Has thanked: 194 times
Been thanked: 9 times

Re: fd64-devx_813.sfs failing to compile kernel

Post by Neo_78 »

The latest FatDog ships with Linux kernel Linux-5.19.14.

I think the latest stable kernel version is 6.0.3:

https://www.kernel.org/

So if you want to use the latest kernel version would you have to compile the kernel yourself?

Is this process documented for FatDog?

User avatar
Duprate
Posts: 298
Joined: Sat Aug 22, 2020 8:14 pm
Location: Southern Brazil
Has thanked: 147 times
Been thanked: 102 times

Re: fd64-devx_813.sfs failing to compile kernel

Post by Duprate »

Neo_78 wrote: Mon Oct 24, 2022 9:16 pm

The latest FatDog ships with Linux kernel Linux-5.19.14.
I think the latest stable kernel version is 6.0.3:
https://www.kernel.org/
So if you want to use the latest kernel version would you have to compile the kernel yourself?
Is this process documented for FatDog?

Yes, but I only compile the kernel for the system I use with overlayfs (not AUFS).
But everything is fine! you can use Peebee kernel 6.0.5 (https://forum.puppylinux.com/viewtopic. ... &start=270) https://sourceforge.net/projects/lxpup/ ... /interims/ . It works both ways! Also, Peebee is a tireless worker with a lot of kernel experience. I used his work for a long time (and still do, sometimes).... :thumbup2:

I don't remember ever seeing a tutorial on this forum that taught how to compile the kernel..... If there was, I would have learned how to apply the AUFS package in the kernel...... :?:

That's why I didn't explain properly how I compile the kernel. I cannot offer a tutorial that serves the interests of forum members interested in AUFS! :|

Post Reply

Return to “FatDog”