01:27 flaviusb joined 01:51 FROGGS joined 09:53 domidumont joined
dalek arVM: f5d97c3 | FROGGS++ | Configure.pl:
dont build dyncall if --has-libffi is supplied, fixes #436
10:22
10:49 kjs_ joined 11:59 kjs_ joined
FROGGS ./libmoar.so: undefined reference to `AO_fetch_compare_and_swap_full' 12:29
collect2: error: ld returned 1 exit status
on s390x...
jnthn FROGGS: My memory is hazy, but I think libatomicops is typically just macros on most platforms (and so maybe not linked in), but maybe it's defined as a function on s390x? Dunno though. 12:32
github.com/ivmai/libatomic_ops/blo...s390.h#L44 12:33
Seems that actually it may be really missing 12:34
FROGGS jnthn: I'm using the lobatomic-ops debian package btw 12:36
I think that's part of the problem: github.com/ivmai/libatomic_ops/blo...#L366-L377 13:21
AO_HAVE_compare_and_swap_full *is* defined, just not one above, which we are using
err, the one below is the one we are using 13:22
FROGGS recompiles after applying a patch 13:24
ohh 13:42
src/moar.h:207:5: warning: implicit declaration of function 'AO_fetch_compare_and_swap_emulation' [-Wimplicit-function-declaration]
AO_fetch_compare_and_swap_emulation(addr, old, newval)
^
src/moar.h:207:5: note: in definition of macro 'AO_fetch_compare_and_swap_full'
AO_fetch_compare_and_swap_emulation(addr, old, newval)
that means it doesnt load the library right...
LDLIBS = -lffi -ltommath -latomic_ops -luv -lm -lpthread -lrt -ldl 13:47
# ls -l /usr/lib/s390x-linux-gnu/libatomic_ops.a 13:48
-rw-r--r-- 1 root root 4368 Oct 25 13:26 /usr/lib/s390x-linux-gnu/libatomic_ops.a
I was under the impression that -latomic_ops would pick up this static lib?
13:55 domidumont joined 15:08 zakharyas joined
diakopter FROGGS: well is there a guard against loading the header twice? 15:31
FROGGS diakopter: no... 16:05
diakopter: and after nqp and rakudo is build I try to protect it from loading twice... 16:06
17:17 FROGGS_ joined 17:50 domidumont joined 17:55 domidumont joined 18:17 leego joined 18:29 kjs_ joined
FROGGS_ ewww, a lot of nativecall tests are failing on s390x :o( 18:51
lizmat endian issues ? 18:52
FROGGS_ don't know yet 18:55
but we have other big endian machines where make test passes
20:10 kjs_ joined 20:12 zakharyas joined 20:22 MasterDuke joined
MasterDuke in my playing around with backtraces, i added some printfs to MVM_exception_backtrace, github.com/MoarVM/MoarVM/blob/mast...ns.c#L362. i'm printing out filename_str and line_number (and also the "value" variable with each) 20:38
however, filename_str and its "value" variable are always empty, while line_number has a value (that i can see in the Perl 6 backtrack output) but its associated "value" variable is also always empty 20:39
20:42 zakharyas1 joined
dalek arVM: 48c2482 | FROGGS++ | src/core/nativecall_libffi.c:
handle libffi return type more corrent

Again, see github.com/libffi/libffi/issues/286
20:47
FROGGS_ correct* 20:49
damn it
japhb FROGGS_: 'correctly', I think 20:52
MasterDuke i also added some printfs to MVM_exception_backtrace_line, but they weren't showing up at all, but those i do see if i add --ll-exception 20:53
and those are populated with the values i see in the Perl 6 backtrace
FROGGS_ MasterDuke: I think I've observed the same in the past... but I cannot help you right now 20:54
MasterDuke: so you're thinking that you printf wrong in MVM_exception_backtrace? 20:56
MasterDuke no worries
printf("MVM_exception_backtrace: filename_str = %s, value = %s\n", filename_str, value);
hmm, filename_str is a MVMString, but value is an MVMObject, might need to do something with it 20:57
FROGGS_ MVMString *filename_str; 20:58
you cannot print that
MVM_string_utf8_encode_C_string(tc, filename_str)
MasterDuke ah, thanks 20:59
FROGGS_ ohh, and value just seems to be a temporary var that holds the same 21:00
MasterDuke FROGGS_++, now there's stuff printed
FROGGS_ \o/ 21:01
21:15 kjs_ joined 21:43 leego joined
FROGGS_ phew, s390x is fine now... 21:57
21:59 leego joined
FROGGS_ ohh, wait, have to push that libatomic_ops patch... well, will do that tomorrow 22:00
22:18 leego joined 22:20 leego joined 22:40 leego joined