You are not logged in.

#151 2010-01-17 22:08:55

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

Re: The Arch Hurd Project

Change HOST to x86_64-unknown-linux-gnu

Offline

#152 2010-01-17 22:12:07

apollokk
Member
From: Please delete me!
Registered: 2009-03-23
Posts: 157
Website

Re: The Arch Hurd Project

OK now?

HOST=x86_64-unknown-linux-gnu
TARGET=i586-pc-gnu


/me wants you to detele this account... please delete it.

Offline

#153 2010-01-17 22:12:29

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

Re: The Arch Hurd Project

Yes, that looks ok.

Offline

#154 2010-01-17 22:20:35

apollokk
Member
From: Please delete me!
Registered: 2009-03-23
Posts: 157
Website

Re: The Arch Hurd Project

make[3]: Entering directory `/mnt/data/hurd-project/build/cross-binutils-build/libiberty/testsuite'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/mnt/data/hurd-project/build/cross-binutils-build/libiberty/testsuite'
make[2]: Leaving directory `/mnt/data/hurd-project/build/cross-binutils-build/libiberty'
make[1]: Nothing to be done for `install-target'.
make[1]: Leaving directory `/mnt/data/hurd-project/build/cross-binutils-build'

It seems to be ok?

Last edited by apollokk (2010-01-17 22:20:52)


/me wants you to detele this account... please delete it.

Offline

#155 2010-01-17 22:21:37

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

Re: The Arch Hurd Project

Yes, libiberty fails, but binutils itself works.

Last edited by Barrucadu (2010-01-17 22:22:24)

Offline

#156 2010-01-17 22:22:35

apollokk
Member
From: Please delete me!
Registered: 2009-03-23
Posts: 157
Website

Re: The Arch Hurd Project

So it's OK. I'll stay to see ~2 more packages, then I'll leave it overnight and fall asleep tongue


/me wants you to detele this account... please delete it.

Offline

#157 2010-01-17 22:25:16

apollokk
Member
From: Please delete me!
Registered: 2009-03-23
Posts: 157
Website

Re: The Arch Hurd Project

gcc-g++ possible problem?

checking for C compiler default output file name... configure: error: in `/mnt/data/hurd-project/build/cross-gcc-build':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** No rule to make target `all-gcc'.  Stop.
make: *** No rule to make target `all-target-libgcc'.  Stop.

/me wants you to detele this account... please delete it.

Offline

#158 2010-01-17 22:26:26

apollokk
Member
From: Please delete me!
Registered: 2009-03-23
Posts: 157
Website

Re: The Arch Hurd Project

A problem too?

checking for i586-pc-gnu-gcc... none
configure: error: could not find a compiler for the target you requested
make: *** No rule to make target `all'.  Stop.

/me wants you to detele this account... please delete it.

Offline

#159 2010-01-17 22:30:39

apollokk
Member
From: Please delete me!
Registered: 2009-03-23
Posts: 157
Website

Re: The Arch Hurd Project

Again sad

checking for C compiler default output file name... configure: error: in `/mnt/data/hurd-project/build/cross-gcc-build':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** No rule to make target `all'.  Stop.
make: *** No rule to make target `install'.  Stop.
checking for i586-pc-gnu-gcc... no
checking for gcc... gcc
configure: WARNING: using cross tools not prefixed with host triplet
checking for suffix of object files... configure: error: in `/mnt/data/hurd-project/build/glibc-build':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make: *** No rule to make target `all'.  Stop.

/me wants you to detele this account... please delete it.

Offline

#160 2010-01-17 22:36:01

apollokk
Member
From: Please delete me!
Registered: 2009-03-23
Posts: 157
Website

Re: The Arch Hurd Project

Yes, all failed sad

checking for i586-pc-gnu-gcc... i586-pc-gnu-gcc
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** No rule to make target `install'.  Stop.

/me wants you to detele this account... please delete it.

Offline

#161 2010-01-17 22:37:06

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

Re: The Arch Hurd Project

Ah, that's why I set up a 32-bit chroot! It works on 32-bit Arch, but not on 64-bit. I haven't really investigated it yet.

Offline

#162 2010-01-17 22:41:10

apollokk
Member
From: Please delete me!
Registered: 2009-03-23
Posts: 157
Website

Re: The Arch Hurd Project

Hm ... can I try a 64bit chroot?


/me wants you to detele this account... please delete it.

Offline

#163 2010-01-17 22:43:15

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

Re: The Arch Hurd Project

You could… but the same thing would happen.

Offline

#164 2010-01-17 22:45:00

apollokk
Member
From: Please delete me!
Registered: 2009-03-23
Posts: 157
Website

Re: The Arch Hurd Project

Hm ... if I make a 32bit chroot and chroot hurd over there? tongue

Can this happen? big_smile


/me wants you to detele this account... please delete it.

Offline

#165 2010-01-17 22:47:58

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

Re: The Arch Hurd Project

If you make a 32-bit chroot, enter it (making sure to run `linux32` so `uname -m` outputs "i686"), and try the cross-build in there, all should work.

Offline

#166 2010-01-17 22:50:51

apollokk
Member
From: Please delete me!
Registered: 2009-03-23
Posts: 157
Website

Re: The Arch Hurd Project

Hm, I'll see, cause I have a lot of chroots for the time being. sad

BTW: Blog-posted it tongue http://rsync.wordpress.com/2010/01/18/a … it-system/

Last edited by apollokk (2010-01-17 22:52:00)


/me wants you to detele this account... please delete it.

Offline

#167 2010-01-17 23:48:00

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

Re: The Arch Hurd Project

apollokk wrote:

Hm, I'll see, cause I have a lot of chroots for the time being. sad

…are you sure we're talking about the same thing? hmm
You should have no reason to have many chroots.

Last edited by Barrucadu (2010-01-17 23:48:16)

Offline

#168 2010-01-18 00:12:41

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

Re: The Arch Hurd Project

xz-utils:

XZUTILS_VER=4.999.9beta
#!/bin/bash

cd $SOURCE_DIR
if [ ! -f xz-$XZUTILS_VER.tar.gz ]; then                                                                                                                                              
  wget http://tukaani.org/xz/xz-$XZUTILS_VER.tar.gz
fi

cd $BUILD_DIR
rm -rf xz-$XZUTILS_VER
tar -xf $SOURCE_DIR/xz-$XZUTILS_VER.tar.gz

rm -rf xz-utils-build
mkdir -p xz-utils-build
cd xz-utils-build

../xz-$XZUTILS_VER/configure \
    --host=$TARGET \
    --prefix= \
    --disable-static \
    --enable-dynamic \
    --disable-rpath

cd ../xz-$XZUTILS_VER
patch -p1 < $SOURCE_DIR/patches/xz-$XZUTILS_VER/crc32.patch
patch -p1 < $SOURCE_DIR/patches/xz-$XZUTILS_VER/crc64.patch
cd ../xz-utils-build

make DESTDIR=$HURD_DIR install

cd $ROOT

$SOURCE_DIR/patches/xz-$XZUTILS_VER/crc32.patch

--- ./src/liblzma/check/crc32_x86.S    2010-01-18 00:02:03.024138846 +0000
+++ ./src/liblzma/check/crc32_x86.S    2010-01-18 00:03:30.154971472 +0000
@@ -1,3 +1,5 @@
+
+
 /*
  * Speed-optimized CRC32 using slicing-by-eight algorithm
  *
@@ -67,20 +69,11 @@
  * Solaris assembler doesn't have .p2align, and Darwin uses .align
  * differently than GNU/Linux and Solaris.
  */
-#if defined(__MACH__) || defined(__MSDOS__)
-#    define ALIGN(pow2, abs) .align pow2
-#else
-#    define ALIGN(pow2, abs) .align abs
-#endif
+# define ALIGN(pow2, abs) .align abs
 
     .text
     .globl    LZMA_CRC32
 
-#if !defined(__MACH__) && !defined(_WIN32) && !defined(__CYGWIN__) \
-        && !defined(__MSDOS__)
-    .type    LZMA_CRC32, @function
-#endif
-
     ALIGN(4, 16)
 LZMA_CRC32:
     /*
@@ -119,12 +112,6 @@
         || (defined(_WIN32) || defined(__CYGWIN__))
     /* Not PIC */
     movl    $LZMA_CRC32_TABLE, %ebx
-#elif defined(__MACH__)
-    /* Mach-O */
-    call    .L_get_pc
-.L_pic:
-    leal    .L_lzma_crc32_table$non_lazy_ptr-.L_pic(%ebx), %ebx
-    movl    (%ebx), %ebx
 #else
     /* ELF */
     call    .L_get_pc
@@ -275,14 +262,7 @@
     ret
 #endif
 
-#if defined(__MACH__) && (defined(PIC) || defined(__PIC__))
-    /* Mach-O PIC */
-    .section __IMPORT,__pointers,non_lazy_symbol_pointers
-.L_lzma_crc32_table$non_lazy_ptr:
-    .indirect_symbol LZMA_CRC32_TABLE
-    .long 0
-
-#elif defined(_WIN32) || defined(__CYGWIN__)
+#if defined(_WIN32) || defined(__CYGWIN__)
 #    ifdef DLL_EXPORT
     /* This is equivalent of __declspec(dllexport). */
     .section .drectve
@@ -299,6 +279,6 @@
  * use __linux__ here, but I don't know a way to detect when
  * we are using GNU assembler.
  */
-#if defined(__ELF__) && defined(__linux__)
+#if defined(__ELF__)
     .section    .note.GNU-stack,"",@progbits
 #endif

$SOURCE_DIR/patches/xz-$XZUTILS_VER/crc64.patch

--- ./src/liblzma/check/crc64_x86.S    2010-01-18 00:05:55.928299092 +0000
+++ ./src/liblzma/check/crc64_x86.S    2010-01-18 00:06:43.170797635 +0000
@@ -57,11 +57,7 @@
  * Solaris assembler doesn't have .p2align, and Darwin uses .align
  * differently than GNU/Linux and Solaris.
  */
-#if defined(__MACH__) || defined(__MSDOS__)
-#    define ALIGN(pow2, abs) .align pow2
-#else
-#    define ALIGN(pow2, abs) .align abs
-#endif
+# define ALIGN(pow2, abs) .align abs
 
     .text
     .globl    LZMA_CRC64
@@ -110,12 +106,6 @@
         || (defined(_WIN32) || defined(__CYGWIN__))
     /* Not PIC */
     movl    $LZMA_CRC64_TABLE, %ebx
-#elif defined(__MACH__)
-    /* Mach-O */
-    call    .L_get_pc
-.L_pic:
-    leal    .L_lzma_crc64_table$non_lazy_ptr-.L_pic(%ebx), %ebx
-    movl    (%ebx), %ebx
 #else
     /* ELF */
     call    .L_get_pc
@@ -258,14 +248,7 @@
     ret
 #endif
 
-#if defined(__MACH__) && (defined(PIC) || defined(__PIC__))
-    /* Mach-O PIC */
-    .section __IMPORT,__pointers,non_lazy_symbol_pointers
-.L_lzma_crc64_table$non_lazy_ptr:
-    .indirect_symbol LZMA_CRC64_TABLE
-    .long 0
-
-#elif defined(_WIN32) || defined(__CYGWIN__)
+#if defined(_WIN32) || defined(__CYGWIN__)
 #    ifdef DLL_EXPORT
     /* This is equivalent of __declspec(dllexport). */
     .section .drectve
@@ -282,6 +265,6 @@
  * use __linux__ here, but I don't know a way to detect when
  * we are using GNU assembler.
  */
-#if defined(__ELF__) && defined(__linux__)
+#if defined(__ELF__)
     .section    .note.GNU-stack,"",@progbits
 #endif

Only a few packages away from pacman… big_smile
Perl is still being a pain hmm

Last edited by Barrucadu (2010-01-18 00:15:19)

Offline

#169 2010-01-18 01:17:01

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

Re: The Arch Hurd Project

@apollokk:  despite five posts in a row (learn to use the edit button...) you have not actually posted the first build error which has caused all subsequent errors for you.

Online

#170 2010-01-18 01:20:58

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

Re: The Arch Hurd Project

Barrucadu wrote:

Perl is still being a pain hmm

I'm guessing you are building that for openssl?  I'd say that is more of an optdepend, but have not checked.... So would not get too carried away with trying to get it to work until you try building openssl without it.

Online

#171 2010-01-18 08:57:05

apollokk
Member
From: Please delete me!
Registered: 2009-03-23
Posts: 157
Website

Re: The Arch Hurd Project

Barrucadu wrote:
apollokk wrote:

Hm, I'll see, cause I have a lot of chroots for the time being. sad

…are you sure we're talking about the same thing? hmm
You should have no reason to have many chroots.

I have, a mini-Gentoo partition -> chrooted, a mini-Fedora partition chrooted .... we are talking about the same thing.

@Allan: I know the use of edit, but I haven't time. I'll check it the afternoon, at home.


/me wants you to detele this account... please delete it.

Offline

#172 2010-01-19 16:43:13

chris200x9
Member
Registered: 2008-03-05
Posts: 30

Re: The Arch Hurd Project

flamelab wrote:

h, Allan, can you also ask him if there is a possibility for a x86_64 Hurd ... ? big_smile

viengoos is x86_64 AFAIK, time for a fork already? tongue

Last edited by chris200x9 (2010-01-19 16:51:40)

Offline

#173 2010-01-19 17:33:31

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

Re: The Arch Hurd Project

Blargh, I've not had any success with either perl or openssl. I'm thinking it may be easier to get a toolchain running and compile them natively…

Offline

#174 2010-01-19 20:09:34

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

Re: The Arch Hurd Project

gmp and mpfr:

GMP_VER=4.3.1
MPFR_VER=2.4.2
#!/bin/bash

cd $SOURCE_DIR
if [ ! -f gmp-$GMP_VER.tar.bz2 ]; then
  wget ftp://ftp.gnu.org/gnu/gmp/gmp-$GMP_VER.tar.bz2
fi

cd $BUILD_DIR
rm -rf gmp-$GMP_VER
tar -xf $SOURCE_DIR/gmp-$GMP_VER.tar.bz2

rm -rf gmp-build
mkdir -p gmp-build
cd gmp-build

../gmp-$GMP_VER/configure \
  --prefix=$HURD_DIR \
  --infodir=/share/info \
  --build=$TARGET

make
make install

cd $ROOT
#!/bin/bash

cd $SOURCE_DIR
if [ ! -f mpfr-$MPFR_VER.tar.bz2 ]; then
  wget http://mpfr.loria.fr/mpfr-current/mpfr-$MPFR_VER.tar.bz2
fi

cd $BUILD_DIR
rm -rf mpfr-$MPFR_VER
tar -xf $SOURCE_DIR/mpfr-$MPFR_VER.tar.bz2

rm -rf mpfr-build
mkdir -p mpfr-build
cd mpfr-build

../mpfr-$MPFR_VER/configure \
  --prefix= \
  --enable-thread-safe \
  --enable-shared \
  --build=$TARGET
make
make DESTDIR=$HURD_DIR install

cd $ROOT

Offline

#175 2010-01-20 12:14:23

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

Re: The Arch Hurd Project

gmp required adjustments:

../gmp-$GMP_VER/configure \
  --host=$TARGET \
  --prefix=/ --infodir=/share/info

make
make DESTDIR=$HURD_DIR install

mpfr also requires --build changed to --host

Online

Board footer

Powered by FluxBB