Re: rakudo bug 128427 perl 5 does not build on Darwin platforms with clock_gettime

2016-11-15 Thread Andy Bach
>> so I copied
git_reference/MoarVM/src/platform/posix/time.c

>> to
moar-nom/nqp/MoarVM/src/platform/posix/time.c

>> and now it builds.

On Tue, Nov 15, 2016 at 12:15 PM, Tobias Leich  wrote:

> Hi, if you let raukdo automatically rebuild nqp/moar, then you still were
> on an old revision of moarvm.
> This revision did not contain the latest patch.
>
Yeah, that's why I tried nuking it.  I'd noticed just re-running rakudobrew
build moar did check the repository but didn't rebuild.

> Please rebuild now, as I've updated the git revisions, so latest nqp and
> moarvm get build.
>
Thanks! I'll try at home tonight. I didn't see a "rakudobrew clean" option
- I first tried deleting (after the copy) the
moar-nom/nqp/MoarVM/src/platform/posix/time.o
hoping make would see it missing and rebuild. I then deleted the
install/bin/moar (noticing it was saying "found a install/bin/moar version
xx, using that) and re-re-ran rakudobuild and that one worked.


-- 

a

Andy Bach,
afb...@gmail.com
608 658-1890 cell
608 261-5738 wk


Re: rakudo bug 128427 perl 5 does not build on Darwin platforms with clock_gettime

2016-11-15 Thread Tobias Leich
Hi, if you let raukdo automatically rebuild nqp/moar, then you still 
were on an old revision of moarvm.

This revision did not contain the latest patch.

Please rebuild now, as I've updated the git revisions, so latest nqp and 
moarvm get build.


Am 15.11.2016 um 18:14 schrieb Brandon Allbery:


On Tue, Nov 15, 2016 at 8:53 AM, Andy Bach > wrote:


Well, I just nuked and built moar-nom here OSX 10.11.6/Xcode 8


This is not a MoarVM problem; it's a bug in the Xcode 8 (and 8.1) 
Command Line Tools and documented (poorly) in the Xcode 8 release 
notes. You must download the Xcode 7 Command Line Tools for 10.11 
(https://developer.apple.com/download/ need Apple ID, do *not* need a 
developer account!) and install them over the Xcode 8 Command Line Tools.


(Short version: the Xcode 8 Command Line Tools, including libraries, 
are for 10.12 only. 10.11 does not have clock_gettime, because it was 
added in 10.12. So all compile time testing finds it via CLT libs, but 
runtime won't find it because that lib comes from the OS install 
instead of Xcode.)


--
brandon s allbery kf8nh sine nomine associates
allber...@gmail.com  
ballb...@sinenomine.net 

unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net




Re: rakudo bug 128427 perl 5 does not build on Darwin platforms with clock_gettime

2016-11-15 Thread Brandon Allbery
On Tue, Nov 15, 2016 at 8:53 AM, Andy Bach  wrote:
>
> Well, I just nuked and built moar-nom here OSX 10.11.6/Xcode 8
>

This is not a MoarVM problem; it's a bug in the Xcode 8 (and 8.1) Command
Line Tools and documented (poorly) in the Xcode 8 release notes. You must
download the Xcode 7 Command Line Tools for 10.11 (
https://developer.apple.com/download/ need Apple ID, do *not* need a
developer account!) and install them over the Xcode 8 Command Line Tools.

(Short version: the Xcode 8 Command Line Tools, including libraries, are
for 10.12 only. 10.11 does not have clock_gettime, because it was added in
10.12. So all compile time testing finds it via CLT libs, but runtime won't
find it because that lib comes from the OS install instead of Xcode.)

-- 
brandon s allbery kf8nh   sine nomine associates
allber...@gmail.com  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net


Re: rakudo bug 128427 perl 5 does not build on Darwin platforms with clock_gettime

2016-11-15 Thread Andy Bach
oar-nom/nqp/MoarVM/src/platform/posix/time.c

On Tue, Nov 15, 2016 at 6:23 AM,  wrote:

> Hi, we addressed it here


Well, I just nuked and built moar-nom here OSX 10.11.6/Xcode 8
15.6.0 Darwin Kernel Version 15.6.0: Wed Nov  2 20:30:56 PDT 2016;
root:xnu-3248.60.11.1.2~2/RELEASE_X86_64 x86_64

and:
moar-nom/nqp/MoarVM/src/platform/posix/time.c

is still the same and the build fails [1]. so I copied
git_reference/MoarVM/src/platform/posix/time.c

to
moar-nom/nqp/MoarVM/src/platform/posix/time.c

and now it builds.  I see about 12-15 warnings but ...

[1]
Configuring native build environment ... OK
probing whether your compiler thinks that it is gcc  YES
probing how your compiler does static inline ... static __inline__
your CPU can read unaligned values for all of int32 int64 num64
probing the size of pointers ... 8
probing C type support for: _Bool, bool  YES: _Bool,bool
probing computed goto support .. YES
probing pthread_yield support .. NO

make: make
 compile: clang -fno-omit-frame-pointer -fno-optimize-sibling-calls -O3
-DNDEBUG -Wno-logical-op-parentheses -D_DARWIN_USE_64_BIT_INODE=1
includes:  -I3rdparty/libuv/include -I3rdparty/libuv/src
-I3rdparty/libatomic_ops/src -I3rdparty/libtommath -I3rdparty/dynasm
-I3rdparty/dyncall/dynload -I3rdparty/dyncall/dyncall
-I3rdparty/dyncall/dyncallback
link: clang  -O3 -DNDEBUG -Wl,-rpath,"/@libdir@"
-Wl,-rpath,"@prefix@/share/perl6/site/lib"
libs: -lpthread

  byte order: little endian

...

/usr/local/bin/perl -MExtUtils::Command -e cp
3rdparty/dyncall/dyncallback/*.h
/Users/afbach/.rakudobrew/moar-nom/install/include/dyncall
dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
  Referenced from:
/Users/afbach/.rakudobrew/moar-nom/install/lib/libmoar.dylib (which was
built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _clock_gettime
  Referenced from:
/Users/afbach/.rakudobrew/moar-nom/install/lib/libmoar.dylib (which was
built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

Cleaning up ...
/usr/local/bin/perl -MExtUtils::Command -e mkpath gen/moar/stage1/gen
/usr/local/bin/perl tools/build/gen-cat.pl moar src/how/Archetypes.nqp
src/how/RoleToRoleApplier.nqp src/how/NQPConcreteRoleHOW.nqp
src/how/RoleToClassApplier.nqp src/how/NQPCurriedRoleHOW.nqp
src/how/NQPParametricRoleHOW.nqp src/how/NQPClassHOW.nqp
src/how/NQPNativeHOW.nqp src/how/NQPAttribute.nqp src/how/NQPModuleHOW.nqp
src/how/EXPORTHOW.nqp  > gen/moar/stage1/nqpmo.nqp
/Users/afbach/.rakudobrew/moar-nom/install/bin/moar
--libpath=src/vm/moar/stage0 src/vm/moar/stage0/nqp.moarvm --bootstrap
--setting=NULL --no-regex-lib --target=mbc \
--output=gen/moar/stage1/nqpmo.moarvm gen/moar/stage1/nqpmo.nqp
dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
  Referenced from:
/Users/afbach/.rakudobrew/moar-nom/install/lib/libmoar.dylib (which was
built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _clock_gettime
  Referenced from:
/Users/afbach/.rakudobrew/moar-nom/install/lib/libmoar.dylib (which was
built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib

make: *** [gen/moar/stage1/nqpmo.moarvm] Trace/BPT trap: 5
Command failed (status 512): make
Command failed (status 512): /usr/local/bin/perl Configure.pl
--prefix=/Users/afbach/.rakudobrew/moar-nom/install --backends=moar
--make-install --git-protocol=https
--git-reference=/Users/afbach/.rakudobrew/bin/../git_reference --gen-moar
Failed running /usr/local/bin/perl Configure.pl --backends=moar --gen-moar
--git-reference="/Users/afbach/.rakudobrew/bin/../git_reference"
--make-install  at /Users/afbach/.rakudobrew/bin/rakudobrew line 58.
main::run("/usr/local/bin/perl Configure.pl --backends=moar --gen-moar
-"...) called at /Users/afbach/.rakudobrew/bin/rakudobrew line 386
main::build_impl("moar", undef, "") called at
/Users/afbach/.rakudobrew/bin/rakudobrew line 116



-- 

a

Andy Bach,
afb...@gmail.com
608 658-1890 cell
608 261-5738 wk


Re: rakudo bug 128427 perl 5 does not build on Darwin platforms with clock_gettime

2016-11-15 Thread email
Hi, we adressed it here:  
https://github.com/MoarVM/MoarVM/commit/20c8591ad7644926e09691da8c2a9179b11ac53e


Zitat von Andy Bach :


Hi,

Turns out this bug was filed for p5 (I thought I was looking at the p6 bug
list) but I saw this exactly today, trying to build, via rakudobrew, on my
mac book. Just checking if this is a known thing or not.

--

a

Andy Bach,
afb...@gmail.com
608 658-1890 cell
608 261-5738 wk






rakudo bug 128427 perl 5 does not build on Darwin platforms with clock_gettime

2016-11-14 Thread Andy Bach
Hi,

Turns out this bug was filed for p5 (I thought I was looking at the p6 bug
list) but I saw this exactly today, trying to build, via rakudobrew, on my
mac book. Just checking if this is a known thing or not.

-- 

a

Andy Bach,
afb...@gmail.com
608 658-1890 cell
608 261-5738 wk