1

Неудается собрать статично слинкованный busybox, с флагом static. Без этого флага собирается нормально. Похоже, жалуется на то, что статичного glibc нету. А его и вправду нету.
Внимание, вопрос: куда делись статичные либы? У ебилда glibc нет флага static-libs, как его собрать, чтобы были статичные либы? И, наконец (самое важное), как же все-таки собрать статичный busybox?
Лог сборки бизибокса прилагаю.

+ открыть спойлер

* Package:    sys-apps/busybox-1.18.1
* Repository: gentoo
* Maintainer: embedded@gentoo.org
* USE:        amd64 elibc_glibc ipv6 kernel_linux mdev multilib static userland_GNU
* FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking busybox-1.18.1.tar.bz2 to /tmp/portage/sys-apps/busybox-1.18.1/work
>>> Source unpacked in /tmp/portage/sys-apps/busybox-1.18.1/work
>>> Preparing source in /tmp/portage/sys-apps/busybox-1.18.1/work/busybox-1.18.1 ...
* Applying busybox-1.18.0-bb.patch ...                                                                                                                                                [ ok ]
* Applying busybox-1.18.1-bzip2.patch ...                                                                                                                                             [ ok ]
* Applying busybox-1.18.1-cpio.patch ...                                                                                                                                              [ ok ]
* Applying busybox-1.18.1-hush.patch ...                                                                                                                                              [ ok ]
* Applying busybox-1.18.1-mkswap.patch ...                                                                                                                                            [ ok ]
* Applying busybox-1.18.1-warning.patch ...                                                                                                                                           [ ok ]
>>> Source prepared.
>>> Configuring source in /tmp/portage/sys-apps/busybox-1.18.1/work/busybox-1.18.1 ...
* Could not locate user configfile, so we will save a default one
make -j5 -j1 allyesconfig
scripts/basic/split-include.c: In function ‘main’:
scripts/basic/split-include.c:134: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:104: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:359: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
scripts/kconfig/mconf.c: In function ‘exec_conf’:
scripts/kconfig/mconf.c:470: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result
scripts/kconfig/mconf.c: In function ‘show_textbox’:
scripts/kconfig/mconf.c:836: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
In file included from scripts/kconfig/zconf.tab.c:2168:
scripts/kconfig/confdata.c: In function ‘conf_write’:
scripts/kconfig/confdata.c:492: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
scripts/kconfig/confdata.c:494: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
In file included from scripts/kconfig/zconf.tab.c:2169:
scripts/kconfig/expr.c: In function ‘expr_print_file_helper’:
scripts/kconfig/expr.c:1083: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
* # CONFIG_DMALLOC is not set
* # CONFIG_FEATURE_SUID_CONFIG is not set
* Could not find CONFIG_BUILD_AT_ONCE ...
* # CONFIG_BUILD_LIBBUSYBOX is not set
* # CONFIG_NOMMU is not set
* # CONFIG_MONOTONIC_SYSCALL is not set
* CONFIG_ASH=y
* # CONFIG_HUSH is not set
* # CONFIG_PAM is not set
* CONFIG_STATIC=y
* # CONFIG_DEBUG is not set
* # CONFIG_SELINUX is not set
* # CONFIG_CRONTAB is not set
* # CONFIG_DC is not set
* # CONFIG_DEVFSD is not set
* # CONFIG_DNSD is not set
* # CONFIG_DPKG is not set
* # CONFIG_FAKEIDENTD is not set
* # CONFIG_FBSPLASH is not set
* # CONFIG_FOLD is not set
* # CONFIG_FTPGET is not set
* # CONFIG_FTPPUT is not set
* # CONFIG_HOSTID is not set
* # CONFIG_HUSH is not set
* # CONFIG_INETD is not set
* # CONFIG_INOTIFYD is not set
* # CONFIG_IPCALC is not set
* Could not find CONFIG_LASH ...
* # CONFIG_LOCALE_SUPPORT is not set
* # CONFIG_LOGNAME is not set
* # CONFIG_LPD is not set
* # CONFIG_MSH is not set
* # CONFIG_OD is not set
* # CONFIG_RFKILL is not set
* # CONFIG_SLATTACH is not set
* # CONFIG_SULOGIN is not set
* # CONFIG_TASKSET is not set
* # CONFIG_TCPSVD is not set
* # CONFIG_RPM is not set
* # CONFIG_RPM2CPIO is not set
* # CONFIG_UDPSVD is not set
* # CONFIG_UUDECODE is not set
* # CONFIG_UUENCODE is not set
make -j5 -j1 oldconfig
>>> Source configured.
>>> Compiling source in /tmp/portage/sys-apps/busybox-1.18.1/work/busybox-1.18.1 ...
make -j5 busybox
  SPLIT   include/autoconf.h -> include/config/*
  HOSTCC  applets/applet_tables
  HOSTCC  applets/usage
applets/usage.c: In function ‘main’:
applets/usage.c:52: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
applets/applet_tables.c: In function ‘main’:
applets/applet_tables.c:138: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
  GEN     include/bbconfigopts.h
  GEN     include/usage_compressed.h
  GEN     include/applet_tables.h
  HOSTCC  applets/usage_pod
applets/usage_pod.c: In function ‘main’:
applets/usage_pod.c:74: warning: format not a string literal and no format arguments
  CC      applets/applets.o
  LD      applets/built-in.o
  LD      archival/built-in.o
  CC      archival/ar.o
  CC      archival/bbunzip.o
  LD      archival/libarchive/built-in.o
  CC      archival/libarchive/data_align.o
  LD      console-tools/built-in.o
  LD      coreutils/built-in.o
  CC      console-tools/chvt.o
  CC      coreutils/basename.o
  CC      console-tools/clear.o
  CC      coreutils/cal.o
  CC      archival/libarchive/data_extract_all.o
  CC      console-tools/deallocvt.o
  CC      archival/bzip2.o
archival/libarchive/data_extract_all.c: In function ‘data_extract_all’:
archival/libarchive/data_extract_all.c:176: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result
  CC      archival/libarchive/data_extract_to_command.o
  CC      console-tools/dumpkmap.o
  CC      console-tools/fgconsole.o
  CC      coreutils/cat.o
archival/libarchive/data_extract_to_command.c: In function ‘xputenv’:
archival/libarchive/data_extract_to_command.c:41: warning: format not a string literal and no format arguments
console-tools/dumpkmap.c: In function ‘dumpkmap_main’:
console-tools/dumpkmap.c:42: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
console-tools/dumpkmap.c:51: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
console-tools/dumpkmap.c:64: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
  CC      archival/libarchive/data_extract_to_stdout.o
  CC      archival/libarchive/data_skip.o
  CC      console-tools/kbd_mode.o
  CC      coreutils/catv.o
  CC      coreutils/chgrp.o
  CC      archival/libarchive/decompress_bunzip2.o
  CC      console-tools/loadfont.o
  CC      console-tools/loadkmap.o
  CC      coreutils/chmod.o
console-tools/loadfont.c: In function ‘setfont_main’:
console-tools/loadfont.c:384: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
console-tools/loadfont.c:402: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
  CC      coreutils/chown.o
  CC      console-tools/openvt.o
  CC      console-tools/reset.o
  CC      coreutils/chroot.o
  CC      archival/libarchive/decompress_uncompress.o
  CC      archival/cpio.o
  CC      archival/dpkg_deb.o
  CC      console-tools/resize.o
  CC      coreutils/cksum.o
console-tools/resize.c: In function ‘resize_main’:
console-tools/resize.c:56: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result
  CC      archival/libarchive/decompress_unlzma.o
  CC      console-tools/setconsole.o
  CC      archival/libarchive/decompress_unxz.o
  CC      archival/gzip.o
  CC      coreutils/comm.o
  CC      console-tools/setkeycodes.o
  CC      console-tools/setlogcons.o
  CC      coreutils/cp.o
  CC      coreutils/cut.o
  CC      console-tools/showkey.o
  CC      archival/libarchive/decompress_unzip.o
  CC      coreutils/date.o
  CC      coreutils/dd.o
  AR      console-tools/lib.a
  CC      coreutils/df.o
  CC      archival/lzop.o
coreutils/date.c: In function ‘date_main’:
coreutils/date.c:368: warning: array subscript is above array bounds
  CC      archival/libarchive/filter_accept_all.o
  CC      archival/libarchive/filter_accept_list.o
  CC      coreutils/dirname.o
  CC      coreutils/dos2unix.o
  CC      coreutils/du.o
  CC      archival/libarchive/filter_accept_list_reassign.o
  CC      archival/tar.o
archival/libarchive/filter_accept_list_reassign.c: In function ‘filter_accept_list_reassign’:
archival/libarchive/filter_accept_list_reassign.c:32: warning: array subscript is above array bounds
  CC      archival/unzip.o
  CC      archival/libarchive/filter_accept_reject_list.o
  LD      coreutils/libcoreutils/built-in.o
  CC      coreutils/echo.o
  CC      coreutils/libcoreutils/cp_mv_stat.o
  CC      archival/libarchive/find_list_entry.o
  CC      coreutils/libcoreutils/getopt_mk_fifo_nod.o
  CC      coreutils/env.o
  CC      coreutils/expand.o
  AR      archival/lib.a
  CC      coreutils/expr.o
coreutils/expand.c: In function ‘expand_main’:
coreutils/expand.c:201: warning: format not a string literal and no format arguments
  CC      archival/libarchive/get_header_ar.o
  AR      coreutils/libcoreutils/lib.a
  CC      archival/libarchive/get_header_cpio.o
  CC      archival/libarchive/get_header_tar.o
  CC      archival/libarchive/get_header_tar_bz2.o
  CC      coreutils/false.o
  CC      coreutils/fsync.o
  CC      archival/libarchive/get_header_tar_gz.o
  LD      debianutils/built-in.o
  CC      debianutils/mktemp.o
  LD      e2fsprogs/built-in.o
  CC      e2fsprogs/chattr.o
  CC      e2fsprogs/e2fs_lib.o
  CC      coreutils/head.o
  CC      archival/libarchive/get_header_tar_lzma.o
  CC      debianutils/pipe_progress.o
  CC      debianutils/run_parts.o
  CC      archival/libarchive/header_list.o
  CC      coreutils/id.o
  CC      e2fsprogs/fsck.o
  CC      coreutils/install.o
  CC      debianutils/start_stop_daemon.o
  CC      archival/libarchive/header_skip.o
  CC      archival/libarchive/header_verbose_list.o
  CC      coreutils/length.o
  LD      editors/built-in.o
  CC      editors/awk.o
  CC      archival/libarchive/init_handle.o
  CC      coreutils/ln.o
  CC      debianutils/which.o
  CC      archival/libarchive/lzo1x_1.o
  AR      debianutils/lib.a
  CC      archival/libarchive/lzo1x_1o.o
  CC      coreutils/ls.o
  CC      e2fsprogs/lsattr.o
  CC      coreutils/md5_sha1_sum.o
  CC      e2fsprogs/tune2fs.o
  CC      archival/libarchive/lzo1x_9x.o
  LD      findutils/built-in.o
  CC      findutils/find.o
  AR      e2fsprogs/lib.a
  CC      editors/cmp.o
  CC      findutils/grep.o
  CC      coreutils/mkdir.o
  CC      archival/libarchive/lzo1x_d.o
findutils/grep.c: In function ‘print_line’:
findutils/grep.c:281: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
  CC      archival/libarchive/open_transformer.o
  CC      coreutils/mkfifo.o
  CC      coreutils/mknod.o
  CC      archival/libarchive/seek_by_jump.o
  CC      findutils/xargs.o
  CC      editors/diff.o
  CC      coreutils/mv.o
  CC      archival/libarchive/seek_by_read.o
  CC      archival/libarchive/unpack_ar_archive.o
  AR      findutils/lib.a
  CC      editors/ed.o
  CC      coreutils/nice.o
  CC      coreutils/nohup.o
  AR      archival/libarchive/lib.a
editors/ed.c: In function ‘printLines’:
editors/ed.c:819: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
  CC      coreutils/printenv.o
  CC      coreutils/printf.o
  LD      init/built-in.o
  CC      init/bootchartd.o
  CC      init/halt.o
init/bootchartd.c: In function ‘finalize’:
init/bootchartd.c:310: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result
  CC      coreutils/pwd.o
  CC      coreutils/readlink.o
  CC      editors/patch.o
  LD      libbb/built-in.o
  CC      init/init.o
  CC      libbb/appletlib.o
  CC      libbb/ask_confirmation.o
  CC      coreutils/realpath.o
  CC      coreutils/rm.o
init/init.c: In function ‘init_main’:
init/init.c:959: warning: array subscript is above array bounds
init/init.c:1027: warning: array subscript is above array bounds
  CC      init/mesg.o
  CC      coreutils/rmdir.o
libbb/appletlib.c: In function ‘run_applet_and_exit’:
libbb/appletlib.c:719: warning: array subscript is above array bounds
  CC      coreutils/seq.o
  CC      editors/sed.o
  AR      init/lib.a
  CC      libbb/bb_askpass.o
  CC      editors/vi.o
  CC      libbb/bb_basename.o
  CC      coreutils/sleep.o
editors/sed.c: In function ‘sed_main’:
editors/sed.c:1381: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result
editors/vi.c: In function ‘file_write’:
editors/vi.c:2397: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result
editors/vi.c: In function ‘refresh’:
editors/vi.c:2874: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
  CC      libbb/bb_bswap_64.o
  CC      coreutils/sort.o
  CC      coreutils/split.o
  CC      libbb/bb_do_delay.o
  CC      libbb/bb_pwd.o
  CC      coreutils/stat.o
  CC      libbb/bb_qsort.o
  CC      libbb/bb_strtonum.o
  CC      coreutils/stty.o
  CC      libbb/change_identity.o
  CC      libbb/chomp.o
editors/vi.c: In function ‘colon’:
editors/vi.c:1068: warning: array subscript is above array bounds
editors/vi.c:1142: warning: array subscript is above array bounds
editors/vi.c:1143: warning: array subscript is above array bounds
  LD      libpwdgrp/built-in.o
coreutils/stty.c: In function ‘set_control_char_or_die’:
coreutils/stty.c:1235: warning: array subscript is above array bounds
  CC      libpwdgrp/pwd_grp.o
  LD      loginutils/built-in.o
  CC      libbb/compare_string_array.o
  CC      loginutils/add-remove-shell.o
  CC      libbb/concat_path_file.o
  CC      coreutils/sum.o
  CC      loginutils/addgroup.o
  CC      libpwdgrp/uidgid_get.o
loginutils/addgroup.c: In function ‘addgroup_main’:
loginutils/addgroup.c:124: warning: format not a string literal and no format arguments
  CC      libbb/concat_subpath_file.o
  CC      loginutils/adduser.o
  CC      coreutils/sync.o
  AR      libpwdgrp/lib.a
loginutils/adduser.c: In function ‘addgroup_wrapper’:
loginutils/adduser.c:77: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result
loginutils/adduser.c: In function ‘adduser_main’:
loginutils/adduser.c:122: warning: format not a string literal and no format arguments
  CC      libbb/copy_file.o
  CC      libbb/copyfd.o
  CC      coreutils/tac.o
  CC      loginutils/chpasswd.o
loginutils/chpasswd.c: In function ‘chpasswd_main’:
loginutils/chpasswd.c:29: warning: format not a string literal and no format arguments
  CC      loginutils/cryptpw.o
  CC      libbb/correct_password.o
  CC      libbb/crc32.o
  CC      coreutils/tail.o
  CC      loginutils/deluser.o
  AR      editors/lib.a
  CC      loginutils/getty.o
  CC      coreutils/tee.o
  CC      libbb/create_icmp6_socket.o
loginutils/deluser.c: In function ‘deluser_main’:
loginutils/deluser.c:29: warning: format not a string literal and no format arguments
coreutils/tee.c: In function ‘tee_main’:
coreutils/tee.c:73: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
libbb/create_icmp6_socket.c: In function ‘create_icmp6_socket’:
libbb/create_icmp6_socket.c:29: warning: format not a string literal and no format arguments
libbb/create_icmp6_socket.c:30: warning: format not a string literal and no format arguments
  LD      mailutils/built-in.o
loginutils/getty.c: In function ‘open_tty’:
loginutils/getty.c:249: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result
  CC      mailutils/mail.o
  CC      coreutils/test.o
  CC      libbb/create_icmp_socket.o
  LD      miscutils/built-in.o
  CC      miscutils/adjtimex.o
mailutils/mail.c: In function ‘encode_base64’:
mailutils/mail.c:156: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
libbb/create_icmp_socket.c: In function ‘create_icmp_socket’:
libbb/create_icmp_socket.c:28: warning: format not a string literal and no format arguments
libbb/create_icmp_socket.c:29: warning: format not a string literal and no format arguments
  CC      loginutils/login.o
  CC      libbb/default_error_retval.o
  CC      mailutils/mime.o
coreutils/test.c: In function ‘test_main’:
coreutils/test.c:816: warning: array subscript is above array bounds
  CC      miscutils/bbconfig.o
loginutils/login.c: In function ‘login_main’:
loginutils/login.c:386: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result
mailutils/mime.c: In function ‘makemime_main’:
mailutils/mime.c:133: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result
  CC      coreutils/test_ptr_hack.o
  CC      coreutils/touch.o
  CC      libbb/device_open.o
  CC      loginutils/passwd.o
  CC      mailutils/popmaildir.o
  CC      miscutils/beep.o
  CC      coreutils/tr.o
  CC      libbb/die_if_bad_username.o
  CC      loginutils/su.o
  CC      mailutils/sendmail.o
  CC      miscutils/chat.o
  CC      libbb/dump.o
  CC      loginutils/vlock.o
  CC      coreutils/true.o
libbb/dump.c: In function ‘display’:
libbb/dump.c:616: warning: format not a string literal and no format arguments
libbb/dump.c:666: warning: format not a string literal and no format arguments
  AR      mailutils/lib.a
  CC      coreutils/tty.o
  CC      libbb/execable.o
  CC      miscutils/chrt.o
  AR      loginutils/lib.a
  CC      miscutils/conspy.o
  CC      coreutils/uname.o
  CC      coreutils/uniq.o
  CC      libbb/fclose_nonstdin.o
  CC      libbb/fflush_stdout_and_exit.o
  CC      miscutils/crond.o
libbb/fflush_stdout_and_exit.c: In function ‘fflush_stdout_and_exit’:
libbb/fflush_stdout_and_exit.c:19: warning: format not a string literal and no format arguments
  CC      miscutils/devmem.o
  CC      coreutils/usleep.o
  CC      libbb/fgets_str.o
  CC      libbb/find_mount_point.o
miscutils/crond.c: In function ‘crondlog’:
miscutils/crond.c:136: warning: ignoring return value of ‘vasprintf’, declared with attribute warn_unused_result
  CC      coreutils/uudecode.o
  LD      modutils/built-in.o
  CC      modutils/modinfo.o
  CC      libbb/find_pid_by_name.o
  LD      networking/built-in.o
  CC      networking/arp.o
  CC      coreutils/wc.o
networking/arp.c: In function ‘arp_show’:
networking/arp.c:403: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
  CC      libbb/find_root_device.o
  CC      miscutils/eject.o
  CC      modutils/modprobe-small.o
  CC      coreutils/who.o
  CC      networking/arping.o
  CC      libbb/full_write.o
  CC      miscutils/flash_eraseall.o
  CC      coreutils/whoami.o
  CC      libbb/get_console.o
  CC      modutils/modutils.o
  CC      networking/brctl.o
  CC      coreutils/yes.o
  CC      miscutils/flash_lock_unlock.o
  CC      libbb/get_cpu_count.o
  AR      coreutils/lib.a
  AR      modutils/lib.a
  CC      libbb/get_last_path_component.o
  CC      libbb/get_line_from_file.o
  CC      networking/ether-wake.o
  CC      miscutils/flashcp.o
  CC      networking/ftpd.o
  CC      miscutils/hdparm.o
  CC      libbb/get_volsize.o
  CC      libbb/getopt32.o
  CC      networking/hostname.o
networking/ftpd.c: In function ‘popen_ls’:
networking/ftpd.c:656: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result
networking/ftpd.c: In function ‘ftpd_main’:
networking/ftpd.c:1167: warning: ignoring return value of ‘chroot’, declared with attribute warn_unused_result
  CC      networking/httpd.o
  LD      networking/libiproute/built-in.o
  CC      libbb/getpty.o
  CC      networking/libiproute/ip_parse_common_args.o
networking/httpd.c: In function ‘handle_incoming_and_exit’:
networking/httpd.c:2146: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
  CC      networking/libiproute/ipaddress.o
  CC      libbb/hash_md5_sha.o
  CC      networking/ifconfig.o
  CC      networking/libiproute/iplink.o
  CC      libbb/herror_msg.o
  CC      networking/libiproute/iproute.o
  CC      miscutils/ionice.o
  CC      miscutils/last_fancy.o
  CC      networking/ifenslave.o
  CC      libbb/human_readable.o
  CC      networking/libiproute/iprule.o
  CC      networking/ifplugd.o
  CC      miscutils/less.o
  CC      libbb/inet_common.o
  CC      networking/ifupdown.o
  CC      networking/libiproute/iptunnel.o
networking/libiproute/iptunnel.c: In function ‘do_tunnels_list’:
networking/libiproute/iptunnel.c:481: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
networking/libiproute/iptunnel.c:482: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
  CC      networking/libiproute/libnetlink.o
  CC      libbb/info_msg.o
  CC      libbb/inode_hash.o
  CC      networking/interface.o
networking/ifupdown.c: In function ‘set_environ’:
networking/ifupdown.c:960: warning: array subscript is above array bounds
  CC      libbb/isdirectory.o
  CC      networking/libiproute/ll_addr.o
networking/ifupdown.c: In function ‘ifupdown_main’:
networking/ifupdown.c:864: warning: array subscript is above array bounds
networking/interface.c: In function ‘if_readlist_proc’:
networking/interface.c:573: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
networking/interface.c:574: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
  CC      miscutils/makedevs.o
  CC      libbb/kernel_version.o
  CC      networking/libiproute/ll_map.o
  CC      libbb/last_char_is.o
  CC      miscutils/man.o
  CC      miscutils/microcom.o
  CC      networking/ip.o
  CC      networking/libiproute/ll_proto.o
miscutils/microcom.c: In function ‘microcom_main’:
miscutils/microcom.c:141: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
  CC      libbb/lineedit.o
miscutils/man.c: In function ‘run_pipe’:
miscutils/man.c:115: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result
  CC      networking/nameif.o
  CC      libbb/lineedit_ptr_hack.o
  CC      networking/nbd-client.o
  CC      miscutils/mountpoint.o
  CC      networking/libiproute/ll_types.o
networking/nbd-client.c: In function ‘nbdclient_main’:
networking/nbd-client.c:133: warning: ignoring return value of ‘daemon’, declared with attribute warn_unused_result
  CC      networking/libiproute/rt_names.o
  CC      networking/nc.o
  CC      miscutils/mt.o
  CC      miscutils/nandwrite.o
miscutils/mt.c: In function ‘mt_main’:
miscutils/mt.c:95: warning: array subscript is above array bounds
  CC      networking/libiproute/rtm_map.o
In file included from networking/nc.c:46:
networking/nc_bloaty.c: In function ‘nc_main’:
networking/nc_bloaty.c:755: warning: array subscript is above array bounds
  CC      networking/netstat.o
  CC      miscutils/raidautorun.o
  CC      miscutils/readahead.o
  CC      networking/libiproute/utils.o
  CC      miscutils/runlevel.o
  CC      libbb/llist.o
  CC      libbb/login.o
  CC      miscutils/rx.o
  CC      networking/nslookup.o
  CC      networking/ntpd.o
  CC      libbb/loop.o
  AR      networking/libiproute/lib.a
  CC      libbb/make_directory.o
  CC      miscutils/setsid.o
  CC      libbb/makedev.o
networking/ntpd.c: In function ‘ntp_init’:
networking/ntpd.c:1888: warning: format not a string literal and no format arguments
  CC      miscutils/strings.o
  CC      libbb/match_fstype.o
  CC      miscutils/time.o
  CC      miscutils/timeout.o
  CC      libbb/messages.o
  CC      libbb/mode_string.o
  CC      libbb/mtab.o
  CC      miscutils/ttysize.o
  CC      miscutils/ubi_attach_detach.o
  CC      miscutils/volname.o
  CC      networking/ping.o
  CC      libbb/obscure.o
  CC      libbb/parse_config.o
  CC      libbb/parse_mode.o
  CC      miscutils/wall.o
  CC      libbb/perror_msg.o
  CC      networking/pscan.o
  CC      networking/route.o
  LD      networking/udhcp/built-in.o
  CC      networking/udhcp/arpping.o
  CC      miscutils/watchdog.o
  CC      libbb/perror_nomsg.o
miscutils/watchdog.c: In function ‘watchdog_shutdown’:
miscutils/watchdog.c:24: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
miscutils/watchdog.c: In function ‘watchdog_main’:
miscutils/watchdog.c:93: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
networking/udhcp/arpping.c: In function ‘arpping’:
networking/udhcp/arpping.c:53: warning: format not a string literal and no format arguments
  CC      libbb/perror_nomsg_and_die.o
  CC      libbb/pidfile.o
  CC      networking/udhcp/common.o
  AR      miscutils/lib.a
  CC      networking/telnet.o
  CC      networking/telnetd.o
  CC      libbb/platform.o
  LD      printutils/built-in.o
  CC      printutils/lpr.o
networking/telnet.c: In function ‘iac_flush’:
networking/telnet.c:98: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
networking/telnet.c: In function ‘con_escape’:
networking/telnet.c:118: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
networking/telnet.c:149: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
printutils/lpr.c: In function ‘lpqr_main’:
printutils/lpr.c:233: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
  CC      networking/udhcp/dhcpc.o
  CC      libbb/print_flags.o
  CC      libbb/printable.o
  CC      networking/tftp.o
  AR      printutils/lib.a
  CC      libbb/printable_string.o
  CC      networking/udhcp/dhcpd.o
  CC      networking/udhcp/dhcprelay.o
  CC      libbb/process_escape_sequence.o
  CC      libbb/procps.o
  LD      procps/built-in.o
  CC      procps/free.o
  CC      networking/traceroute.o
  CC      networking/udhcp/domain_codec.o
  LD      runit/built-in.o
  CC      runit/chpst.o
networking/traceroute.c: In function ‘common_traceroute_main’:
networking/traceroute.c:838: warning: format not a string literal and no format arguments
  CC      procps/fuser.o
  CC      networking/udhcp/dumpleases.o
  CC      runit/runsv.o
  CC      libbb/progress.o
runit/runsv.c: In function ‘s_child’:
runit/runsv.c:133: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
runit/runsv.c: In function ‘s_term’:
runit/runsv.c:139: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
runit/runsv.c: In function ‘update_status’:
runit/runsv.c:176: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
runit/runsv.c:218: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
  CC      networking/udhcp/files.o
  CC      procps/iostat.o
  CC      libbb/ptr_to_globals.o
  CC      networking/tunctl.o
  CC      libbb/pw_encrypt.o
  CC      runit/runsvdir.o
  CC      networking/udhcp/leases.o
  CC      networking/vconfig.o
runit/runsvdir.c: In function ‘runsvdir_main’:
runit/runsvdir.c:337: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
  CC      networking/udhcp/packet.o
  CC      networking/wget.o
  CC      procps/kill.o
  CC      runit/sv.o
  CC      libbb/read.o
  CC      procps/mpstat.o
  CC      networking/udhcp/signalpipe.o
  CC      libbb/read_key.o
  CC      networking/udhcp/socket.o
  CC      libbb/read_printf.o
  CC      networking/zcip.o
  CC      runit/svlogd.o
  CC      networking/udhcp/static_leases.o
libbb/read_printf.c: In function ‘open_zipped’:
libbb/read_printf.c:345: warning: array subscript is above array bounds
libbb/read_printf.c:347: warning: array subscript is above array bounds
  CC      procps/nmeter.o
  CC      libbb/recursive_action.o
runit/svlogd.c: In function ‘svlogd_main’:
runit/svlogd.c:1153: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
runit/svlogd.c:1183: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
  AR      networking/udhcp/lib.a
  CC      libbb/remove_file.o
  AR      networking/lib.a
  CC      libbb/rtc.o
  LD      selinux/built-in.o
  LD      shell/built-in.o
  AR      selinux/lib.a
  CC      shell/ash.o
  CC      procps/pgrep.o
  CC      libbb/run_shell.o
  CC      libbb/safe_gethostname.o
shell/ash.c: In function ‘sprint_status’:
shell/ash.c:3885: warning: format not a string literal and no format arguments
  AR      runit/lib.a
  CC      libbb/safe_poll.o
  CC      procps/pidof.o
  CC      libbb/safe_strncpy.o
  CC      libbb/safe_write.o
  CC      procps/pmap.o
  CC      libbb/setup_environment.o
  LD      sysklogd/built-in.o
  CC      sysklogd/klogd.o
  CC      sysklogd/logread.o
  CC      libbb/signals.o
  CC      procps/powertop.o
sysklogd/logread.c: In function ‘error_exit’:
sysklogd/logread.c:51: warning: format not a string literal and no format arguments
  CC      procps/ps.o
  CC      sysklogd/syslogd_and_logger.o
  CC      libbb/simplify_path.o
In file included from sysklogd/syslogd_and_logger.c:46:
sysklogd/syslogd.c: In function ‘log_locally’:
sysklogd/syslogd.c:376: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result
  CC      libbb/single_argv.o
  CC      libbb/skip_whitespace.o
  CC      procps/renice.o
  CC      procps/smemcap.o
  CC      libbb/speed_table.o
  AR      sysklogd/lib.a
  CC      libbb/str_tolower.o
  CC      procps/sysctl.o
  CC      libbb/strrstr.o
  CC      libbb/time.o
  CC      shell/ash_ptr_hack.o
  LD      util-linux/built-in.o
  CC      util-linux/acpid.o
  CC      procps/top.o
  CC      util-linux/blkid.o
  CC      libbb/trim.o
procps/top.c: In function ‘display_header’:
procps/top.c:442: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
procps/top.c:444: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
procps/top.c:459: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
procps/top.c:468: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
procps/top.c:469: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
  CC      libbb/u_signal_names.o
  CC      shell/cttyhack.o
  CC      util-linux/blockdev.o
  CC      libbb/udp_io.o
  CC      util-linux/dmesg.o
  CC      util-linux/fbset.o
  CC      procps/uptime.o
  CC      libbb/unicode.o
  CC      libbb/update_passwd.o
  CC      procps/watch.o
libbb/update_passwd.c: In function ‘update_passwd’:
libbb/update_passwd.c:138: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result
  CC      shell/math.o
  CC      util-linux/fdformat.o
procps/watch.c: In function ‘watch_main’:
procps/watch.c:81: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result
  CC      libbb/utmp.o
  AR      procps/lib.a
  CC      util-linux/fdisk.o
  CC      libbb/uuencode.o
  LD      util-linux/volume_id/built-in.o
  CC      util-linux/volume_id/btrfs.o
  CC      util-linux/findfs.o
  CC      shell/shell_common.o
  CC      libbb/vdprintf.o
  CC      libbb/verror_msg.o
  CC      util-linux/volume_id/cramfs.o
  CC      util-linux/volume_id/ext.o
  CC      libbb/vfork_daemon_rexec.o
  AR      shell/lib.a
  CC      libbb/warn_ignoring_args.o
  CC      libbb/wfopen.o
libbb/wfopen.c: In function ‘xfdopen_helper’:
libbb/wfopen.c:46: warning: format not a string literal and no format arguments
  CC      util-linux/volume_id/fat.o
  CC      libbb/wfopen_input.o
  CC      util-linux/volume_id/get_devname.o
  CC      libbb/write.o
  CC      libbb/xatonum.o
  CC      libbb/xconnect.o
  CC      util-linux/volume_id/hfs.o
  CC      util-linux/volume_id/iso9660.o
  CC      util-linux/volume_id/jfs.o
  CC      libbb/xfunc_die.o
  CC      util-linux/flock.o
  CC      util-linux/freeramdisk.o
  CC      util-linux/volume_id/linux_raid.o
  CC      libbb/xfuncs.o
  CC      libbb/xfuncs_printf.o
  CC      util-linux/volume_id/linux_swap.o
  CC      util-linux/fsck_minix.o
libbb/xfuncs_printf.c: In function ‘malloc_or_warn’:
libbb/xfuncs_printf.c:40: warning: format not a string literal and no format arguments
libbb/xfuncs_printf.c: In function ‘xmalloc’:
libbb/xfuncs_printf.c:49: warning: format not a string literal and no format arguments
libbb/xfuncs_printf.c: In function ‘xrealloc’:
libbb/xfuncs_printf.c:60: warning: format not a string literal and no format arguments
libbb/xfuncs_printf.c: In function ‘xstrdup’:
libbb/xfuncs_printf.c:84: warning: format not a string literal and no format arguments
libbb/xfuncs_printf.c: In function ‘xasprintf’:
libbb/xfuncs_printf.c:302: warning: format not a string literal and no format arguments
libbb/xfuncs_printf.c: In function ‘xsetenv’:
libbb/xfuncs_printf.c:309: warning: format not a string literal and no format arguments
libbb/xfuncs_printf.c: In function ‘generate_uuid’:
libbb/xfuncs_printf.c:592: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result
  CC      util-linux/volume_id/luks.o
  CC      libbb/xgetcwd.o
util-linux/fsck_minix.c: In function ‘get_dirsize’:
util-linux/fsck_minix.c:596: warning: array subscript is above array bounds
  CC      util-linux/volume_id/ntfs.o
  CC      util-linux/volume_id/ocfs2.o
util-linux/fsck_minix.c: In function ‘recursive_check2’:
util-linux/fsck_minix.c:1013: warning: array subscript is above array bounds
  CC      libbb/xgethostbyname.o
util-linux/fsck_minix.c: In function ‘recursive_check’:
util-linux/fsck_minix.c:963: warning: array subscript is above array bounds
  CC      libbb/xreadlink.o
  CC      util-linux/volume_id/reiserfs.o
  CC      util-linux/getopt.o
  CC      libbb/xrealloc_vector.o
  CC      util-linux/volume_id/romfs.o
  CC      libbb/xregcomp.o
util-linux/getopt.c: In function ‘getopt_main’:
util-linux/getopt.c:259: warning: array subscript is above array bounds
  CC      util-linux/volume_id/sysv.o
  CC      util-linux/hexdump.o
  CC      util-linux/volume_id/udf.o
  AR      libbb/lib.a
  CC      util-linux/volume_id/util.o
  CC      util-linux/hwclock.o
  CC      util-linux/volume_id/volume_id.o
  CC      util-linux/ipcrm.o
  CC      util-linux/volume_id/xfs.o
  CC      util-linux/ipcs.o
  CC      util-linux/losetup.o
  CC      util-linux/lspci.o
  CC      util-linux/lsusb.o
  AR      util-linux/volume_id/lib.a
  CC      util-linux/mdev.o
  CC      util-linux/mkfs_ext2.o
  CC      util-linux/mkfs_minix.o
util-linux/mdev.c: In function ‘make_device’:
util-linux/mdev.c:359: warning: ignoring return value of ‘symlink’, declared with attribute warn_unused_result
util-linux/mdev.c:362: warning: ignoring return value of ‘chown’, declared with attribute warn_unused_result
util-linux/mdev.c:366: warning: ignoring return value of ‘symlink’, declared with attribute warn_unused_result
  CC      util-linux/mkfs_reiser.o
  CC      util-linux/mkfs_vfat.o
util-linux/mkfs_minix.c: In function ‘get_list_blocks’:
util-linux/mkfs_minix.c:546: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
util-linux/mdev.c: In function ‘mdev_main’:
util-linux/mdev.c:518: warning: array subscript is above array bounds
  CC      util-linux/mkswap.o
  CC      util-linux/more.o
  CC      util-linux/mount.o
  CC      util-linux/pivot_root.o
  CC      util-linux/rdate.o
  CC      util-linux/rdev.o
util-linux/mount.c: In function ‘mount_it_now’:
util-linux/mount.c:487: warning: format not a string literal and no format arguments
util-linux/mount.c: In function ‘singlemount’:
util-linux/mount.c:1692: warning: format not a string literal and no format arguments
util-linux/mount.c: In function ‘mount_main’:
util-linux/mount.c:1876: warning: format not a string literal and no format arguments
util-linux/mount.c:1893: warning: format not a string literal and no format arguments
  CC      util-linux/readprofile.o
util-linux/mount.c:1956: warning: format not a string literal and no format arguments
util-linux/mount.c:2036: warning: format not a string literal and no format arguments
  CC      util-linux/rev.o
  CC      util-linux/rtcwake.o
  CC      util-linux/script.o
util-linux/mount.c: In function ‘nfsmount’:
util-linux/mount.c:1214: warning: array subscript is above array bounds
util-linux/rtcwake.c: In function ‘rtcwake_main’:
util-linux/rtcwake.c:157: warning: array subscript is above array bounds
util-linux/rtcwake.c:182: warning: array subscript is above array bounds
  CC      util-linux/scriptreplay.o
  CC      util-linux/setarch.o
  CC      util-linux/swaponoff.o
  CC      util-linux/switch_root.o
  CC      util-linux/umount.o
  AR      util-linux/lib.a
  LINK    busybox_unstripped
Trying libraries: crypt m
Failed: -Wl,--start-group -lcrypt -lm -Wl,--end-group
Output of:
x86_64-pc-linux-gnu-gcc -march=core2 -mtune=generic -mmmx -msse -msse2 -msse3 -mssse3 -msse4 -mcx16 -msahf -mfpmath=sse -O2 -fomit-frame-pointer -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -static-libgcc -static -Wl,-O1 -Wl,--as-needed -o busybox_unstripped -Wl,--sort-common -Wl,--sort-section,alignment -Wl,--start-group applets/built-in.o archival/lib.a archival/libarchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a archival/built-in.o archival/libarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o mailutils/built-in.o miscutils/built-in.o modutils/built-in.o networking/built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in.o sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm -Wl,--end-group
==========
networking/lib.a(nslookup.o): In function `print_host':
nslookup.c:(.text.print_host+0x3e): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_rresolve':
inet_common.c:(.text.INET_rresolve+0xe5): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
util-linux/lib.a(mount.o): In function `nfsmount':
mount.c:(.text.nfsmount+0xc2): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_rresolve':
inet_common.c:(.text.INET_rresolve+0x162): warning: Using 'getnetbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_resolve':
inet_common.c:(.text.INET_resolve+0xd0): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(xconnect.o): In function `bb_lookup_port':
xconnect.c:(.text.bb_lookup_port+0x48): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
networking/lib.a(netstat.o): In function `ip_port_str':
netstat.c:(.text.ip_port_str+0x37): warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/../../../../lib64/libc.a(memmove_chk.o): In function `__memmove_chk':
(.text+0x24): undefined reference to `__memmove_chk_ssse3'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/../../../../lib64/libc.a(memmove_chk.o): In function `__memmove_chk':
(.text+0x29): undefined reference to `__memmove_chk_ssse3_back'
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1
emake failed
* ERROR: sys-apps/busybox-1.18.1 failed (compile phase):
*   build failed
*
* Call stack:
*     ebuild.sh, line  56:  Called src_compile
*   environment, line 2813:  Called die
* The specific snippet of code:
*       emake busybox || die "build failed";
*
* If you need support, post the output of 'emerge --info =sys-apps/busybox-1.18.1',
* the complete build log and the output of 'emerge -pqv =sys-apps/busybox-1.18.1'.
* The complete build log is located at '/tmp/portage/sys-apps/busybox-1.18.1/temp/build.log'.
* The ebuild environment file is located at '/tmp/portage/sys-apps/busybox-1.18.1/temp/environment'.
* S: '/tmp/portage/sys-apps/busybox-1.18.1/work/busybox-1.18.1'

Йа тьомный эльф

2

bobr пишет:

warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

По-моему, жалуется на то, что версия glibc не соответствует используемой при линковке.
Опять же, IMHO, у вас часть приложений осталась собранной со старой версией glibc.

Был, был и весь вышел...

3

В таком случае, мне необходимо пересобрать все зависимостьи бизибокса с новой глибси, и как я понимаю, должно заработать.
А разве у glibc минорные версии не ABI-совместимы?

Йа тьомный эльф

4

bobr пишет:

В таком случае, мне необходимо пересобрать все зависимостьи бизибокса с новой глибси, и как я понимаю, должно заработать.
А разве у glibc минорные версии не ABI-совместимы?

Я не утверждал, для этого у меня не хватает знаний, просто высказал предположение.
Опять же, я не знаю, с какой на какую версию glibc вы перешли.
Да и, вообще, при обновлении пакетов из toolchain'а (особенно, если меняется второе число в версии) рекомендуется полностью пересобирать всю систему.
P.S. На багзилле встречаются люди с проблемами, подобными вашей, правда, решения я там не видел  ac

Был, был и весь вышел...

5

Так или иначе, спасибо. Сегодня вечером попробую пересобрать хотябы @system и зависимости busybox . По результату отпишусь.
По поводу glibc я и сам не могу сказать с какой версии я обновился, так как это было уже достаточно давно, но точно по последней цифре, иначе я бы конечно пересобрал мир.

Йа тьомный эльф

6

Пересборкой всего и вся проблема не решилась. Но решение я все же нашел: необходимо было включить флаг `savedconfig'. Уж не знаю, как это связано, но я дважды пероверил, `- savedconfig -scatic' и `savedconfig static'  собирается, а `-savedconfig static' уже нивкакую. Может в багзиллу запостить?

Йа тьомный эльф

7

bobr пишет:

Может в багзиллу запостить?

А почему бы и нет?

Был, был и весь вышел...

8

Запостил.

Йа тьомный эльф

9

bobr пишет:

Запостил.

Дупликейтед, однако.

Йа тьомный эльф

10

bobr пишет:

Дупликейтед, однако.

Что-то я не увидел в предыдущих дублях вменяемого решения. Так что, IMHO, всё сделано правильно.

Был, был и весь вышел...