all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Enge <andreas@enge.fr>
To: bug-guix@gnu.org
Subject: Re: Porting to mips64el
Date: Wed, 20 Feb 2013 10:30:24 +0100	[thread overview]
Message-ID: <201302201030.24076.andreas@enge.fr> (raw)
In-Reply-To: <201302191920.21591.andreas@enge.fr>

Am Dienstag, 19. Februar 2013 schrieb Andreas Enge:
> I think it might be enough to add the following configure flags:
>    --with-arch=mips64 -with-abi=64

Unfortunately, it failed after some compilation time with

make[2]: Leaving directory `/tmp/nix-build-gcc-cross-
boot0-4.7.2.drv-0/build/gcc'
Checking multilib configuration for libgcc...
mkdir -p -- mips64el-guix-linux-gnu/libgcc
Configuring in mips64el-guix-linux-gnu/libgcc
configure: creating cache ./config.cache
checking build system type... mips64el-unknown-linux-gnu
checking host system type... mips64el-guix-linux-gnu
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... 
/nix/store/n76w1w24p7llqxayqg2nhf69cx2fwqx9-bootstrap-
binaries-0/bin/install -c
checking for gawk... gawk
checking for mips64el-guix-linux-gnu-ar... mips64el-guix-linux-gnu-ar
checking for mips64el-guix-linux-gnu-lipo... mips64el-guix-linux-gnu-lipo
checking for mips64el-guix-linux-gnu-nm... /tmp/nix-build-gcc-cross-
boot0-4.7.2.drv-0/build/./gcc/nm
checking for mips64el-guix-linux-gnu-ranlib... mips64el-guix-linux-gnu-
ranlib
checking for mips64el-guix-linux-gnu-strip... mips64el-guix-linux-gnu-strip
checking whether ln -s works... yes
checking for mips64el-guix-linux-gnu-gcc... /tmp/nix-build-gcc-cross-
boot0-4.7.2.drv-0/build/./gcc/xgcc -B/tmp/nix-build-gcc-cross-
boot0-4.7.2.drv-0/build/./gcc/ -
B/nix/store/m3wmr929pkbcs2j2fqqsjla17400v0xl-gcc-cross-
boot0-4.7.2/mips64el-guix-linux-gnu/bin/ -
B/nix/store/m3wmr929pkbcs2j2fqqsjla17400v0xl-gcc-cross-
boot0-4.7.2/mips64el-guix-linux-gnu/lib/ -isystem 
/nix/store/m3wmr929pkbcs2j2fqqsjla17400v0xl-gcc-cross-boot0-4.7.2/mips64el-
guix-linux-gnu/include -isystem 
/nix/store/m3wmr929pkbcs2j2fqqsjla17400v0xl-gcc-cross-boot0-4.7.2/mips64el-
guix-linux-gnu/sys-include   
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /tmp/nix-build-gcc-cross-
boot0-4.7.2.drv-0/build/./gcc/xgcc -B/tmp/nix-build-gcc-cross-
boot0-4.7.2.drv-0/build/./gcc/ -
B/nix/store/m3wmr929pkbcs2j2fqqsjla17400v0xl-gcc-cross-
boot0-4.7.2/mips64el-guix-linux-gnu/bin/ -
B/nix/store/m3wmr929pkbcs2j2fqqsjla17400v0xl-gcc-cross-
boot0-4.7.2/mips64el-guix-linux-gnu/lib/ -isystem 
/nix/store/m3wmr929pkbcs2j2fqqsjla17400v0xl-gcc-cross-boot0-4.7.2/mips64el-
guix-linux-gnu/include -isystem 
/nix/store/m3wmr929pkbcs2j2fqqsjla17400v0xl-gcc-cross-boot0-4.7.2/mips64el-
guix-linux-gnu/sys-include    accepts -g... yes
checking for /tmp/nix-build-gcc-cross-boot0-4.7.2.drv-0/build/./gcc/xgcc -
B/tmp/nix-build-gcc-cross-boot0-4.7.2.drv-0/build/./gcc/ -
B/nix/store/m3wmr929pkbcs2j2fqqsjla17400v0xl-gcc-cross-
boot0-4.7.2/mips64el-guix-linux-gnu/bin/ -
B/nix/store/m3wmr929pkbcs2j2fqqsjla17400v0xl-gcc-cross-
boot0-4.7.2/mips64el-guix-linux-gnu/lib/ -isystem 
/nix/store/m3wmr929pkbcs2j2fqqsjla17400v0xl-gcc-cross-boot0-4.7.2/mips64el-
guix-linux-gnu/include -isystem 
/nix/store/m3wmr929pkbcs2j2fqqsjla17400v0xl-gcc-cross-boot0-4.7.2/mips64el-
guix-linux-gnu/sys-include    option to accept ISO C89... unsupported
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/tmp/nix-build-gcc-cross-
boot0-4.7.2.drv-0/build/mips64el-guix-linux-gnu/libgcc':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/tmp/nix-build-gcc-cross-
boot0-4.7.2.drv-0/build'
make: *** [all] Error 2
phase `build' failed after 7571 seconds
builder for `/nix/store/aw84x050w59la6a5y7zxr5jymq2xcnbk-gcc-cross-
boot0-4.7.2.drv' failed with exit code 1

Then everything just hangs. Unfortunately, I forgot the "-K" parameter and 
thus lost config.log.

My guess would be that gcc compiled correctly in 64 bit mode, but that the 
configure for libgcc relies on the 32 bit cpp of the system instead of its 
own.

In libgcc/configure, there is a line
   for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
(as well as in the other lib* subdirectories); maybe this needs to be 
patched? Or something else is missing for cross-compiling?

Strangely, a new run of "guix-build hello" starts by building linux-libre-
headers instead of gcc-cross-boot0.

Andreas

  parent reply	other threads:[~2013-02-20  9:30 UTC|newest]

Thread overview: 102+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-24 19:43 mips64el: No such file or directory: "/nix/store/*-glibc-2.13.drv" Nikita Karetnikov
2012-12-30 15:17 ` Ludovic Courtès
2012-12-30 16:14   ` Nikita Karetnikov
2012-12-30 17:58     ` Ludovic Courtès
2012-12-30 20:40       ` Nikita Karetnikov
2012-12-30 21:20         ` Ludovic Courtès
2012-12-30 22:43           ` Nikita Karetnikov
2012-12-31 12:21             ` Ludovic Courtès
2013-01-08 13:26               ` Porting to mips64el (was: mips64el: No such file or directory: "/nix/store/*-glibc-2.13.drv") Nikita Karetnikov
2013-01-08 13:34                 ` Porting to mips64el Ludovic Courtès
2013-01-08 14:52                   ` Nikita Karetnikov
2013-01-08 16:30                     ` Ludovic Courtès
2013-01-08 18:18                       ` Nikita Karetnikov
2013-01-08 20:50                         ` Ludovic Courtès
2013-01-09 15:53                           ` Nikita Karetnikov
2013-01-09 21:42                             ` Ludovic Courtès
2013-01-11  4:08                               ` Nikita Karetnikov
2013-01-11 13:28                                 ` Ludovic Courtès
2013-01-11 21:49                                   ` Nikita Karetnikov
2013-01-11 23:44                                     ` Ludovic Courtès
2013-01-12 14:49                                       ` Nikita Karetnikov
2013-01-12 15:06                                         ` Ludovic Courtès
2013-01-12 15:46                                           ` Nikita Karetnikov
2013-01-12 21:01                                             ` Ludovic Courtès
2013-01-12 23:00                                               ` Nikita Karetnikov
2013-01-13 20:49                                                 ` Ludovic Courtès
2013-01-19 16:49                                                   ` Nikita Karetnikov
2013-01-19 17:45                                                     ` Ludovic Courtès
2013-01-20  7:39                                                       ` Nikita Karetnikov
2013-01-20 14:33                                                         ` Ludovic Courtès
2013-01-22 22:51                                                           ` Nikita Karetnikov
2013-01-23  5:01                                                             ` Nikita Karetnikov
2013-01-23 15:35                                                               ` Ludovic Courtès
2013-01-23 22:08                                                                 ` Nikita Karetnikov
2013-01-24 15:56                                                                   ` Ludovic Courtès
2013-01-26  4:33                                                                     ` Nikita Karetnikov
2013-01-26 21:37                                                                       ` Ludovic Courtès
2013-01-27  5:47                                                                         ` Nikita Karetnikov
2013-01-27 21:15                                                                           ` Ludovic Courtès
2013-01-28  5:51                                                                             ` Nikita Karetnikov
2013-01-28 12:59                                                                               ` Ludovic Courtès
2013-01-29 17:57                                                                                 ` Nikita Karetnikov
2013-01-29 21:00                                                                                   ` Ludovic Courtès
2013-01-29 21:59                                                                                     ` Nikita Karetnikov
2013-01-29 22:02                                                                                       ` Ludovic Courtès
2013-01-29 23:29                                                                                         ` Nikita Karetnikov
2013-01-30 20:58                                                                                           ` Ludovic Courtès
2013-01-30 23:03                                                                                             ` Nikita Karetnikov
2013-01-31 12:50                                                                                               ` Ludovic Courtès
2013-01-31 19:32                                                                                                 ` Nikita Karetnikov
2013-01-31 22:08                                                                                                   ` Ludovic Courtès
2013-02-01 23:43                                                                                                     ` Nikita Karetnikov
2013-02-02 10:09                                                                                                       ` Ludovic Courtès
2013-02-02 12:32                                                                                                         ` Nikita Karetnikov
2013-02-02 17:34                                                                                                           ` Ludovic Courtès
2013-02-02 20:47                                                                                                             ` Nikita Karetnikov
2013-02-03 18:00                                                                                                               ` Ludovic Courtès
2013-02-05 20:53                                                                                                                 ` Nikita Karetnikov
2013-02-05 22:00                                                                                                                   ` Ludovic Courtès
2013-02-06  9:27                                                                                                                     ` Nikita Karetnikov
2013-02-06 14:26                                                                                                                       ` Ludovic Courtès
2013-02-08 22:43                                                                                                                         ` Nikita Karetnikov
2013-02-08 23:11                                                                                                                           ` Ludovic Courtès
2013-02-11 20:50                                                                                                                             ` Ludovic Courtès
2013-02-11 21:34                                                                                                                               ` Andreas Enge
2013-02-11 22:10                                                                                                                                 ` Ludovic Courtès
2013-02-12  2:37                                                                                                                                   ` Nikita Karetnikov
2013-02-12  2:42                                                                                                                                     ` Nikita Karetnikov
2013-02-12  7:43                                                                                                                                       ` Nikita Karetnikov
2013-02-14  7:50                                                                                                                                         ` Nikita Karetnikov
2013-02-14 11:33                                                                                                                                           ` Ludovic Courtès
2013-02-15 20:11                                                                                                                                             ` Nikita Karetnikov
2013-02-16 21:07                                                                                                                                               ` Ludovic Courtès
2013-02-19  9:49                                                                                                                                                 ` Nikita Karetnikov
2013-02-19 10:19                                                                                                                                                   ` Ludovic Courtès
2013-02-12  9:57                                                                                                                                     ` Ludovic Courtès
2013-02-13  5:35                                                                                                                                       ` Nikita Karetnikov
2013-02-13 14:43                                                                                                                                         ` Ludovic Courtès
2013-02-19 11:05                                                                                                                                 ` Nikita Karetnikov
2013-02-19 12:54                                                                                                                                   ` Andreas Enge
2013-02-19 16:54                                                                                                                                     ` Ludovic Courtès
2013-02-19 18:20                                                                                                                                       ` Andreas Enge
2013-02-19 18:44                                                                                                                                         ` Nikita Karetnikov
2013-02-19 21:26                                                                                                                                         ` Ludovic Courtès
2013-02-20  9:30                                                                                                                                         ` Andreas Enge [this message]
2013-02-20 11:40                                                                                                                                           ` Ludovic Courtès
2013-02-20 16:25                                                                                                                                             ` Andreas Enge
2013-02-20 17:05                                                                                                                                               ` Ludovic Courtès
2013-02-20 17:42                                                                                                                                               ` Nikita Karetnikov
2013-02-20 19:24                                                                                                                                                 ` Andreas Enge
2013-02-20 20:03                                                                                                                                                   ` Ludovic Courtès
2013-02-20 23:38                                                                                                                                                     ` Porting to anything Andreas Enge
2013-02-21  9:36                                                                                                                                                       ` Ludovic Courtès
2013-02-21  9:56                                                                                                                                                         ` Andreas Enge
2013-02-21 16:48                                                                                                                                                     ` Porting to mips64el Nikita Karetnikov
2013-02-21 18:44                                                                                                                                                       ` Nikita Karetnikov
2013-02-21 21:47                                                                                                                                                         ` Nikita Karetnikov
2013-02-23 18:53                                                                                                                                                           ` Andreas Enge
2013-02-23 18:56                                                                                                                                                             ` Ludovic Courtès
2013-03-03 15:01                                                                                                                                                               ` Nikita Karetnikov
2013-03-03 21:26                                                                                                                                                                 ` Ludovic Courtès
2013-01-23 15:33                                                             ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201302201030.24076.andreas@enge.fr \
    --to=andreas@enge.fr \
    --cc=bug-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.