LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 03-27-2018, 09:58 AM   #1
vishhvak
LQ Newbie
 
Registered: Mar 2018
Posts: 2

Rep: Reputation: Disabled
Unhappy Zlib 1.2.11 Make Check Fails (LFS 8.2, Chapter 6, Section 6.11)


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.

=== ztest3454.c ===
#include <stdio.h>
#include <stdlib.h>
size_t dummy = 0;
===
gcc -c -O3 ztest3454.c
Checking for size_t... Yes.


=== ztest3454.c ===
#include <sys/types.h>
off64_t dummy = 0;
===
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3454.c
Checking for off64_t... Yes.
Checking for fseeko... Yes.

=== ztest3454.c ===
#include <string.h>
#include <errno.h>
int main() { return strlen(strerror(errno)); }
===
gcc -O3 -D_LARGEFILE64_SOURCE=1 -o ztest3454 ztest3454.c
Checking for strerror... Yes.

=== ztest3454.c ===
#include <unistd.h>
int main() { return 0; }
===
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3454.c
Checking for unistd.h... Yes.

=== ztest3454.c ===
#include <stdarg.h>
int main() { return 0; }
===
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3454.c
Checking for stdarg.h... Yes.

=== ztest3454.c ===
#include <stdio.h>
#include <stdarg.h>
#include "zconf.h"
int main()
{
#ifndef STDC
choke me
#endif
return 0;
}
===
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3454.c
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().

=== ztest3454.c ===
#include <stdio.h>
#include <stdarg.h>
int mytest(const char *fmt, ...)
{
char buf[20];
va_list ap;
va_start(ap, fmt);
vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
return 0;
}
int main()
{
return (mytest("Hello%d\n", 1));
}
===
gcc -O3 -D_LARGEFILE64_SOURCE=1 -o ztest3454 ztest3454.c
Checking for vsnprintf() in stdio.h... Yes.

=== ztest3454.c ===
#include <stdio.h>
#include <stdarg.h>
int mytest(const char *fmt, ...)
{
int n;
char buf[20];
va_list ap;
va_start(ap, fmt);
n = vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
return n;
}
int main()
{
return (mytest("Hello%d\n", 1));
}
===
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3454.c
Checking for return value of vsnprintf()... Yes.

=== ztest3454.c ===
#define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
int ZLIB_INTERNAL foo;
int main()
{
return 0;
}
===
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3454.c
Checking for attribute(visibility) support... Yes.

ALL = static shared all64
AR = ar
ARFLAGS = rc
CC = gcc
CFLAGS = -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN
CPP = gcc -E
EXE =
LDCONFIG = ldconfig
LDFLAGS =
LDSHARED = gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map
LDSHAREDLIBC = -lc
OBJC = $(OBJZ) $(OBJG)
PIC_OBJC = $(PIC_OBJZ) $(PIC_OBJG)
RANLIB = ranlib
SFLAGS = -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN
SHAREDLIB = libz.so
SHAREDLIBM = libz.so.1
SHAREDLIBV = libz.so.1.2.11
STATICLIB = libz.a
TEST = all teststatic testshared test64
VER = 1.2.11
Z_U4 =
SRCDIR =
exec_prefix = ${prefix}
includedir = ${prefix}/include
libdir = ${exec_prefix}/lib
mandir = ${prefix}/share/man
prefix = /usr
sharedlibdir = ${libdir}
uname = Linux
--------------------

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.

Last edited by vishhvak; 03-27-2018 at 10:01 AM.
 
Old 03-30-2018, 07:18 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,153

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Please use code tags in your post it makes it MUCH easier to read
 
Old 11-11-2018, 06:36 AM   #3
faziowork
LQ Newbie
 
Registered: Nov 2018
Posts: 2

Rep: Reputation: Disabled
Smile REMOVE " -------------------------- " from the log

Quote:
Originally Posted by vishhvak View Post
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.

=== ztest3454.c ===
#include <stdio.h>
#include <stdlib.h>
size_t dummy = 0;
===
gcc -c -O3 ztest3454.c
Checking for size_t... Yes.


=== ztest3454.c ===
#include <sys/types.h>
off64_t dummy = 0;
===
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3454.c
Checking for off64_t... Yes.
Checking for fseeko... Yes.

=== ztest3454.c ===
#include <string.h>
#include <errno.h>
int main() { return strlen(strerror(errno)); }
===
gcc -O3 -D_LARGEFILE64_SOURCE=1 -o ztest3454 ztest3454.c
Checking for strerror... Yes.

=== ztest3454.c ===
#include <unistd.h>
int main() { return 0; }
===
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3454.c
Checking for unistd.h... Yes.

=== ztest3454.c ===
#include <stdarg.h>
int main() { return 0; }
===
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3454.c
Checking for stdarg.h... Yes.

=== ztest3454.c ===
#include <stdio.h>
#include <stdarg.h>
#include "zconf.h"
int main()
{
#ifndef STDC
choke me
#endif
return 0;
}
===
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3454.c
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().

=== ztest3454.c ===
#include <stdio.h>
#include <stdarg.h>
int mytest(const char *fmt, ...)
{
char buf[20];
va_list ap;
va_start(ap, fmt);
vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
return 0;
}
int main()
{
return (mytest("Hello%d\n", 1));
}
===
gcc -O3 -D_LARGEFILE64_SOURCE=1 -o ztest3454 ztest3454.c
Checking for vsnprintf() in stdio.h... Yes.

=== ztest3454.c ===
#include <stdio.h>
#include <stdarg.h>
int mytest(const char *fmt, ...)
{
int n;
char buf[20];
va_list ap;
va_start(ap, fmt);
n = vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
return n;
}
int main()
{
return (mytest("Hello%d\n", 1));
}
===
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3454.c
Checking for return value of vsnprintf()... Yes.

=== ztest3454.c ===
#define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
int ZLIB_INTERNAL foo;
int main()
{
return 0;
}
===
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3454.c
Checking for attribute(visibility) support... Yes.

ALL = static shared all64
AR = ar
ARFLAGS = rc
CC = gcc
CFLAGS = -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN
CPP = gcc -E
EXE =
LDCONFIG = ldconfig
LDFLAGS =
LDSHARED = gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map
LDSHAREDLIBC = -lc
OBJC = $(OBJZ) $(OBJG)
PIC_OBJC = $(PIC_OBJZ) $(PIC_OBJG)
RANLIB = ranlib
SFLAGS = -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN
SHAREDLIB = libz.so
SHAREDLIBM = libz.so.1
SHAREDLIBV = libz.so.1.2.11
STATICLIB = libz.a
TEST = all teststatic testshared test64
VER = 1.2.11
Z_U4 =
SRCDIR =
exec_prefix = ${prefix}
includedir = ${prefix}/include
libdir = ${exec_prefix}/lib
mandir = ${prefix}/share/man
prefix = /usr
sharedlibdir = ${libdir}
uname = Linux
--------------------

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
 
Old 11-11-2018, 09:43 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,614
Blog Entries: 19

Rep: Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460
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.
 
Old 11-12-2018, 04:46 PM   #5
faziowork
LQ Newbie
 
Registered: Nov 2018
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
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.

***********************************************************
'SOLVED'
***********************************************************

Last edited by faziowork; 11-14-2018 at 05:50 AM. Reason: FIXED
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LFS 7.10 Section 6.44 Automake-1.15 make check gives 3 failures dlb101010 Linux From Scratch 2 12-20-2016 01:00 PM
[SOLVED] [LFS 7.4 r.c.] Chapter 6 : GCC Sanity Check Fails DeeGee Linux From Scratch 2 09-26-2013 01:09 AM
[SOLVED] LFS 7.2 - Chapter 6.7 - make headers_check fails anjohn Linux From Scratch 16 09-16-2013 11:45 AM
[SOLVED] LFS 6.7 Chapter 6.16 GCC-4.5.1 make fails ianll Linux From Scratch 14 08-12-2012 12:27 AM
[SOLVED] LFS 6.7 Chapter 6.59 Udev-161 make check fails ianll Linux From Scratch 3 02-12-2011 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration