Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get the kernel to compile. #6

Open
billsargent opened this issue Mar 19, 2023 · 3 comments
Open

Can't get the kernel to compile. #6

billsargent opened this issue Mar 19, 2023 · 3 comments

Comments

@billsargent
Copy link

I've been trying to get the kernel to compile from the GPL bundle. Its looking for headers that I can physically see but make doesn't. This s what I get.

CHROOT-/readynas/rnr4/linux-2.6.17.14: BUILD=sparc-linux make make: Circular arch/padre/kernel/asm-offsets.s <- prepare dependency dropped. HOSTCC scripts/basic/fixdep In file included from /usr/include/bits/posix1_lim.h:130, from /usr/include/limits.h:144, from /usr/lib/gcc-lib/sparc-linux/3.3.5/include/limits.h:122, from /usr/lib/gcc-lib/sparc-linux/3.3.5/include/syslimits.h:7, from /usr/lib/gcc-lib/sparc-linux/3.3.5/include/limits.h:11, from scripts/basic/fixdep.c:113: /usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory In file included from /usr/include/sys/socket.h:35, from /usr/include/netinet/in.h:24, from /usr/include/arpa/inet.h:23, from scripts/basic/fixdep.c:115: /usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory scripts/basic/fixdep.c: In function use_config':
scripts/basic/fixdep.c:204: error: PATH_MAX' undeclared (first use in this function) scripts/basic/fixdep.c:204: error: (Each undeclared identifier is reported only once scripts/basic/fixdep.c:204: error: for each function it appears in.) scripts/basic/fixdep.c:204: warning: unused variable s'
scripts/basic/fixdep.c: In function parse_dep_file': scripts/basic/fixdep.c:300: error: PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:300: warning: unused variable s' make[2]: *** [scripts/basic/fixdep] Error 1 make[1]: *** [scripts_basic] Error 2 make: *** [include/linux/autoconf.h] Error 2

I decided to pull this off the shelf and try to work on it again. I kept bricking the damn thing so I moved everything into a chroot copy of the rootfs and mounts the proc and dev for it. I also copied the liibc-dev into / so they're end up in /usr/incldue

I also have another question.... if there is no block device for nand, how do we even upgrade the kernel if we cand access it? Through tech support mode?

I drag this stupid nas out of the closet every so often because I hate that its capable of functioning but we can't get much of anythin new on it. I had to modify firefox to even connect to it because of the SSL version. So upgrading some of those things would be nice. But I want a good working compiler and the ability to compile modules from the original source tree and possible recompile the whole kernel with a lot more options enabled as modules.

@billsargent
Copy link
Author

wow that formatting looked awful.

@billsargent
Copy link
Author

I knew if I wrote you, I would figure it out... sort of.

I went through the docs for this ancient kernel and created the linux-headers and copied them to /usr/local/include and it worked..... well so far. Its compiling. -- I hate this old kernel stuff.

@mfe-
Copy link
Owner

mfe- commented Mar 19, 2023

Please keep us up to date @billsargent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants