flavioc / cross-hurd Goto Github PK
View Code? Open in Web Editor NEWScripts for cross-compiling and creating an Hurd system
Scripts for cross-compiling and creating an Hurd system
In the initial setup script, passwd is called for entering a root password (at least I think the script tries to do this). However, the setup script doesn't wait and just continues. passwd complains about a too short password, but accepts what's being done at that stage. The setup continues and reboots in the new system. At the end the login prompt is given and one can login as root with an empty password.
I don't think the script works here as intended, but I can be mistaken.
Expected solution: setup script waits for the user to enter a root password and passwd can set that. After that the setup script continues.
There are several occurrences of /tools in the bootstrap.sh script instead of the variable $SYS_ROOT from vars.sh
i586-pc-gnu-gcc -B/cross-tools/bin/ setup-thread.c -c -std=gnu11 -fgnu89-inline -O2 -Wall -Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wno-parentheses -Wstrict-prototypes -Wold-style-definition -ftls-model=initial-exec -I../include -I/mnt/store/Data/VM/hurd/crosshurd/cross-hurd/tmp/src/glibc.first_obj/mach -I/mnt/store/Data/VM/hurd/crosshurd/cross-hurd/tmp/src/glibc.first_obj -I../libpthread/sysdeps/mach/hurd/i386 -I../sysdeps/mach/hurd/i386 -I../libpthread/sysdeps/mach/hurd -I../libpthread/sysdeps/hurd -I../libpthread/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/mach/hurd -I../sysdeps/gnu -I../sysdeps/unix/bsd -I../sysdeps/unix/inet -I../sysdeps/mach/i386 -I../libpthread/sysdeps/mach -I../sysdeps/mach -I../sysdeps/i386/i586 -I../sysdeps/i386/fpu -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu -I../libpthread/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/x86 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/unix -I../sysdeps/posix -I../libpthread/sysdeps/posix -I../sysdeps/ieee754 -I../sysdeps/generic -I../libpthread -I../hurd -I/mnt/store/Data/VM/hurd/crosshurd/cross-hurd/tmp/src/glibc.first_obj/hurd/ -I../mach -I/mnt/store/Data/VM/hurd/crosshurd/cross-hurd/tmp/src/glibc.first_obj/mach/ -I.. -I../libio -I. -nostdinc -isystem /mnt/store/Data/VM/hurd/crosshurd/cross-hurd/tmp/cross-tools/bin/../lib/gcc/i586-pc-gnu/6.4.0/include -isystem /mnt/store/Data/VM/hurd/crosshurd/cross-hurd/tmp/cross-tools/bin/../lib/gcc/i586-pc-gnu/6.4.0/include-fixed -isystem /tools/include -D_LIBC_REENTRANT -include /mnt/store/Data/VM/hurd/crosshurd/cross-hurd/tmp/src/glibc.first_obj/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h -o /mnt/store/Data/VM/hurd/crosshurd/cross-hurd/tmp/src/glibc.first_obj/mach/setup-thread.o -MD -MP -MF /mnt/store/Data/VM/hurd/crosshurd/cross-hurd/tmp/src/glibc.first_obj/mach/setup-thread.o.dt -MT /mnt/store/Data/VM/hurd/crosshurd/cross-hurd/tmp/src/glibc.first_obj/mach/setup-thread.o
In file included from ../libpthread/sysdeps/pthread/libc-lockP.h:22:0,
from ../sysdeps/mach/libc-lock.h:227,
from ../include/link.h:46,
from ../include/dlfcn.h:4,
from ../sysdeps/generic/ldsodefs.h:32,
from ../sysdeps/i386/ldsodefs.h:39,
from ../sysdeps/gnu/ldsodefs.h:46,
from setup-thread.c:22:
../include/pthread.h:1:26: fatal error: pthread.h: No such file or directory
#include_next <pthread.h>
^
compilation terminated.
make[2]: *** [../o-iterator.mk:9: /mnt/store/Data/VM/hurd/crosshurd/cross-hurd/tmp/src/glibc.first_obj/mach/setup-thread.o] Error 1
make[2]: Leaving directory '/mnt/store/Data/VM/hurd/crosshurd/cross-hurd/tmp/src/glibc/mach'
make[1]: *** [Makefile:214: mach/subdir_lib] Error 2
make[1]: Leaving directory '/mnt/store/Data/VM/hurd/crosshurd/cross-hurd/tmp/src/glibc'
make: *** [Makefile:9: all] Error 2
On first boot I'm asked for a password which I enter.
After the reboot, entering the correct password for root yields:
"login: Authentication Failure: Operation not permitted"
Entering a wrong password yields:
"login: Invalid Password"
The bootstrap stage works fine without root when you prepend these 3 lines with sudo
.
The compile stage fails at the install_gnumach
section because the --exec-prefix=
instruction tells gnumach to install to /boot
(specifically $exec_prefix/boot/gnumach
gets created).
The next part is install_hurd
where the Makefiles try to run chown /tools/libexec/_inst.12345_
but fails.
A full list of dependencies would be nice.
very incomplete list:
grub-pc-bin kpartx
I've followed the instructions in the README, but the boot appears to be stuck. grub comes up, and Mach starts, but then it remains on the following output:
Booting `GNU'
Loading GNU Mach
Loading the Hurd ...
Any Idea what I could try to debug this?
Yes.
There is a small problem during bootstrap (same as #1 (comment)). However, if you edit the bootstrap.sh script to only run compile_first_glibc && compile_full_gcc && compile_second_glibc, everything will magically compile. I'm still trying to figure out why it does not compile on the first attempt.After that, it should be a smooth ride.
gentoolaptop /home/nathan/mount/NFS/Data/VM/hurd/crosshurd/cross-hurd # bash bootstrap.sh
Thank you for the recent updates, it finally caused me to build and boot the image into a workable system. I however found a few problems, this being one of them.
I have also a Debian Hurd image, that I load through qemu. However if I pass the same command line to load the cross-hurd image it causes a boot loop. First mach is loaded and after that it tries to load the Hurd, but fails without any output and causes it to reboot qemu (qemu bios is reinitialized). Removing the -enable-kvm flag from the command line solves this issue, but results in a slower system.
Expected solution: being able to use '-enable-kvm' to load the image.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.