* Guile under Guix on Arm
@ 2013-10-29 20:42 Andreas Enge
2013-10-29 20:51 ` Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Enge @ 2013-10-29 20:42 UTC (permalink / raw)
To: guix-devel
Hello,
./pre-inst-env guix build guile-static-stripped-tarball --target=armv5-linux-gnueabi
(after enabling armv5 as explained under porting in the guix manual)
results in the following error:
CC libguile_2.0_la-fluids.lo
finalizers.c:166:1: error: static declaration of 'GC_set_finalizer_notifier' follows non-static declaration
In file included from ../libguile/bdw-gc.h:47:0,
from finalizers.c:26:
/nix/store/8wkjgpb4b81ha352zz4fn3pvcwnj8x8c-libgc-7.2d/include/gc/gc.h:177:21: note: previous declaration of 'GC_set_finalizer_notifier' was here
make[3]: *** [libguile_2.0_la-finalizers.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/tmp/nix-build-guile-static-2.0.9.drv-0/guile-2.0.9/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/nix-build-guile-static-2.0.9.drv-0/guile-2.0.9/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/nix-build-guile-static-2.0.9.drv-0/guile-2.0.9'
make: *** [all] Error 2
phase `build' failed after 54 seconds
Indeed, line 177 of gc.h is:
GC_API void GC_CALL GC_set_finalizer_notifier(GC_finalizer_notifier_proc);
And line 47 of bdw-gc.h is:
#include <gc/gc.h>
The static redefinition is in lines 164 ff. of finalizers.c:
#ifndef HAVE_GC_SET_FINALIZER_NOTIFIER
static void
GC_set_finalizer_notifier (void (*notifier) (void))
{
GC_finalizer_notifier = notifier;
}
#endif
And config.h contains
/* #undef HAVE_GC_SET_FINALIZER_NOTIFIER */
"By hand", I did compile guile-2.0.9 without problem.
A problem in guile, or with the guile package in guix with respect to cross
compiling?
Andreas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Guile under Guix on Arm
2013-10-29 20:42 Guile under Guix on Arm Andreas Enge
@ 2013-10-29 20:51 ` Ludovic Courtès
2013-10-29 21:08 ` Andreas Enge
0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2013-10-29 20:51 UTC (permalink / raw)
To: Andreas Enge; +Cc: guix-devel
Andreas Enge <andreas@enge.fr> skribis:
> ./pre-inst-env guix build guile-static-stripped-tarball --target=armv5-linux-gnueabi
> (after enabling armv5 as explained under porting in the guix manual)
> results in the following error:
>
> CC libguile_2.0_la-fluids.lo
> finalizers.c:166:1: error: static declaration of 'GC_set_finalizer_notifier' follows non-static declaration
> In file included from ../libguile/bdw-gc.h:47:0,
> from finalizers.c:26:
> /nix/store/8wkjgpb4b81ha352zz4fn3pvcwnj8x8c-libgc-7.2d/include/gc/gc.h:177:21: note: previous declaration of 'GC_set_finalizer_notifier' was here
[...]
> And config.h contains
> /* #undef HAVE_GC_SET_FINALIZER_NOTIFIER */
Could you check in config.log why ‘GC_set_finalizer_notifier’ was
considered unavailable?
That could be worked around by adding
‘ac_cv func_GC_set_finalizer_notifier=yes’ to #:configure-flags, but I
suspect there’s another issue hiding here.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Guile under Guix on Arm
2013-10-29 20:51 ` Ludovic Courtès
@ 2013-10-29 21:08 ` Andreas Enge
2013-10-30 15:27 ` Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Enge @ 2013-10-29 21:08 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix-devel
On Tue, Oct 29, 2013 at 09:51:51PM +0100, Ludovic Courtès wrote:
> Could you check in config.log why ‘GC_set_finalizer_notifier’ was
> considered unavailable?
Here is an excerpt of config.log:
configure:48599: checking for GC_set_finalizer_notifier
configure:48599: armv5-linux-gnueabi-gcc -o conftest -I/nix/store/8wkjgpb4b81ha352zz4fn3pvcwnj8x8c-libgc-7.2d/include -g -O2 -ldl conftest.c -L/nix/store/8wkjgpb4b81ha352zz4fn3pvcwnj8x8c-libgc-7.2d/lib -lgc -lcrypt -lm >&5
/nix/store/nf41xld171gr7zyzamb6lk7c2fx3cgn0-gcc-cross-armv5-linux-gnueabi-4.7.3/libexec/gcc/armv5-linux-gnueabi/ld: warning: libpthread.so.0, needed by /nix/store/8wkjgpb4b81ha352zz4fn3pvcwnj8x8c-libgc-7.2d/lib/libgc.so, not found (try using -rpath or -rpath-link)
/nix/store/8wkjgpb4b81ha352zz4fn3pvcwnj8x8c-libgc-7.2d/lib/libgc.so: undefined reference to `pthread_detach@GLIBC_2.4'
/nix/store/8wkjgpb4b81ha352zz4fn3pvcwnj8x8c-libgc-7.2d/lib/libgc.so: undefined reference to `pthread_attr_getstack@GLIBC_2.4'
/nix/store/8wkjgpb4b81ha352zz4fn3pvcwnj8x8c-libgc-7.2d/lib/libgc.so: undefined reference to `pthread_create@GLIBC_2.4'
/nix/store/8wkjgpb4b81ha352zz4fn3pvcwnj8x8c-libgc-7.2d/lib/libgc.so: undefined reference to `sem_getvalue@GLIBC_2.4'
/nix/store/8wkjgpb4b81ha352zz4fn3pvcwnj8x8c-libgc-7.2d/lib/libgc.so: undefined reference to `pthread_cancel@GLIBC_2.4'
... (lots of further warnings concerning threads).
collect2: error: ld returned 1 exit status
configure:48599: $? = 1
Andreas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Guile under Guix on Arm
2013-10-29 21:08 ` Andreas Enge
@ 2013-10-30 15:27 ` Ludovic Courtès
0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2013-10-30 15:27 UTC (permalink / raw)
To: Andreas Enge; +Cc: guix-devel
Andreas Enge <andreas@enge.fr> skribis:
> On Tue, Oct 29, 2013 at 09:51:51PM +0100, Ludovic Courtès wrote:
>> Could you check in config.log why ‘GC_set_finalizer_notifier’ was
>> considered unavailable?
>
> Here is an excerpt of config.log:
>
> configure:48599: checking for GC_set_finalizer_notifier
> configure:48599: armv5-linux-gnueabi-gcc -o conftest -I/nix/store/8wkjgpb4b81ha352zz4fn3pvcwnj8x8c-libgc-7.2d/include -g -O2 -l
I wanted to try and investigate, but then I realized the breadth and
depth of the triplet mess:
• We want what config.guess calls armv5tel-linux-gnueabi (as found on
the GuruPlug and many other devices);
• Binutils calls it “armv5t”;
• GCC calls it “armv5”, and presumably needs both --with-arch=armv5t
and some --with-abi configure flag;
• libc (in ports/sysdeps/arm/preconfigure) doesn’t seem to care about
the architecture name, but it does recognize the “linux-gnueabi”
part.
So I guess that will need some thought.
In particular, I guess ‘gcc-configure-flags-for-triplet’ should return
the ‘--target’ flag in addition to the others (so it can remove the
“tel” suffix here), and we probably need
‘binutils-configure-flags-for-triplet’ as well.
Thoughts?
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-30 15:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-29 20:42 Guile under Guix on Arm Andreas Enge
2013-10-29 20:51 ` Ludovic Courtès
2013-10-29 21:08 ` Andreas Enge
2013-10-30 15:27 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).