Skip to content

thread 'main' panicked at 'unsupported proc macro punctuation character '('' #1142

@krakotay

Description

@krakotay

Even with qsort example

mkdir ../build
cd ../build
cmake ../qsort -DCMAKE_EXPORT_COMPILE_COMMANDS=1
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: /home/krakotay/Documents/c2rust/examples/build
cmake --build .
[ 50%] Building C object CMakeFiles/Qsort.dir/qsort.c.o
[100%] Linking C static library libQsort.a
[100%] Built target Qsort
c2rust transpile compile_commands.json
Transpiling qsort.c
thread 'main' panicked at 'unsupported proc macro punctuation character '('', /home/krakotay/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.87/src/lib.rs:847:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

And with every other project

krakotay@1 ~/D/c/e/build (master) [101]> c2rust --version
C2Rust 0.19.0

I installed with this command
cargo install --git https://github.com/immunant/c2rust.git c2rust

krakotay@1 ~/D/c/e/build (master)> screenfetch
                                       krakotay@1
 MMMMMMMMMMMMMMMMMMMMMMMMMmds+.        OS: Linuxmint 22 wilma
 MMm----::-://////////////oymNMd+`     Kernel: x86_64 Linux 6.8.0-38-generic
 MMd      /++                -sNMd:    Uptime: 8m
 MMNso/`  dMM    `.::-. .-::.` .hMN:   Packages: 1927
 ddddMMh  dMM   :hNMNMNhNMNMNh: `NMm   Shell: fish 3.7.0
     NMm  dMM  .NMN/-+MMM+-/NMN` dMM   Disk: 21G / 118G (19%)
     NMm  dMM  -MMm  `MMM   dMM. dMM   CPU: Genuine Intel 0000 @ 8x 3,11GHz
     NMm  dMM  -MMm  `MMM   dMM. dMM   GPU: VMware SVGA II Adapter
     NMm  dMM  .mmd  `mmm   yMM. dMM   RAM: 1183MiB / 7894MiB
     NMm  dMM`  ..`   ...   ydm. dMM
     hMM- +MMd/-------...-:sdds  dMM
     -NMm- :hNMNNNmdddddddddy/`  dMM
      -dMNs-``-::::-------.``    dMM
       `/dMNmy+/:-------------:/yMMM
          ./ydNMMMMMMMMMMMMMMMMMMMMM
             \.MMMMMMMMMMMMMMMMMMM

krakotay@1 ~/D/c/e/build (master)>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions