Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836951 - app-shells/fish-3.4.1 fails to build without -latomic
Summary: app-shells/fish-3.4.1 fails to build without -latomic
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Georgy Yakovlev
URL: https://github.com/fish-shell/fish-sh...
Whiteboard:
Keywords:
Depends on:
Blocks: libatomic-linking
  Show dependency tree
 
Reported: 2022-04-06 21:00 UTC by Jakov Smolić
Modified: 2022-04-06 21:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakov Smolić archtester gentoo-dev 2022-04-06 21:00:32 UTC
>>> Emerging (1 of 1) app-shells/fish-3.4.1::gentoo
>>> Failed to emerge app-shells/fish-3.4.1, Log file:
>>>  '/var/log/portage/app-shells:fish-3.4.1:20220406-202726.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 4.76, 5.37, 4.11
 * Package:    app-shells/fish-3.4.1
 * Repository: gentoo
 * Maintainer: gyakovlev@gentoo.org polynomial-c@gentoo.org
 * USE:        doc elibc_glibc kernel_linux riscv userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Checking whether python3_10 is suitable ...
 *   >=dev-lang/python-3.10.0_p1-r1:3.10 ...
 [ ok ]
 *   python_check_deps ...
 [ ok ]
 * Using python3.10 to build (via PYTHON_COMPAT iteration)
>>> Unpacking source...
>>> Unpacking fish-3.4.1.tar.xz to /var/tmp/portage/app-shells/fish-3.4.1/work
>>> Source unpacked in /var/tmp/portage/app-shells/fish-3.4.1/work
>>> Preparing source in /var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1_build"
 * Hardcoded definition(s) removed in CMakeLists.txt:
 *      set(CMAKE_BUILD_TYPE "${DEFAULT_BUILD_TYPE}")
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1_build"
cmake -C /var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_BINDIR=/bin -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCURSES_NEED_NCURSES=ON -DINSTALL_DOCS=yes -DWITH_GETTEXT=no -DBUILD_DOCS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1_build/gentoo_toolchain.cmake /var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1
loading initial cache file /var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1_build/gentoo_common_config.cmake
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_policy):
  The OLD behavior for policy CMP0066 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- The C compiler identification is GNU 11.2.1
-- The CXX compiler identification is GNU 11.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/riscv64-unknown-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/riscv64-unknown-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAS_NO_REDUNDANT_MOVE
-- Performing Test HAS_NO_REDUNDANT_MOVE - Failed
-- Performing Test HAS_REDUNDANT_MOVE
-- Performing Test HAS_REDUNDANT_MOVE - Success
-- Looking for wsyncup in /usr/lib64/libcurses.so
-- Looking for wsyncup in /usr/lib64/libcurses.so - found
-- Looking for cbreak in /usr/lib64/libncurses.so
-- Looking for cbreak in /usr/lib64/libncurses.so - not found
-- Looking for nodelay in /usr/lib64/libncurses.so
-- Looking for nodelay in /usr/lib64/libncurses.so - not found
-- Found Curses: /usr/lib64/libncurses.so
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Looking for backtrace_symbols
-- Looking for backtrace_symbols - found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for futimens
-- Looking for futimens - found
-- Looking for ctermid_r
-- Looking for ctermid_r - not found
-- Performing Test HAVE_STRUCT_DIRENT_D_TYPE
-- Performing Test HAVE_STRUCT_DIRENT_D_TYPE - Success
-- Looking for dirfd
-- Looking for dirfd - found
-- Looking for C++ include execinfo.h
-- Looking for C++ include execinfo.h - found
-- Looking for flock
-- Looking for flock - found
-- Looking for getifaddrs
-- Looking for getifaddrs - found
-- Looking for getpwent
-- Looking for getpwent - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Looking for gettext
-- Looking for gettext - found
-- Looking for killpg
-- Looking for killpg - found
-- Looking for mkostemp
-- Looking for mkostemp - found
-- Looking for include files curses.h, term.h
-- Looking for include files curses.h, term.h - found
-- Looking for C++ include siginfo.h
-- Looking for C++ include siginfo.h - not found
-- Looking for C++ include spawn.h
-- Looking for C++ include spawn.h - found
-- Performing Test HAVE_STRUCT_STAT_ST_CTIME_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_CTIME_NSEC - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC - Success
-- Looking for C++ include sys/ioctl.h
-- Looking for C++ include sys/ioctl.h - found
-- Looking for C++ include sys/select.h
-- Looking for C++ include sys/select.h - found
-- Looking for include files sys/types.h, sys/sysctl.h
-- Looking for include files sys/types.h, sys/sysctl.h - not found

<snip>
[104/108] : && /usr/bin/riscv64-unknown-linux-gnu-g++ -O2 -pipe -Wredundant-move -Wl,-O1 -Wl,--as-needed CMakeFiles/fish.dir/src/fish.cpp.o -o fish  libfishlib.a  -lncurses  -ltinfo  -ldl  /usr/lib64/libpcre2-32.so && :
FAILED: fish
: && /usr/bin/riscv64-unknown-linux-gnu-g++ -O2 -pipe -Wredundant-move -Wl,-O1 -Wl,--as-needed CMakeFiles/fish.dir/src/fish.cpp.o -o fish  libfishlib.a  -lncurses  -ltinfo  -ldl  /usr/lib64/libpcre2-32.so && :
/usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.1/../../../../riscv64-unknown-linux-gnu/bin/ld: libfishlib.a(topic_monitor.cpp.o): in function `topic_monitor_t::topic_monitor_t()':
topic_monitor.cpp:(.text+0x506): undefined reference to `__atomic_compare_exchange_1'
/usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.1/../../../../riscv64-unknown-linux-gnu/bin/ld: libfishlib.a(topic_monitor.cpp.o): in function `.L98':
topic_monitor.cpp:(.text+0x5d4): undefined reference to `__atomic_compare_exchange_1'
/usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.1/../../../../riscv64-unknown-linux-gnu/bin/ld: libfishlib.a(topic_monitor.cpp.o): in function `.L153':
topic_monitor.cpp:(.text+0x93c): undefined reference to `__atomic_compare_exchange_1'
/usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.1/../../../../riscv64-unknown-linux-gnu/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
[105/108] /usr/bin/riscv64-unknown-linux-gnu-g++ -DBINDIR=L\"/bin\" -DCMAKE_BINARY_DIR=\"/var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1_build\" -DCMAKE_SOURCE_DIR=\"/var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1\" -DDATADIR=L\"/usr/share\" -DDOCDIR=L\"/usr/share/doc/fish-3.4.1\" -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DSYSCONFDIR=L\"/etc\" -D_REENTRANT -D_UNICODE=1 -I/var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1_build  -O2 -pipe -Wredundant-move   -UNDEBUG -fdiagnostics-color=always -Wall -Wextra -Wno-comment -Wno-address -fno-exceptions -std=gnu++11 -MD -MT CMakeFiles/fish_key_reader.dir/src/f
ish_key_reader.cpp.o -MF CMakeFiles/fish_key_reader.dir/src/fish_key_reader.cpp.o.d -o CMakeFiles/fish_key_reader.dir/src/fish_key_reader.cpp.o -c /var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1/src/fish_key_reader.cpp
[106/108] /usr/bin/riscv64-unknown-linux-gnu-g++ -DBINDIR=L\"/bin\" -DCMAKE_BINARY_DIR=\"/var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1_build\" -DCMAKE_SOURCE_DIR=\"/var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1\" -DDATADIR=L\"/usr/share\" -DDOCDIR=L\"/usr/share/doc/fish-3.4.1\" -DLOCALEDIR=\"/usr/share/locale\" -DPREFIX=L\"/usr\" -DSYSCONFDIR=L\"/etc\" -D_REENTRANT -D_UNICODE=1 -I/var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1_build  -O2 -pipe -Wredundant-move   -UNDEBUG -fdiagnostics-color=always -Wall -Wextra -Wno-comment -Wno-address -fno-exceptions -std=gnu++11 -MD -MT CMakeFiles/fish_indent.dir/src/fish_
indent.cpp.o -MF CMakeFiles/fish_indent.dir/src/fish_indent.cpp.o.d -o CMakeFiles/fish_indent.dir/src/fish_indent.cpp.o -c /var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1/src/fish_indent.cpp
ninja: build stopped: subcommand failed.
 * ERROR: app-shells/fish-3.4.1::gentoo failed (compile phase):
 *   ninja -v -j6 -l0 failed
 *
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 2917:  Called cmake_src_compile
 *   environment, line 1207:  Called cmake_build
 *   environment, line 1176:  Called eninja
 *   environment, line 1633:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
 *
 * If you need support, post the output of `emerge --info '=app-shells/fish-3.4.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-shells/fish-3.4.1::gentoo'`.
 * The complete build log is located at '/var/log/portage/app-shells:fish-3.4.1:20220406-202726.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-shells/fish-3.4.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-shells/fish-3.4.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1_build'
 * S: '/var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1'

 * Messages for package app-shells/fish-3.4.1:
 * Log file: /var/log/portage/app-shells:fish-3.4.1:20220406-202726.log

 * ERROR: app-shells/fish-3.4.1::gentoo failed (compile phase):
 *   ninja -v -j6 -l0 failed
 *
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 2917:  Called cmake_src_compile
 *   environment, line 1207:  Called cmake_build
 *   environment, line 1176:  Called eninja
 *   environment, line 1633:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
 *
 * If you need support, post the output of `emerge --info '=app-shells/fish-3.4.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-shells/fish-3.4.1::gentoo'`.
 * The complete build log is located at '/var/log/portage/app-shells:fish-3.4.1:20220406-202726.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-shells/fish-3.4.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-shells/fish-3.4.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1_build'
 * S: '/var/tmp/portage/app-shells/fish-3.4.1/work/fish-3.4.1'
Comment 1 Jakov Smolić archtester gentoo-dev 2022-04-06 21:01:23 UTC
Patch has already been merged upstream
Comment 2 Larry the Git Cow gentoo-dev 2022-04-06 21:35:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d44e2b5c7af59aad6c12653466d0e0b2c36c031

commit 9d44e2b5c7af59aad6c12653466d0e0b2c36c031
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2022-04-06 21:33:52 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2022-04-06 21:35:33 +0000

    app-shells/fish: Fix linking with libatomic
    
    Patch is already upstreamed, drop on next version bump.
    
    Closes: https://bugs.gentoo.org/836951
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 app-shells/fish/files/fish-3.4.1-atomic.patch | 65 +++++++++++++++++++++++++++
 app-shells/fish/fish-3.4.1.ebuild             |  5 +++
 2 files changed, 70 insertions(+)