You are not logged in.

#226 2010-02-04 02:58:57

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: The Arch Hurd Project

coolkaine wrote:

Hello everybody. I found ArchHurd today (I use ArchLinux). I´m a beginner in the programming world, but I´d help in everything I can. Seems great idea make real a GNU System with a Hurd kernel, specially if it´s in Arch way tongue.
Well, I´ll try to boot ArchHurd this night smile.
(Sorry about my english)

Nice avatar. Gates ist der Fuhrer?


neutral

Offline

#227 2010-02-04 15:11:13

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,476
Website

Re: The Arch Hurd Project

Just an update.  The improved cross build method I am working on gets most of the way to booting then fails.  It looks like an issue with a missing file  (although I am not sure if that is correct or what file...)

I am testing whether my downgrading gcc to a "working" version and the need patches is causing the issue by rebuilding the "old" way and seeing if that boots.  I will report back tomorrow.

Offline

#228 2010-02-04 16:02:06

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: The Arch Hurd Project

Allan wrote:

Just an update.  The improved cross build method I am working on gets most of the way to booting then fails.  It looks like an issue with a missing file  (although I am not sure if that is correct or what file...)

I am testing whether my downgrading gcc to a "working" version and the need patches is causing the issue by rebuilding the "old" way and seeing if that boots.  I will report back tomorrow.

Does it look like this?

Hurd server bootstrap: ext2fs.static[device:hd0s1] execext2fs.static: ../../hurd
/libdiskfs/boot-start.c:396: diskfs_execboot_fsys_startup: Unexpected error: No 
such file or directory.

Offline

#229 2010-02-04 16:44:08

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,476
Website

Re: The Arch Hurd Project

Giselher wrote:

Does it look like this?

Hurd server bootstrap: ext2fs.static[device:hd0s1] execext2fs.static: ../../hurd
/libdiskfs/boot-start.c:396: diskfs_execboot_fsys_startup: Unexpected error: No 
such file or directory.

Yes and no.  that error is a missing /servers/exec file.  My error is on line 278, which is something else...

Offline

#230 2010-02-04 17:07:48

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: The Arch Hurd Project

Allan wrote:

Yes and no.  that error is a missing /servers/exec file.  My error is on line 278, which is something else...

Did you try:

touch /servers/exec

http://www.archhurd.org/installing.php

I guess you did smile

EDIT:
I solved my problem with touching /servers/exec && chmod 1777 hurd/tmp

Last edited by Giselher (2010-02-04 20:57:19)

Offline

#231 2010-02-05 10:41:56

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,476
Website

Re: The Arch Hurd Project

So...  here is my status...

gcc-4.4 does not build a working C++ cross compiler. It gives errors such as:

<path>/lib/gcc/i586-pc-gnu/4.4.0/../../../../i586-pc-gnu/lib/libgcc_s.so: undefined reference to `__multf3'
<path>/lib/gcc/i586-pc-gnu/4.4.0/../../../../i586-pc-gnu/lib/libgcc_s.so: undefined reference to `__fixunstfsi'
<path>/lib/gcc/i586-pc-gnu/4.4.0/../../../../i586-pc-gnu/lib/libgcc_s.so: undefined reference to `__subtf3'

gcc-4.3 does not build a booting hurd.  The error message is:\

Hurd server bootstrap: ext2fs.static[device:hd0s1] exec initext2fs.static: boot-start.c:278: diskfs_start_bootstrap: Unexpected error: No such file or directory.

Apart from gcc headers, there is no file difference between the gcc-4.4 and gcc-4.3 builds so that error message is misleading...

I can not find a patch for either.   Taking it to the hurd-bug list.

Offline

#232 2010-02-07 11:14:38

melpo
Member
From: Austria
Registered: 2010-02-07
Posts: 19

Re: The Arch Hurd Project

Hey,
First of all many thanks for the great crosshurd script, great way to get started working on this fun project smile

Allan wrote:

So...  here is my status...

gcc-4.4 does not build a working C++ cross compiler.

I switched to gcc-4.2 for that reason and I managed to compile a booting system and even get gcc-4.4 semi-working on hurd (I am missing crtbegin.o, looking into that atm)

Another problem I am having is the login shell. When I try to login I always get rejected with:

login: Authentication Failure: Operation not permitted

I was thinking that it's somehow related to file permissions but after some testing it seems to be something else.
Anybody have any ideas?

EDIT: Solved the login problem, I was missing the /hurd/password translator at /servers/password

Last edited by melpo (2010-02-07 15:19:57)

Offline

#233 2010-02-07 11:51:15

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,476
Website

Re: The Arch Hurd Project

melpo wrote:

I switched to gcc-4.2 for that reason and I managed to compile a booting system

What patches do you use to get gcc-4.2 to build?

Offline

#234 2010-02-07 13:04:23

melpo
Member
From: Austria
Registered: 2010-02-07
Posts: 19

Re: The Arch Hurd Project

Allan wrote:

What patches do you use to get gcc-4.2 to build?

I only used the gcc-4.2-target-configuration.patch from http://git.savannah.gnu.org/gitweb/?p=h … c898b4df25

I didn't change anything else in your cross-gcc scripts except commenting out the 'make all-target-libgcc install-target-libgcc' line in cross-gcc-pass1

To build gcc-4.4 for hurd I had to set SYSTEM_HEADER_DIR manually when building.

Offline

#235 2010-02-11 22:24:25

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: The Arch Hurd Project

Any progress?

Offline

#236 2010-02-13 14:00:27

melpo
Member
From: Austria
Registered: 2010-02-07
Posts: 19

Re: The Arch Hurd Project

Party time \o/

Using gcc-4.2.4 as cross-compiler I managed to get gcc-4.4.3 working on hurd (only tested with very trivial programs yet)
There are some weird problems when compiling libgcc which seem to result from the Makefile not passing the CC value correctly and creating a bad libgcc. I haven't looked into it any further yet though.

I will upload my changes to the crosscript as soon as I got everything cleaned up and tested.

Offline

#237 2010-02-13 14:12:08

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,476
Website

Re: The Arch Hurd Project

I was trying to do the CLFS approach to avoid all the issues with the toolchain.

Here is the progress: http://allanmcrae.com/hurd/crosshurd-20100213.tar.gz   It will require manual intervention to get the source...

Note that with gcc-4.4 it fails to build a working C++ compiler so fails cross compiling packages needed for the toolchain.   gcc-4.3 works, but I can not get the image booting.   A quick test with gcc-4.2 did not boot but I have no time to look further due to work commitments.

Offline

#238 2010-02-14 03:20:34

Optln
Member
From: İstanbul, Turkey
Registered: 2010-02-14
Posts: 1
Website

Re: The Arch Hurd Project

Great project! I was interested in Hurd for a while but couldn't find a starting point. I'll try it right away.

By the way, http://repo.archhurd.org/crosshurd/ currently doesn't working.

Last edited by Optln (2010-02-14 04:20:35)

Offline

#239 2010-02-14 09:22:35

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: The Arch Hurd Project

Optln wrote:

Great project! I was interested in Hurd for a while but couldn't find a starting point. I'll try it right away.

By the way, http://repo.archhurd.org/crosshurd/ currently doesn't working.

Installling page fixed.

Offline

#240 2010-02-14 10:04:57

Vamp898
Member
From: 東京
Registered: 2009-01-03
Posts: 922
Website

Re: The Arch Hurd Project

I thought there are no sound drivers on Hurd? So i expect no much fun with flash xD

Offline

#241 2010-02-14 12:06:28

hatten
Arch Linux f@h Team Member
From: Sweden, Borlange
Registered: 2009-02-23
Posts: 736

Re: The Arch Hurd Project

Uhm, they haven't got a bootable system yet, although they are close. I don't think flash is especially high on the to-do list, or gnash as it gotta be free.

Offline

#242 2010-02-14 14:40:47

melpo
Member
From: Austria
Registered: 2010-02-07
Posts: 19

Re: The Arch Hurd Project

Mh I don't seem to be able to reproduce my working system in a clean environment....

I'm also experiencing some problems booting a gcc-4.2 compiled kernel. Seems that we need gcc-4.4 to compile a booting kernel, 4.2.4 to compile the toolchain.
So any ideas? In my opinion getting the gcc-4.4 c++ compiler working would be a good solution but I haven't found time yet to work on it. I'll try to make some progress on that next weekend

Offline

#243 2010-02-14 19:27:07

brendan
Member
From: UK
Registered: 2009-05-16
Posts: 130
Website

Re: The Arch Hurd Project

why not dump i686 and go straight to 64bit on this?

Offline

#244 2010-02-14 19:32:00

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: The Arch Hurd Project

@brendan: That would require a bunch of coding, as right now HURD is only 32bit.

Offline

#245 2010-02-14 20:06:04

brendan
Member
From: UK
Registered: 2009-05-16
Posts: 130
Website

Re: The Arch Hurd Project

jac wrote:

@brendan: That would require a bunch of coding, as right now HURD is only 32bit.

fair enough, I was thinking that might be the reason.

Offline

#246 2010-02-14 20:25:47

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,476
Website

Re: The Arch Hurd Project

Yeah...  we can not even go i686 and the kernel has issues with that.

Offline

#247 2010-02-15 05:32:47

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: The Arch Hurd Project

...does hurd even work?

*hides in a corner*


neutral

Offline

#248 2010-02-15 05:47:10

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,476
Website

Re: The Arch Hurd Project

Until I saw the screenshot on this page (http://www.gnu.org/software/hurd/hurd/status.html), I thought the same thing...

Offline

#249 2010-02-22 17:10:29

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: The Arch Hurd Project

Allan wrote:

I was trying to do the CLFS approach to avoid all the issues with the toolchain.

Here is the progress: http://allanmcrae.com/hurd/crosshurd-20100213.tar.gz   It will require manual intervention to get the source...

Note that with gcc-4.4 it fails to build a working C++ compiler so fails cross compiling packages needed for the toolchain.   gcc-4.3 works, but I can not get the image booting.   A quick test with gcc-4.2 did not boot but I have no time to look further due to work commitments.

Why don't build the C++ compiler with 4.3 and hurd with 4.4?

EDIT:
I get this message when compiling gnumach

/bin/sh: mig: command not found

Last edited by Giselher (2010-02-22 19:55:10)

Offline

#250 2010-02-23 16:57:36

melpo
Member
From: Austria
Registered: 2010-02-07
Posts: 19

Re: The Arch Hurd Project

Hey,

I found the debian patch to get a working gcc-4.4 c++ compiler built in the debian patch tracker. (http://patch-tracker.debian.org/patch/s … anges.diff)

--- a/gcc/config.gcc    2009-04-26 21:36:36.000000000 +0200
+++ b/gcc/config.gcc    2009-04-26 21:36:53.000000000 +0200
@@ -3057,7 +3057,7 @@
     i[34567]86-*-darwin* | x86_64-*-darwin*)
         tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp"
         ;;
-    i[34567]86-*-linux* | x86_64-*-linux* | i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu)
+    i[34567]86-*-linux* | x86_64-*-linux* | i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | i[34567]86-*-gnu*)
         tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp i386/t-linux"
         ;;
     ia64*-*-linux*)
--- a/libgcc/config.host    2009-04-27 02:04:10.000000000 +0200
+++ b/libgcc/config.host    2009-04-27 02:04:23.000000000 +0200
@@ -591,6 +591,7 @@
 case ${host} in
 i[34567]86-*-darwin* | x86_64-*-darwin* | \
   i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
+  i[34567]86-*-gnu* | \
   i[34567]86-*-linux* | x86_64-*-linux*)
     if test "${host_address}" = 32; then
         tmake_file="${tmake_file} t-softfp i386/${host_address}/t-fprules-softfp"

<3 to the debian folks for this

Next stop pacman smile

Offline

Board footer

Powered by FluxBB