-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem using Smart::Comments:from<Perl5> in a Raku program #182
Comments
Can you please provide links to gists of the output of |
Hi niner!
They are both at https://gist.github.com/deoac/734c0f51b8bf2d6555cd64ee0de818fe .
Thanks,
Shimon
… On Apr 8, 2023, at 9:14 PM, raiph ***@***.***> wrote:
@deoac <https://github.com/deoac>
Can you please provide links to gists of the output of raku -V and perl -V. Thanks!
—
Reply to this email directly, view it on GitHub <#182 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACEI7VNDXJ2W6YLME7Z5JQLXAIEP7ANCNFSM6AAAAAAWXXMK5Q>.
You are receiving this because you were mentioned.
|
Hi @deoac BTW, I'm not niner, and I'm no expert in these matters, and don't have a Mac, but I'll try to keep moving things along. I did a search for
Wikipedia suggests Macs support it but call it "position independent executables" (PIE). Anyhow, whatever it's called, and however it's built that way, my initial presumption at this point is that your perl was not built as a PIC/PIE binary and that's the problem. An SO answer says most systems support a tool to run on the perl binary to find out whether it was built with or without a position independent option:
So please try that and report back. Thanks. |
Hi not-niner!
% otool -hv `which perl`
/usr/local/bin/perl:
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
MH_MAGIC_64 X86_64 ALL 0x00 EXECUTE 18 1384 NOUNDEFS DYLDLINK TWOLEVEL PIE
It looks like it was compiled with PIE .
I’ll reinstall perl and try again.
Thanks for all the research,
Shimon
… On Apr 9, 2023, at 4:27 PM, raiph ***@***.***> wrote:
t
|
Anyway using Smart::Comments will never work like that. It's a source filter. It actually parses your Perl code and changes your comments to real code. It will fail when faced with Raku code. |
To be 100% clear: Perl modules consisting of source-filters, will NEVER work with Inline::Perl5. Right, @niner? |
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: