Skip to content

Linking fujinet-pc on armhf linux #1116

@cstrotm

Description

@cstrotm

On my armhf Linux (no distro, linux from "scratch") I had to add "-latomic" to link against libatomic in file

build/CMakeFiles/fujinet.dir/link.txt

Without that link parameter I'm getting

/usr/pkg/bin/ld: CMakeFiles/fujinet.dir/lib/sam/samlib.cpp.o: undefined reference to symbol '__atomic_exchange_8@@LIBATOMIC_1.0'
/usr/pkg/bin/ld: /usr/pkg/gcc14//lib/./libatomic.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status                                                                                                                        
gmake[2]: *** [CMakeFiles/fujinet.dir/build.make:2231: fujinet] Error 1                                                                                           
gmake[1]: *** [CMakeFiles/Makefile2:315: CMakeFiles/fujinet.dir/all] Error 2     
gmake: *** [Makefile:136: all] Error 2                                           
Error running actual cmake build. Aborting                                                                                                                        

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