Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llvmPackages: use libcxxrt on FreeBSD #211230

Merged
merged 3 commits into from
Jan 24, 2023
Merged

llvmPackages: use libcxxrt on FreeBSD #211230

merged 3 commits into from
Jan 24, 2023

Commits on Jan 22, 2023

  1. llvmPackages: don't exclude FreeBSD from -lunwind

    The exception for FreeBSD was added in 0afe9d1 ("freebsd packages:
    Init at 13.1"), but it seems to have been erroneous, as e.g. ncurses
    fails to build:
    
    	x86_64-unknown-freebsd13-clang++  -o demo ../obj_s/demo.o -L../lib -lncurses++w -L../lib -lformw -lmenuw -lpanelw -lncursesw   -lutil     -DHAVE_CONFIG_H -DBUILDING_NCURSES_CXX -I../c++ -I. -I../include  -DNDEBUG -O2  -fPIC -DPIC
    	x86_64-unknown-freebsd13-ld: error: undefined symbol: _Unwind_Resume
    	>>> referenced by demo.cc
    	>>>               ../obj_s/demo.o:(TestApplication::run())
    	>>> referenced by demo.cc
    	>>>               ../obj_s/demo.o:(_GLOBAL__sub_I_demo.cc)
    	>>> referenced by demo.cc
    	>>>               ../obj_s/demo.o:(NCursesUserItem<UserData>::NCursesUserItem(char const*, char const*, UserData const*))
    	>>> referenced 46 more times
    	clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
    
    This is fixed by undoing the change, adding -lunwind on FreeBSD.
    alyssais committed Jan 22, 2023
    Configuration menu
    Copy the full SHA
    0bab802 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2023

  1. Configuration menu
    Copy the full SHA
    de6b61f View commit details
    Browse the repository at this point in the history
  2. llvmPackages: use libcxxrt on FreeBSD

    FreeBSD doesn't use LLVM's cxxabi implementation, for backwards
    compatibility reasons.  Software expects the libcxxrt API when
    building on FreeBSD.  This fixes the build of
    pkgsCross.x86_64-freebsd.boost.
    alyssais committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    1d20fb6 View commit details
    Browse the repository at this point in the history