[MacPorts] #50169: MoarVM to nqp does not build | 32-bit problem? | Snow Leopard 10.6.8
#50169: MoarVM to nqp does not build | 32-bit problem? | Snow Leopard 10.6.8 ---------------------------------+-------------------------------- Reporter: drennan@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: MoarVM, nqp, rakudo | Port: MoarVM ---------------------------------+-------------------------------- I'm ecstatic to see rakudo here. A looooong time ago I managed to get it to compile on my Snow Leopard 10.6.8 Hackintosh. I recall this involved explicitly stating "darwin" as a system and "gcc" as compiler and without jit. But then after that it wouldn't work, so I decided to wait until all the beginning lumps were beaten out of it and it showed up as a port. I'm attaching the debug statements for MoarVM which *seems* to build, but not without a lot of complaining. Beyond that, nqp fails to build, and I'm attaching its build log as well. I have a feeling there's a problem with 32-bitness, and perhaps this flag: -D_DARWIN_USE_64_BIT_INODE=1 but I am not sure. The warnings from clang are: {{{ clang: warning: argument unused during compilation: '-fno-optimize- sibling-calls' clang: warning: argument unused during compilation: '-O3' warning: unknown warning option '-Wno-logical-op-parentheses' [-Wunknown- warning-option] }}} and {{{ src/jit/emit_x64.dasc:1443:328: warning: shift count >= width of type dasm_put(Dst, 2235, Dt1E([cont]), DtC(->st), DtF(->container_spec), (unsigned int)((uintptr_t)("Cannot assign to an immutable value")), (unsigned int)(((uintptr_t)("Cannot assign to an immutable value"))>>32), (unsigned int)((uintptr_t)&MVM_exception_throw_adhoc), (unsigned int)(((uintptr_t)&MVM_exception_throw_adhoc)>>32), Dt1E([obj])); }}} My research online seems to show that MoarVM is possible on 10.6.8, and recently (August). If this has changed, I guess I probably need to know that. Otherwise, I'm wondering if it is possible to add variants to the port for, say, a gcc compile or no jit? If I am completely off the mark, apologies in advance. Thanks for any assistance. -- Ticket URL: <https://trac.macports.org/ticket/50169> MacPorts <https://www.macports.org/> Ports system for OS X
#50169: MoarVM to nqp does not build | 32-bit problem? | Snow Leopard 10.6.8 ------------------------+-------------------- Reporter: drennan@… | Owner: will@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: MoarVM | ------------------------+-------------------- Changes (by mf2k@…): * cc: mojca@… (added) * keywords: MoarVM, nqp, rakudo => * owner: macports-tickets@… => will@… Comment: In the future, please Cc the port maintainers ({{{port info --maintainers MoarVM}}}), if any. -- Ticket URL: <https://trac.macports.org/ticket/50169#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#50169: MoarVM to nqp does not build | 32-bit problem? | Snow Leopard 10.6.8 ------------------------+-------------------- Reporter: drennan@… | Owner: will@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: MoarVM | ------------------------+-------------------- Changes (by mojca@…): * cc: larryv@… (added) * version: 2.3.4 => Comment: Please try the attachment that disables building JIT on 32-bit platforms (I'm not sure if it's 100% OK). I also don't know whether INODE should be taken care of separately. I filed a bug report here: * https://github.com/MoarVM/MoarVM/issues/324 -- Ticket URL: <https://trac.macports.org/ticket/50169#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#50169: MoarVM to nqp does not build | 32-bit problem? | Snow Leopard 10.6.8 ------------------------+-------------------- Reporter: drennan@… | Owner: will@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: MoarVM | ------------------------+-------------------- Changes (by mojca@…): * cc: raimue@… (added) Comment: I'm also CC-ing Rainer just in case. He maintains `libuv` and might have some insight about `-D_DARWIN_USE_64_BIT_INODE=1` that's inside libuv's `Makefile.am`. -- Ticket URL: <https://trac.macports.org/ticket/50169#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#50169: MoarVM to nqp does not build | 32-bit problem? | Snow Leopard 10.6.8 ------------------------+-------------------- Reporter: drennan@… | Owner: will@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: MoarVM | ------------------------+-------------------- Comment (by drennan@…): Disabling JIT worked. {{{ danielibnzayd|GHIDORAH|perl6 I ran into a problem while trying to set up REPL completions: Continuing without tab completions
say "Houston, we have liftoff!"; Houston, we have liftoff! }}}
Thank you! If you email me street addresses, I'll send trays of Lebanese sweets.... :-) -- Ticket URL: <https://trac.macports.org/ticket/50169#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#50169: MoarVM to nqp does not build | 32-bit problem? | Snow Leopard 10.6.8 ------------------------+-------------------- Reporter: drennan@… | Owner: will@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: MoarVM | ------------------------+-------------------- Changes (by mojca@…): * status: new => closed * resolution: => fixed Comment: r144008 -- Ticket URL: <https://trac.macports.org/ticket/50169#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#50169: MoarVM to nqp does not build | 32-bit problem? | Snow Leopard 10.6.8 ------------------------+-------------------- Reporter: drennan@… | Owner: will@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: MoarVM | ------------------------+-------------------- Comment (by raimue@…): Replying to [comment:3 mojca@…]:
I'm also CC-ing Rainer just in case. He maintains `libuv` and might have some insight about `-D_DARWIN_USE_64_BIT_INODE=1` that's inside libuv's `Makefile.am`.
Glad this was already resolved. For the record, `_DARWIN_USE_64_BIT_INODE` was introduced as a compatibility switch with OS X 10.5. It will change the definition of `struct stat` to use larger datatypes and the corresponding functions expect this definition. Defining this macro would only affect OS X 10.5, as all later versions use the 64-bit version by default. See the `stat(2)` man page for details. -- Ticket URL: <https://trac.macports.org/ticket/50169#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#50169: MoarVM to nqp does not build | 32-bit problem? | Snow Leopard 10.6.8 ------------------------+-------------------- Reporter: drennan@… | Owner: will@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: MoarVM | ------------------------+-------------------- Comment (by mojca@…): Will, Drennan and others: can you please try the attached patch (`moarvm- nojit-in-i386.diff`) with 32-bit and tell me if it works as expected? It's based on * https://github.com/MoarVM/MoarVM/issues/324 * https://github.com/MoarVM/MoarVM/commit/6ae4e7fdb82b147df79109f5567d77300c5a... -- Ticket URL: <https://trac.macports.org/ticket/50169#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#50169: MoarVM to nqp does not build | 32-bit problem? | Snow Leopard 10.6.8 ------------------------+---------------------- Reporter: drennan@… | Owner: will@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: MoarVM | ------------------------+---------------------- Changes (by mojca@…): * status: closed => reopened * resolution: fixed => Comment: I'm reopeting this ticket because we would like to get this properly fixed upstream (I don't want to open a new uninformative ticket for that) and I would be grateful for some proper testing. -- Ticket URL: <https://trac.macports.org/ticket/50169#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#50169: MoarVM to nqp does not build | 32-bit problem? | Snow Leopard 10.6.8 ------------------------+---------------------- Reporter: drennan@… | Owner: will@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: MoarVM | ------------------------+---------------------- Comment (by drennan@…): No problem, happy to test..... Applied the patch, but I think jit compiled, based on the output here as well as the same error message as before.... Did not continue up the chain to nqp and rakudo. Thanks, Daniel -- Ticket URL: <https://trac.macports.org/ticket/50169#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#50169: MoarVM to nqp does not build | 32-bit problem? | Snow Leopard 10.6.8 ------------------------+---------------------- Reporter: drennan@… | Owner: will@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: MoarVM | ------------------------+---------------------- Comment (by mojca@…): Which error message did you get? (Not the warnings, but the actual error.) Can you please nevertheless try `nqp` and `rakudo`? The idea of upstream was to compile JIT, but disable it at runtime. Someone should test extensively whether that hack works at all. -- Ticket URL: <https://trac.macports.org/ticket/50169#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
#50169: MoarVM to nqp does not build | 32-bit problem? | Snow Leopard 10.6.8 ------------------------+---------------------- Reporter: drennan@… | Owner: will@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: MoarVM | ------------------------+---------------------- Comment (by drennan@…): Of course. Like before, there is no error during the installation of MoarVM; it just complains a lot. I forced an upgrade of nqp just to be sure, and now re-installed rakudo and panda. Everything works swimmingly. Thanks! Daniel -- Ticket URL: <https://trac.macports.org/ticket/50169#comment:11> MacPorts <https://www.macports.org/> Ports system for OS X
#50169: MoarVM to nqp does not build | 32-bit problem? | Snow Leopard 10.6.8 ------------------------+-------------------- Reporter: drennan@… | Owner: will@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: MoarVM | ------------------------+-------------------- Changes (by mojca@…): * status: reopened => closed * resolution: => fixed Comment: r144928 -- Ticket URL: <https://trac.macports.org/ticket/50169#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts