Menu

Error compiling

2024-12-19
2024-12-19
  • Igor Harzmann

    Igor Harzmann - 2024-12-19

    Sorry for my poor English.
    I have tried to compile this package in
    Linux localhost 6.12.3-gentoo-dist #1 SMP PREEMPT_DYNAMIC Fri Dec 6 13:30:20 -00 2024 x86_64 AMD Ryzen 5 5600G with Radeon Graphics AuthenticAMD GNU/Linux
    and got

    /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../lib64/libffi.a(prep_cif.o): warning: relocation against `ffi_type_sint32' in read-only section `.text'
    /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../lib64/libffi.a(prep_cif.o): relocation R_X86_64_PC32 against symbol `ffi_type_sint32' can not be used when making a shared object; recompile with -fPIC
    

    Some useful advice, maybe?

     
  • Igor Harzmann

    Igor Harzmann - 2024-12-19

    libffi 3.4.4, 3.4.6, 3.4.6-r2

     
  • Ashok P. Nadkarni

    What version of tcl-cffi were you using?

     
  • Ashok P. Nadkarni

    Also please post questions / issues related to tcl-cffi in its repository (https://github.com/apnadkarni/tcl-cffi) as this SF location is only used for distribution.

    Thanks

     
  • Ashok P. Nadkarni

    Also, see this - https://github.com/apnadkarni/tcl-cffi/issues/144

    If you are using tcl-cffi 2.0, please try the configure similar to this Ubuntu CI line -

    ../configure --with-tcl=${{ env.TCLDIR }}/lib --enable-64bit --disable-staticffi

    Let me know if you still have issues though I'm afraid I am not a Unix/gcc guru.

     
  • Anonymous

    Anonymous - 2024-12-20
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.