LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-02-2015, 12:36 PM   #1
michanux
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Rep: Reputation: Disabled
libz.so.1 is missing


Hello
from debian root I "chroot" to LFS root.



"make INSTALL_HDR_PATH=dest headers_install"
breaks with the following message:
Code:
  CHK     include/generated/uapi/linux/version.h
/bin/sh: cmp: command not found
  UPD     include/generated/uapi/linux/version.h
  HOSTCC  scripts/basic/fixdep
gcc: error trying to exec 'as': execvp: No such file or directory
scripts/Makefile.host:118: recipe for target 'scripts/basic/fixdep' failed
make[1]: *** [scripts/basic/fixdep] Error 1
Makefile:454: recipe for target 'scripts_basic' failed
make: *** [scripts_basic] Error 2
"as" is present at "/tools/bin/as" but not executable. So I inspected its libraries. "libz.so.1" is missing.
In which step this should be installed ?
 
Old 03-02-2015, 08:16 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Chapter? Host? Other information?
 
Old 03-02-2015, 08:54 PM   #3
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
libz.so.1 is part of zlib package.
 
Old 03-03-2015, 07:42 AM   #4
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
Interesting, your as file (from binutils pass 2 I guess) is linked against libz.so.1 frm the zlib package.
However, in your temporary build system you do not have zlib installed.
Does this mean that you linked binutils to your base system instead of to the temporary tools?

Also: always start with the first error which is that cmp is missing.
It should have been provided by diffutils.
 
Old 03-03-2015, 02:07 PM   #5
michanux
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
Chapter? Host? Other information?
I am on this page
http://www.linuxfromscratch.org/lfs/...x-headers.html

Quote:
Does this mean that you linked binutils to your base system instead of to the temporary tools?
The system is linked to the temporary tools. Linking to wheezy all things run well.

Or did I misunderstanding the chapter about "paket management".
http://www.linuxfromscratch.org/lfs/...06/pkgmgt.html
Thought this has to influence in building the system ?
 
Old 03-04-2015, 03:53 AM   #6
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
The packet management only starts to play a role from chapter 6 onwards.
The problem seems to be the linking of your as command.
Can you check for the other binutils (in the /tools directory) programs whether they are linked to the right libraries using ldd?
This needs to be done when you are in the /tools chroot.
A list of files is found at http://www.linuxfromscratch.org/lfs/...tents-binutils

If there is a problem with the libraries, I would recommend rebuilding binutils pass 2 and hoping this keeps the rest intact.

Good luck
 
1 members found this post helpful.
Old 03-06-2015, 09:37 AM   #7
michanux
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hoes View Post
If there is a problem with the libraries, I would recommend rebuilding binutils pass 2 and hoping this keeps the rest intact.
This was a good advice. Thank you.
 
  


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] libz.so.1 download funboy Slackware 10 07-27-2013 08:49 AM
libz can't be found vbraun Linux - Software 9 06-20-2005 10:06 AM
libz for guarddog linuxfond Linux - Newbie 0 03-06-2003 03:50 PM
Which libz...? t1mc00per Linux - General 3 02-13-2003 06:51 AM
Libz RhettDewey Linux - Software 1 03-12-2002 05:53 AM

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

All times are GMT -5. The time now is 07:47 AM.

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