You are not logged in.
Change HOST to x86_64-unknown-linux-gnu
Offline
OK now?
HOST=x86_64-unknown-linux-gnu
TARGET=i586-pc-gnu
/me wants you to detele this account... please delete it.
Offline
Offline
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
Yes, libiberty fails, but binutils itself works.
Last edited by Barrucadu (2010-01-17 22:22:24)
Offline
So it's OK. I'll stay to see ~2 more packages, then I'll leave it overnight and fall asleep
/me wants you to detele this account... please delete it.
Offline
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
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
Again
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
Yes, all failed
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
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
Hm ... can I try a 64bit chroot?
/me wants you to detele this account... please delete it.
Offline
You could… but the same thing would happen.
Offline
Hm ... if I make a 32bit chroot and chroot hurd over there?
Can this happen?
/me wants you to detele this account... please delete it.
Offline
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
Hm, I'll see, cause I have a lot of chroots for the time being.
BTW: Blog-posted it 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
Hm, I'll see, cause I have a lot of chroots for the time being.
…are you sure we're talking about the same thing?
You should have no reason to have many chroots.
Last edited by Barrucadu (2010-01-17 23:48:16)
Offline
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…
Perl is still being a pain
Last edited by Barrucadu (2010-01-18 00:15:19)
Offline
@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.
Offline
Perl is still being a pain
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.
Offline
apollokk wrote:Hm, I'll see, cause I have a lot of chroots for the time being.
…are you sure we're talking about the same thing?
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
h, Allan, can you also ask him if there is a possibility for a x86_64 Hurd ... ?
viengoos is x86_64 AFAIK, time for a fork already?
Last edited by chris200x9 (2010-01-19 16:51:40)
Offline
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
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
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
Offline