* Glibc/hurd work till now
@ 2014-03-18 10:02 Manolis Ragkousis
2014-03-18 10:57 ` Ludovic Courtès
2014-03-18 13:32 ` Ludovic Courtès
0 siblings, 2 replies; 22+ messages in thread
From: Manolis Ragkousis @ 2014-03-18 10:02 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guix-devel
[-- Attachment #1.1: Type: text/plain, Size: 274 bytes --]
All the changes till now, work in progress, this is not a final patch.
Try building the cross-libc for hurd with
./pre-inst-env guix build -e '((@@ (gnu packages cross-base)
cross-libc/hurd) "i686-pc-gnu")'
The building process is getting stuck at xhurd-headers recipe.
[-- Attachment #1.2: Type: text/html, Size: 387 bytes --]
[-- Attachment #2: base_crossbase.patch --]
[-- Type: text/x-patch, Size: 17018 bytes --]
From e53f7ca2cb7880ca4f6acfaedb020c2523eaf105 Mon Sep 17 00:00:00 2001
From: Manolis Ragkousis <manolis837@gmail.com>
Date: Tue, 18 Mar 2014 11:33:41 +0000
Subject: [PATCH] gnu: base: Added glibc/hurd
* gnu/packages/base.scm (glibc/hurd): Added glibc/hurd
gnu: crossbase: Added cross-toolchain for the hurd
* gnu/packages/crossbase.scm (cross-gcc/hurd): Added a new cross-gcc
so I can try different config flags
* gnu/packages/crossbase.scm (cross-mig): Added cross-mig because
it is need to build the headers
* gnu/packages/crossbase.scm (cross-libc/hurd): Added cross-libc/hurd
---
gnu/packages/base.scm | 111 ++++++++++++++++++++++++
gnu/packages/cross-base.scm | 205 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 316 insertions(+)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index e17933b..ea90c27 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -30,6 +30,10 @@
#:use-module (gnu packages guile)
#:use-module (gnu packages multiprecision)
#:use-module (gnu packages perl)
+ #:use-module (gnu packages perl)
+ #:use-module (guix git-download)
+ #:use-module (gnu packages autotools)
+ #:use-module (gnu packages hurd)
#:use-module (gnu packages linux)
#:use-module (guix packages)
#:use-module (guix download)
@@ -484,6 +488,113 @@ with the Linux kernel.")
(license lgpl2.0+)
(home-page "http://www.gnu.org/software/libc/")))
+(define-public glibc/hurd
+ (package (inherit glibc)
+ (name "glibc-hurd")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "git://git.sv.gnu.org/hurd/glibc")
+ (commit "bdb7a18d78b04ac3ef7a2d905485500f13bb69fb")))
+ (sha256
+ (base32
+ "0v4hy6yimshbvhbhdbbjdir5fm3xr56zj3lnpf01d4nfa0c1h8k1"))
+
+ ))
+ (propagated-inputs `(("gnumach-headers" ,gnumach-headers)
+ ("hurd-headers" ,hurd-headers)))
+ (native-inputs
+ `(
+ ("patch/glibc-make" ,(search-patch "glibc-make-4.0.patch"))
+ ("mig" ,mig)
+ ("perl" ,perl)
+ ("autoconf" ,autoconf-wrapper)
+ ("automake" ,automake)
+ ("libpthread" ,(origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "git://git.sv.gnu.org/hurd/libpthread")
+ (commit "fa9eb2c255e1d46beadcd81edd459b9c3d7dcb8c")))
+ (sha256
+ (base32
+ "0bb8m0pk7b53sww4ahjds77bvqy0alz54g3aylzwncfca52gacqp"))
+ (file-name "libpthread" )))))
+
+ (arguments
+ `(#:out-of-source? #t
+ #:configure-flags
+ (list "--without-cvs"
+ "--enable-add-ons="
+ ;;"--sysconfdir=/etc"
+ "--disable-profile"
+ "--disable-multi-arch"
+
+ (string-append "libc_cv_localedir="
+ (assoc-ref %outputs "locales")
+ "/share/locale")
+
+ ;; Use our Bash instead of /bin/sh.
+ (string-append "BASH_SHELL="
+ (assoc-ref %build-inputs "bash")
+ "/bin/bash"))
+
+ #:phases (alist-cons-before
+ 'pre-configure 'autoconf
+ (lambda _
+ (system* "autoreconf" "-vi" "libpthread"))
+ (alist-cons-before
+ 'configure 'pre-configure
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin")))
+ ;; Use `pwd', not `/bin/pwd'.
+ (substitute* "configure"
+ (("/bin/pwd") "pwd"))
+
+ ;; Copy a statically-linked Bash in the output, with
+ ;; no references to other store paths.
+ (mkdir-p bin)
+ (copy-file (string-append (assoc-ref inputs "static-bash")
+ "/bin/bash")
+ (string-append bin "/bash"))
+ (remove-store-references (string-append bin "/bash"))
+ (chmod (string-append bin "/bash") #o555)
+
+ ;; Keep a symlink, for `patch-shebang' resolution.
+ (with-directory-excursion bin
+ (symlink "bash" "sh"))
+
+ ;; Have `system' use that Bash.
+ (substitute* "sysdeps/posix/system.c"
+ (("#define[[:blank:]]+SHELL_PATH.*$")
+ (format #f "#define SHELL_PATH \"~a/bin/bash\"\n"
+ out)))
+
+ ;; Same for `popen'.
+ (substitute* "libio/iopopen.c"
+ (("/bin/sh")
+ (string-append out "/bin/bash")))))
+ (alist-cons-after
+ 'install 'install-locales
+ (lambda _
+ (zero? (system* "make" "localedata/install-locales")))
+
+ (alist-cons-after
+ 'unpack 'apply-patch
+ (lambda _
+ (zero? (system* "patch" "-p1" "-i" (assoc-ref %build-inputs "patch/glibc-make"))))
+ (alist-replace
+ 'unpack
+ ;; FIXME: Remove this when gnu-build-system handles that
+ ;; case correctly.
+ (lambda* (#:key inputs source #:allow-other-keys)
+ (mkdir "source")
+ (chdir "source")
+ (copy-recursively source ".")
+ (copy-recursively (assoc-ref inputs "libpthread") "libpthread")
+ #t)
+ %standard-phases))))))) ))
+
(define-public tzdata
(package
(name "tzdata")
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 41128b7..2dad637 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -21,6 +21,10 @@
#:use-module (gnu packages)
#:use-module (gnu packages gcc)
#:use-module (gnu packages base)
+ #:use-module (gnu packages perl);;
+ #:use-module (guix git-download);;
+ #:use-module (gnu packages autotools);;
+ #:use-module (gnu packages hurd)
#:use-module (gnu packages linux)
#:use-module (guix packages)
#:use-module (guix download)
@@ -256,6 +260,207 @@ XBINUTILS and the cross tool chain."
("cross-binutils" ,xbinutils)
,@(package-native-inputs glibc)))))
+(define* (cross-gcc/hurd target
+ #:optional (xbinutils (cross-binutils target)) libc)
+ "Return a cross-compiler for TARGET, where TARGET is a GNU triplet. Use
+XBINUTILS as the associated cross-Binutils. If LIBC is false, then build a
+GCC that does not target a libc; otherwise, target that libc."
+ (package (inherit gcc-4.8)
+ (name (string-append "gcc-cross-hurd-"
+ (if libc "" "sans-libc-")
+ target))
+ (source (origin (inherit (package-source gcc-4.8))
+ (patches
+ (list (search-patch "gcc-cross-environment-variables.patch")))))
+ (arguments
+ `(#:implicit-inputs? #f
+ #:modules ((guix build gnu-build-system)
+ (guix build utils)
+ (ice-9 regex)
+ (srfi srfi-1)
+ (srfi srfi-26))
+
+ ,@(substitute-keyword-arguments (package-arguments gcc-4.8)
+ ((#:configure-flags flags)
+ `(append (list ,(string-append "--target=" target)
+ ,@(gcc-configure-flags-for-triplet target)
+ ,@(if libc
+ '()
+ `(
+ ;; Disable features not needed at this stage.
+ "--disable-shared" "--enable-static"
+ "--without-headers"
+
+ ;; Disable C++ because libstdc++'s
+ ;; configure script otherwise fails with
+ ;; "Link tests are not allowed after
+ ;; GCC_NO_EXECUTABLES."
+ "--enable-languages=c"
+
+ ;; Disabling things according to other hurd building
+ ;; scripts I saw, I will explain everything with my final patch
+
+ "--disable-threads" ; libgcc, would need libc
+ "--disable-libatomic"
+ "--disable-libmudflap"
+ "--disable-libgomp"
+ "--disable-libssp"
+ "--disable-libquadmath"
+ "--disable-decimal-float" ; would need libc
+ "--with-arch=i686"
+ )))
+
+ ,(if libc
+ flags
+ `(remove (cut string-match "--enable-languages.*" <>)
+ ,flags))))
+ ((#:make-flags flags)
+ (if libc
+ `(let ((libc (assoc-ref %build-inputs "libc")))
+ ;; FLAGS_FOR_TARGET are needed for the target libraries to
+ ;; receive the -Bxxx for the startfiles.
+ (cons (string-append "FLAGS_FOR_TARGET=-B" libc "/lib")
+ ,flags))
+ flags))
+ ((#:phases phases)
+ (let ((phases
+ `(alist-cons-after
+ 'install 'make-cross-binutils-visible
+ (lambda* (#:key outputs inputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (libexec (string-append out "/libexec/gcc/"
+ ,target))
+ (binutils (string-append
+ (assoc-ref inputs "binutils-cross")
+ "/bin/" ,target "-")))
+ (for-each (lambda (file)
+ (symlink (string-append binutils file)
+ (string-append libexec "/"
+ file)))
+ '("as" "ld" "nm"))
+ #t))
+ ,phases)))phases));;)
+ ((#:strip-binaries? _)
+ ;; Disable stripping as this can break binaries, with object files
+ ;; of libgcc.a showing up as having an unknown architecture. See
+ ;; <http://lists.fedoraproject.org/pipermail/arm/2010-August/000663.html>
+ ;; for instance.
+ #f))))
+
+ (native-inputs
+ `(("binutils-cross" ,xbinutils)
+
+ ;; Call it differently so that the builder can check whether the "libc"
+ ;; input is #f.
+ ("libc-native" ,@(assoc-ref %final-inputs "libc"))
+
+ ;; Remaining inputs.
+ ,@(let ((inputs (append (package-inputs gcc-4.8)
+ (alist-delete "libc" %final-inputs))))
+ (if libc
+ `(("libc" ,libc)
+ ,@inputs)
+ inputs))))
+
+ (inputs '())
+
+ ;; Only search target inputs, not host inputs.
+ (search-paths
+ (list (search-path-specification
+ (variable "CROSS_CPATH")
+ (directories '("include")))
+ (search-path-specification
+ (variable "CROSS_LIBRARY_PATH")
+ (directories '("lib" "lib64")))))
+ (native-search-paths '())))
+
+(define* (cross-mig target
+ #:optional
+ (xgcc (cross-gcc/hurd target))
+ (xbinutils (cross-binutils target)))
+
+ (define xgnumach-headers
+ (package (inherit gnumach-headers)
+ (name (string-append (package-name gnumach-headers)
+ "-cross-" target))
+
+ (native-inputs `(("cross-gcc-hurd" ,xgcc)
+ ("cross-binutils" ,xbinutils)
+ ,@(package-native-inputs gnumach-headers)))))
+
+ (package (inherit mig)
+ (name (string-append "mig-cross"))
+ (arguments
+ (substitute-keyword-arguments (package-arguments mig)
+ ((#:configure-flags flags)
+ `(cons ,(string-append "--target=" target)
+ ,flags))
+ ))
+ (propagated-inputs `(("cross-gnumach-headers" ,xgnumach-headers)))
+ (native-inputs `(("cross-gcc-hurd" ,xgcc)
+ ("cross-binutils" ,xbinutils)
+ ,@(package-native-inputs mig)))))
+
+(define* (cross-libc/hurd target
+ #:optional
+ (xgcc (cross-gcc/hurd target))
+ (xbinutils (cross-binutils target))
+ (xmig (cross-mig target)))
+ "Return a libc cross-built for TARGET, a GNU triplet. Use XGCC and
+XBINUTILS and the cross tool chain."
+
+ (define xgnumach-headers
+ (package (inherit gnumach-headers)
+ (name (string-append (package-name gnumach-headers)
+ "-cross-" target))
+
+ (native-inputs `(("cross-gcc-hurd" ,xgcc)
+ ("cross-binutils" ,xbinutils)
+ ,@(package-native-inputs gnumach-headers)))))
+
+ (define xhurd-headers
+ (package (inherit hurd-headers)
+ (name (string-append (package-name hurd-headers)
+ "-cross-" target))
+
+ ;;removing the --host flag because I am getting the error that gcc cannot produce executables
+ (arguments
+ (substitute-keyword-arguments
+ `(#:modules ((guix build gnu-build-system)
+ (guix build utils)
+ (ice-9 regex)
+ (srfi srfi-1)
+ (srfi srfi-26))
+ ,@(package-arguments hurd-headers))
+ ((#:configure-flags flags)
+ `(remove (cut string-match "--host.*" <>)
+ ,flags))))
+ (native-inputs `(("cross-gcc-hurd" ,xgcc)
+ ("cross-binutils" ,xbinutils)
+ ("cross-mig" ,xmig)
+ ,@(alist-delete "mig"(package-native-inputs hurd-headers))))))
+
+
+ (package (inherit glibc/hurd)
+ (name (string-append "glibc-hurd-cross-" target))
+ (arguments
+ (substitute-keyword-arguments
+ `(#:strip-binaries? #f ; disable stripping (see above)
+ ,@(package-arguments glibc/hurd))
+ ((#:configure-flags flags)
+ `(cons ,(string-append "--target=" target)
+ ,flags))))
+
+ (propagated-inputs `(("cross-gnumach-headers" ,xgnumach-headers)
+ ("cross-hurd-headers" ,xhurd-headers)))
+
+ (native-inputs `(("cross-gcc-hurd" ,xgcc)
+ ("cross-binutils" ,xbinutils)
+ ("cross-mig" ,xmig)
+ ,@(alist-delete "mig"(package-native-inputs glibc/hurd))))
+
+ ))
+
\f
;;;
;;; Concrete cross toolchains.
--
1.9.0
^ permalink raw reply related [flat|nested] 22+ messages in thread
* Re: Glibc/hurd work till now
2014-03-18 10:02 Glibc/hurd work till now Manolis Ragkousis
@ 2014-03-18 10:57 ` Ludovic Courtès
[not found] ` <CAFtzXzNSuz-wx2SDUafTvqtmRUbfOohO2-Nfzy7LYKd-wuWFWQ@mail.gmail.com>
2014-03-18 13:32 ` Ludovic Courtès
1 sibling, 1 reply; 22+ messages in thread
From: Ludovic Courtès @ 2014-03-18 10:57 UTC (permalink / raw)
To: Manolis Ragkousis; +Cc: Guix-devel
Manolis Ragkousis <manolis837@gmail.com> skribis:
> Try building the cross-libc for hurd with
> ./pre-inst-env guix build -e '((@@ (gnu packages cross-base)
> cross-libc/hurd) "i686-pc-gnu")'
>
>
> The building process is getting stuck at xhurd-headers recipe.
Could you post the build log to make it easier for me?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Glibc/hurd work till now
2014-03-18 10:02 Glibc/hurd work till now Manolis Ragkousis
2014-03-18 10:57 ` Ludovic Courtès
@ 2014-03-18 13:32 ` Ludovic Courtès
2014-03-18 14:55 ` Andreas Enge
1 sibling, 1 reply; 22+ messages in thread
From: Ludovic Courtès @ 2014-03-18 13:32 UTC (permalink / raw)
To: Manolis Ragkousis; +Cc: Guix-devel
Manolis Ragkousis <manolis837@gmail.com> skribis:
> All the changes till now, work in progress, this is not a final patch.
>
>
> Try building the cross-libc for hurd with
> ./pre-inst-env guix build -e '((@@ (gnu packages cross-base)
> cross-libc/hurd) "i686-pc-gnu")'
>
>
> The building process is getting stuck at xhurd-headers recipe.
I think the issue is that xhurd-headers must have --host=i686-pc-gnu in
its configure flags.
You say that in that case ./configure fails with “gcc cannot produce
executables”. Could you send xhurd-headers’ config.log for that case?
Some additional comments:
> +(define-public glibc/hurd
> + (package (inherit glibc)
This definition basically copies all of the ‘glibc’ definition. This is
fine for now, but eventually this will need to be factorized.
Also, ideally, we’d like to hide the fact that there are two different
glibcs. So I imagine that we would:
1. Rename ‘glibc’ to ‘glibc/linux’.
2. Have ‘glibc/hurd’ inherit from it, just replacing ‘source’,
‘propagated-inputs’, ‘inputs’, and adding the pre-configure phase
that unpacks libpthread.
3. Define ‘glibc’ as a magic macro that chooses between ‘glibc/linux’
and ‘glibc/hurd’ depending on the current system/target (see
‘pkg-config’ for an example.)
In parallel, we’ll have to lobby so our Hurd friends publish tarballs of
glibc and libpthread.
> +(define* (cross-gcc/hurd target
> + #:optional (xbinutils (cross-binutils target)) libc)
Likewise, we shouldn’t need a Hurd-specific variant here.
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Glibc/hurd work till now
2014-03-18 13:32 ` Ludovic Courtès
@ 2014-03-18 14:55 ` Andreas Enge
2014-03-18 16:04 ` Ludovic Courtès
0 siblings, 1 reply; 22+ messages in thread
From: Andreas Enge @ 2014-03-18 14:55 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guix-devel
On Tue, Mar 18, 2014 at 02:32:02PM +0100, Ludovic Courtès wrote:
> In parallel, we’ll have to lobby so our Hurd friends publish tarballs of
> glibc and libpthread.
Or lobby that the gnu kernel uses the standard gnu libc?
Andreas
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Glibc/hurd work till now
2014-03-18 14:55 ` Andreas Enge
@ 2014-03-18 16:04 ` Ludovic Courtès
2014-03-18 19:06 ` Manolis Ragkousis
0 siblings, 1 reply; 22+ messages in thread
From: Ludovic Courtès @ 2014-03-18 16:04 UTC (permalink / raw)
To: Andreas Enge; +Cc: Guix-devel
Andreas Enge <andreas@enge.fr> skribis:
> On Tue, Mar 18, 2014 at 02:32:02PM +0100, Ludovic Courtès wrote:
>> In parallel, we’ll have to lobby so our Hurd friends publish tarballs of
>> glibc and libpthread.
>
> Or lobby that the gnu kernel uses the standard gnu libc?
That as well of course. Some of the Hurd people have been working on
it, but it’s non trivial (there’s a pile of patches needing review.)
Ludo’.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Glibc/hurd work till now
2014-03-18 16:04 ` Ludovic Courtès
@ 2014-03-18 19:06 ` Manolis Ragkousis
2014-03-18 20:34 ` Ludovic Courtès
0 siblings, 1 reply; 22+ messages in thread
From: Manolis Ragkousis @ 2014-03-18 19:06 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guix-devel
[-- Attachment #1.1: Type: text/plain, Size: 589 bytes --]
The config.log for the "C compiler cannot create executables" case.
2014-03-18 16:04 GMT+00:00 Ludovic Courtès <ludo@gnu.org>:
> Andreas Enge <andreas@enge.fr> skribis:
>
> > On Tue, Mar 18, 2014 at 02:32:02PM +0100, Ludovic Courtès wrote:
> >> In parallel, we'll have to lobby so our Hurd friends publish tarballs of
> >> glibc and libpthread.
> >
> > Or lobby that the gnu kernel uses the standard gnu libc?
>
> That as well of course. Some of the Hurd people have been working on
> it, but it's non trivial (there's a pile of patches needing review.)
>
> Ludo'.
>
[-- Attachment #1.2: Type: text/html, Size: 1040 bytes --]
[-- Attachment #2: config.log --]
[-- Type: text/plain, Size: 9695 bytes --]
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU Hurd configure 0.5, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure CONFIG_SHELL=/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash SHELL=/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash --prefix=/gnu/store/1yk1xrf3vp59wskl3mhjjjsis69q4d81-hurd-headers-cross-i686-pc-gnu-0.5 --enable-fast-install --host=i686-pc-gnu --without-parted
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost
uname -m = x86_64
uname -r = 3.13.6-1-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Fri Mar 7 22:47:48 CET 2014
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /gnu/store/6bg25h0pzgscds0br7dzs7lf3vqskl96-gcc-cross-hurd-sans-libc-i686-pc-gnu-4.8.2/bin
PATH: /gnu/store/nkrr16lw55p75483z2an0c67nnqdm4l5-binutils-cross-i686-pc-gnu-2.23.2/bin
PATH: /gnu/store/m2qn6kv6n00ris4l9mwfl7wadxrbll6g-mig-cross-1.4/bin
PATH: /gnu/store/1i1jcl43kcs9v0g962sj5s70igxy2g2g-autoconf-2.69/bin
PATH: /gnu/store/f4v605p9fva9kjragznh3l28nfpzmcqp-tar-1.27.1/bin
PATH: /gnu/store/7267cq3clzcbgd1k7s5rg0i0vp2yklpl-gzip-1.6/bin
PATH: /gnu/store/a1ir9y0bgaazp6n58y3qbhmfymjq3yxq-bzip2-1.0.6/bin
PATH: /gnu/store/1zs7xnaby6vl49195sid1klx3gk03mwd-xz-5.0.4/bin
PATH: /gnu/store/2ly72pfnmg28ps7jdj83516gvbn6371j-diffutils-3.3/bin
PATH: /gnu/store/1qdk13ly4c5iqqz7nay0x4fn6ls5r1b9-patch-2.7.1/bin
PATH: /gnu/store/gjl05yl9lvgjhznz5v985mys861svp34-coreutils-8.21/bin
PATH: /gnu/store/sj5ivydxwm1943y2g06vhwfwpn9hc1a1-sed-4.2.2/bin
PATH: /gnu/store/v2q2595q6n4gs32j15ga65bgy0yqg76g-grep-2.15/bin
PATH: /gnu/store/r534qbhj6jni2x30q4rgl8ry8rilarak-findutils-4.4.2/bin
PATH: /gnu/store/3j4pxqg9rskk9365m6jqi59pvcyq1d82-gawk-4.1.0/bin
PATH: /gnu/store/pwm61di9kpfks4acn0k6kp2rwa0wjl5j-make-4.0/bin
PATH: /gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin
PATH: /gnu/store/r7lpkp8d2df74rw24ndcivxvjzdgxn8d-ld-wrapper-0/bin
PATH: /gnu/store/xbryfykc21adgrq3z56g4c6xvv2lb645-binutils-2.23.2/bin
PATH: /gnu/store/z8qifq9172ad17a7mxg9w8jq51axwwqr-gcc-4.8.2/bin
PATH: /gnu/store/5v11czsqd9x9xqvsww9dk7h5i47laym0-glibc-2.18/bin
PATH: /gnu/store/5v11czsqd9x9xqvsww9dk7h5i47laym0-glibc-2.18/sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2239: checking build system type
configure:2253: result: x86_64-unknown-linux-gnu
configure:2273: checking host system type
configure:2286: result: i686-pc-gnu
configure:2396: checking for a BSD-compatible install
configure:2464: result: /gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash /tmp/nix-build-hurd-headers-cross-i686-pc-gnu-0.5.drv-11/hurd-0.5/install-sh -c -C
configure:2479: checking for gawk
configure:2495: found /gnu/store/3j4pxqg9rskk9365m6jqi59pvcyq1d82-gawk-4.1.0/bin/gawk
configure:2506: result: gawk
configure:2517: checking for a sed that does not truncate output
configure:2581: result: /gnu/store/sj5ivydxwm1943y2g06vhwfwpn9hc1a1-sed-4.2.2/bin/sed
configure:2595: checking for i686-pc-gnu-gcc
configure:2611: found /gnu/store/6bg25h0pzgscds0br7dzs7lf3vqskl96-gcc-cross-hurd-sans-libc-i686-pc-gnu-4.8.2/bin/i686-pc-gnu-gcc
configure:2622: result: i686-pc-gnu-gcc
configure:2891: checking for C compiler version
configure:2900: i686-pc-gnu-gcc --version >&5
i686-pc-gnu-gcc (GCC) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2911: $? = 0
configure:2900: i686-pc-gnu-gcc -v >&5
Using built-in specs.
COLLECT_GCC=i686-pc-gnu-gcc
COLLECT_LTO_WRAPPER=/gnu/store/6bg25h0pzgscds0br7dzs7lf3vqskl96-gcc-cross-hurd-sans-libc-i686-pc-gnu-4.8.2/libexec/gcc/i686-pc-gnu/4.8.2/lto-wrapper
Target: i686-pc-gnu
Configured with:
Thread model: single
gcc version 4.8.2 (GCC)
configure:2911: $? = 0
configure:2900: i686-pc-gnu-gcc -V >&5
i686-pc-gnu-gcc: error: unrecognized command line option '-V'
i686-pc-gnu-gcc: fatal error: no input files
compilation terminated.
configure:2911: $? = 1
configure:2900: i686-pc-gnu-gcc -qversion >&5
i686-pc-gnu-gcc: error: unrecognized command line option '-qversion'
i686-pc-gnu-gcc: fatal error: no input files
compilation terminated.
configure:2911: $? = 1
configure:2931: checking whether the C compiler works
configure:2953: i686-pc-gnu-gcc conftest.c >&5
/gnu/store/6bg25h0pzgscds0br7dzs7lf3vqskl96-gcc-cross-hurd-sans-libc-i686-pc-gnu-4.8.2/libexec/gcc/i686-pc-gnu/ld: cannot find crt1.o: No such file or directory
/gnu/store/6bg25h0pzgscds0br7dzs7lf3vqskl96-gcc-cross-hurd-sans-libc-i686-pc-gnu-4.8.2/libexec/gcc/i686-pc-gnu/ld: cannot find crti.o: No such file or directory
/gnu/store/6bg25h0pzgscds0br7dzs7lf3vqskl96-gcc-cross-hurd-sans-libc-i686-pc-gnu-4.8.2/libexec/gcc/i686-pc-gnu/ld: cannot find -lc
/gnu/store/6bg25h0pzgscds0br7dzs7lf3vqskl96-gcc-cross-hurd-sans-libc-i686-pc-gnu-4.8.2/libexec/gcc/i686-pc-gnu/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:2957: $? = 1
configure:2995: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Hurd"
| #define PACKAGE_TARNAME "hurd"
| #define PACKAGE_VERSION "0.5"
| #define PACKAGE_STRING "GNU Hurd 0.5"
| #define PACKAGE_BUGREPORT "bug-hurd@gnu.org"
| #define PACKAGE_URL "http://www.gnu.org/software/hurd/"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3000: error: in `/tmp/nix-build-hurd-headers-cross-i686-pc-gnu-0.5.drv-11/hurd-0.5':
configure:3002: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_X11_CFLAGS_set=
ac_cv_env_X11_CFLAGS_value=
ac_cv_env_X11_LIBS_set=
ac_cv_env_X11_LIBS_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-gnu
ac_cv_env_libblkid_CFLAGS_set=
ac_cv_env_libblkid_CFLAGS_value=
ac_cv_env_libblkid_LIBS_set=
ac_cv_env_libblkid_LIBS_value=
ac_cv_env_libdaemon_CFLAGS_set=
ac_cv_env_libdaemon_CFLAGS_value=
ac_cv_env_libdaemon_LIBS_set=
ac_cv_env_libdaemon_LIBS_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-gnu
ac_cv_path_SED=/gnu/store/sj5ivydxwm1943y2g06vhwfwpn9hc1a1-sed-4.2.2/bin/sed
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=i686-pc-gnu-gcc
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
AWK='gawk'
CC='i686-pc-gnu-gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
HAVE_SUN_RPC=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD=''
LDFLAGS=''
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBCRYPT=''
LIBNCURSESW=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MIG=''
NCURSESW_INCLUDE=''
OBJCOPY=''
OBJEXT=''
PACKAGE_BUGREPORT='bug-hurd@gnu.org'
PACKAGE_NAME='GNU Hurd'
PACKAGE_STRING='GNU Hurd 0.5'
PACKAGE_TARNAME='hurd'
PACKAGE_URL='http://www.gnu.org/software/hurd/'
PACKAGE_VERSION='0.5'
PARTED_LIBS=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
RANLIB=''
SED='/gnu/store/sj5ivydxwm1943y2g06vhwfwpn9hc1a1-sed-4.2.2/bin/sed'
SHELL='/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash'
VERSIONING=''
X11_CFLAGS=''
X11_KEYSYMDEF_H=''
X11_LIBS=''
XKB_BASE=''
YACC=''
YFLAGS=''
ac_ct_CC=''
asm_syntax='i386'
bindir='${exec_prefix}/bin'
boot_store_types=''
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
enable_profile=''
enable_static_progs='ext2fs'
exec_prefix='NONE'
have_x11=''
host='i686-pc-gnu'
host_alias='i686-pc-gnu'
host_cpu='i686'
host_os='gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libblkid_CFLAGS=''
libblkid_LIBS=''
libc_cv_gnu89_inline=''
libdaemon_CFLAGS=''
libdaemon_LIBS=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/gnu/store/1yk1xrf3vp59wskl3mhjjjsis69q4d81-hurd-headers-cross-i686-pc-gnu-0.5'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "GNU Hurd"
#define PACKAGE_TARNAME "hurd"
#define PACKAGE_VERSION "0.5"
#define PACKAGE_STRING "GNU Hurd 0.5"
#define PACKAGE_BUGREPORT "bug-hurd@gnu.org"
#define PACKAGE_URL "http://www.gnu.org/software/hurd/"
configure: exit 77
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Glibc/hurd work till now
2014-03-18 19:06 ` Manolis Ragkousis
@ 2014-03-18 20:34 ` Ludovic Courtès
2014-03-18 20:41 ` Manolis Ragkousis
0 siblings, 1 reply; 22+ messages in thread
From: Ludovic Courtès @ 2014-03-18 20:34 UTC (permalink / raw)
To: Manolis Ragkousis; +Cc: Guix-devel
Manolis Ragkousis <manolis837@gmail.com> skribis:
> configure:2931: checking whether the C compiler works
> configure:2953: i686-pc-gnu-gcc conftest.c >&5
> /gnu/store/6bg25h0pzgscds0br7dzs7lf3vqskl96-gcc-cross-hurd-sans-libc-i686-pc-gnu-4.8.2/libexec/gcc/i686-pc-gnu/ld: cannot find crt1.o: No such file or directory
> /gnu/store/6bg25h0pzgscds0br7dzs7lf3vqskl96-gcc-cross-hurd-sans-libc-i686-pc-gnu-4.8.2/libexec/gcc/i686-pc-gnu/ld: cannot find crti.o: No such file or directory
> /gnu/store/6bg25h0pzgscds0br7dzs7lf3vqskl96-gcc-cross-hurd-sans-libc-i686-pc-gnu-4.8.2/libexec/gcc/i686-pc-gnu/ld: cannot find -lc
> /gnu/store/6bg25h0pzgscds0br7dzs7lf3vqskl96-gcc-cross-hurd-sans-libc-i686-pc-gnu-4.8.2/libexec/gcc/i686-pc-gnu/ld: cannot find crtn.o: No such file or directory
> collect2: error: ld returned 1 exit status
> configure:2957: $? = 1
> configure:2995: result: no
At this stage there’s no libc, so no crt*.o (C run-time initialization
files.) Thus the above test cannot be run.
I think we’ll have to cheat by passing --build=i686-pc-gnu and removing
--host. This is actually what I did in Nixpkgs:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/gnu/hurd/default.nix
Then the ‘build’ phase must be skipped, and the ‘install’ phase must
just do ‘make install-headers’.
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Glibc/hurd work till now
2014-03-18 20:34 ` Ludovic Courtès
@ 2014-03-18 20:41 ` Manolis Ragkousis
2014-03-19 19:38 ` Manolis Ragkousis
0 siblings, 1 reply; 22+ messages in thread
From: Manolis Ragkousis @ 2014-03-18 20:41 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guix-devel
[-- Attachment #1: Type: text/plain, Size: 465 bytes --]
> I think we'll have to cheat by passing --build=i686-pc-gnu and removing
> --host. This is actually what I did in Nixpkgs:
>
https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/gnu/hurd/default.nix
I will try that right away
> Then the 'build' phase must be skipped, and the 'install' phase must
> just do 'make install-headers'.
That's already what's happening in the hurd-headers recipe in hurd.scm
which xhurd-headers inherits from :-)
Manolis
[-- Attachment #2: Type: text/html, Size: 890 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Glibc/hurd work till now
2014-03-18 20:41 ` Manolis Ragkousis
@ 2014-03-19 19:38 ` Manolis Ragkousis
2014-03-19 20:17 ` Ludovic Courtès
0 siblings, 1 reply; 22+ messages in thread
From: Manolis Ragkousis @ 2014-03-19 19:38 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guix-devel
[-- Attachment #1.1: Type: text/plain, Size: 443 bytes --]
I am getting an error in the autoreconf phase for libpthread in glibc/hurd
here
Check the attached build.log file
> #:phases (alist-cons-before
> 'pre-configure 'autoconf
> (lambda _
> (system* "autoreconf" "-vi" "libpthread"))
I placed libtool as a native input as Mark Weaver suggested but it doesn't
seem to fix it
("libtool" ,libtool "bin")
Any ideas?
Manolis
[-- Attachment #1.2: Type: text/html, Size: 804 bytes --]
[-- Attachment #2: build.log --]
[-- Type: text/plain, Size: 2569 bytes --]
starting phase `autoconf'
autoreconf: 'libpthread/configure.ac' and 'libpthread/configure.in' both present.
autoreconf: proceeding with 'libpthread/configure.ac'
autoreconf: Entering directory `libpthread'
autoreconf: 'configure.ac' and 'configure.in' both present.
autoreconf: proceeding with 'configure.ac'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
aclocal: warning: 'configure.ac' and 'configure.in' both present.
aclocal: proceeding with 'configure.ac'
autoreconf: configure.ac: tracing
autoconf: warning: both `configure.ac' and `configure.in' are present.
autoconf: warning: proceeding with `configure.ac'.
autoreconf: configure.ac: creating directory build-aux
autoreconf: configure.ac: not using Libtool
autoreconf: running: /gnu/store/1i1jcl43kcs9v0g962sj5s70igxy2g2g-autoconf-2.69/bin/autoconf
autoconf: warning: both `configure.ac' and `configure.in' are present.
autoconf: warning: proceeding with `configure.ac'.
autoreconf: running: /gnu/store/1i1jcl43kcs9v0g962sj5s70igxy2g2g-autoconf-2.69/bin/autoheader
autoheader: 'configure.ac' and 'configure.in' both present.
autoheader: proceeding with 'configure.ac'
autoreconf: running: automake --add-missing --copy --no-force
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
automake: warning: 'configure.ac' and 'configure.in' both present.
automake: proceeding with 'configure.ac'
patch-shebang: configure: changing `/bin/sh' to `/gnu/store/x26nnlh6azmnd0ibdyfwafdc6rkzx17w-bash-light-4.2/bin/sh'
configure.ac:36: installing 'build-aux/compile'
configure.ac:45: installing 'build-aux/config.guess'
configure.ac:45: installing 'build-aux/config.sub'
configure.ac:29: installing 'build-aux/install-sh'
configure.ac:29: installing 'build-aux/missing'
Makefile.am: installing './INSTALL'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
automake: warning: 'configure.ac' and 'configure.in' both present.
automake: proceeding with 'configure.ac'
Makefile.am:77: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:77: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:77: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:77: If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:77: its definition is in aclocal's search path.
Makefile.am: installing 'build-aux/depcomp'
autoreconf: automake failed with exit status: 1
phase `autoconf' succeeded after 3 seconds
[-- Attachment #3: config.log --]
[-- Type: text/plain, Size: 36642 bytes --]
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU C Library configure (see version.h), which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ../source/configure CONFIG_SHELL=/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash SHELL=/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash --prefix=/gnu/store/8l1g128lw727s5in90afnimgjjjl6j3j-glibc-hurd-cross-i686-pc-gnu-2.18 --enable-fast-install --target=i686-pc-gnu --without-cvs --enable-add-ons= --disable-profile --disable-multi-arch --disable-sanity-checks libc_cv_localedir=/gnu/store/kwdigzfxr1zpff9jw6v4ygyypmjqkvs2-glibc-hurd-cross-i686-pc-gnu-2.18-locales/share/locale BASH_SHELL=/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost
uname -m = x86_64
uname -r = 3.13.6-1-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Fri Mar 7 22:47:48 CET 2014
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /gnu/store/6bg25h0pzgscds0br7dzs7lf3vqskl96-gcc-cross-hurd-sans-libc-i686-pc-gnu-4.8.2/bin
PATH: /gnu/store/nkrr16lw55p75483z2an0c67nnqdm4l5-binutils-cross-i686-pc-gnu-2.23.2/bin
PATH: /gnu/store/m2qn6kv6n00ris4l9mwfl7wadxrbll6g-mig-cross-1.4/bin
PATH: /gnu/store/qdd0hz0sclms1rz3ss01f75r3ys8r58z-perl-5.16.1/bin
PATH: /gnu/store/bvw355kwjr21kcfckzlm22ag03xamj27-autoconf-wrapper-2.69/bin
PATH: /gnu/store/yvfsm45m5g8m2ikj8gvnq6260azwbrbk-automake-1.14.1/bin
PATH: /gnu/store/nr4xwiv2v7n97ib29dpf8gi2562y5294-libtool-2.4.2-bin/bin
PATH: /gnu/store/x26nnlh6azmnd0ibdyfwafdc6rkzx17w-bash-light-4.2/bin
PATH: /gnu/store/f4v605p9fva9kjragznh3l28nfpzmcqp-tar-1.27.1/bin
PATH: /gnu/store/7267cq3clzcbgd1k7s5rg0i0vp2yklpl-gzip-1.6/bin
PATH: /gnu/store/a1ir9y0bgaazp6n58y3qbhmfymjq3yxq-bzip2-1.0.6/bin
PATH: /gnu/store/1zs7xnaby6vl49195sid1klx3gk03mwd-xz-5.0.4/bin
PATH: /gnu/store/2ly72pfnmg28ps7jdj83516gvbn6371j-diffutils-3.3/bin
PATH: /gnu/store/1qdk13ly4c5iqqz7nay0x4fn6ls5r1b9-patch-2.7.1/bin
PATH: /gnu/store/gjl05yl9lvgjhznz5v985mys861svp34-coreutils-8.21/bin
PATH: /gnu/store/sj5ivydxwm1943y2g06vhwfwpn9hc1a1-sed-4.2.2/bin
PATH: /gnu/store/v2q2595q6n4gs32j15ga65bgy0yqg76g-grep-2.15/bin
PATH: /gnu/store/r534qbhj6jni2x30q4rgl8ry8rilarak-findutils-4.4.2/bin
PATH: /gnu/store/3j4pxqg9rskk9365m6jqi59pvcyq1d82-gawk-4.1.0/bin
PATH: /gnu/store/pwm61di9kpfks4acn0k6kp2rwa0wjl5j-make-4.0/bin
PATH: /gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin
PATH: /gnu/store/r7lpkp8d2df74rw24ndcivxvjzdgxn8d-ld-wrapper-0/bin
PATH: /gnu/store/xbryfykc21adgrq3z56g4c6xvv2lb645-binutils-2.23.2/bin
PATH: /gnu/store/z8qifq9172ad17a7mxg9w8jq51axwwqr-gcc-4.8.2/bin
PATH: /gnu/store/5v11czsqd9x9xqvsww9dk7h5i47laym0-glibc-2.18/bin
PATH: /gnu/store/5v11czsqd9x9xqvsww9dk7h5i47laym0-glibc-2.18/sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2338: checking build system type
configure:2352: result: x86_64-unknown-linux-gnu
configure:2372: checking host system type
configure:2385: result: x86_64-unknown-linux-gnu
configure:2454: checking for gcc
configure:2470: found /gnu/store/z8qifq9172ad17a7mxg9w8jq51axwwqr-gcc-4.8.2/bin/gcc
configure:2481: result: gcc
configure:2710: checking for C compiler version
configure:2719: gcc --version >&5
gcc (GCC) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2730: $? = 0
configure:2719: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/gnu/store/z8qifq9172ad17a7mxg9w8jq51axwwqr-gcc-4.8.2/libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with:
Thread model: posix
gcc version 4.8.2 (GCC)
configure:2730: $? = 0
configure:2719: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2730: $? = 1
configure:2719: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:2730: $? = 1
configure:2735: checking for suffix of object files
configure:2757: gcc -c conftest.c >&5
configure:2761: $? = 0
configure:2782: result: o
configure:2786: checking whether we are using the GNU C compiler
configure:2805: gcc -c conftest.c >&5
configure:2805: $? = 0
configure:2814: result: yes
configure:2823: checking whether gcc accepts -g
configure:2843: gcc -c -g conftest.c >&5
configure:2843: $? = 0
configure:2884: result: yes
configure:3020: checking for g++
configure:3036: found /gnu/store/z8qifq9172ad17a7mxg9w8jq51axwwqr-gcc-4.8.2/bin/g++
configure:3047: result: g++
configure:3074: checking for C++ compiler version
configure:3083: g++ --version >&5
g++ (GCC) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3094: $? = 0
configure:3083: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/gnu/store/z8qifq9172ad17a7mxg9w8jq51axwwqr-gcc-4.8.2/libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with:
Thread model: posix
gcc version 4.8.2 (GCC)
configure:3094: $? = 0
configure:3083: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:3094: $? = 1
configure:3083: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:3094: $? = 1
configure:3098: checking whether we are using the GNU C++ compiler
configure:3117: g++ -c conftest.cpp >&5
configure:3117: $? = 0
configure:3126: result: yes
configure:3135: checking whether g++ accepts -g
configure:3155: g++ -c -g conftest.cpp >&5
configure:3155: $? = 0
configure:3196: result: yes
configure:3262: checking for readelf
configure:3278: found /gnu/store/xbryfykc21adgrq3z56g4c6xvv2lb645-binutils-2.23.2/bin/readelf
configure:3289: result: readelf
configure:3760: checking for sysdeps preconfigure fragments
configure:9: checking whether gcc compiles in -mx32 mode by default
configure:27: gcc -c -g -O2 conftest.c >&5
conftest.c:12:3: error: #error not x32
# error not x32
^
configure:27: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "glibc"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "http://sourceware.org/bugzilla/"
| #define PACKAGE_URL "http://www.gnu.org/software/glibc/"
| #define PKGVERSION "(GNU libc) "
| #define REPORT_BUGS_TO "<http://www.gnu.org/software/libc/bugs.html>"
| /* end confdefs.h. */
| #ifndef __ILP32__
| # error not x32
| #endif
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:34: result: no
configure:3767: result:
configure:3977: checking for assembler and linker STT_GNU_IFUNC support
Relocation section '.rela.plt' at offset 0xb0 contains 1 entries:
Offset Info Type Sym. Value Sym. Name + Addend
0000006000e0 000000000025 R_X86_64_IRELATIV 4000e0
configure:4008: result: yes
configure:4011: checking whether .text pseudo-op must be used
configure:4021: gcc -c conftest.s 1>&5
configure:4024: $? = 0
configure:4035: result: yes
configure:4054: checking sysdep dirs
configure:4274: result: sysdeps/generic
configure:4351: checking for a BSD-compatible install
configure:4419: result: /gnu/store/gjl05yl9lvgjhznz5v985mys861svp34-coreutils-8.21/bin/install -c
configure:4434: checking whether ln -s works
configure:4438: result: yes
configure:4462: checking whether as is GNU as
configure:4476: result: yes
configure:4481: checking whether ld is GNU ld
configure:4495: result: yes
configure:4505: checking for as
configure:4532: result: as
configure:4547: checking version of as
configure:4557: result: 2.23.2, ok
configure:4568: checking for ld
configure:4595: result: ld
configure:4610: checking version of ld
configure:4620: result: 2.23.2, ok
configure:4634: checking for gcc
configure:4661: result: gcc
configure:4676: checking version of gcc
configure:4686: result: 4.8.2, ok
configure:4697: checking for gnumake
configure:4727: result: no
configure:4697: checking for gmake
configure:4727: result: no
configure:4697: checking for make
configure:4713: found /gnu/store/pwm61di9kpfks4acn0k6kp2rwa0wjl5j-make-4.0/bin/make
configure:4724: result: make
configure:4739: checking version of make
configure:4749: result: 4.0, ok
configure:4761: checking for gnumsgfmt
configure:4791: result: no
configure:4761: checking for gmsgfmt
configure:4791: result: no
configure:4761: checking for msgfmt
configure:4791: result: no
configure:4824: checking for makeinfo
configure:4854: result: no
configure:4887: checking for sed
configure:4903: found /gnu/store/sj5ivydxwm1943y2g06vhwfwpn9hc1a1-sed-4.2.2/bin/sed
configure:4914: result: sed
configure:4929: checking version of sed
configure:4939: result: 4.2.2, ok
configure:4950: checking for gawk
configure:4966: found /gnu/store/3j4pxqg9rskk9365m6jqi59pvcyq1d82-gawk-4.1.0/bin/gawk
configure:4977: result: gawk
configure:4992: checking version of gawk
configure:5002: result: 4.1.0, ok
configure:5053: checking for nm
configure:5069: found /gnu/store/xbryfykc21adgrq3z56g4c6xvv2lb645-binutils-2.23.2/bin/nm
configure:5080: result: nm
configure:5107: checking for autoconf
configure:5123: found /gnu/store/bvw355kwjr21kcfckzlm22ag03xamj27-autoconf-wrapper-2.69/bin/autoconf
configure:5134: result: autoconf
configure:5149: checking whether autoconf works
configure:5160: result: no
configure:5176: WARNING:
*** These auxiliary programs are missing or incompatible versions: msgfmt makeinfo autoconf
*** some features will be disabled.
*** Check the INSTALL file for required versions.
configure:5212: checking LD_LIBRARY_PATH variable
configure:5222: result: ok
configure:5231: checking whether GCC supports -static-libgcc
configure:5242: result: -static-libgcc
configure:5248: checking for bash
configure:5279: result: /gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash
configure:5352: checking for perl
configure:5370: found /gnu/store/qdd0hz0sclms1rz3ss01f75r3ys8r58z-perl-5.16.1/bin/perl
configure:5383: result: /gnu/store/qdd0hz0sclms1rz3ss01f75r3ys8r58z-perl-5.16.1/bin/perl
configure:5397: checking for install-info
configure:5429: result: no
configure:5439: checking for bison
configure:5471: result: no
configure:5480: checking for libc-friendly stddef.h
configure:5504: gcc -c -g -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:23:38: warning: incompatible implicit declaration of built-in function 'abort' [enabled by default]
if (&size == NULL || &wchar == NULL) abort ();
^
configure:5504: $? = 0
configure:5511: result: yes
configure:5518: checking whether we need to use -P to assemble .S files
configure:5528: gcc -c conftest.S 1>&5
configure:5531: $? = 0
configure:5539: result: no
configure:5546: checking for .set assembler directive
configure:5572: result: yes
configure:5579: checking for assembler gnu_unique_object symbol type
configure:5596: result: yes
configure:5603: checking for .symver assembler directive
configure:5620: result: yes
configure:5622: checking for ld --version-script
configure:5648: gcc -g -O2 -shared
-o conftest.so conftest.o
-nostartfiles -nostdlib
-Wl,--version-script,conftest.map
1>&5
configure:5651: $? = 0
configure:5666: result: yes
configure:5687: checking for .previous assembler directive
configure:5697: gcc -c conftest.s 1>&5
configure:5700: $? = 0
configure:5708: result: yes
configure:5742: checking for .protected and .hidden assembler directive
configure:5754: gcc -c conftest.s 1>&5
configure:5757: $? = 0
configure:5765: result: yes
configure:5769: checking whether __attribute__((visibility())) is supported
configure:5780: gcc -Werror -S conftest.c -o conftest.s 1>&5
configure:5783: $? = 0
configure:5794: result: yes
configure:5802: checking for broken __attribute__((visibility()))
configure:5814: gcc -Werror -S conftest.c -o conftest.s 1>&5
configure:5817: $? = 0
configure:5826: result: no
configure:5833: checking for broken __attribute__((alias()))
configure:5848: gcc -Werror -S conftest.c -o conftest.s 1>&5
configure:5851: $? = 0
configure:5861: result: no
configure:5868: checking whether to put _rtld_local into .sdata section
configure:5882: result: no
configure:5890: checking for .preinit_array/.init_array/.fini_array support
configure:5906: gcc -g -O2 -o conftest
conftest.c -static -nostartfiles -nostdlib
1>&5
configure:5909: $? = 0
configure:5922: result: yes
configure:5928: checking whether to use .ctors/.dtors header and trailer
configure:5945: gcc -g -O2 -o conftest
conftest.c -static -nostartfiles -nostdlib
1>&5
configure:5948: $? = 0
configure:5974: result: no
configure:5981: checking for libunwind-support in compiler
configure:5998: result: no
configure:6006: checking for linker that supports -z nodelete
configure:6019: gcc -g -O2
-Wl,--enable-new-dtags,-z,nodelete -nostdlib -nostartfiles
-fPIC -shared -o conftest.so conftest.c
1>&5
configure:6022: $? = 0
configure:6035: result: yes
configure:6038: checking for linker that supports -z nodlopen
configure:6051: gcc -g -O2
-Wl,--enable-new-dtags,-z,nodlopen -nostdlib -nostartfiles
-fPIC -shared -o conftest.so conftest.c
1>&5
configure:6054: $? = 0
configure:6067: result: yes
configure:6070: checking for linker that supports -z initfirst
configure:6083: gcc -g -O2
-Wl,--enable-new-dtags,-z,initfirst -nostdlib -nostartfiles
-fPIC -shared -o conftest.so conftest.c
1>&5
configure:6086: $? = 0
configure:6099: result: yes
configure:6117: checking for -z relro option
configure:6158: gcc -g -O2
-fPIC -shared -o conftest.so conftest.c
-nostartfiles -nostdlib
-Wl,-z,relro 1>&5
configure:6161: $? = 0
configure:6164: readelf -Wl conftest.so > conftest.ph
configure:6167: $? = 0
configure:6173:
gawk -v commonpagesize=0x1000 -f conftest.awk
conftest.ph > conftest.cps
LINE:
LINE: Elf file type is DYN (Shared object file)
LINE: Entry point 0x300
LINE: There are 6 program headers, starting at offset 64
LINE:
LINE: Program Headers:
LINE: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LINE: LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x000350 0x000350 R E 0x200000
LINE: LOAD 0x000f00 0x0000000000200f00 0x0000000000200f00 0x040100 0x040100 RW 0x200000
LINE: DYNAMIC 0x000f18 0x0000000000200f18 0x0000000000200f18 0x0000e0 0x0000e0 RW 0x8
LINE: GNU_EH_FRAME 0x000308 0x0000000000000308 0x0000000000000308 0x000014 0x000014 R 0x4
LINE: GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x8
LINE: GNU_RELRO 0x000f00 0x0000000000200f00 0x0000000000200f00 0x000100 0x000100 R 0x1
vaddr 0x200f00 memsz 0x100 end 0x201000 commonpagesize 0x1000
LINE:
LINE: Section to Segment mapping:
LINE: Segment Sections...
LINE: 00 .hash .dynsym .dynstr .rela.dyn .text .eh_frame_hdr .eh_frame
LINE: 01 .data.rel.ro .dynamic .data
LINE: 02 .dynamic
LINE: 03 .eh_frame_hdr
LINE: 04
LINE: 05 .data.rel.ro .dynamic
configure:6176: $? = 0
configure:6181: result: yes
configure:6194: checking for -Bgroup option
configure:6205: gcc -g -O2
-fPIC -shared -o conftest.so conftest.c
-Wl,-Bgroup -nostdlib 1>&5
configure:6208: $? = 0
configure:6217: result: yes
configure:6222: checking whether --noexecstack is desirable for .S files
configure:6232: gcc -g -O2
-S -o conftest.s conftest.c 1>&5
configure:6235: $? = 0
configure:6240: gcc -Wa,--noexecstack
-c -o conftest.o conftest.s 1>&5
configure:6243: $? = 0
configure:6252: result: yes
configure:6259: checking for -z combreloc
configure:6273: gcc -g -O2
-fPIC -shared -o conftest.so conftest.c
-nostdlib -nostartfiles
-Wl,-z,combreloc 1>&5
configure:6276: $? = 0
configure:6289: result: yes
configure:6297: checking for linker that supports -z execstack
configure:6310: gcc -g -O2
-Wl,-z,execstack -nostdlib -nostartfiles
-fPIC -shared -o conftest.so conftest.c
1>&5
configure:6313: $? = 0
configure:6326: result: yes
configure:6330: checking for -fpie
configure:6336: gcc -fpie -xc /dev/null -S -o /dev/null
configure:6339: $? = 0
configure:6347: result: yes
configure:6352: checking for --hash-style option
configure:6363: gcc -g -O2
-fPIC -shared -o conftest.so conftest.c
-Wl,--hash-style=both -nostdlib 1>&5
configure:6366: $? = 0
configure:6375: result: yes
configure:6383: checking for sufficient default -shared layout
configure:6402: gcc -shared -o conftest.so conftest.s 1>&5
configure:6405: $? = 0
nono from:
HASH .hash
DYNSYM .dynsym
STRTAB .dynstr
VERSYM .gnu.version
VERNEED .gnu.version_r
RELA .rela.dyn
RELA .rela.plt
PROGBITS .init
PROGBITS .plt
PROGBITS .text
PROGBITS .fini
NOTE .note.a
NOTE .note.b
PROGBITS .eh_frame
INIT_ARRAY .init_array
FINI_ARRAY .fini_array
PROGBITS .jcr
DYNAMIC .dynamic
PROGBITS .got
PROGBITS .got.plt
PROGBITS .data
NOBITS .bss
PROGBITS .comment
STRTAB .shstrtab
SYMTAB .symtab
STRTAB .strtab
configure:6437: result: no
configure:6442: checking linker output format
configure:6456: result: elf64-x86-64
configure:6460: checking for -fno-toplevel-reorder -fno-section-anchors
configure:6470: gcc -g -O2 -S -fno-toplevel-reorder -fno-section-anchors
conftest.c 1>&5
configure:6473: $? = 0
configure:6482: result: yes
configure:6491: checking for -fstack-protector
configure:6497: gcc -g -O2 -Werror -fstack-protector -xc /dev/null -S -o /dev/null
configure:6500: $? = 0
configure:6508: result: yes
configure:6512: checking for -fgnu89-inline
configure:6527: gcc -g -O2 -S -std=gnu99 -fgnu89-inline
-o conftest.s conftest.c 1>&5
conftest.c:3:1: warning: return type defaults to 'int' [enabled by default]
main () { return 0;}
^
configure:6530: $? = 0
configure:6539: result: yes
configure:6548: checking whether cc puts quotes around section names
configure:6569: result: no
configure:6576: checking for assembler .weak directive
configure:6589: gcc -c conftest.s 1>&5
configure:6592: $? = 0
configure:6600: result: yes
configure:6643: checking whether CFI directives are supported
configure:6662: gcc -c conftest.s 1>&5
configure:6665: $? = 0
configure:6673: result: yes
configure:6680: checking for ld --no-whole-archive
configure:6693: gcc -g -O2
-nostdlib -nostartfiles -Wl,--no-whole-archive
-o conftest conftest.c 1>&5
configure:6696: $? = 0
configure:6704: result: yes
configure:6710: checking for gcc -fexceptions
configure:6723: gcc -g -O2
-nostdlib -nostartfiles -fexceptions
-o conftest conftest.c 1>&5
configure:6726: $? = 0
configure:6734: result: yes
configure:6774: checking for __builtin_memset
configure:6786: gcc -O3 -S conftest.c -o - | fgrep memset > /dev/null
configure:6789: $? = 1
configure:6798: result: yes
configure:6805: checking for redirection of built-in functions
configure:6818: gcc -O3 -S conftest.c -o - | fgrep my_strstr > /dev/null
configure:6821: $? = 0
configure:6830: result: yes
configure:6836: checking for __thread
configure:6845: gcc -g -O2 -c conftest.c >&5
configure:6848: $? = 0
configure:6856: result: yes
configure:6862: checking for tls_model attribute
configure:6871: gcc -g -O2 -S -Werror conftest.c >&5
configure:6874: $? = 0
configure:6882: result: yes
configure:6888: checking for compiler option to disable generation of FMA instructions
configure:6896: gcc -ffp-contract=off -xc /dev/null -S -o /dev/null
configure:6899: $? = 0
configure:6905: result: -ffp-contract=off
configure:6937: checking for libgd
configure:6957: gcc -o conftest -g -O2 conftest.c -lgd -lpng -lz -lm >&5
conftest.c:20:16: fatal error: gd.h: No such file or directory
#include <gd.h>
^
compilation terminated.
configure:6957: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "glibc"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "http://sourceware.org/bugzilla/"
| #define PACKAGE_URL "http://www.gnu.org/software/glibc/"
| #define PKGVERSION "(GNU libc) "
| #define REPORT_BUGS_TO "<http://www.gnu.org/software/libc/bugs.html>"
| #define HAVE_ASM_SET_DIRECTIVE 1
| #define HAVE_ASM_UNIQUE_OBJECT 1
| #define DO_VERSIONING 1
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define NO_CTORS_DTORS_SECTIONS 1
| #define HAVE_Z_COMBRELOC 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_ASM_CFI_DIRECTIVES 1
| #define HAVE_BUILTIN_MEMSET 1
| /* end confdefs.h. */
| #include <gd.h>
| int
| main ()
| {
| gdImagePng (0, 0)
| ;
| return 0;
| }
configure:6970: result: no
configure:6979: checking for is_selinux_enabled in -lselinux
configure:7004: gcc -o conftest -g -O2 conftest.c -lselinux >&5
ld: cannot find -lselinux
collect2: error: ld returned 1 exit status
configure:7004: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "glibc"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "http://sourceware.org/bugzilla/"
| #define PACKAGE_URL "http://www.gnu.org/software/glibc/"
| #define PKGVERSION "(GNU libc) "
| #define REPORT_BUGS_TO "<http://www.gnu.org/software/libc/bugs.html>"
| #define HAVE_ASM_SET_DIRECTIVE 1
| #define HAVE_ASM_UNIQUE_OBJECT 1
| #define DO_VERSIONING 1
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define NO_CTORS_DTORS_SECTIONS 1
| #define HAVE_Z_COMBRELOC 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_ASM_CFI_DIRECTIVES 1
| #define HAVE_BUILTIN_MEMSET 1
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char is_selinux_enabled ();
| int
| main ()
| {
| return is_selinux_enabled ();
| ;
| return 0;
| }
configure:7013: result: no
configure:7169: checking size of long double
configure:7174: gcc -o conftest -g -O2 conftest.c >&5
In file included from conftest.c:23:0:
/gnu/store/20k0yapln03x09wqxpmg3xq2zw0cn7zv-git-checkout/include/stdio.h:5:27: fatal error: libio/stdio.h: No such file or directory
# include <libio/stdio.h>
^
compilation terminated.
configure:7174: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "glibc"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "http://sourceware.org/bugzilla/"
| #define PACKAGE_URL "http://www.gnu.org/software/glibc/"
| #define PKGVERSION "(GNU libc) "
| #define REPORT_BUGS_TO "<http://www.gnu.org/software/libc/bugs.html>"
| #define HAVE_ASM_SET_DIRECTIVE 1
| #define HAVE_ASM_UNIQUE_OBJECT 1
| #define DO_VERSIONING 1
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define NO_CTORS_DTORS_SECTIONS 1
| #define HAVE_Z_COMBRELOC 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_ASM_CFI_DIRECTIVES 1
| #define HAVE_BUILTIN_MEMSET 1
| /* end confdefs.h. */
| /* none */
| static long int longval () { return (long int) (sizeof (long double)); }
| static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
|
| FILE *f = fopen ("conftest.val", "w");
| if (! f)
| return 1;
| if (((long int) (sizeof (long double))) < 0)
| {
| long int i = longval ();
| if (i != ((long int) (sizeof (long double))))
| return 1;
| fprintf (f, "%ld", i);
| }
| else
| {
| unsigned long int i = ulongval ();
| if (i != ((long int) (sizeof (long double))))
| return 1;
| fprintf (f, "%lu", i);
| }
| /* Do not output a trailing newline, as this causes \r\n confusion
| on some platforms. */
| return ferror (f) || fclose (f) != 0;
|
| ;
| return 0;
| }
configure:7188: result: 0
configure:7202: checking for _FORTIFY_SOURCE predefine
configure:7221: gcc -c -g -O2 conftest.c >&5
configure:7221: $? = 0
configure:7228: result: no
configure:7235: checking whether gcc implicitly enables -fstack-protector
configure:7252: gcc -c -g -O2 conftest.c >&5
configure:7252: $? = 0
libc_undefs='foobar'
configure:7279: result: no
configure:7306: result: running configure fragment for sysdeps/unix/sysv/linux
configure:14: checking for grep that handles long lines and -e
configure:72: result: /gnu/store/v2q2595q6n4gs32j15ga65bgy0yqg76g-grep-2.15/bin/grep
configure:77: checking for egrep
configure:139: result: /gnu/store/v2q2595q6n4gs32j15ga65bgy0yqg76g-grep-2.15/bin/grep -E
configure:144: checking installed Linux kernel header files
configure:165: result: 2.6.19 or later
configure:232: checking for kernel header at least 2.6.16
configure:251: result: ok
configure:356: checking for symlinks in /gnu/store/8l1g128lw727s5in90afnimgjjjl6j3j-glibc-hurd-cross-i686-pc-gnu-2.18/include
configure:373: result: ok
configure:7306: result: running configure fragment for sysdeps/gnu
configure:7306: result: running configure fragment for sysdeps/x86_64
configure:36: checking for cpuid.h
configure:36: gcc -c -g -O2 conftest.c >&5
configure:36: $? = 0
configure:36: result: yes
configure:46: checking for SSE4 support
configure:52: gcc -msse4 -xc /dev/null -S -o /dev/null
configure:55: $? = 0
configure:63: result: yes
configure:72: checking for AVX support
configure:78: gcc -mavx -xc /dev/null -S -o /dev/null
configure:81: $? = 0
configure:89: result: yes
configure:98: checking for AVX encoding of SSE instructions
configure:104: gcc -msse2avx -xc /dev/null -S -o /dev/null
configure:107: $? = 0
configure:115: result: yes
configure:124: checking for FMA4 support
configure:130: gcc -mfma4 -xc /dev/null -S -o /dev/null
configure:133: $? = 0
configure:141: result: yes
configure:150: checking for -mno-vzeroupper support
configure:156: gcc -mno-vzeroupper -xc /dev/null -S -o /dev/null
configure:159: $? = 0
configure:167: result: yes
configure:7338: checking for old glibc 2.0.x headers
configure:7346: result: no
configure:7374: checking whether -fPIC is default
configure:7390: result: no
configure:7524: creating ./config.status
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by GNU C Library config.status (see version.h), which was
generated by GNU Autoconf 2.68. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status
on localhost
config.status:949: creating config.make
config.status:949: creating Makefile
config.status:949: creating config.h
config.status:1123: executing default commands
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=i686-pc-gnu
ac_cv_header_cpuid_h=yes
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_lib_selinux_is_selinux_enabled=no
ac_cv_objext=o
ac_cv_path_BASH_SHELL=/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash
ac_cv_path_BISON=no
ac_cv_path_EGREP='/gnu/store/v2q2595q6n4gs32j15ga65bgy0yqg76g-grep-2.15/bin/grep -E'
ac_cv_path_GREP=/gnu/store/v2q2595q6n4gs32j15ga65bgy0yqg76g-grep-2.15/bin/grep
ac_cv_path_INSTALL_INFO=no
ac_cv_path_PERL=/gnu/store/qdd0hz0sclms1rz3ss01f75r3ys8r58z-perl-5.16.1/bin/perl
ac_cv_path_install='/gnu/store/gjl05yl9lvgjhznz5v985mys861svp34-coreutils-8.21/bin/install -c'
ac_cv_prog_AS=as
ac_cv_prog_AUTOCONF=autoconf
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=gcc
ac_cv_prog_LD=ld
ac_cv_prog_MAKE=make
ac_cv_prog_SED=sed
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_NM=nm
ac_cv_prog_ac_ct_READELF=readelf
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_sizeof_long_double=0
libc_cv_Bgroup=yes
libc_cv_as_noexecstack=yes
libc_cv_asm_cfi_directives=yes
libc_cv_asm_previous_directive=yes
libc_cv_asm_protected_directive=yes
libc_cv_asm_set_directive=yes
libc_cv_asm_symver_directive=yes
libc_cv_asm_unique_object=yes
libc_cv_asm_weak_directive=yes
libc_cv_autoconf_works=no
libc_cv_broken_alias_attribute=no
libc_cv_broken_visibility_attribute=no
libc_cv_cc_avx=yes
libc_cv_cc_fma4=yes
libc_cv_cc_nofma=-ffp-contract=off
libc_cv_cc_novzeroupper=yes
libc_cv_cc_sse2avx=yes
libc_cv_cc_sse4=yes
libc_cv_cc_with_libunwind=no
libc_cv_ctors_header=no
libc_cv_dot_text=.text
libc_cv_fno_toplevel_reorder=yes
libc_cv_fpie=yes
libc_cv_friendly_stddef=yes
libc_cv_gcc___thread=yes
libc_cv_gcc_builtin_memset=yes
libc_cv_gcc_builtin_redirection=yes
libc_cv_gcc_exceptions=yes
libc_cv_gcc_static_libgcc=-static-libgcc
libc_cv_gcc_tls_model_attr=yes
libc_cv_gcc_unwind_find_fde=no
libc_cv_gnu89_inline=yes
libc_cv_hashstyle=yes
libc_cv_have_bash2=yes
libc_cv_have_ksh=yes
libc_cv_have_sdata_section=no
libc_cv_have_section_quotes=no
libc_cv_idn=no
libc_cv_initfini_array=yes
libc_cv_ld_gnu_indirect_function=yes
libc_cv_ld_no_whole_archive=yes
libc_cv_ld_version_script_option=yes
libc_cv_linux2619='2.6.19 or later'
libc_cv_localedir=/gnu/store/kwdigzfxr1zpff9jw6v4ygyypmjqkvs2-glibc-hurd-cross-i686-pc-gnu-2.18-locales/share/locale
libc_cv_localstatedir='${prefix}/var'
libc_cv_need_minus_P=no
libc_cv_nss_crypt=no
libc_cv_output_format=elf64-x86-64
libc_cv_pic_default=no
libc_cv_predef_fortify_source=no
libc_cv_predef_stack_protector=no
libc_cv_prog_as_gnu=yes
libc_cv_prog_ld_gnu=yes
libc_cv_ssp=yes
libc_cv_sysconfdir='${prefix}/etc'
libc_cv_use_default_link=no
libc_cv_visibility_attribute=yes
libc_cv_x32=no
libc_cv_z_combreloc=yes
libc_cv_z_execstack=yes
libc_cv_z_initfirst=yes
libc_cv_z_nodelete=yes
libc_cv_z_nodlopen=yes
libc_cv_z_relro=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR='ar'
AS='as'
ASFLAGS_config=' -Wa,--noexecstack'
AUTOCONF='no'
AWK='gawk'
BASH_SHELL='/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash'
BISON='no'
BUILD_CC=''
CC='gcc'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CPPUNDEFS=''
CXX='g++'
CXXFLAGS='-g -O2'
CXX_SYSINCLUDES=''
DEFINES=''
DEFS='-DHAVE_CONFIG_H'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_INFO='no'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
KSH='/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash'
LD='ld'
LDFLAGS=''
LIBGD='no'
LIBOBJS=''
LIBS=''
LN_S='ln -s'
LTLIBOBJS=''
MAKE='make'
MAKEINFO=':'
MSGFMT=':'
NM='nm'
OBJCOPY='objcopy'
OBJDUMP='objdump'
OBJEXT='o'
PACKAGE_BUGREPORT='http://sourceware.org/bugzilla/'
PACKAGE_NAME='GNU C Library'
PACKAGE_STRING='GNU C Library (see version.h)'
PACKAGE_TARNAME='glibc'
PACKAGE_URL='http://www.gnu.org/software/glibc/'
PACKAGE_VERSION='(see version.h)'
PATH_SEPARATOR=':'
PERL='/gnu/store/qdd0hz0sclms1rz3ss01f75r3ys8r58z-perl-5.16.1/bin/perl'
PKGVERSION='(GNU libc) '
PKGVERSION_TEXI='(GNU libc) '
READELF='readelf'
RELEASE='development'
REPORT_BUGS_TEXI='@uref{http://www.gnu.org/software/libc/bugs.html}'
REPORT_BUGS_TO='<http://www.gnu.org/software/libc/bugs.html>'
SED='sed'
SHELL='/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash'
SYSINCLUDES=''
VERSION='2.17.90'
VERSIONING='yes'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
add_on_subdirs=''
add_ons=''
all_warnings=''
base_machine='x86_64'
bindir='${exec_prefix}/bin'
bindnow='no'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_nscd='yes'
build_os='linux-gnu'
build_vendor='unknown'
cross_compiling='no'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exceptions='-fexceptions'
exec_prefix='${prefix}'
fno_unit_at_a_time='-fno-toplevel-reorder -fno-section-anchors'
force_install='yes'
gnu89_inline='-fgnu89-inline'
hardcoded_path_in_tests='no'
have_libaudit=''
have_libcap=''
have_selinux='no'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
ldd_rewrite_script='sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed'
libc_cv_Bgroup='yes'
libc_cv_cc_nofma='-ffp-contract=off'
libc_cv_cc_submachine=''
libc_cv_cc_with_libunwind='no'
libc_cv_forced_unwind=''
libc_cv_fpie='yes'
libc_cv_gcc_static_libgcc='-static-libgcc'
libc_cv_gcc_unwind_find_fde='no'
libc_cv_hashstyle='yes'
libc_cv_have_bash2='yes'
libc_cv_have_ksh='yes'
libc_cv_localedir='/gnu/store/kwdigzfxr1zpff9jw6v4ygyypmjqkvs2-glibc-hurd-cross-i686-pc-gnu-2.18-locales/share/locale'
libc_cv_localstatedir='${prefix}/var'
libc_cv_nss_crypt='no'
libc_cv_output_format='elf64-x86-64'
libc_cv_pic_default='no'
libc_cv_rootsbindir=''
libc_cv_rtlddir=''
libc_cv_slibdir=''
libc_cv_ssp='yes'
libc_cv_sysconfdir='${prefix}/etc'
libc_cv_z_combreloc='yes'
libc_cv_z_execstack='yes'
libc_extra_cflags=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
link_obsolete_rpc='no'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mach_interface_list=''
mandir='${datarootdir}/man'
multi_arch='no'
old_glibc_headers='no'
oldest_abi='default'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/gnu/store/8l1g128lw727s5in90afnimgjjjl6j3j-glibc-hurd-cross-i686-pc-gnu-2.18'
profile='no'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
shared='yes'
sharedstatedir='${prefix}/com'
sizeof_long_double='0'
static=''
static_nss='no'
subdirs=' '
submachine=''
sysconfdir='${prefix}/etc'
sysdeps_add_ons=''
sysheaders=''
sysnames=' sysdeps/unix/sysv/linux/x86_64/64 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/x86 sysdeps/unix/sysv/linux/wordsize-64 sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/x86_64 sysdeps/unix sysdeps/posix sysdeps/x86_64/64 sysdeps/x86_64/fpu sysdeps/x86/fpu sysdeps/x86_64 sysdeps/x86 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64/wordsize-64 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/wordsize-64 sysdeps/ieee754 sysdeps/generic'
target_alias='i686-pc-gnu'
use_default_link='no'
use_ldconfig='yes'
use_nscd='yes'
with_fp='yes'
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "GNU C Library"
#define PACKAGE_TARNAME "glibc"
#define PACKAGE_VERSION "(see version.h)"
#define PACKAGE_STRING "GNU C Library (see version.h)"
#define PACKAGE_BUGREPORT "http://sourceware.org/bugzilla/"
#define PACKAGE_URL "http://www.gnu.org/software/glibc/"
#define PKGVERSION "(GNU libc) "
#define REPORT_BUGS_TO "<http://www.gnu.org/software/libc/bugs.html>"
#define HAVE_ASM_SET_DIRECTIVE 1
#define HAVE_ASM_UNIQUE_OBJECT 1
#define DO_VERSIONING 1
#define HAVE_ASM_PREVIOUS_DIRECTIVE 1
#define NO_CTORS_DTORS_SECTIONS 1
#define HAVE_Z_COMBRELOC 1
#define HAVE_ASM_WEAK_DIRECTIVE 1
#define HAVE_ASM_CFI_DIRECTIVES 1
#define HAVE_BUILTIN_MEMSET 1
#define SIZEOF_LONG_DOUBLE 0
#define __LINUX_KERNEL_VERSION (2 * 65536 + 6 * 256 + 16)
#define __ABI_TAG_VERSION 2,6,16
#define HAVE_INLINED_SYSCALLS 1
#define HAVE_SSE4_SUPPORT 1
#define HAVE_AVX_SUPPORT 1
#define HAVE_SSE2AVX_SUPPORT 1
#define HAVE_FMA4_SUPPORT 1
#define PI_STATIC_AND_HIDDEN 1
#define HAVE_IFUNC 1
#define USE_NSCD 1
#define USE_LDCONFIG 1
configure: exit 0
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Glibc/hurd work till now
2014-03-19 19:38 ` Manolis Ragkousis
@ 2014-03-19 20:17 ` Ludovic Courtès
2014-03-19 20:47 ` Manolis Ragkousis
0 siblings, 1 reply; 22+ messages in thread
From: Ludovic Courtès @ 2014-03-19 20:17 UTC (permalink / raw)
To: Manolis Ragkousis; +Cc: Guix-devel
Manolis Ragkousis <manolis837@gmail.com> skribis:
> I am getting an error in the autoreconf phase for libpthread in glibc/hurd
> here
> Check the attached build.log file
>> #:phases (alist-cons-before
>> 'pre-configure 'autoconf
>> (lambda _
>> (system* "autoreconf" "-vi" "libpthread"))
>
> I placed libtool as a native input as Mark Weaver suggested but it doesn't
> seem to fix it
> ("libtool" ,libtool "bin")
>
> Any ideas?
[...]
> Makefile.am:77: error: Libtool library used but 'LIBTOOL' is undefined
> Makefile.am:77: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
> Makefile.am:77: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
> Makefile.am:77: If 'LT_INIT' is in 'configure.ac', make sure
> Makefile.am:77: its definition is in aclocal's search path.
This error message is confusing, but you could try adding just Libtool:
("libtool" ,libtool")
This is where Libtool’s Autoconf macros live.
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Glibc/hurd work till now
2014-03-19 20:17 ` Ludovic Courtès
@ 2014-03-19 20:47 ` Manolis Ragkousis
2014-03-19 21:58 ` Ludovic Courtès
0 siblings, 1 reply; 22+ messages in thread
From: Manolis Ragkousis @ 2014-03-19 20:47 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guix-devel
[-- Attachment #1.1: Type: text/plain, Size: 469 bytes --]
I tried that but I am getting the errors
> autoreconf: running: libtoolize --copy --force
> Can't exec "libtoolize": No such file or directory at
/gnu/store/1i1jcl43kcs9v0g962sj5s70igxy2g2g-autoconf-2.69/share/autoconf/Autom4te/FileUtils.pm
line 345, <GEN2> line 5.
> autoreconf: failed to run libtoolize: No such file or directory
> autoreconf: libtoolize is needed because this package uses Libtool
Maybe there is something wrong with how autoconf handles this
[-- Attachment #1.2: Type: text/html, Size: 564 bytes --]
[-- Attachment #2: build.log --]
[-- Type: text/plain, Size: 1144 bytes --]
starting phase `autoconf'
autoreconf: 'libpthread/configure.ac' and 'libpthread/configure.in' both present.
autoreconf: proceeding with 'libpthread/configure.ac'
autoreconf: Entering directory `libpthread'
autoreconf: 'configure.ac' and 'configure.in' both present.
autoreconf: proceeding with 'configure.ac'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
aclocal: warning: 'configure.ac' and 'configure.in' both present.
aclocal: proceeding with 'configure.ac'
autoreconf: configure.ac: tracing
autoconf: warning: both `configure.ac' and `configure.in' are present.
autoconf: warning: proceeding with `configure.ac'.
autoreconf: configure.ac: creating directory build-aux
autoreconf: running: libtoolize --copy --force
Can't exec "libtoolize": No such file or directory at /gnu/store/1i1jcl43kcs9v0g962sj5s70igxy2g2g-autoconf-2.69/share/autoconf/Autom4te/FileUtils.pm line 345, <GEN2> line 5.
autoreconf: failed to run libtoolize: No such file or directory
autoreconf: libtoolize is needed because this package uses Libtool
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Glibc/hurd work till now
2014-03-19 20:47 ` Manolis Ragkousis
@ 2014-03-19 21:58 ` Ludovic Courtès
2014-03-20 16:02 ` Manolis Ragkousis
0 siblings, 1 reply; 22+ messages in thread
From: Ludovic Courtès @ 2014-03-19 21:58 UTC (permalink / raw)
To: Manolis Ragkousis; +Cc: Guix-devel
Manolis Ragkousis <manolis837@gmail.com> skribis:
> I tried that but I am getting the errors
>
>> autoreconf: running: libtoolize --copy --force
>> Can't exec "libtoolize": No such file or directory at
Yes, so you need both libtool:bin (which brings ‘libtoolize’), and
libtool:
`(("libtool" ,libtool "bin") ; libtoolize
("libtool" ,libtool)) ; libtool.m4
Can you confirm?
Ludo’.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Glibc/hurd work till now
2014-03-19 21:58 ` Ludovic Courtès
@ 2014-03-20 16:02 ` Manolis Ragkousis
2014-03-20 20:42 ` libpthread fails to build as an add-on Ludovic Courtès
2014-03-21 23:23 ` Glibc/hurd work till now Manolis Ragkousis
0 siblings, 2 replies; 22+ messages in thread
From: Manolis Ragkousis @ 2014-03-20 16:02 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guix-devel
[-- Attachment #1.1: Type: text/plain, Size: 568 bytes --]
when building glibc with libpthread as an addon I get this
configure: running configure fragment for add-on libpthread
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
checking build system type... Invalid configuration `dummy': machine
`dummy' not recognized
configure: error:
/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash
../source/scripts/config.sub dummy failed
Normally the flags passed to glibc's configure should be passed to
libpthread as well. Why isn't it happening?
[-- Attachment #1.2: Type: text/html, Size: 649 bytes --]
[-- Attachment #2: build.log --]
[-- Type: text/plain, Size: 1745 bytes --]
starting phase `configure'
source directory: "/tmp/nix-build-glibc-hurd-cross-i686-pc-gnu-2.18.drv-4/source" (relative from build: "../source")
build directory: "/tmp/nix-build-glibc-hurd-cross-i686-pc-gnu-2.18.drv-4/build"
configure flags: ("CONFIG_SHELL=/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash" "SHELL=/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash" "--prefix=/gnu/store/38sz5a5r2mimzg31jg2wdvk1f173iphx-glibc-hurd-cross-i686-pc-gnu-2.18" "--enable-fast-install" "--target=i686-pc-gnu" "--without-cvs" "--enable-add-ons=libpthread" "--build=i686-pc-gnu" "--disable-profile" "--disable-multi-arch" "--disable-sanity-checks" "libc_cv_localedir=/gnu/store/17kg9lw4laxglif9kdcgy6vc2yz366yx-glibc-hurd-cross-i686-pc-gnu-2.18-locales/share/locale" "BASH_SHELL=/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash")
checking build system type... i686-pc-gnu
checking host system type... i686-pc-gnu
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for readelf... readelf
checking for sysdeps preconfigure fragments... x86_64
configure: running configure fragment for add-on libpthread
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
checking build system type... Invalid configuration `dummy': machine `dummy' not recognized
configure: error: /gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash ../source/scripts/config.sub dummy failed
phase `configure' failed after 0 seconds
[-- Attachment #3: config.log --]
[-- Type: text/plain, Size: 7196 bytes --]
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU C Library configure (see version.h), which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ../source/configure dummy readelf
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost
uname -m = x86_64
uname -r = 3.13.6-1-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Fri Mar 7 22:47:48 CET 2014
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /gnu/store/6bg25h0pzgscds0br7dzs7lf3vqskl96-gcc-cross-hurd-sans-libc-i686-pc-gnu-4.8.2/bin
PATH: /gnu/store/nkrr16lw55p75483z2an0c67nnqdm4l5-binutils-cross-i686-pc-gnu-2.23.2/bin
PATH: /gnu/store/m2qn6kv6n00ris4l9mwfl7wadxrbll6g-mig-cross-1.4/bin
PATH: /gnu/store/qdd0hz0sclms1rz3ss01f75r3ys8r58z-perl-5.16.1/bin
PATH: /gnu/store/bvw355kwjr21kcfckzlm22ag03xamj27-autoconf-wrapper-2.69/bin
PATH: /gnu/store/yvfsm45m5g8m2ikj8gvnq6260azwbrbk-automake-1.14.1/bin
PATH: /gnu/store/nr4xwiv2v7n97ib29dpf8gi2562y5294-libtool-2.4.2-bin/bin
PATH: /gnu/store/x26nnlh6azmnd0ibdyfwafdc6rkzx17w-bash-light-4.2/bin
PATH: /gnu/store/f4v605p9fva9kjragznh3l28nfpzmcqp-tar-1.27.1/bin
PATH: /gnu/store/7267cq3clzcbgd1k7s5rg0i0vp2yklpl-gzip-1.6/bin
PATH: /gnu/store/a1ir9y0bgaazp6n58y3qbhmfymjq3yxq-bzip2-1.0.6/bin
PATH: /gnu/store/1zs7xnaby6vl49195sid1klx3gk03mwd-xz-5.0.4/bin
PATH: /gnu/store/2ly72pfnmg28ps7jdj83516gvbn6371j-diffutils-3.3/bin
PATH: /gnu/store/1qdk13ly4c5iqqz7nay0x4fn6ls5r1b9-patch-2.7.1/bin
PATH: /gnu/store/gjl05yl9lvgjhznz5v985mys861svp34-coreutils-8.21/bin
PATH: /gnu/store/sj5ivydxwm1943y2g06vhwfwpn9hc1a1-sed-4.2.2/bin
PATH: /gnu/store/v2q2595q6n4gs32j15ga65bgy0yqg76g-grep-2.15/bin
PATH: /gnu/store/r534qbhj6jni2x30q4rgl8ry8rilarak-findutils-4.4.2/bin
PATH: /gnu/store/3j4pxqg9rskk9365m6jqi59pvcyq1d82-gawk-4.1.0/bin
PATH: /gnu/store/pwm61di9kpfks4acn0k6kp2rwa0wjl5j-make-4.0/bin
PATH: /gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin
PATH: /gnu/store/r7lpkp8d2df74rw24ndcivxvjzdgxn8d-ld-wrapper-0/bin
PATH: /gnu/store/xbryfykc21adgrq3z56g4c6xvv2lb645-binutils-2.23.2/bin
PATH: /gnu/store/z8qifq9172ad17a7mxg9w8jq51axwwqr-gcc-4.8.2/bin
PATH: /gnu/store/5v11czsqd9x9xqvsww9dk7h5i47laym0-glibc-2.18/bin
PATH: /gnu/store/5v11czsqd9x9xqvsww9dk7h5i47laym0-glibc-2.18/sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2338: checking build system type
configure:2349: error: /gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash ../source/scripts/config.sub dummy failed
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=dummy
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=dummy
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=dummy
libc_cv_localedir=/gnu/store/17kg9lw4laxglif9kdcgy6vc2yz366yx-glibc-hurd-cross-i686-pc-gnu-2.18-locales/share/locale
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
AS=''
ASFLAGS_config=''
AUTOCONF=''
AWK=''
BASH_SHELL='/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash'
BISON=''
BUILD_CC=''
CC=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CPPUNDEFS=''
CXX=''
CXXFLAGS=''
CXX_SYSINCLUDES=''
DEFINES=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
INSTALL_DATA=''
INSTALL_INFO=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
KSH=''
LD=''
LDFLAGS=''
LIBGD=''
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBOBJS=''
MAKE=''
MAKEINFO=''
MSGFMT=''
NM=''
OBJCOPY=''
OBJDUMP=''
OBJEXT=''
PACKAGE_BUGREPORT='http://sourceware.org/bugzilla/'
PACKAGE_NAME='GNU C Library'
PACKAGE_STRING='GNU C Library (see version.h)'
PACKAGE_TARNAME='glibc'
PACKAGE_URL='http://www.gnu.org/software/glibc/'
PACKAGE_VERSION='(see version.h)'
PATH_SEPARATOR=':'
PERL=''
PKGVERSION='(GNU libc) '
PKGVERSION_TEXI='(GNU libc) '
READELF=''
RELEASE=''
REPORT_BUGS_TEXI='@uref{http://www.gnu.org/software/libc/bugs.html}'
REPORT_BUGS_TO='<http://www.gnu.org/software/libc/bugs.html>'
SED=''
SHELL='/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash'
SYSINCLUDES=''
VERSION=''
VERSIONING=''
ac_ct_CC=''
ac_ct_CXX=''
add_on_subdirs=''
add_ons=''
all_warnings=''
base_machine=''
bindir='${exec_prefix}/bin'
bindnow=''
build='dummy'
build_alias='dummy'
build_cpu=''
build_nscd=''
build_os=''
build_vendor=''
cross_compiling='no'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exceptions=''
exec_prefix='NONE'
fno_unit_at_a_time=''
force_install=''
gnu89_inline=''
hardcoded_path_in_tests=''
have_libaudit=''
have_libcap=''
have_selinux=''
host='dummy'
host_alias='dummy'
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
ldd_rewrite_script=''
libc_cv_Bgroup=''
libc_cv_cc_nofma=''
libc_cv_cc_submachine=''
libc_cv_cc_with_libunwind=''
libc_cv_forced_unwind=''
libc_cv_fpie=''
libc_cv_gcc_static_libgcc=''
libc_cv_gcc_unwind_find_fde=''
libc_cv_hashstyle=''
libc_cv_have_bash2=''
libc_cv_have_ksh=''
libc_cv_localedir='/gnu/store/17kg9lw4laxglif9kdcgy6vc2yz366yx-glibc-hurd-cross-i686-pc-gnu-2.18-locales/share/locale'
libc_cv_localstatedir=''
libc_cv_nss_crypt=''
libc_cv_output_format=''
libc_cv_pic_default=''
libc_cv_rootsbindir=''
libc_cv_rtlddir=''
libc_cv_slibdir=''
libc_cv_ssp=''
libc_cv_sysconfdir=''
libc_cv_z_combreloc=''
libc_cv_z_execstack=''
libc_extra_cflags=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
link_obsolete_rpc=''
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mach_interface_list=''
mandir='${datarootdir}/man'
multi_arch=''
old_glibc_headers=''
oldest_abi=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
profile=''
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
shared=''
sharedstatedir='${prefix}/com'
sizeof_long_double=''
static=''
static_nss=''
subdirs=' '
submachine=''
sysconfdir='${prefix}/etc'
sysdeps_add_ons=''
sysheaders=''
sysnames=''
target_alias='dummy'
use_default_link=''
use_ldconfig=''
use_nscd=''
with_fp=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "GNU C Library"
#define PACKAGE_TARNAME "glibc"
#define PACKAGE_VERSION "(see version.h)"
#define PACKAGE_STRING "GNU C Library (see version.h)"
#define PACKAGE_BUGREPORT "http://sourceware.org/bugzilla/"
#define PACKAGE_URL "http://www.gnu.org/software/glibc/"
#define PKGVERSION "(GNU libc) "
#define REPORT_BUGS_TO "<http://www.gnu.org/software/libc/bugs.html>"
configure: exit 1
^ permalink raw reply [flat|nested] 22+ messages in thread
* libpthread fails to build as an add-on
2014-03-20 16:02 ` Manolis Ragkousis
@ 2014-03-20 20:42 ` Ludovic Courtès
2014-03-20 20:58 ` Manolis Ragkousis
2014-03-21 23:23 ` Glibc/hurd work till now Manolis Ragkousis
1 sibling, 1 reply; 22+ messages in thread
From: Ludovic Courtès @ 2014-03-20 20:42 UTC (permalink / raw)
To: Manolis Ragkousis; +Cc: Guix-devel, bug-hurd
(Hurd people: this is about a configure error when cross-compiling glibc
with libpthread as an add-on.)
Manolis Ragkousis <manolis837@gmail.com> skribis:
> when building glibc with libpthread as an addon I get this
>
> configure: running configure fragment for add-on libpthread
> configure: WARNING: you should use --build, --host, --target
> configure: WARNING: you should use --build, --host, --target
> checking build system type... Invalid configuration `dummy': machine
> `dummy' not recognized
> configure: error:
> /gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash
> ../source/scripts/config.sub dummy failed
>
> Normally the flags passed to glibc's configure should be passed to
> libpthread as well. Why isn't it happening?
Actually libc’s configure doesn’t use the normal AC_CONFIG_SUBDIRS
mechanism, and instead runs add-on configure scripts by itself, without
arguments AFAICS.
[...]
> It was created by GNU C Library configure (see version.h), which was
> generated by GNU Autoconf 2.68. Invocation command line was
>
> $ ../source/configure dummy readelf
(This is libpthread’s config.log, right?)
I don’t understand where those arguments come from.
Ideas?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: libpthread fails to build as an add-on
2014-03-20 20:42 ` libpthread fails to build as an add-on Ludovic Courtès
@ 2014-03-20 20:58 ` Manolis Ragkousis
2014-03-23 8:28 ` Manolis Ragkousis
0 siblings, 1 reply; 22+ messages in thread
From: Manolis Ragkousis @ 2014-03-20 20:58 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guix-devel, bug-hurd
[-- Attachment #1.1: Type: text/plain, Size: 174 bytes --]
> (This is libpthread's config.log, right?)
It's the config.log generated in the build folder of glibc.
There is no config.log file generated from libpthread.
Manolis
>
[-- Attachment #1.2: Type: text/html, Size: 532 bytes --]
[-- Attachment #2: build.log --]
[-- Type: text/plain, Size: 1745 bytes --]
starting phase `configure'
source directory: "/tmp/nix-build-glibc-hurd-cross-i686-pc-gnu-2.18.drv-4/source" (relative from build: "../source")
build directory: "/tmp/nix-build-glibc-hurd-cross-i686-pc-gnu-2.18.drv-4/build"
configure flags: ("CONFIG_SHELL=/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash" "SHELL=/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash" "--prefix=/gnu/store/38sz5a5r2mimzg31jg2wdvk1f173iphx-glibc-hurd-cross-i686-pc-gnu-2.18" "--enable-fast-install" "--target=i686-pc-gnu" "--without-cvs" "--enable-add-ons=libpthread" "--build=i686-pc-gnu" "--disable-profile" "--disable-multi-arch" "--disable-sanity-checks" "libc_cv_localedir=/gnu/store/17kg9lw4laxglif9kdcgy6vc2yz366yx-glibc-hurd-cross-i686-pc-gnu-2.18-locales/share/locale" "BASH_SHELL=/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash")
checking build system type... i686-pc-gnu
checking host system type... i686-pc-gnu
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for readelf... readelf
checking for sysdeps preconfigure fragments... x86_64
configure: running configure fragment for add-on libpthread
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
checking build system type... Invalid configuration `dummy': machine `dummy' not recognized
configure: error: /gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash ../source/scripts/config.sub dummy failed
phase `configure' failed after 0 seconds
[-- Attachment #3: config.log --]
[-- Type: text/plain, Size: 7196 bytes --]
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU C Library configure (see version.h), which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ../source/configure dummy readelf
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost
uname -m = x86_64
uname -r = 3.13.6-1-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Fri Mar 7 22:47:48 CET 2014
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /gnu/store/6bg25h0pzgscds0br7dzs7lf3vqskl96-gcc-cross-hurd-sans-libc-i686-pc-gnu-4.8.2/bin
PATH: /gnu/store/nkrr16lw55p75483z2an0c67nnqdm4l5-binutils-cross-i686-pc-gnu-2.23.2/bin
PATH: /gnu/store/m2qn6kv6n00ris4l9mwfl7wadxrbll6g-mig-cross-1.4/bin
PATH: /gnu/store/qdd0hz0sclms1rz3ss01f75r3ys8r58z-perl-5.16.1/bin
PATH: /gnu/store/bvw355kwjr21kcfckzlm22ag03xamj27-autoconf-wrapper-2.69/bin
PATH: /gnu/store/yvfsm45m5g8m2ikj8gvnq6260azwbrbk-automake-1.14.1/bin
PATH: /gnu/store/nr4xwiv2v7n97ib29dpf8gi2562y5294-libtool-2.4.2-bin/bin
PATH: /gnu/store/x26nnlh6azmnd0ibdyfwafdc6rkzx17w-bash-light-4.2/bin
PATH: /gnu/store/f4v605p9fva9kjragznh3l28nfpzmcqp-tar-1.27.1/bin
PATH: /gnu/store/7267cq3clzcbgd1k7s5rg0i0vp2yklpl-gzip-1.6/bin
PATH: /gnu/store/a1ir9y0bgaazp6n58y3qbhmfymjq3yxq-bzip2-1.0.6/bin
PATH: /gnu/store/1zs7xnaby6vl49195sid1klx3gk03mwd-xz-5.0.4/bin
PATH: /gnu/store/2ly72pfnmg28ps7jdj83516gvbn6371j-diffutils-3.3/bin
PATH: /gnu/store/1qdk13ly4c5iqqz7nay0x4fn6ls5r1b9-patch-2.7.1/bin
PATH: /gnu/store/gjl05yl9lvgjhznz5v985mys861svp34-coreutils-8.21/bin
PATH: /gnu/store/sj5ivydxwm1943y2g06vhwfwpn9hc1a1-sed-4.2.2/bin
PATH: /gnu/store/v2q2595q6n4gs32j15ga65bgy0yqg76g-grep-2.15/bin
PATH: /gnu/store/r534qbhj6jni2x30q4rgl8ry8rilarak-findutils-4.4.2/bin
PATH: /gnu/store/3j4pxqg9rskk9365m6jqi59pvcyq1d82-gawk-4.1.0/bin
PATH: /gnu/store/pwm61di9kpfks4acn0k6kp2rwa0wjl5j-make-4.0/bin
PATH: /gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin
PATH: /gnu/store/r7lpkp8d2df74rw24ndcivxvjzdgxn8d-ld-wrapper-0/bin
PATH: /gnu/store/xbryfykc21adgrq3z56g4c6xvv2lb645-binutils-2.23.2/bin
PATH: /gnu/store/z8qifq9172ad17a7mxg9w8jq51axwwqr-gcc-4.8.2/bin
PATH: /gnu/store/5v11czsqd9x9xqvsww9dk7h5i47laym0-glibc-2.18/bin
PATH: /gnu/store/5v11czsqd9x9xqvsww9dk7h5i47laym0-glibc-2.18/sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2338: checking build system type
configure:2349: error: /gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash ../source/scripts/config.sub dummy failed
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=dummy
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=dummy
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=dummy
libc_cv_localedir=/gnu/store/17kg9lw4laxglif9kdcgy6vc2yz366yx-glibc-hurd-cross-i686-pc-gnu-2.18-locales/share/locale
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
AS=''
ASFLAGS_config=''
AUTOCONF=''
AWK=''
BASH_SHELL='/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash'
BISON=''
BUILD_CC=''
CC=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CPPUNDEFS=''
CXX=''
CXXFLAGS=''
CXX_SYSINCLUDES=''
DEFINES=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
INSTALL_DATA=''
INSTALL_INFO=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
KSH=''
LD=''
LDFLAGS=''
LIBGD=''
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBOBJS=''
MAKE=''
MAKEINFO=''
MSGFMT=''
NM=''
OBJCOPY=''
OBJDUMP=''
OBJEXT=''
PACKAGE_BUGREPORT='http://sourceware.org/bugzilla/'
PACKAGE_NAME='GNU C Library'
PACKAGE_STRING='GNU C Library (see version.h)'
PACKAGE_TARNAME='glibc'
PACKAGE_URL='http://www.gnu.org/software/glibc/'
PACKAGE_VERSION='(see version.h)'
PATH_SEPARATOR=':'
PERL=''
PKGVERSION='(GNU libc) '
PKGVERSION_TEXI='(GNU libc) '
READELF=''
RELEASE=''
REPORT_BUGS_TEXI='@uref{http://www.gnu.org/software/libc/bugs.html}'
REPORT_BUGS_TO='<http://www.gnu.org/software/libc/bugs.html>'
SED=''
SHELL='/gnu/store/281n6ma5jxy9sb3nwc09mzpqx43vczr6-bash-4.2/bin/bash'
SYSINCLUDES=''
VERSION=''
VERSIONING=''
ac_ct_CC=''
ac_ct_CXX=''
add_on_subdirs=''
add_ons=''
all_warnings=''
base_machine=''
bindir='${exec_prefix}/bin'
bindnow=''
build='dummy'
build_alias='dummy'
build_cpu=''
build_nscd=''
build_os=''
build_vendor=''
cross_compiling='no'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exceptions=''
exec_prefix='NONE'
fno_unit_at_a_time=''
force_install=''
gnu89_inline=''
hardcoded_path_in_tests=''
have_libaudit=''
have_libcap=''
have_selinux=''
host='dummy'
host_alias='dummy'
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
ldd_rewrite_script=''
libc_cv_Bgroup=''
libc_cv_cc_nofma=''
libc_cv_cc_submachine=''
libc_cv_cc_with_libunwind=''
libc_cv_forced_unwind=''
libc_cv_fpie=''
libc_cv_gcc_static_libgcc=''
libc_cv_gcc_unwind_find_fde=''
libc_cv_hashstyle=''
libc_cv_have_bash2=''
libc_cv_have_ksh=''
libc_cv_localedir='/gnu/store/17kg9lw4laxglif9kdcgy6vc2yz366yx-glibc-hurd-cross-i686-pc-gnu-2.18-locales/share/locale'
libc_cv_localstatedir=''
libc_cv_nss_crypt=''
libc_cv_output_format=''
libc_cv_pic_default=''
libc_cv_rootsbindir=''
libc_cv_rtlddir=''
libc_cv_slibdir=''
libc_cv_ssp=''
libc_cv_sysconfdir=''
libc_cv_z_combreloc=''
libc_cv_z_execstack=''
libc_extra_cflags=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
link_obsolete_rpc=''
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mach_interface_list=''
mandir='${datarootdir}/man'
multi_arch=''
old_glibc_headers=''
oldest_abi=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
profile=''
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
shared=''
sharedstatedir='${prefix}/com'
sizeof_long_double=''
static=''
static_nss=''
subdirs=' '
submachine=''
sysconfdir='${prefix}/etc'
sysdeps_add_ons=''
sysheaders=''
sysnames=''
target_alias='dummy'
use_default_link=''
use_ldconfig=''
use_nscd=''
with_fp=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "GNU C Library"
#define PACKAGE_TARNAME "glibc"
#define PACKAGE_VERSION "(see version.h)"
#define PACKAGE_STRING "GNU C Library (see version.h)"
#define PACKAGE_BUGREPORT "http://sourceware.org/bugzilla/"
#define PACKAGE_URL "http://www.gnu.org/software/glibc/"
#define PKGVERSION "(GNU libc) "
#define REPORT_BUGS_TO "<http://www.gnu.org/software/libc/bugs.html>"
configure: exit 1
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: libpthread fails to build as an add-on
2014-03-20 20:58 ` Manolis Ragkousis
@ 2014-03-23 8:28 ` Manolis Ragkousis
2014-03-23 9:17 ` Manolis Ragkousis
0 siblings, 1 reply; 22+ messages in thread
From: Manolis Ragkousis @ 2014-03-23 8:28 UTC (permalink / raw)
To: Ludovic Courtès, Samuel Thibault; +Cc: Guix-devel, bug-hurd
[-- Attachment #1.1: Type: text/plain, Size: 605 bytes --]
As Ludovic wrote
> Actually libc's configure doesn't use the normal AC_CONFIG_SUBDIRS
> mechanism, and instead runs add-on configure scripts by itself, without
> arguments AFAICS.
The part responsible for this is in the attached file and specifically the
part:
> libc_add_on_frag=$libc_add_on_srcdir/configure
I was thinking of modifying the configure script so it would use the
AC_CONFIG_SUBDIRS mechanism and configure all the addons with the flags
passed in the glibc configure.
Then I would apply the patch in a patch-phase before configure gets called
in guix.
What do you think?
Manolis
[-- Attachment #1.2: Type: text/html, Size: 793 bytes --]
[-- Attachment #2: config.txt --]
[-- Type: text/plain, Size: 3323 bytes --]
# Now source each add-on's configure fragment.
# The fragments can use $srcdir/$libc_add_on to find themselves,
# and test $add_ons_automatic to see if they were explicitly requested.
# A fragment can clear (or even change) $libc_add_on to affect
# whether it goes into the list to be actually used in the build.
use_add_ons=
for libc_add_on in $add_ons; do
# Test whether such a directory really exists.
# It can be absolute, or relative to $srcdir, or relative to the build dir.
case "$libc_add_on" in
/*)
libc_add_on_srcdir=$libc_add_on
;;
*)
test -d "$srcdir/$libc_add_on" || {
if test -d "$libc_add_on"; then
libc_add_on="`pwd`/$libc_add_on"
else
as_fn_error $? "add-on directory \"$libc_add_on\" does not exist" "$LINENO" 5
fi
}
libc_add_on_srcdir=$srcdir/$libc_add_on
;;
esac
libc_add_on_frag=$libc_add_on_srcdir/configure
libc_add_on_canonical=
libc_add_on_config_subdirs=
if test -r "$libc_add_on_frag"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: running configure fragment for add-on $libc_add_on" >&5
$as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
libc_add_on_canonical=unknown
libc_add_on_subdirs=
. "$libc_add_on_frag"
test -z "$libc_add_on" || {
configured_add_ons="$configured_add_ons $libc_add_on"
if test "x$libc_add_on_canonical" = xunknown; then
as_fn_error $? "fragment must set \$libc_add_on_canonical" "$LINENO" 5
fi
for d in $libc_add_on_subdirs; do
case "$libc_add_on" in
/*) subdir_srcdir="$libc_add_on" ;;
*) subdir_srcdir="\$(..)$libc_add_on" ;;
esac
case "$d" in
.)
d="${libc_add_on_canonical:-$libc_add_on}"
;;
/*)
subdir_srcdir="$d"
;;
*)
subdir_srcdir="$subdir_srcdir/$d"
;;
esac
d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
add_on_subdirs="$add_on_subdirs $d"
test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
$d-srcdir = $subdir_srcdir"
done
for d in $libc_add_on_config_subdirs; do
case "$d" in
/*) as_fn_error $? "fragment uses absolute path in \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
esac
if test ! -d "$libc_add_on_srcdir/$d"; then
as_fn_error $? "fragment wants to configure missing directory $d" "$LINENO" 5
fi
case "$libc_add_on" in
/*) as_fn_error $? "relative path required for add-on using \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
esac
subdirs="$subdirs $libc_add_on/$d"
done
}
fi
if test -n "$libc_add_on"; then
if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking add-on $libc_add_on for preconfigure fragments" >&5
$as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
for frag in $frags; do
name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
echo $ECHO_N "$name $ECHO_C" >&6
. "$frag"
done
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
fi
use_add_ons="$use_add_ons $libc_add_on"
add_ons_pfx="$add_ons_pfx $libc_add_on/"
test -z "$libc_add_on_canonical" ||
add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
fi
done
# Use echo to strip excess whitespace.
add_ons="`echo $use_add_ons`"
fi
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: libpthread fails to build as an add-on
2014-03-23 8:28 ` Manolis Ragkousis
@ 2014-03-23 9:17 ` Manolis Ragkousis
2014-03-23 21:38 ` Ludovic Courtès
0 siblings, 1 reply; 22+ messages in thread
From: Manolis Ragkousis @ 2014-03-23 9:17 UTC (permalink / raw)
To: Ludovic Courtès, Samuel Thibault; +Cc: Guix-devel, bug-hurd
[-- Attachment #1: Type: text/plain, Size: 172 bytes --]
In the debian package I saw there are 2 patches that add this.
> +libc_add_on_canonical=libpthread
> +libc_add_on_subdirs=.
How does this change the configure process?
[-- Attachment #2: Type: text/html, Size: 284 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: libpthread fails to build as an add-on
2014-03-23 9:17 ` Manolis Ragkousis
@ 2014-03-23 21:38 ` Ludovic Courtès
0 siblings, 0 replies; 22+ messages in thread
From: Ludovic Courtès @ 2014-03-23 21:38 UTC (permalink / raw)
To: Manolis Ragkousis; +Cc: Guix-devel, Samuel Thibault, bug-hurd
Manolis Ragkousis <manolis837@gmail.com> skribis:
> In the debian package I saw there are 2 patches that add this.
>
>> +libc_add_on_canonical=libpthread
>> +libc_add_on_subdirs=.
>
> How does this change the configure process?
Libc’s top-level configure file expects these two variables to be set by
the add-on’s ‘configure’ script:
--8<---------------cut here---------------start------------->8---
libc_add_on_frag=$libc_add_on_srcdir/configure
libc_add_on_canonical=
libc_add_on_config_subdirs=
if test -r "$libc_add_on_frag"; then
AC_MSG_NOTICE(running configure fragment for add-on $libc_add_on)
libc_add_on_canonical=unknown
libc_add_on_subdirs=
. "$libc_add_on_frag" ##### ← here, runs libpthread/configure
test -z "$libc_add_on" || {
configured_add_ons="$configured_add_ons $libc_add_on"
if test "x$libc_add_on_canonical" = xunknown; then
AC_MSG_ERROR(fragment must set \$libc_add_on_canonical)
fi
--8<---------------cut here---------------end--------------->8---
So when libpthread is built as an add-on, libpthread/configure must set
them, AFAIU.
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Glibc/hurd work till now
2014-03-20 16:02 ` Manolis Ragkousis
2014-03-20 20:42 ` libpthread fails to build as an add-on Ludovic Courtès
@ 2014-03-21 23:23 ` Manolis Ragkousis
2014-03-22 14:16 ` Ludovic Courtès
1 sibling, 1 reply; 22+ messages in thread
From: Manolis Ragkousis @ 2014-03-21 23:23 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guix-devel
[-- Attachment #1.1: Type: text/plain, Size: 898 bytes --]
I started writing the macro that chooses between 'glibc/linux' and
'glibc/hurd' so I added #:export (glibc) at defined modules, renamed glibc
to glibc/linux and then I added
(define (glibc-for-target target)
"Return the glibc for TARGET, glibc/linux for a linux host or
glibc/hurd for a hurd host"
(match target
("i686-pc-gnu" glibc/hurd)
(_ glibc/linux)))
(define-syntax glibc
(identifier-syntax (glibc-for-target (%current-target-system))))
Is my approach right? Because I am getting the error
gnu/packages/base.scm:772:3: In procedure #<procedure 48307c0 ()>:
gnu/packages/base.scm:772:3: In procedure struct-ref: Wrong type argument
in position 1 (expecting struct): #<syntax-transformer glibc>
when doing ./pre-inst-env guile -c '(use-modules (gnu packages base))'
Will the recipes inside base.scm, that inherit from glibc, automatically
inherit from the new one?
Manolis
[-- Attachment #1.2: Type: text/html, Size: 1258 bytes --]
[-- Attachment #2: build.log --]
[-- Type: text/plain, Size: 1864 bytes --]
;;; compiled /home/manolis/.cache/guile/ccache/2.0-LE-8-2.0/home/manolis/git_repos/guix/gnu/packages/base.scm.go
Backtrace:
In unknown file:
?: 19 [apply-smob/1 #<catch-closure 26969c0>]
In ice-9/boot-9.scm:
63: 18 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
432: 17 [eval # #]
In unknown file:
?: 16 [call-with-input-string "(use-modules (gnu packages base))" ...]
In ice-9/command-line.scm:
180: 15 [#<procedure 26a94c0 at ice-9/command-line.scm:175:6 (port)> #<input: string 244b5b0>]
In unknown file:
?: 14 [eval (use-modules (gnu packages base)) #<directory (guile-user) 2688c60>]
In ice-9/eval.scm:
505: 13 [#<procedure 256a760 at ice-9/eval.scm:499:4 (exp)> (use-modules #)]
In ice-9/psyntax.scm:
1091: 12 [expand-top-sequence ((use-modules (gnu packages base))) () ...]
976: 11 [scan ((use-modules (gnu packages base))) () ...]
270: 10 [scan ((# #) #(syntax-object *unspecified* # #)) () (()) ...]
In ice-9/boot-9.scm:
3513: 9 [process-use-modules (((gnu packages base)))]
627: 8 [map #<procedure 26222e0 at ice-9/boot-9.scm:3513:25 (mif-args)> ((#))]
3514: 7 [#<procedure 26222e0 at ice-9/boot-9.scm:3513:25 (mif-args)> (#)]
2783: 6 [resolve-interface (gnu packages base) #:select ...]
2708: 5 [#<procedure 2619bc0 at ice-9/boot-9.scm:2696:4 (name #:optional autoload version #:key ensure)> # ...]
2981: 4 [try-module-autoload (gnu packages base) #f]
2320: 3 [save-module-excursion #<procedure 26c99f0 at ice-9/boot-9.scm:2982:17 ()>]
3001: 2 [#<procedure 26c99f0 at ice-9/boot-9.scm:2982:17 ()>]
In unknown file:
?: 1 [primitive-load-path "gnu/packages/base" ...]
In gnu/packages/base.scm:
772: 0 [#<procedure 48307c0 ()>]
gnu/packages/base.scm:772:3: In procedure #<procedure 48307c0 ()>:
gnu/packages/base.scm:772:3: In procedure struct-ref: Wrong type argument in position 1 (expecting struct): #<syntax-transformer glibc>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Glibc/hurd work till now
2014-03-21 23:23 ` Glibc/hurd work till now Manolis Ragkousis
@ 2014-03-22 14:16 ` Ludovic Courtès
2014-03-22 16:13 ` Manolis Ragkousis
0 siblings, 1 reply; 22+ messages in thread
From: Ludovic Courtès @ 2014-03-22 14:16 UTC (permalink / raw)
To: Manolis Ragkousis; +Cc: Guix-devel
Manolis Ragkousis <manolis837@gmail.com> skribis:
> I started writing the macro that chooses between 'glibc/linux' and
> 'glibc/hurd' so I added #:export (glibc) at defined modules, renamed glibc
> to glibc/linux and then I added
>
> (define (glibc-for-target target)
> "Return the glibc for TARGET, glibc/linux for a linux host or
> glibc/hurd for a hurd host"
> (match target
> ("i686-pc-gnu" glibc/hurd)
> (_ glibc/linux)))
>
> (define-syntax glibc
> (identifier-syntax (glibc-for-target (%current-target-system))))
Looks good! It should be:
(glibc-for-target (or (%current-target-system) (%current-system)))
so that, when we build natively on GNU/Hurd, we also end up using
glibc/hurd.
> Is my approach right? Because I am getting the error
>
> gnu/packages/base.scm:772:3: In procedure #<procedure 48307c0 ()>:
> gnu/packages/base.scm:772:3: In procedure struct-ref: Wrong type argument
> in position 1 (expecting struct): #<syntax-transformer glibc>
Run ‘make clean-go && make’ to recompile the Scheme file, and everything
will be alright, hopefully. :-)
(This is because macros are expanded at compile time, so any Scheme file
that refers to ‘glibc’ must be recompiled so that the macro gets
expanded.)
Ludo’.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Glibc/hurd work till now
2014-03-22 14:16 ` Ludovic Courtès
@ 2014-03-22 16:13 ` Manolis Ragkousis
0 siblings, 0 replies; 22+ messages in thread
From: Manolis Ragkousis @ 2014-03-22 16:13 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guix-devel
[-- Attachment #1.1: Type: text/plain, Size: 49 bytes --]
The current patch so you can have a better look.
[-- Attachment #1.2: Type: text/html, Size: 74 bytes --]
[-- Attachment #2: add_macro.patch --]
[-- Type: text/x-patch, Size: 1613 bytes --]
From 8f8f74da2ee0f7da8d00b75d16f0089c8a73d72b Mon Sep 17 00:00:00 2001
From: Manolis Ragkousis <manolis837@gmail.com>
Date: Sat, 22 Mar 2014 18:01:29 +0000
Subject: [PATCH] gnu: base: Added macro for choosing glibc for target system
* gnu/packages/base.scm (glibc/linux): Renamed glibc to glibc/linux
* gnu/packages/base.scm (glibc-for-target): Choose which glibc to use
* gnu/packages/base.scm (glibc): Added macro to choose glibc
---
gnu/packages/base.scm | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 906d0a3..c90d1fc 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -39,7 +39,8 @@
#:use-module (guix utils)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26)
- #:use-module (ice-9 match))
+ #:use-module (ice-9 match)
+ #:export (glibc))
;;; Commentary:
;;;
@@ -353,7 +354,7 @@ library for working with executable and object formats is also included.")
(license gpl3+)
(home-page "http://www.gnu.org/software/binutils/")))
-(define-public glibc
+(define-public glibc/linux
(package
(name "glibc")
(version "2.18")
@@ -1091,4 +1092,14 @@ store.")
("gcc" ,gcc-final)
("libc" ,glibc-final))))
+(define (glibc-for-target target)
+ "Return the glibc for TARGET, glibc/linux for a linux host or
+glibc/hurd for a hurd host"
+ (match target
+ ("i686-pc-gnu" glibc/hurd)
+ (_ glibc/linux)))
+
+(define-syntax glibc
+ (identifier-syntax (glibc-for-target (or (%current-target-system) (%current-system)))))
+
;;; base.scm ends here
--
1.9.0
^ permalink raw reply related [flat|nested] 22+ messages in thread
end of thread, other threads:[~2014-03-23 21:38 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-18 10:02 Glibc/hurd work till now Manolis Ragkousis
2014-03-18 10:57 ` Ludovic Courtès
[not found] ` <CAFtzXzNSuz-wx2SDUafTvqtmRUbfOohO2-Nfzy7LYKd-wuWFWQ@mail.gmail.com>
2014-03-18 11:10 ` Fwd: " Manolis Ragkousis
2014-03-18 13:32 ` Ludovic Courtès
2014-03-18 14:55 ` Andreas Enge
2014-03-18 16:04 ` Ludovic Courtès
2014-03-18 19:06 ` Manolis Ragkousis
2014-03-18 20:34 ` Ludovic Courtès
2014-03-18 20:41 ` Manolis Ragkousis
2014-03-19 19:38 ` Manolis Ragkousis
2014-03-19 20:17 ` Ludovic Courtès
2014-03-19 20:47 ` Manolis Ragkousis
2014-03-19 21:58 ` Ludovic Courtès
2014-03-20 16:02 ` Manolis Ragkousis
2014-03-20 20:42 ` libpthread fails to build as an add-on Ludovic Courtès
2014-03-20 20:58 ` Manolis Ragkousis
2014-03-23 8:28 ` Manolis Ragkousis
2014-03-23 9:17 ` Manolis Ragkousis
2014-03-23 21:38 ` Ludovic Courtès
2014-03-21 23:23 ` Glibc/hurd work till now Manolis Ragkousis
2014-03-22 14:16 ` Ludovic Courtès
2014-03-22 16:13 ` Manolis Ragkousis
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.