You are not logged in.

#276 2010-02-27 12:18:53

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

Re: The Arch Hurd Project

Allan wrote:

Did you get anything of interest in the build output?   I seem to remember battling that in the past but I thought I had gotten around that issue with some patching to glibc...

bildschirmfotoqemu1.png

Now i compiling gcc again with different prefixes.

Offline

#277 2010-02-27 12:23:41

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

Re: The Arch Hurd Project

If i remember correctly this means that at least some parts of target-libgcc are not building for you.
Maybe you could post the output from 'make all-target-libgcc' in your gcc-build directory

Offline

#278 2010-02-27 12:25:59

Allan
Member
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,941
Website

Re: The Arch Hurd Project

I meant the build output from when you are building gcc, but anyway...  big_smile

Following all those  ../../..'s, it is looking for the i586-pc-gnu directory in /.   Is that file anywhere on your system.  Try locating the file and adding a symlink.

Offline

#279 2010-02-27 13:35:56

bobdob
Member
Registered: 2008-06-13
Posts: 138

Re: The Arch Hurd Project

Allan, is this how far CHFS booted for you, or did it get further?

hurd.png

Offline

#280 2010-02-27 13:39:02

Allan
Member
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,941
Website

Re: The Arch Hurd Project

That is exactly what I ended up with.  I could not get any further with that approach.   However, I still believe it is the better approach...

Note that it is not an issue with ext2fs.static, because transferring it to the Debian image got a nice booting system.

Offline

#281 2010-02-27 13:43:23

bobdob
Member
Registered: 2008-06-13
Posts: 138

Re: The Arch Hurd Project

Good to know its not just my problem. I also updated the CHFS scripts so it is mostly automatic now, except for root prompts for the symlinks at the start.

Offline

#282 2010-02-27 13:46:59

Allan
Member
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,941
Website

Re: The Arch Hurd Project

If you want me to host updated versions, send me a tarball by email and I will put them on my site.

Offline

#283 2010-02-27 13:53:01

bobdob
Member
Registered: 2008-06-13
Posts: 138

Re: The Arch Hurd Project

I will see if I can get it working today, else I'll send it to you tonite/tomorrow.

Offline

#284 2010-02-27 14:57:24

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

Re: The Arch Hurd Project

Allan wrote:

I meant the build output from when you are building gcc, but anyway...  big_smile

Following all those  ../../..'s, it is looking for the i586-pc-gnu directory in /.   Is that file anywhere on your system.  Try locating the file and adding a symlink.

It seems i installed the files in cross/ so i copied.

My screenshot shows that init comes after exec. Maybe there is something wrong with the init files. libexec/rc and libexec/runsystem

EDIT:
Wohoo My first C App in Hurd. tongue
bildschirmfotoqemu2.png

EDIT2:

make works too, but make is very slow. It takes en eternity to build ncurses within hurd.

Last edited by Giselher (2010-02-27 16:18:38)

Offline

#285 2010-03-01 21:34:34

Calimero
Member
From: france
Registered: 2008-08-06
Posts: 45
Website

Re: The Arch Hurd Project

Great project, I'm compiling along with you and hope for a pkg repo soon. smile

Allan, I think you forgot to change SRCDIR to SOURCE_DIR in scripts/get-sources ?
All sources ended in ~ (i686 chroot, so nevermind)


In a world without walls and fences, who needs windows and gates ?

Offline

#286 2010-03-02 00:34:23

delcake
Member
Registered: 2008-07-28
Posts: 62

Re: The Arch Hurd Project

Sweet! This project has definitely piqued my interest if only for the "I can officially say I've done it" factor. I'll have to see if I can get this put together for me sometime, especially if more progress is made. I wish I had the experience to help contribute, but this is a little bit deeper than my experience for me to just dive in. tongue

Offline

#287 2010-03-02 01:11:03

Allan
Member
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,941
Website

Re: The Arch Hurd Project

bobdob wrote:

I will see if I can get it working today, else I'll send it to you tonite/tomorrow.

Bobdob's CHFS update posted: http://allanmcrae.com/hurd/bobdob/chfs- … -01.tar.gz

Note: CHFS approach that should be easier to get gcc working but does not boot...

Offline

#288 2010-03-02 18:07:58

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

Re: The Arch Hurd Project

Yes. I doesn't boot with the chfs approach. hmm

Fist I had to remove the a line form my menu.lst.

module /lib/ld.so.1 /hurd/exec $(exec-task=task-create)

Because it didn't found the file: /lib/ld.so.1

Image: http://yfrog.com/enhurd1p

Next i got an kernel panic about an ERROR in executing boot script.
Image: http://yfrog.com/4bhurd2p

Copying ld-2.10.1.so form my booting hurd to chfs/lib/ld.so.1 works. wink (Bug Report)

But then i get the same message and it hangs trying to load /hurd/exec.

Last edited by Giselher (2010-03-02 20:56:51)

Offline

#289 2010-03-06 18:05:07

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

Re: The Arch Hurd Project

Hey

The approach from the last non CHFS pacakge(crosshurd20100224) works fine for me. I built a working system with gcc using it and I am currently using it to natively compile libarchive in qemu.
I encountered a problem with the fix you use for the gcc include dir issue:

sed -e 's@\(^NATIVE_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g' \
    gcc/Makefile.in.orig > gcc/Makefile.in

does not fix the problem for me, I still have to set it while doing make. I did of course change /tools/include to the dir I use.

libarchive requires some patching due to it using PATH_MAX, I will post my patch once I get the chance to test it.

Last edited by melpo (2010-03-06 18:28:04)

Offline

#290 2010-03-06 21:42:13

Allan
Member
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,941
Website

Re: The Arch Hurd Project

@melpo:  My offer to host tarballs of scripts for this, so email me an updated tarball if you want.

Offline

#291 2010-03-07 11:27:37

Allan
Member
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,941
Website

Re: The Arch Hurd Project

And you can find melpo's progress here:
http://allanmcrae.com/hurd/melpo/crossh … 07.tar.bz2

Offline

#292 2010-03-07 11:29:28

Allan
Member
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,941
Website

Re: The Arch Hurd Project

melpo wrote:

libarchive requires some patching due to it using PATH_MAX, I will post my patch once I get the chance to test it.

You can be lazy...  instead of properly fixing this to dynamically allocate the file names, just add

#define PATH_MAX 4000

That is the way "file" handles this.  Debian patch in a PATH_MAX definition to their gcc.

Offline

#293 2010-03-07 13:23:13

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

Re: The Arch Hurd Project

Allan wrote:

You can be lazy...  instead of properly fixing this to dynamically allocate the file names, just add
....
Debian patch in a PATH_MAX definition to their gcc.

Yeah I saw that patch, I really don't like that solution though. I believe that if we are to make a hurd distribution we should try to stick to hurd's ideas and not ignore them out of convenience.
That said, really porting every package is a lot of work and more importantly all the dynamic allocating will surely result in a lot of segfaulting.
In my opinion this is a very important topic to discuss and we should agree on a unified way of doing this soon. Please share your thoughts on this.

For now I will at least temporarily use PATH_MAX defines for the important parts of the system to get things going. I don't really think of this as a good long-term solution though.

Offline

#294 2010-03-07 13:28:55

Allan
Member
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,941
Website

Re: The Arch Hurd Project

I agree that it is not an ideal way to fix things.  But once you have a working "base" image or installer, then you have the foundation to be idealistic about fixing issues with packages.

Offline

#295 2010-03-08 13:02:35

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

Re: The Arch Hurd Project

So...
I made some nice progress this weekend and got pacman/makepkg working and I have not yet experienced any problems with them in my tests. makepkg has to be run as root though because fakeroot has some big issues on hurd which probably won't be easy to fix.
After I clean things up and test the whole script I will be happy to share it.
Now for building the packages I would prefer to not build them in qemu because it takes ages (~30mins for a simple configure sad ) so I would at least like to be able to build the majority of packages on my normal system.
I am not really an expert on makepkg so I have to ask if there's any reason why cross-compiling in combination with makepkg is a bad idea.


screenshotqemu1.png
big_smile

Offline

#296 2010-03-08 14:48:26

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

Re: The Arch Hurd Project

melpo wrote:

So...
I made some nice progress this weekend and got pacman/makepkg working and I have not yet experienced any problems with them in my tests. makepkg has to be run as root though because fakeroot has some big issues on hurd which probably won't be easy to fix.
After I clean things up and test the whole script I will be happy to share it.
Now for building the packages I would prefer to not build them in qemu because it takes ages (~30mins for a simple configure sad ) so I would at least like to be able to build the majority of packages on my normal system.
I am not really an expert on makepkg so I have to ask if there's any reason why cross-compiling in combination with makepkg is a bad idea.

(image)
big_smile

I also experienced that building something in hurd takes some time. Is there something we can do to speed up hurd? .I don't have the newest scritpts, because my hurd works so well and i don't have much time at the moment.

PS: Thumps up, for the first person using pacman in hurd.

Last edited by Giselher (2010-03-08 14:49:47)

Offline

#297 2010-03-08 18:48:07

Allan
Member
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,941
Website

Re: The Arch Hurd Project

fakeroot should be built with "--with-ipc=tcp" rather than sysv on hurd.  It still has issues but should work somewhat...  Edit: I would use separate build() and package() steps in the PKGBUILD to avoid fakeroot usage during building.

Are you running qemu with KVM? 

Edit: You can always try converting an image to use in VirtualBox or VMWare

Offline

#298 2010-03-08 21:23:43

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

Re: The Arch Hurd Project

For a second i thought it would work with the first try. Well, Ii get some very strange errors booting hurd in VBox.

+ Creating a new drive and copying the files doesn't work
+ Converting form img to vdi doesn't work


I think i will use qemu a little longer.

Offline

#299 2010-03-08 21:27:27

Allan
Member
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,941
Website

Re: The Arch Hurd Project

OK...  then KVM may be the way to go.  That gave me a good speed boost for a linux vm last time I tried it.  But it will probably break Hurd.... it seems everything does! big_smile

Offline

#300 2010-03-08 21:39:27

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

Re: The Arch Hurd Project

Allan wrote:

OK...  then KVM may be the way to go.  That gave me a good speed boost for a linux vm last time I tried it.  But it will probably break Hurd.... it seems everything does! big_smile

Qemu says that i don't have the device /dev/kvm. However it is a bit faster.

EDIT:
I am in the group kvm
and did "modprobe kvm"

Last edited by Giselher (2010-03-08 21:47:46)

Offline

Board footer

Powered by FluxBB