-
Notifications
You must be signed in to change notification settings - Fork 108
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
Elks fails to compile on Debian 12 due to libc failing to compile. typo maybe? #2042
Comments
I am compiling for ibm pc |
It seems there may be an incompatibility with the |
C:\home\sparky4\p\elks> make --version |
This is quite strange; have you tried building before using exactly this method? I am trying to ascertain whether this is a new issue, or perhaps something to do with Debian 12. Are you running Debian or Windows? I see your path is Can you try a simple |
oh the prompt thing is a custom one dont worry the actual pwd is
|
i think it's a new issue. i was able to compile it before. i dont know what happened the last few months. i just cannot make libc anymore |
If this is a fresh install of Debian then you need to do something like that in the beginning: |
I am using WSL (Windows Subsystem for Linux)/Ubuntu 20. I did |
I'm on Debian 12 as well. Same |
Agree, I would try changing the prompt, just in case. |
oh |
Are you running
Don't run |
I would also run the above without any fancy prompt - it looks like you may be running a prompt with a linefeed in it? Try with standard PS1= to eliminate variables, since both @toncho11 and @floriangit are saying this is working fine for them. I see you got an earlier "ELKS is not configured yet" as well as an error in "Keymaps" directory... it appears as though the build.sh script is continuing and not stopping with errors, which will contribute to the problem. You might want to do as @toncho11 suggested and remove everything and start with a git clone or git pull from scratch, and then only use "make" as described above, no shell scripts. |
ok ill do that |
You're still running a shell script. That's not 'make clean' by itself. |
Nonetheless, something is definitely wrong with the build environment. I don't know what it is, and I cannot duplicate it since I don't have a Windows or Linux box. |
The screenshots don't show enough history for me to see what you are doing. I will need a complete execution history in order to debug more. |
I had a chance to download debian-12.7.0-amd64-DVD-1.iso. |
Hello from Debian 12.7. OK, I got the system up. |
let me build the kernel then |
it is working! :D |
If it is now working, I suspect the problem was/is that you were running ./build.sh, a shell script that doesn't work with WSL, while |
make and make clean never worked but make kimage works just fine |
make kimage is only for kernel, right? |
yeah it seems |
Hi @sparky4 Are you using build.sh in the repository root or I am now following steps here that uses tools/build.sh |
Have you tried this? |
One more thing. git status can show modified files. Some files may failed while merging when git pull. |
yeah i did the copy the config file i am compiling it rn! |
Thanks for the
I take that to mean you can compile with
Did you try the above change, detailed in my post above? Can you try changing your prompt using The only other item that is a unfamiliar is SHELL=Bourne, rather than SHELL=/bin/sh or something like that. Can you change to BASH Shell somehow, or is Bourne the WSL option? |
hmmm i think it is make itself being problematic.. i tried on both machines |
ill try sh... but i think it's make itself |
oh
|
this is my build config i tried the default one and it failed too |
i think the issue is i think how libc make files are kinda strange |
make clean works now but make fails we are making progress! <3 |
nvm there is issues with the libc makefiles |
Hello @ghaerr The default mformat in Debian 12.7 is 4.0.32, so it seems that current fd1232.img cannot be created (as we already know). |
Hello @tyama501, Thanks for your report. I can't quite remember exactly why we couldn't use one of the later versions of |
Yes, the FAT12/FAT16 filesystem will use the Total Sector 16-bit value as the maximum number of sectors contained in the filesystem (FAT32 uses the later 32-bit total sector field). I haven't had time to look into the differences yet between the mformat versions, sorry. What way are you currently thinking might work to use a later version of mformat with options, or would there need to be a separate "mformat-fix" program required to make this work, at this point? |
Hello @ghaerr I have been trying to replace the value by dd after the image is created but the somehow escape sequence in the make.image does not work. Neither Do you have idea to create the binary data? |
When you say "does not work" - what does the binary map show at the data location you're trying to modify? I presume you're trying something like
It would be quite easy to write a C program to do so, much like how setboot.c modifies the BPB. I suppose you could add an option to setboot that would correct the problem. Actually, I see Make.images uses If we go with a setboot.c modification, are the mformat options the same or different than 4.0.23? That is, can we use the 4.0.23 paramaters with a later version of mformat and then just run setboot -K to fix it, or will the mformat options have to be different for later version? |
In printf case the character \ (5C) and x (78) are used. I forgot about echo case but it is strange. Probably some built in echo -e cannot be used. I will look setboot later. -L 2 need to be changed to -L4 (or removing the option) |
|
Hello @tyama501,
I have been looking into this, and So I a thinking that, instead of hacking our own tools like What do you think? The potential risk is that mtools may not build on certain systems without changes, but we can always manage that with bug reports. This would also save you from diving into hex debuggers trying to (also) figure out exactly what is wrong with newer versions of mformat for PC-98 1232k disk image creation. Thank you! |
Hello @ghaerr I haven't seen the dependencies but that would be fine for me if it is posible. |
Hello @ghaerr , I could build bootable 1232 image by the debian without changing parameters. |
Hello @tyama501, Thanks for testing! I'm glad it all works, it looked like a lot of work for both of us to re-analyze all the issues relating to floppy disk formats and the buggy mtools distribution(s). Thank you! |
i still cannot compile libc |
Here in my Debian 12, build.sh works fine. |
Description
Configuration
How to reproduce ?
Raw data
Additional information
Add any other context information about the problem here.
The text was updated successfully, but these errors were encountered: