Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emake failed when emerging app-office/sc-im
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
srcnotfound
n00b
n00b


Joined: 16 Jul 2025
Posts: 3

PostPosted: Wed Jul 16, 2025 8:01 pm    Post subject: emake failed when emerging app-office/sc-im Reply with quote

I'm trying to emerge app-office/sc-im. I am a new gentoo user and am still learning the ropes when dealing with emerge errors but I haven't been able to figure this one out.

I was able to install the dependencies but I receive the following error when emerging sc-im itself:

Code:

Calculating dependencies... done!
Dependency resolution took 2.76 s (backtrack: 0/20).

[ebuild  N     ] app-office/sc-im-0.8.3-r2  USE="ods wayland xls xlsx -X -lua -plots -tmux" LUA_SINGLE_TARGET="lua5-1 -luajit"

Would you like to merge these packages? [Yes/No]

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-office/sc-im-0.8.3-r2::gentoo
 * sc-im-0.8.3.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking sc-im-0.8.3.tar.gz to /var/tmp/portage/app-office/sc-im-0.8.3-r2/work
>>> Source unpacked in /var/tmp/portage/app-office/sc-im-0.8.3-r2/work
>>> Preparing source in /var/tmp/portage/app-office/sc-im-0.8.3-r2/work/sc-im-0.8.3/src ...
 * Applying sc-im-0.8.3-malloc.patch ...                                                                                                                                                                                                             [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-office/sc-im-0.8.3-r2/work/sc-im-0.8.3/src ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-office/sc-im-0.8.3-r2/work/sc-im-0.8.3/src ...
...
make: *** [<builtin>: function.o] Error 1
 * ERROR: app-office/sc-im-0.8.3-r2::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-office/sc-im-0.8.3-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-office/sc-im-0.8.3-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-office/sc-im-0.8.3-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/sc-im-0.8.3-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-office/sc-im-0.8.3-r2/work/sc-im-0.8.3/src'
 * S: '/var/tmp/portage/app-office/sc-im-0.8.3-r2/work/sc-im-0.8.3/src'

>>> Failed to emerge app-office/sc-im-0.8.3-r2, Log file:

>>>  '/var/tmp/portage/app-office/sc-im-0.8.3-r2/temp/build.log'

 * Messages for package app-office/sc-im-0.8.3-r2:

 * ERROR: app-office/sc-im-0.8.3-r2::gentoo failed (compile phase):
 *   emake failed


The emerge --info gives
Code:

=================================================================
                         System Settings
=================================================================
System uname: Linux-6.12.31-gentoo-dist-x86_64-Intel-R-_Core-TM-_Ultra_7_155H-with-glibc2.41
KiB Mem:    32342968 total,   1346060 free
KiB Swap:    8388604 total,   6318488 free
Timestamp of repository gentoo: Wed, 16 Jul 2025 15:52:35 +0000
Head commit of repository gentoo: fc63b1262ad52f50ccff2ae4ee2199bf052b51e4

sh bash 5.3
ld GNU ld (Gentoo 2.44 p4) 2.44.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.3::gentoo
dev-build/autoconf:        2.72-r2::gentoo
dev-build/automake:        1.18.1::gentoo
dev-build/cmake:           4.0.3::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.8.2::gentoo
dev-lang/perl:             5.42.0::gentoo
dev-lang/python:           3.12.11::gentoo, 3.13.5::gentoo, 3.14.0_beta4::gentoo
dev-lang/rust-bin:         1.88.0::gentoo
llvm-core/clang:           20.1.8::gentoo
llvm-core/llvm:            20.1.8::gentoo
sec-policy/selinux-base:   2.20250213-r1::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.62.5::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-devel/binutils:        2.44-r3::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             15.1.1_p20250705-r1::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.15::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41-r4::gentoo
sys-libs/libselinux:       3.8.1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: yes

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=meteorlake -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=meteorlake -O2 -pipe"
DISTDIR="/var/cache/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="-march=meteorlake -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance binpkg-request-signature buildpkg-live config-protect-if-modified distlocks ebuild-locks export-pms-vars fixlafiles getbinpkg ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=meteorlake -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j8"
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="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus declarative dri dts dvd dvdr elogind encode exif flac gdbm gif gpm gtk gui hardened iconv icu ipv6 jpeg kde kwallet lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pic pie pipewire plasma png policykit ppds pulseaudio qml qt5 qt6 readline screencast sdl seccomp semantic-desktop sound spell ssl ssp startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xtpax xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_14" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-3" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13" RUBY_TARGETS="ruby32 ruby33" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


I'd appreciate any advice when dealing such errors as I get better managing installs with portage. Thanks!
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23689

PostPosted: Wed Jul 16, 2025 8:09 pm    Post subject: Re: emake failed when emerging app-office/sc-im Reply with quote

Welcome to the forums.
srcnotfound wrote:
I was able to install the dependencies but I receive the following error when emerging sc-im itself:
Code:

>>> Compiling source in /var/tmp/portage/app-office/sc-im-0.8.3-r2/work/sc-im-0.8.3/src ...
...
make: *** [<builtin>: function.o] Error 1
 * ERROR: app-office/sc-im-0.8.3-r2::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-office/sc-im-0.8.3-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-office/sc-im-0.8.3-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-office/sc-im-0.8.3-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/sc-im-0.8.3-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-office/sc-im-0.8.3-r2/work/sc-im-0.8.3/src'
 * S: '/var/tmp/portage/app-office/sc-im-0.8.3-r2/work/sc-im-0.8.3/src'
You trimmed out the information we need to be able to help you. Portage printed a block, which you posted and I quoted, directing you on what to share. Please share all of the things that Portage tells you to share. You shared an overly abridged build.log, and emerge --info. We need the full build.log. We might be able to help you without the emerge -pqv, but since Portage suggested it and it is small, you should show that, too.
Back to top
View user's profile Send private message
srcnotfound
n00b
n00b


Joined: 16 Jul 2025
Posts: 3

PostPosted: Wed Jul 16, 2025 8:18 pm    Post subject: Reply with quote

The emerge --pqv gives

Code:

[ebuild  N    ] app-office/sc-im-0.8.3-r2  USE="X ods wayland xls xlsx -lua -plots -tmux" LUA_SINGLE_TARGET="lua5-1 -luajit"

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


and the build log:

Code:

 * Package:    app-office/sc-im-0.8.3-r2:0
 * Repository: gentoo
 * Maintainer: efe.izbudak@metu.edu.tr proxy-maint@gentoo.org
 * USE:        X abi_x86_64 amd64 elibc_glibc kernel_linux lua_single_target_lua5-1 ods wayland xls xlsx
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Conflicting flags for clipboard support are set: wayland X
 * Wayland support has been preferred.
>>> Unpacking source...
>>> Unpacking sc-im-0.8.3.tar.gz to /var/tmp/portage/app-office/sc-im-0.8.3-r2/work
>>> Source unpacked in /var/tmp/portage/app-office/sc-im-0.8.3-r2/work
>>> Preparing source in /var/tmp/portage/app-office/sc-im-0.8.3-r2/work/sc-im-0.8.3/src ...
 * Applying sc-im-0.8.3-malloc.patch ...                                                                             [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-office/sc-im-0.8.3-r2/work/sc-im-0.8.3/src ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-office/sc-im-0.8.3-r2/work/sc-im-0.8.3/src ...
make -j8 'LDLIBS=-lm -lxlsreader -DODS -DXLSX -lxml2 -lzip -DXLSX_EXPORT -L/usr/lib -lxlsxwriter -lz -lncursesw -ltinfow' 'CFLAGS=-march=meteorlake -O2 -pipe -Wall -g -DNCURSES -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE -DSNAME=\"sc-im\" -DHELP_PATH=\"/usr/share/sc-im\" -DLIBDIR=\"/usr/share/doc/sc-im\" -DDFLT_PAGER=\"less\" -DDFLT_EDITOR=\"vim\" -DUSECOLORS -DHISTORY_FILE=\"sc-iminfo\" -DHISTORY_DIR=\".cache\" -DCONFIG_FILE=\"scimrc\" -DCONFIG_DIR=\".config/sc-im\" -DINS_HISTORY_FILE=\"sc-iminfo\" -DUNDO -DMAXROWS=1048576 -DUSELOCALE -DMOUSE -DDEFAULT_OPEN_FILE_UNDER_CURSOR_CMD=\""scopen"\" -DAUTOBACKUP -DHAVE_PTHREAD -DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""wl-copy <"\" -DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""wl-paste"\" -DXLS -DODS -DXLSX -I/usr/include/libxml2 -DXLSX_EXPORT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw'
yacc -d gram.y
sed -f eres.sed < gram.y > experres.h
sed -f sres.sed < gram.y > statres.h
mv y.tab.c gram.c
x86_64-pc-linux-gnu-gcc -march=meteorlake -O2 -pipe -Wall -g -DNCURSES -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE -DSNAME=\"sc-im\" -DHELP_PATH=\"/usr/share/sc-im\" -DLIBDIR=\"/usr/share/doc/sc-im\" -DDFLT_PAGER=\"less\" -DDFLT_EDITOR=\"vim\" -DUSECOLORS -DHISTORY_FILE=\"sc-iminfo\" -DHISTORY_DIR=\".cache\" -DCONFIG_FILE=\"scimrc\" -DCONFIG_DIR=\".config/sc-im\" -DINS_HISTORY_FILE=\"sc-iminfo\" -DUNDO -DMAXROWS=1048576 -DUSELOCALE -DMOUSE -DDEFAULT_OPEN_FILE_UNDER_CURSOR_CMD=\""scopen"\" -DAUTOBACKUP -DHAVE_PTHREAD -DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""wl-copy <"\" -DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""wl-paste"\" -DXLS -DODS -DXLSX -I/usr/include/libxml2 -DXLSX_EXPORT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw   -c -o block.o block.c
x86_64-pc-linux-gnu-gcc -march=meteorlake -O2 -pipe -Wall -g -DNCURSES -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE -DSNAME=\"sc-im\" -DHELP_PATH=\"/usr/share/sc-im\" -DLIBDIR=\"/usr/share/doc/sc-im\" -DDFLT_PAGER=\"less\" -DDFLT_EDITOR=\"vim\" -DUSECOLORS -DHISTORY_FILE=\"sc-iminfo\" -DHISTORY_DIR=\".cache\" -DCONFIG_FILE=\"scimrc\" -DCONFIG_DIR=\".config/sc-im\" -DINS_HISTORY_FILE=\"sc-iminfo\" -DUNDO -DMAXROWS=1048576 -DUSELOCALE -DMOUSE -DDEFAULT_OPEN_FILE_UNDER_CURSOR_CMD=\""scopen"\" -DAUTOBACKUP -DHAVE_PTHREAD -DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""wl-copy <"\" -DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""wl-paste"\" -DXLS -DODS -DXLSX -I/usr/include/libxml2 -DXLSX_EXPORT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw   -c -o buffer.o buffer.c
x86_64-pc-linux-gnu-gcc -march=meteorlake -O2 -pipe -Wall -g -DNCURSES -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE -DSNAME=\"sc-im\" -DHELP_PATH=\"/usr/share/sc-im\" -DLIBDIR=\"/usr/share/doc/sc-im\" -DDFLT_PAGER=\"less\" -DDFLT_EDITOR=\"vim\" -DUSECOLORS -DHISTORY_FILE=\"sc-iminfo\" -DHISTORY_DIR=\".cache\" -DCONFIG_FILE=\"scimrc\" -DCONFIG_DIR=\".config/sc-im\" -DINS_HISTORY_FILE=\"sc-iminfo\" -DUNDO -DMAXROWS=1048576 -DUSELOCALE -DMOUSE -DDEFAULT_OPEN_FILE_UNDER_CURSOR_CMD=\""scopen"\" -DAUTOBACKUP -DHAVE_PTHREAD -DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""wl-copy <"\" -DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""wl-paste"\" -DXLS -DODS -DXLSX -I/usr/include/libxml2 -DXLSX_EXPORT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw   -c -o clipboard.o clipboard.c
x86_64-pc-linux-gnu-gcc -march=meteorlake -O2 -pipe -Wall -g -DNCURSES -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE -DSNAME=\"sc-im\" -DHELP_PATH=\"/usr/share/sc-im\" -DLIBDIR=\"/usr/share/doc/sc-im\" -DDFLT_PAGER=\"less\" -DDFLT_EDITOR=\"vim\" -DUSECOLORS -DHISTORY_FILE=\"sc-iminfo\" -DHISTORY_DIR=\".cache\" -DCONFIG_FILE=\"scimrc\" -DCONFIG_DIR=\".config/sc-im\" -DINS_HISTORY_FILE=\"sc-iminfo\" -DUNDO -DMAXROWS=1048576 -DUSELOCALE -DMOUSE -DDEFAULT_OPEN_FILE_UNDER_CURSOR_CMD=\""scopen"\" -DAUTOBACKUP -DHAVE_PTHREAD -DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""wl-copy <"\" -DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""wl-paste"\" -DXLS -DODS -DXLSX -I/usr/include/libxml2 -DXLSX_EXPORT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw   -c -o color.o color.c
x86_64-pc-linux-gnu-gcc -march=meteorlake -O2 -pipe -Wall -g -DNCURSES -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE -DSNAME=\"sc-im\" -DHELP_PATH=\"/usr/share/sc-im\" -DLIBDIR=\"/usr/share/doc/sc-im\" -DDFLT_PAGER=\"less\" -DDFLT_EDITOR=\"vim\" -DUSECOLORS -DHISTORY_FILE=\"sc-iminfo\" -DHISTORY_DIR=\".cache\" -DCONFIG_FILE=\"scimrc\" -DCONFIG_DIR=\".config/sc-im\" -DINS_HISTORY_FILE=\"sc-iminfo\" -DUNDO -DMAXROWS=1048576 -DUSELOCALE -DMOUSE -DDEFAULT_OPEN_FILE_UNDER_CURSOR_CMD=\""scopen"\" -DAUTOBACKUP -DHAVE_PTHREAD -DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""wl-copy <"\" -DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""wl-paste"\" -DXLS -DODS -DXLSX -I/usr/include/libxml2 -DXLSX_EXPORT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw   -c -o conf.o conf.c
x86_64-pc-linux-gnu-gcc -march=meteorlake -O2 -pipe -Wall -g -DNCURSES -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE -DSNAME=\"sc-im\" -DHELP_PATH=\"/usr/share/sc-im\" -DLIBDIR=\"/usr/share/doc/sc-im\" -DDFLT_PAGER=\"less\" -DDFLT_EDITOR=\"vim\" -DUSECOLORS -DHISTORY_FILE=\"sc-iminfo\" -DHISTORY_DIR=\".cache\" -DCONFIG_FILE=\"scimrc\" -DCONFIG_DIR=\".config/sc-im\" -DINS_HISTORY_FILE=\"sc-iminfo\" -DUNDO -DMAXROWS=1048576 -DUSELOCALE -DMOUSE -DDEFAULT_OPEN_FILE_UNDER_CURSOR_CMD=\""scopen"\" -DAUTOBACKUP -DHAVE_PTHREAD -DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""wl-copy <"\" -DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""wl-paste"\" -DXLS -DODS -DXLSX -I/usr/include/libxml2 -DXLSX_EXPORT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw   -c -o digraphs.o digraphs.c
x86_64-pc-linux-gnu-gcc -march=meteorlake -O2 -pipe -Wall -g -DNCURSES -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE -DSNAME=\"sc-im\" -DHELP_PATH=\"/usr/share/sc-im\" -DLIBDIR=\"/usr/share/doc/sc-im\" -DDFLT_PAGER=\"less\" -DDFLT_EDITOR=\"vim\" -DUSECOLORS -DHISTORY_FILE=\"sc-iminfo\" -DHISTORY_DIR=\".cache\" -DCONFIG_FILE=\"scimrc\" -DCONFIG_DIR=\".config/sc-im\" -DINS_HISTORY_FILE=\"sc-iminfo\" -DUNDO -DMAXROWS=1048576 -DUSELOCALE -DMOUSE -DDEFAULT_OPEN_FILE_UNDER_CURSOR_CMD=\""scopen"\" -DAUTOBACKUP -DHAVE_PTHREAD -DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""wl-copy <"\" -DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""wl-paste"\" -DXLS -DODS -DXLSX -I/usr/include/libxml2 -DXLSX_EXPORT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw   -c -o exec.o exec.c
x86_64-pc-linux-gnu-gcc -march=meteorlake -O2 -pipe -Wall -g -DNCURSES -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE -DSNAME=\"sc-im\" -DHELP_PATH=\"/usr/share/sc-im\" -DLIBDIR=\"/usr/share/doc/sc-im\" -DDFLT_PAGER=\"less\" -DDFLT_EDITOR=\"vim\" -DUSECOLORS -DHISTORY_FILE=\"sc-iminfo\" -DHISTORY_DIR=\".cache\" -DCONFIG_FILE=\"scimrc\" -DCONFIG_DIR=\".config/sc-im\" -DINS_HISTORY_FILE=\"sc-iminfo\" -DUNDO -DMAXROWS=1048576 -DUSELOCALE -DMOUSE -DDEFAULT_OPEN_FILE_UNDER_CURSOR_CMD=\""scopen"\" -DAUTOBACKUP -DHAVE_PTHREAD -DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""wl-copy <"\" -DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""wl-paste"\" -DXLS -DODS -DXLSX -I/usr/include/libxml2 -DXLSX_EXPORT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw   -c -o file.o file.c
x86_64-pc-linux-gnu-gcc -march=meteorlake -O2 -pipe -Wall -g -DNCURSES -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE -DSNAME=\"sc-im\" -DHELP_PATH=\"/usr/share/sc-im\" -DLIBDIR=\"/usr/share/doc/sc-im\" -DDFLT_PAGER=\"less\" -DDFLT_EDITOR=\"vim\" -DUSECOLORS -DHISTORY_FILE=\"sc-iminfo\" -DHISTORY_DIR=\".cache\" -DCONFIG_FILE=\"scimrc\" -DCONFIG_DIR=\".config/sc-im\" -DINS_HISTORY_FILE=\"sc-iminfo\" -DUNDO -DMAXROWS=1048576 -DUSELOCALE -DMOUSE -DDEFAULT_OPEN_FILE_UNDER_CURSOR_CMD=\""scopen"\" -DAUTOBACKUP -DHAVE_PTHREAD -DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""wl-copy <"\" -DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""wl-paste"\" -DXLS -DODS -DXLSX -I/usr/include/libxml2 -DXLSX_EXPORT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw   -c -o format.o format.c
x86_64-pc-linux-gnu-gcc -march=meteorlake -O2 -pipe -Wall -g -DNCURSES -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE -DSNAME=\"sc-im\" -DHELP_PATH=\"/usr/share/sc-im\" -DLIBDIR=\"/usr/share/doc/sc-im\" -DDFLT_PAGER=\"less\" -DDFLT_EDITOR=\"vim\" -DUSECOLORS -DHISTORY_FILE=\"sc-iminfo\" -DHISTORY_DIR=\".cache\" -DCONFIG_FILE=\"scimrc\" -DCONFIG_DIR=\".config/sc-im\" -DINS_HISTORY_FILE=\"sc-iminfo\" -DUNDO -DMAXROWS=1048576 -DUSELOCALE -DMOUSE -DDEFAULT_OPEN_FILE_UNDER_CURSOR_CMD=\""scopen"\" -DAUTOBACKUP -DHAVE_PTHREAD -DDEFAULT_COPY_TO_CLIPBOARD_CMD=\""wl-copy <"\" -DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""wl-paste"\" -DXLS -DODS -DXLSX -I/usr/include/libxml2 -DXLSX_EXPORT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw   -c -o function.o function.c
format.c: In function ‘engformat’:
format.c:571:21: warning: conflicting types for built-in function ‘pow’; expected ‘double(double,  double)’ [-Wbuiltin-declaration-mismatch]
  571 |     double engmant, pow(), engabs, engexp;
      |                     ^~~
format.c:133:1: note: ‘pow’ is declared in header ‘<math.h>’
  132 | #include "xmalloc.h"
  +++ |+#include <math.h>
  133 |
format.c:604:31: error: too many arguments to function ‘pow’; expected 0, have 2
  604 |                 engmant = val/pow(10.0e0, engexp);
      |                               ^~~ ~~~~~~
format.c:571:21: note: declared here
  571 |     double engmant, pow(), engabs, engexp;
      |                     ^~~
make: *** [<builtin>: format.o] Error 1
make: *** Waiting for unfinished jobs....
clipboard.c: In function ‘paste_from_clipboard’:
clipboard.c:92:5: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   92 |     system(syscmd);
      |     ^~~~~~~~~~~~~~
clipboard.c: In function ‘copy_to_clipboard’:
clipboard.c:176:9: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  176 |         system(syscmd);
      |         ^~~~~~~~~~~~~~
file.c: In function ‘handle_backup’:
file.c:2115:62: error: passing argument 3 of ‘pthread_create’ from incompatible pointer type [-Wincompatible-pointer-types]
 2115 |             pthread_exists = (pthread_create(&fthread, NULL, do_autobackup, NULL) == 0) ? 1 : 0;
      |                                                              ^~~~~~~~~~~~~
      |                                                              |
      |                                                              void * (*)(void)
In file included from file.c:86:
/usr/include/pthread.h:204:36: note: expected ‘void * (*)(void *)’ but argument is of type ‘void * (*)(void)’
  204 |                            void *(*__start_routine) (void *),
      |                            ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
file.c:2057:8: note: ‘do_autobackup’ declared here
 2057 | void * do_autobackup() {
      |        ^~~~~~~~~~~~~
file.c: In function ‘openfile’:
file.c:997:16: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  997 |         (void) dup(pipefd[0]);           // connect to first pipe
      |                ^~~~~~~~~~~~~~
file.c:1001:20: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1001 |             (void) dup(pipefd[3]);       // connect to second pipe
      |                    ^~~~~~~~~~~~~~
make: *** [<builtin>: file.o] Error 1
function.c: In function ‘finfunc’:
function.c:81:18: error: passing argument 1 of ‘fn2_eval’ from incompatible pointer type [-Wincompatible-pointer-types]
   81 |     p = fn2_eval(pow, 1 + v2, v3);
      |                  ^~~
      |                  |
      |                  double (*)(double,  double)
In file included from function.c:56:
interp.h:48:27: note: expected ‘double (*)(void)’ but argument is of type ‘double (*)(double,  double)’
   48 | double fn2_eval(double (* fn)(), double arg1, double arg2);
      |                 ~~~~~~~~~~^~~~~
In file included from /usr/include/features.h:524,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/string.h:26,
                 from function.c:46:
/usr/include/bits/mathcalls.h:173:1: note: ‘pow’ declared here
  173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
      | ^~~~~~~~~~~~~~
make: *** [<builtin>: function.o] Error 1
 * ERROR: app-office/sc-im-0.8.3-r2::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-office/sc-im-0.8.3-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-office/sc-im-0.8.3-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-office/sc-im-0.8.3-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/sc-im-0.8.3-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-office/sc-im-0.8.3-r2/work/sc-im-0.8.3/src'
 * S: '/var/tmp/portage/app-office/sc-im-0.8.3-r2/work/sc-im-0.8.3/src'
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2266

PostPosted: Wed Jul 16, 2025 8:26 pm    Post subject: Reply with quote

This is Bug 944432 - app-office/sc-im-0.8.3-r1 fails to compile: format.c:604:31: error: too many arguments to function pow
Currently unsolved
Back to top
View user's profile Send private message
srcnotfound
n00b
n00b


Joined: 16 Jul 2025
Posts: 3

PostPosted: Wed Jul 16, 2025 8:36 pm    Post subject: Reply with quote

Gotcha, I'll just find another tool for now. Thanks for the help.
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1954
Location: South America

PostPosted: Wed Jul 16, 2025 8:46 pm    Post subject: Reply with quote

There is a pull request for bumping to version 0.8.5.
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23689

PostPosted: Wed Jul 16, 2025 9:36 pm    Post subject: Reply with quote

That error looks to me like another "Porting to modern C" issue. The program incorrectly bundled a private definition of pow instead of using the system one and used an incorrect definition that happened to work under older C standards. Assuming that the newer version has this fixed, bumping to that is likely a better choice than backporting the fix for this error.
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1954
Location: South America

PostPosted: Wed Jul 16, 2025 10:28 pm    Post subject: Reply with quote

It is another "porting to modern C" collection of problems indeed, and already fixed upstream.
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1954
Location: South America

PostPosted: Sat Jul 19, 2025 7:08 pm    Post subject: Reply with quote

The pull request has been accepted and version 0.8.5 is in Gentoo's ebuild repository
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum