Skip to content

Cannot build jinx-mod on Fedora #193

Description

@nivaca

I cannot build jinx-mod on Fedora 40. I have installed (as I have done before) enchant2 and enchant2-devel.

❯ sudo dnf install -y enchant2 enchant2-devel
[sudo] password for nivaca: 
Updating and loading repositories:
Repositories loaded.
Package "enchant2-2.6.9-1.fc40.x86_64" is already installed.
Package "enchant2-2.6.9-1.fc40.i686" is already installed.
Package "enchant2-devel-2.6.9-1.fc40.i686" is already installed.

When I try to build it manually, I get:

~/.emacs.d/straight/repos/jinx 
❯ cc -I. -O2 -Wall -Wextra -fPIC -shared -o jinx-mod.so jinx-mod.c -I/usr/include/enchant-2 -lenchant-2
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/14/../../../libenchant-2.so when searching for -lenchant-2
/usr/bin/ld: skipping incompatible /lib/libenchant-2.so when searching for -lenchant-2
/usr/bin/ld: skipping incompatible /usr/lib/libenchant-2.so when searching for -lenchant-2
/usr/bin/ld: cannot find -lenchant-2: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/14/../../../libenchant-2.so when searching for -lenchant-2
/usr/bin/ld: skipping incompatible /lib/libenchant-2.so when searching for -lenchant-2
/usr/bin/ld: skipping incompatible /usr/lib/libenchant-2.so when searching for -lenchant-2
collect2: error: ld returned 1 exit status

My system details are:

  • Operating System: Fedora Linux 40
  • KDE Plasma Version: 6.1.1
  • KDE Frameworks Version: 6.3.0
  • Qt Version: 6.7.2
  • Kernel Version: 6.9.7-200.fc40.x86_64 (64-bit)
  • Graphics Platform: Wayland

Any ideas on how to solve this? Thanks in advance.

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