Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I’m currently following the instructions in chapter 6, finished the build of Glibc successfully, and moved on to Zlib. Went past the configure and make stages smoothly enough, but testing it failed and gave me the following error -
(lfs chroot) root:/sources/zlib-1.2.11# make check
/bin/sh: line 1: ./minigzip: No such file or directory
/bin/sh: line 1: ./minigzip: No such file or directory
*** zlib test FAILED ***
/bin/sh: line 5: ./minigzipsh: No such file or directory
/bin/sh: line 5: ./minigzipsh: No such file or directory
*** zlib shared test FAILED ***
/bin/sh: line 1: ./minigzip64: No such file or directory
/bin/sh: line 1: ./minigzip64: No such file or directory
*** zlib 64-bit test FAILED ***
Configure log -
--------------------
./configure --prefix=/usr
Tue Mar 27 11:47:26 UTC 2018
Checking for gcc...
=== ztest3454.c ===
extern int getchar();
int hello() {return getchar();}
===
gcc -c ztest3454.c
... using gcc
Checking for obsessive-compulsive compiler options...
=== ztest3454.c ===
int foo() { return 0; }
===
gcc -c -O3 ztest3454.c
Checking for shared library support...
=== ztest3454.c ===
extern int getchar();
int hello() {return getchar();}
===
gcc -w -c -O3 -fPIC ztest3454.c
gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O3 -fPIC -o ztest3454.so ztest3454.o
Building shared library libz.so.1.2.11 with gcc.
Could somebody please help me even UNDERSTAND this error in the first place? I checked the directory of Zlib, and the miningzip scripts are present and I can’t see any directories with the names. Where is the problem, actually? Did the make fail to generate those directories? Please do help me as soon as possible, when convenient. Thank you.
REMOVE " -------------------------- " from the log
Quote:
Originally Posted by vishhvak
Hi,
I’m currently following the instructions in chapter 6, finished the build of Glibc successfully, and moved on to Zlib. Went past the configure and make stages smoothly enough, but testing it failed and gave me the following error -
(lfs chroot) root:/sources/zlib-1.2.11# make check
/bin/sh: line 1: ./minigzip: No such file or directory
/bin/sh: line 1: ./minigzip: No such file or directory
*** zlib test FAILED ***
/bin/sh: line 5: ./minigzipsh: No such file or directory
/bin/sh: line 5: ./minigzipsh: No such file or directory
*** zlib shared test FAILED ***
/bin/sh: line 1: ./minigzip64: No such file or directory
/bin/sh: line 1: ./minigzip64: No such file or directory
*** zlib 64-bit test FAILED ***
Configure log -
--------------------
./configure --prefix=/usr
Tue Mar 27 11:47:26 UTC 2018
Checking for gcc...
=== ztest3454.c ===
extern int getchar();
int hello() {return getchar();}
===
gcc -c ztest3454.c
... using gcc
Checking for obsessive-compulsive compiler options...
=== ztest3454.c ===
int foo() { return 0; }
===
gcc -c -O3 ztest3454.c
Checking for shared library support...
=== ztest3454.c ===
extern int getchar();
int hello() {return getchar();}
===
gcc -w -c -O3 -fPIC ztest3454.c
gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O3 -fPIC -o ztest3454.so ztest3454.o
Building shared library libz.so.1.2.11 with gcc.
Could somebody please help me even UNDERSTAND this error in the first place? I checked the directory of Zlib, and the miningzip scripts are present and I can’t see any directories with the names. Where is the problem, actually? Did the make fail to generate those directories? Please do help me as soon as possible, when convenient. Thank you.
i CAN'T FIND
Last edited by faziowork; 11-11-2018 at 06:58 AM.
Reason: Wrong
If you check the zlib directory you will find these files. They are created by make. But in your case they are not being executed. Either you have mounted your new partition with the noexec option (which is the default for user-mountable discs) or something is wrong with your chroot command, or with your dynamic filesystems. Exit chroot and check all these before continuing.
If you check the zlib directory you will find these files. They are created by make. But in your case they are not being executed. Either you have mounted your new partition with the noexec option (which is the default for user-mountable discs) or something is wrong with your chroot command, or with your dynamic filesystems. Exit chroot and check all these before continuing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.