latex-lsp / texlab

An implementation of the Language Server Protocol for LaTeX
GNU General Public License v3.0
1.55k stars 53 forks source link

Build on aarch64 fails #289

Closed Shadow53 closed 3 years ago

Shadow53 commented 4 years ago

My OnePlus 7 Pro is set up with an openSUSE chroot inside of Termux. Attempting to build texlab results in the following error (unrelated output trimmed away):

$ cargo install --git https://github.com/latex-lsp/texlab.git --tag v2.2.0

error[E0308]: mismatched types
   --> src/citeproc/bibutils.rs:108:17
    |
108 |                 program.as_ptr() as *mut i8,
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `i8`
    |
    = note: expected raw pointer `*mut u8`
               found raw pointer `*mut i8`

error[E0308]: mismatched types
   --> src/citeproc/bibutils.rs:161:13
    |
161 |             input_file.path.as_ptr() as *mut i8,
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `i8`
    |
    = note: expected raw pointer `*mut u8`
               found raw pointer `*mut i8`
tomboy-64 commented 4 years ago

I can confirm this issue with a native compile. rustc 1.45.2 (d3fb005a3 2020-07-31)

motorto commented 4 years ago

Can conform this as well , seems to fail on aarch64 and armv7l (both glibc and musl)

error[E0308]: mismatched types

   --> src/citeproc/bibutils.rs:108:17

    |

108 |                 program.as_ptr() as *mut i8,

    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `i8`

    |

    = note: expected raw pointer `*mut u8`

               found raw pointer `*mut i8`

error[E0308]: mismatched types

   --> src/citeproc/bibutils.rs:161:13

    |

161 |             input_file.path.as_ptr() as *mut i8,

    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `i8`

    |

    = note: expected raw pointer `*mut u8`

               found raw pointer `*mut i8`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.

error: could not compile `texlab`.

https://travis-ci.org/github/void-linux/void-packages/builds/734574435

pfoerster commented 3 years ago

This seems to be fixed a long time ago by https://github.com/latex-lsp/texlab/pull/298.