bat icon indicating copy to clipboard operation
bat copied to clipboard

bat failing to build on Fedora, due to onig_sys build failure.

Open akulbe opened this issue 1 year ago • 4 comments

What steps will reproduce the bug?

  1. cargo install bat

What happens?

see https://gist.github.com/akulbe/eebd60129501fc00778eb44af8404b52

What did you expect to happen instead?

for bat to build successfully

How did you install bat?

cargo install bat


bat version and environment

bat 0.25.0 isn't building

akulbe avatar Mar 21 '25 16:03 akulbe

It might be worth trying with cargo install bat --locked to ensure it installs with the pinned/known to work dependency versions

keith-hall avatar Mar 21 '25 17:03 keith-hall

I just tried that, and the results were the same. Would creating another gist (with the --locked option) be helpful?

On Fri, Mar 21, 2025 at 10:08 AM Keith Hall @.***> wrote:

It might be worth trying with cargo install bat --locked to ensure it installs with the pinned/known to work dependency versions

— Reply to this email directly, view it on GitHub https://github.com/sharkdp/bat/issues/3234#issuecomment-2743964862, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA6DD3ZWATRHFVFCKRSTJ32VRBQPAVCNFSM6AAAAABZQNPCXKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBTHE3DIOBWGI . You are receiving this because you authored the thread.Message ID: @.***> [image: keith-hall]keith-hall left a comment (sharkdp/bat#3234) https://github.com/sharkdp/bat/issues/3234#issuecomment-2743964862

It might be worth trying with cargo install bat --locked to ensure it installs with the pinned/known to work dependency versions

— Reply to this email directly, view it on GitHub https://github.com/sharkdp/bat/issues/3234#issuecomment-2743964862, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA6DD3ZWATRHFVFCKRSTJ32VRBQPAVCNFSM6AAAAABZQNPCXKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBTHE3DIOBWGI . You are receiving this because you authored the thread.Message ID: @.***>

akulbe avatar Mar 21 '25 18:03 akulbe

Probably not necessary, thanks. It looks like the same issue as https://github.com/rust-onig/rust-onig/issues/191 to me

keith-hall avatar Mar 21 '25 20:03 keith-hall

Probably not necessary, thanks. It looks like the same issue as rust-onig/rust-onig#191 to me

It looks like that issue has been fixed but a new release needs to be created for it and that is being asked for in https://github.com/rust-onig/rust-onig/issues/193

perobertson avatar Apr 23 '25 03:04 perobertson

Le problème vient de la dépendance onig_sys utilisée par bat Plus précisément, cela casse avec Fedora 42 + GCC 15 La nouvelle version onig_sys Suivis sur le ticket rust-onig/rust-onig#193 Options : sudo dnf install compat-gcc-12 export CC=gcc-12 cargo install bat Options 2: CC=clang cargo install bat

Aymen69-LYN avatar Jun 17 '25 03:06 Aymen69-LYN