Skip to content

Compilation problem on arch linux. #13

@Makogan

Description

@Makogan

I recently switched from Ubuntu to arch and I am facing a compilation issue on triangle (as a C dependency of this crate).

For example this is one of the errors:

warning: tritet@1.0.0: c_code/triangle.c:1447:1: error: number of arguments doesn't match prototype
warning: tritet@1.0.0:  1447 | {
warning: tritet@1.0.0:       | ^
warning: tritet@1.0.0: In file included from c_code/triangle.c:358:
warning: tritet@1.0.0: c_code/triangle.h:288:6: error: prototype declaration
warning: tritet@1.0.0:   288 | void trifree();
warning: tritet@1.0.0:       |      ^~~~~~~

Steps to reproduce:

cargo new tritet_test
cd tritet_test
cargo add tritet

Copy paste the example code for the 2D delaunay triangulation onto main.rs

System information:

clang --version
clang version 20.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
gcc --version
gcc (GCC) 15.2.1 20250813
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
cargo --version
cargo 1.91.0-nightly (71eb84f21 2025-08-17)
cmake --version
cmake version 4.0.3-dirty

CMake suite maintained and supported by Kitware (kitware.com/cmake).

On latest arch linux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions