Skip to content
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

YAML::Parser::LibYAML #5

Closed
AlexDaniel opened this issue Aug 3, 2018 · 3 comments
Closed

YAML::Parser::LibYAML #5

AlexDaniel opened this issue Aug 3, 2018 · 3 comments
Labels
issue sent Posted a previously unreported issue with the original author to investigate PR sent Sent a pull review to the issue

Comments

@AlexDaniel
Copy link
Member

AlexDaniel commented Aug 3, 2018

Module YAML::Parser::LibYAML is failing its tests and/or does not install.

  • Please close this issue only if the module passes its tests and is installable. One way to test it is to run zef install MODULENAME.
  • If you can install the module without any problems, label this ticket with works for me and close the issue.
  • If it needs a native library, put native dependency label, describe what you did to install it and ensure that same instructions are present in the README file of the module (otherwise submit a pull request). If everything is green you can close the issue.
  • If the module is broken, try to fix it and send a PR. Add PR sent label and close the issue.
  • If there is a problem in one of the dependencies, add failing dependency label and write a comment explaining the situation. Leave this ticket open and feel free to work on the corresponding ticket for the failing dependency.
  • It is a good idea to assign yourself to this ticket if you're working on it (to make sure two or more people are not working on the same ticket at the same time).

If you can't self-assign, attach a label, or close the ticket, please let us know on #perl6 channel on freenode or just leave a comment here. We will try to give you privileges as fast as possible.

@JJ JJ added the native dependency Fails because it needs some library installed first label Aug 4, 2018
@JJ
Copy link
Collaborator

JJ commented Aug 4, 2018

Fails test

Cannot locate native library '/home/jmerelo/progs/forks/perl6/perl6-libyaml/resources/lib/libyamlwrap.so': /home/jmerelo/progs/forks/perl6/perl6-libyaml/resources/lib/libyamlwrap.so: cannot open shared object file: No such file or directory
  in method setup at /home/jmerelo/.rakudobrew/moar-2018.03/install/share/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) line 290
  in method CALL-ME at /home/jmerelo/.rakudobrew/moar-2018.03/install/share/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) line 577
  in sub yaml-parse at /home/jmerelo/progs/forks/perl6/perl6-libyaml/lib/YAML/Parser/LibYAML.pm6 (YAML::Parser::LibYAML) line 153
  in block <unit> at t/00-gauntlet.t line 18

@JJ JJ added PR sent Sent a pull review to the issue and removed native dependency Fails because it needs some library installed first labels Aug 4, 2018
@JJ
Copy link
Collaborator

JJ commented Aug 4, 2018

It's failing because it needs an additional zef install . step, which is not normally needed. Added to the instructions, but the module is basically OK. PR: /tony-o/perl6-libyaml#3

@JJ JJ closed this as completed Aug 4, 2018
@AlexDaniel AlexDaniel added the works for me Does not seem to be any problem label Aug 4, 2018
@Xliff
Copy link

Xliff commented Aug 5, 2018

Module is failing its install for me. I am on the latest Kubuntu. Error message is as follows:

$ src/build.sh
gcc: error: libyaml_wrap.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
gcc: error: libyaml_wrap.o: No such file or directory
gcc: error: unrecognized command line option ‘-W1,-soname,libyaml_wrap.so.1’
If you're running locally you may need to add this dir to LD_LIBRARY_PATH
  to do that, run: export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/cbwood/Projects/unbitrot/perl6-libyaml"

The problem here is that the file to be compiled is called "yamlwrap.c", not "libyaml_wrap.c" as referenced in src/build.sh:

gcc -c -fPIC libyaml_wrap.c -o libyaml_wrap.o

Also, this line fails on Debian systems:

gcc -shared -W1,-soname,libyaml_wrap.so.1 -lyaml -o libyaml_wrap.so.1.0.0 libyaml_wrap.o

@Xliff Xliff reopened this Aug 5, 2018
@Xliff Xliff added issue sent Posted a previously unreported issue with the original author to investigate and removed works for me Does not seem to be any problem labels Aug 5, 2018
@Xliff Xliff closed this as completed Aug 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue sent Posted a previously unreported issue with the original author to investigate PR sent Sent a pull review to the issue
Projects
None yet
Development

No branches or pull requests

3 participants