Package Details: ftxui-git r413.7c3ca1b-2

Git Clone URL: https://aur.archlinux.org/ftxui-git.git (read-only, click to copy)
Package Base: ftxui-git
Description: FTXUI is a C++ Functional Terminal User Interface library.
Upstream URL: https://github.com/ArthurSonzogni/FTXUI
Licenses: MIT
Conflicts: ftxui
Provides: ftxui
Submitter: arthursonzogni
Maintainer: arthursonzogni
Last Packager: arthursonzogni
Votes: 3
Popularity: 0.000000
First Submitted: 2021-06-13 20:32 (UTC)
Last Updated: 2022-07-24 16:31 (UTC)

Dependencies (2)

Required by (6)

Sources (1)

Latest Comments

yyyyyiiiiii commented on 2024-10-31 22:59 (UTC) (edited on 2024-11-01 18:20 (UTC) by yyyyyiiiiii)

nuh, just -O3 is enough, no idea why


I don't know why, but in my case it just produce an unlinkable library. I needed to add -fvisibility=default to CMAKE_CXX_FLAGS to fix that. if I'm not alone with such a thing, then this is to what I changed this PKGBUILD until lib became linkable:

# Maintainer: Arthur Sonzogni <sonzogniarthur+ftxui at gmail dot com>
# Maintainer: Aditya Gupta <adityag.ug19.cs at  nitp.ac.in>
pkgname=ftxui-git
pkgver=r688.edaa7a2
pkgrel=1
pkgdesc="FTXUI is a C++ Functional Terminal User Interface library."
arch=("any")
url="https://github.com/ArthurSonzogni/FTXUI"
license=("MIT")
makedepends=("git" "cmake")
provides=("ftxui")
conflicts=("ftxui")
source=("ftxui::git+https://github.com/ArthurSonzogni/FTXUI")
md5sums=("SKIP")

pkgver() {
  cd "ftxui"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  local cmake_options=(
    -S "ftxui"
    -B "ftxui/build"
    -D CMAKE_CXX_FLAGS="-O3 -fvisibility=default"
    -D CMAKE_INSTALL_PREFIX=/usr
    -W no-dev
  )

  if command -v ninja &> /dev/null; then
    cmake_options+=(-G "Ninja")
  fi

  cmake "${cmake_options[@]}"
  cmake --build "ftxui/build"
}

package() {
  DESTDIR="${pkgdir}" cmake --install "ftxui/build"
}

Taha_AUR commented on 2022-07-09 00:48 (UTC)

Package does not build. The error is when building canvas.cpp

"[ 20%] Building CXX object CMakeFiles/dom.dir/src/ftxui/dom/canvas.cpp.o" Here is where it breaks.

rlmineing_dead commented on 2022-05-22 22:06 (UTC)

This package doesn't build properly anymore

In file included from /usr/include/c++/12.1.0/string:40,
                 from /home/alice/git-applications/ftxui-git/src/ftxui/include/ftxui/dom/canvas.hpp:6,
                 from /home/alice/git-applications/ftxui-git/src/ftxui/src/ftxui/dom/canvas.cpp:1:
In static member function ‘static std::char_traits<char>::char_type* std::char_traits<char>::copy(char_type*, const char_type*, std::size_t)’,
    inlined from ‘static void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_S_copy(_CharT*, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12.1.0/bits/basic_string.h:423:21,
    inlined from ‘std::__cxx11::basic_string<_CharT, _Traits, _Allocator>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_replace(size_type, size_type, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12.1.0/bits/basic_string.tcc:532:22,
    inlined from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::assign(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12.1.0/bits/basic_string.h:1647:19,
    inlined from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12.1.0/bits/basic_string.h:815:28,
    inlined from ‘void ftxui::Canvas::_ZN5ftxui6Canvas11DrawBlockOnEii.part.0(int, int)’ at /home/alice/git-applications/ftxui-git/src/ftxui/src/ftxui/dom/canvas.cpp:467:30:
/usr/include/c++/12.1.0/bits/char_traits.h:431:56: error: ‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ accessing 9223372036854775810 or more bytes at offsets -4611686018427387902 and [-4611686018427387903, 4611686018427387904] may overlap up to 9223372036854775813 bytes at offset -3 [-Werror=restrict]
  431 |         return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n));
      |                                        ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
In static member function ‘static std::char_traits<char>::char_type* std::char_traits<char>::copy(char_type*, const char_type*, std::size_t)’,
    inlined from ‘static void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_S_copy(_CharT*, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12.1.0/bits/basic_string.h:423:21,
    inlined from ‘std::__cxx11::basic_string<_CharT, _Traits, _Allocator>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_replace(size_type, size_type, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12.1.0/bits/basic_string.tcc:532:22,
    inlined from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::assign(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12.1.0/bits/basic_string.h:1647:19,
    inlined from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12.1.0/bits/basic_string.h:815:28,
    inlined from ‘void ftxui::Canvas::_ZN5ftxui6Canvas12DrawBlockOffEii.part.0(int, int)’ at /home/alice/git-applications/ftxui-git/src/ftxui/src/ftxui/dom/canvas.cpp:486:30:
/usr/include/c++/12.1.0/bits/char_traits.h:431:56: error: ‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ accessing 9223372036854775810 or more bytes at offsets -4611686018427387902 and [-4611686018427387903, 4611686018427387904] may overlap up to 9223372036854775813 bytes at offset -3 [-Werror=restrict]
  431 |         return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n));
      |                                        ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
In static member function ‘static std::char_traits<char>::char_type* std::char_traits<char>::copy(char_type*, const char_type*, std::size_t)’,
    inlined from ‘static void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_S_copy(_CharT*, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12.1.0/bits/basic_string.h:423:21,
    inlined from ‘std::__cxx11::basic_string<_CharT, _Traits, _Allocator>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_replace(size_type, size_type, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12.1.0/bits/basic_string.tcc:532:22,
    inlined from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::assign(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12.1.0/bits/basic_string.h:1647:19,
    inlined from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /usr/include/c++/12.1.0/bits/basic_string.h:815:28,
    inlined from ‘void ftxui::Canvas::DrawBlockToggle(int, int)’ at /home/alice/git-applications/ftxui-git/src/ftxui/src/ftxui/dom/canvas.cpp:507:30:
/usr/include/c++/12.1.0/bits/char_traits.h:431:56: error: ‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ accessing 9223372036854775810 or more bytes at offsets -4611686018427387902 and [-4611686018427387903, 4611686018427387904] may overlap up to 9223372036854775813 bytes at offset -3 [-Werror=restrict]
  431 |         return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n));
      |                                        ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/dom.dir/build.make:146: CMakeFiles/dom.dir/src/ftxui/dom/canvas.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: CMakeFiles/dom.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...