crystal-ameba / ameba

A static code analysis tool for Crystal
https://crystal-ameba.github.io
MIT License
516 stars 35 forks source link

Amber fails to compile on Crystal 1.13.2 #469

Open Yassinproweb opened 4 days ago

Yassinproweb commented 4 days ago
Postinstall of ameba: shards build -Dpreview_mt
Failed postinstall of ameba on shards build -Dpreview_mt:
I: Dependencies are satisfied
I: Building: ameba
E: Error target ameba failed to compile:
Showing last frame. Use --error-trace for full trace.

In src/ameba/rule/base.cr:144:10

 144 | {{ run("../../contrib/read_type_doc",
          ^--
Error: Error executing run (exit code: 1): ../../contrib/read_type_doc Documentation /data/data/com.termux/files/home/marten/lib/ameba/src/ameba/rule/documentation/documentation.cr

stderr:

    Unhandled exception: pthread_setspecific: Invalid argument (RuntimeError)
    Unable to load dwarf information: pthread_setspecific: Invalid argument (RuntimeError)
      from /data/data/com.termux/files/home/.cache/crystal/data-data-com.termux-files-home-marten-lib-ameba-src-contrib-read_type_doc.cr/macro_run in '??'
      from /data/data/com.termux/files/home/.cache/crystal/data-data-com.termux-files-home-marten-lib-ameba-src-contrib-read_type_doc.cr/macro_run in '??'
      from /data/data/com.termux/files/home/.cache/crystal/data-data-com.termux-files-home-marten-lib-ameba-src-contrib-read_type_doc.cr/macro_run in '??'
      from /data/data/com.termux/files/home/.cache/crystal/data-data-com.termux-files-home-marten-lib-ameba-src-contrib-read_type_doc.cr/macro_run in '??'
      from /data/data/com.termux/files/home/.cache/crystal/data-data-com.termux-files-home-marten-lib-ameba-src-contrib-read_type_doc.cr/macro_run in '??'
      from /data/data/com.termux/files/home/.cache/crystal/data-data-com.termux-files-home-marten-lib-ameba-src-contrib-read_type_doc.cr/macro_run in '??'
      from /data/data/com.termux/files/home/.cache/crystal/data-data-com.termux-files-home-marten-lib-ameba-src-contrib-read_type_doc.cr/macro_run in '??'
      from /data/data/com.termux/files/home/.cache/crystal/data-data-com.termux-files-home-marten-lib-ameba-src-contrib-read_type_doc.cr/macro_run in 'main'
      from /apex/com.android.runtime/lib64/bionic/libc.so in '__libc_init'
      from /data/data/com.termux/files/home/.cache/crystal/data-data-com.termux-files-home-marten-lib-ameba-src-contrib-read_type_doc.cr/macro_run in '??'
      from /data/data/com.termux/files/home/.cache/crystal/data-data-com.termux-files-home-marten-lib-ameba-src-contrib-read_type_doc.cr/macro_run in '??'
      from /data/data/com.termux/files/home/.cache/crystal/data-data-com.termux-files-home-marten-lib-ameba-src-contrib-read_type_doc.cr/macro_run in '??'
      from /data/data/com.termux/files/home/.cache/crystal/data-data-com.termux-files-home-marten-lib-ameba-src-contrib-read_type_doc.cr/macro_run in 'main'
      from /apex/com.android.runtime/lib64/bionic/libc.so in '__libc_init'
Sija commented 4 days ago

That's a Crystal error. Please, open the issue in the Crystal repo instead.