Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903689 - =dev-scheme/guile-ssh-0.16.3 fails to build on clang: log.c:98:10: error: call to undeclared function 'backtrace'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Summary: =dev-scheme/guile-ssh-0.16.3 fails to build on clang: log.c:98:10: error: cal...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Scheme Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-02 07:20 UTC by Sergei Trofimovich
Modified: 2023-04-03 02:14 UTC (History)
0 users

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


Attachments
build.log (build.log,38.66 KB, text/plain)
2023-04-02 07:22 UTC, Sergei Trofimovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich 2023-04-02 07:20:10 UTC
On default/linux/amd64/17.1/systemd/clang/merged-usr profile 'guile-ssh' fails to build as:

# emerge -v1 guile-ssh

log.c:98:10: error: call to undeclared function 'backtrace'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  size = backtrace (array, STACK_BUF_SZ);
         ^
log.c:99:13: error: call to undeclared function 'backtrace_symbols'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  strings = backtrace_symbols (array, size);
            ^
log.c:99:11: error: incompatible integer to pointer conversion assigning to 'char **' from 'int' [-Wint-conversion]
  strings = backtrace_symbols (array, size);
          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
make[2]: *** [Makefile:799: libguile_ssh_la-log.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/dev/shm/portage/dev-scheme/guile-ssh-0.16.3/work/guile-ssh-0.16.3/libguile-ssh'
make[1]: *** [Makefile:504: all] Error 2
make[1]: Leaving directory '/dev/shm/portage/dev-scheme/guile-ssh-0.16.3/work/guile-ssh-0.16.3/libguile-ssh'
make: *** [Makefile:432: all-recursive] Error 1
 * ERROR: dev-scheme/guile-ssh-0.16.3::gentoo failed (compile phase):
 *   emake failed


It's caused by an invalid files/guile-ssh-0.16.0-musl.patch added in https://bugs.gentoo.org/877721:

It removes `#include <execinfo.h>`. But that header's symbols are being used in log.c.
Comment 1 Sergei Trofimovich 2023-04-02 07:20:39 UTC
# emerge --info
Portage 3.0.45.3 (python 3.10.10-final-0, default/linux/amd64/17.1/systemd/clang/merged-usr, gcc-12, glibc-2.37-r1, 6.2.8 x86_64)
=================================================================
System uname: Linux-6.2.8-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.37
KiB Mem:   131857872 total,  38767444 free
KiB Swap:  197786108 total, 197749500 free
Timestamp of repository gentoo: Sat, 01 Apr 2023 08:00:02 +0000
Head commit of repository gentoo: b1ec083929e9b36d4f83cc6c4788b5bdf8d58d44
sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.40 p3) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.10.10_p3::gentoo, 3.11.2_p2::gentoo
dev-lang/rust:             1.68.1::gentoo
dev-util/cmake:            3.26.2::gentoo
dev-util/meson:            1.0.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-apps/systemd:          253.2::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo, 16.0.0::gentoo
sys-devel/gcc:             12.2.1_p20230304::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo, 16.0.0::gentoo
sys-devel/llvm:            15.0.7::gentoo, 16.0.0::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.2::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r1::gentoo
Repositories:

gentoo
    location: /bound/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

slyfox
    location: /bound/slyfox-gentoo
    masters: gentoo
    priority: 0
    volatile: True

nix-guix
    location: /bound/nix-guix-gentoo
    masters: gentoo
    priority: 1
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="clang -c"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-O2 -pipe"
DISTDIR="/bound/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LD="ld.lld"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed  -Wl,--hash-style=gnu"
LEX="flex"
MAKEOPTS="-j17 -l17"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/dev/shm"
RANLIB="llvm-ranlib"
READELF="llvm-readelf"
SHELL="/bin/bash"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="acl amd64 bzip2 clang cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc llvm-libunwind multilib ncurses nls nptl openmp pam pcre readline seccomp ssl systemd test-rust udev unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS, SIZE, YACC, YFLAGS
Comment 2 Sergei Trofimovich 2023-04-02 07:22:29 UTC
Created attachment 859408 [details]
build.log
Comment 3 Larry the Git Cow gentoo-dev 2023-04-03 01:56:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d73fa0bd21ade4762bc0d6ff058276e54db57a5

commit 4d73fa0bd21ade4762bc0d6ff058276e54db57a5
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2023-04-03 01:45:37 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2023-04-03 01:56:11 +0000

    dev-scheme/guile-ssh: remove broken patch
    
    Bug: https://bugs.gentoo.org/877721
    Closes: https://bugs.gentoo.org/903689
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 dev-scheme/guile-ssh/files/guile-ssh-0.16.0-musl.patch | 10 ----------
 dev-scheme/guile-ssh/guile-ssh-0.16.0-r1.ebuild        |  2 +-
 dev-scheme/guile-ssh/guile-ssh-0.16.2.ebuild           |  2 +-
 dev-scheme/guile-ssh/guile-ssh-0.16.3.ebuild           |  2 +-
 4 files changed, 3 insertions(+), 13 deletions(-)
Comment 4 Larry the Git Cow gentoo-dev 2023-04-03 02:14:56 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=503c11b797110925180aca431e08e5ab3a715e30

commit 503c11b797110925180aca431e08e5ab3a715e30
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2023-04-03 02:11:11 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2023-04-03 02:14:02 +0000

    dev-scheme/guile-ssh: mask on musl
    
    Bug: https://bugs.gentoo.org/877721
    Bug: https://bugs.gentoo.org/903689
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 dev-scheme/guile-ssh/guile-ssh-0.16.0-r1.ebuild | 1 -
 dev-scheme/guile-ssh/guile-ssh-0.16.2.ebuild    | 1 -
 dev-scheme/guile-ssh/guile-ssh-0.16.3.ebuild    | 1 -
 3 files changed, 3 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=348ee9b1f69c0b0c6e25e4d660bddf9fa87cda73

commit 348ee9b1f69c0b0c6e25e4d660bddf9fa87cda73
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2023-04-03 02:09:19 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2023-04-03 02:13:54 +0000

    profiles/features/musl/package.mask: mask guile-ssh
    
    Bug: https://bugs.gentoo.org/877721
    Bug: https://bugs.gentoo.org/903689
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 profiles/features/musl/package.mask | 4 ++++
 1 file changed, 4 insertions(+)