ivandavidov / ivandavidov/minimal-linux-script

Fails to build

Open
#18 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
249
Forks
73
PR merge metrics
No merged PRs in 30d

Description

Building is giving me this error from sccript lline 12>

-------------------------------------
+ mkdir isoimage
+ cd busybox-1.30.1
+ make distclean defconfig
make[1]: *** No rule to make target '/file/projects/minimal/minimal-linux-script-master/busybox-1.30.1/Makefile.local'. Stop.
make[1]: Nothing to be done for '/file/projects/minimal/minimal-linux-script-master/busybox-1.30.1/Makefile.custom'.
make[1]: Nothing to be done for '/file/projects/minimal/minimal-linux-script-master/busybox-1.30.1/scripts/Kbuild.include'.
make[1]: Nothing to be done for 'Makefile'.
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
scripts/basic/split-include.c: In function ‘main’:
scripts/basic/split-include.c:134:6: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(old_line, buffer_size, fp_target);
^
HOSTCC scripts/basic/docproc
GEN include/applets.h
GEN include/usage.h
GEN sysklogd/Kbuild
GEN sysklogd/Config.in
GEN klibc-utils/Kbuild
GEN klibc-utils/Config.in
GEN libpwdgrp/Kbuild
GEN shell/Kbuild
GEN shell/Config.in
GEN libbb/Kbuild
GEN libbb/Config.in
GEN e2fsprogs/Kbuild
GEN e2fsprogs/Config.in
GEN util-linux/Kbuild
GEN util-linux/Config.in
GEN util-linux/volume_id/Kbuild
GEN util-linux/volume_id/Config.in
GEN init/Kbuild
GEN init/Config.in
GEN coreutils/Kbuild
GEN coreutils/Config.in
GEN coreutils/libcoreutils/Kbuild
GEN mailutils/Kbuild
GEN mailutils/Config.in
GEN procps/Kbuild
GEN procps/Config.in
GEN selinux/Kbuild
GEN selinux/Config.in
GEN printutils/Kbuild
GEN printutils/Config.in
GEN debianutils/Kbuild
GEN debianutils/Config.in
GEN applets/Kbuild
GEN archival/Kbuild
GEN archival/Config.in
GEN archival/libarchive/Kbuild
GEN console-tools/Kbuild
GEN console-tools/Config.in
GEN loginutils/Kbuild
GEN loginutils/Config.in
GEN editors/Kbuild
GEN editors/Config.in
GEN modutils/Kbuild
GEN modutils/Config.in
GEN findutils/Kbuild
GEN findutils/Config.in
GEN runit/Kbuild
GEN runit/Config.in
GEN miscutils/Kbuild
GEN miscutils/Config.in
GEN networking/Kbuild
GEN networking/Config.in
GEN networking/udhcp/Kbuild
GEN networking/udhcp/Config.in
GEN networking/libiproute/Kbuild
GEN scripts/Kbuild
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:145:3: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, 128, stdin);
^
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:393:4: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, 128, stdin);
^
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/mconf.o
scripts/kconfig/mconf.c: In function ‘exec_conf’:
scripts/kconfig/mconf.c:503:18: error: ‘EINTR’ undeclared (first use in this function)
if (errno == EINTR || errno == EAGAIN)
^
scripts/kconfig/mconf.c:503:18: note: each undeclared identifier is reported only once for each function it appears in
scripts/kconfig/mconf.c:503:36: error: ‘EAGAIN’ undeclared (first use in this function)
if (errno == EINTR || errno == EAGAIN)
^
scripts/kconfig/mconf.c: In function ‘show_textbox’:
scripts/kconfig/mconf.c:851:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(fd, text, strlen(text));
^
scripts/kconfig/mconf.c: In function ‘exec_conf’:
scripts/kconfig/mconf.c:485:2: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result]
pipe(pipefd);
^
scripts/Makefile.host:120: recipe for target 'scripts/kconfig/mconf.o' failed
make[2]: *** [scripts/kconfig/mconf.o] Error 1
Makefile:443: recipe for target 'defconfig' failed
make[1]: *** [defconfig] Error 2
Makefile:423: recipe for target 'defconfig' failed
make: *** [defconfig] Error 2
#
-----------------------

Any ideas? I was planning on a toybox instead of busybox version, but that won't pass this problem either.

thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the build commands in the script around line 12 and reproduce `make distclean defconfig` in `busybox-1.30.1`. Read the reported failures in `scripts/kconfig/mconf.c` and the surrounding Makefile targets. Done means the project’s documented build proceeds past `defconfig` without the reported errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux, shell
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.