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

Encountered an unknown type "(long double)" #14

Open
Xliff opened this issue Jan 12, 2020 · 5 comments
Open

Encountered an unknown type "(long double)" #14

Xliff opened this issue Jan 12, 2020 · 5 comments

Comments

@Xliff
Copy link

Xliff commented Jan 12, 2020

This was encountered when attempting to run it on GraphicsMagick using gptrixie --enums --functions --structs --castxml=c99 api.h -I..

Encountered a non know FundamentalType (long double), either it missing in DG dic or you need to do something specific
  in block  at /home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/site/sources/403A5E73B433ECBC2EEF7658DFFA5BFAD92DBDC6 (GPT::DumbGenerator) line 103
Malformed UTF-8 near bytes 6c e9 6d
  in sub extract-func-definition at /home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/site/sources/403A5E73B433ECBC2EEF7658DFFA5BFAD92DBDC6 (GPT::DumbGenerator) line 143
  in sub dg-generate-functions at /home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/site/sources/403A5E73B433ECBC2EEF7658DFFA5BFAD92DBDC6 (GPT::DumbGenerator) line 155
  in sub MAIN at /home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/site/resources/E1C3516BEF69276E7298DB57A82D9E0553314ECD line 161
  in block <unit> at /home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/site/resources/E1C3516BEF69276E7298DB57A82D9E0553314ECD line 16
  in sub MAIN at /home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/site/bin/gptrixie line 3
  in block <unit> at /home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/site/bin/gptrixie line 1
@Skarsnik
Copy link
Owner

The true error is actually the malformed utf8 one. I doubt the file has weird utf8 character in it, or maybe it's opening a weird/invalid file.
I will try to have a look today

@Skarsnik
Copy link
Owner

skarsnik@debian:~/perl6/gptrixie$ /home/skarsnik/perl6/rakudo-2019.11/install/bin/perl6 -e 'my $fh = open "/usr/include/GraphicsMagick/magick/cdl.h"; say $fh.lines' Malformed UTF-8 near bytes 6c e9 6d in block <unit> at -e line 1
it's super weird, it comes from the line 6 with an a é.
skarsnik@debian:~/perl6/gptrixie$ chardetect3 /usr/include/GraphicsMagick/magick/cdl.h /usr/include/GraphicsMagick/magick/cdl.h: ISO-8859-1 with confidence 0.73
I am not sure what I can do about that?

@Xliff
Copy link
Author

Xliff commented Jan 12, 2020

Huh!

OK, so thanks for at least determining the problem. Maybe I can work around it?

@Skarsnik
Copy link
Owner

Maybe it's a Raku bug? I don't know how it's supposed to handle file encoding

@Skarsnik
Copy link
Owner

If you have your own copy of the headers, I guess you can remove this line ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants