LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-28-2018, 08:42 AM   #31
maxlndn
LQ Newbie
 
Registered: Sep 2018
Posts: 14

Rep: Reputation: Disabled

Also, when chrooted, I look at the binaries in /tools/bin :
There is neither awk nor gawk.
Aren't they (one or the other) supposed to be present here ? Given the installation in the first pass (Chapter 5) ?
Thanks.
 
Old 09-28-2018, 08:56 AM   #32
sr_ls_boy
Member
 
Registered: Apr 2015
Posts: 105

Rep: Reputation: Disabled
I apologize in post 23 & 30 I referred to /tmp.
That's a mistake on my part. I should have typed
/tools.

I you don't have gawk in /tools/bin then you don't
have it at all. You'll need it.
 
Old 09-28-2018, 09:01 AM   #33
sr_ls_boy
Member
 
Registered: Apr 2015
Posts: 105

Rep: Reputation: Disabled
Quote:
I also tried to install it as said in 5.23 with --prefix=/tmp
That won't work since the host /tmp won't be visible in your chroot jail.
Try --prefix/usr in your chroot jail.
 
Old 09-28-2018, 10:12 AM   #34
maxlndn
LQ Newbie
 
Registered: Sep 2018
Posts: 14

Rep: Reputation: Disabled
Thanks for your answers.

Well I tried manually copying both gawk and awk in the /tools/bin directory (while being root, not in chroot env) and;

- Gawk is found but the version is not recognized. The same error then appears
- Awk is detected, but the error is now; /tools/bin/awk: no such file or directory.

I also tried reinstalling gawk as in the 5.3 section (logged as lfs user), but it still doesnt appear in the tools binaries.
I don't understand, because I followed the steps carefully.

Should these be in the /tools/bin directory after install ?

Thanks again
 
Old 09-28-2018, 10:18 AM   #35
maxlndn
LQ Newbie
 
Registered: Sep 2018
Posts: 14

Rep: Reputation: Disabled
If that can help, here is the output from the make check command in the installation of Gawk (section 5.23):

gawk is not compiled to support the array debug tests
======== Done with gawk extension tests ========
======== Starting machine-specific tests ========
double1
double2
fmtspcl
intformat
======== Done with machine-specific tests ========
%%%%%%%%%% Inadequate locale support: skipping charset tests.
%%%%%%%%%% At least en_US.UTF-8, fr_FR.UTF-8, ru_RU.UTF-8 and ja_JP.UTF-8 are needed.
======== Starting shared library tests ========
make[2]: Entering directory '/mnt/lfs/sources/gawk-4.2.1/test'
apiterm
filefuncs
fnmatch
fork
fork2
fts
functab4
getfile
inplace1
inplace2
inplace3
ordchr
ordchr2
readdir
readdir_test
readfile
readfile2
revout
revtwoway
rwarray
testext
time

make[2]: Leaving directory '/mnt/lfs/sources/gawk-4.2.1/test'
======== Done with shared library tests ========
======== Starting MPFR tests ========
MPFR tests not supported on this system
======== Done with MPFR tests ========
make[2]: Entering directory '/mnt/lfs/sources/gawk-4.2.1/test'
2 TESTS FAILED
make[2]: *** [Makefile:4646: pass-fail] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/gawk-4.2.1/test'
make[2]: Entering directory '/mnt/lfs/sources/gawk-4.2.1/test'
for i in _* ; \
do \
if [ "$i" != "_*" ]; then \
echo ============== $i ============= ; \
base=`echo $i | sed 's/^_//'` ; \
if [ -r ${base}.ok ]; then \
diff -c ${base}.ok $i ; \
else \
diff -c "."/${base}.ok $i ; \
fi ; \
fi ; \
done | more
============== _mbstr1 =============
*** mbstr1.ok Thu Dec 14 17:53:45 2017
--- _mbstr1 Fri Sep 28 15:16:23 2018
***************
*** 1,3 ****
- gawk: mbstr1.awk:2: warning: Invalid multibyte data detected. There may be a mismatch between your data and your locale.
4
1
--- 1,2 ----
============== _mbstr2 =============
*** mbstr2.ok Thu Dec 14 17:53:45 2017
--- _mbstr2 Fri Sep 28 15:16:23 2018
***************
*** 1,5 ****
2007
- gawk: mbstr2.awk:1: (FILENAME=- FNR=2) warning: Invalid multibyte data detected. There may be a mismatch between your data and your locale.
2007
2007
2007
--- 1,4 ----
make[2]: Leaving directory '/mnt/lfs/sources/gawk-4.2.1/test'
make[1]: *** [Makefile:1819: check] Error 1
make[1]: Leaving directory '/mnt/lfs/sources/gawk-4.2.1/test'
make: *** [Makefile:725: check-recursive] Error 1
 
Old 09-28-2018, 10:24 AM   #36
maxlndn
LQ Newbie
 
Registered: Sep 2018
Posts: 14

Rep: Reputation: Disabled
As well, I changed the permissions back to what they were before the "chown root:root $LFS/tools"
But I end up getting this error while issuing "make install":

lfs@desktop-mkc5ii4:/mnt/lfs/sources/gawk-4.2.1$ make install
Making install in support
make[1]: Entering directory '/mnt/lfs/sources/gawk-4.2.1/support'
make[2]: Entering directory '/mnt/lfs/sources/gawk-4.2.1/support'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/mnt/lfs/sources/gawk-4.2.1/support'
make[1]: Leaving directory '/mnt/lfs/sources/gawk-4.2.1/support'
Making install in .
make[1]: Entering directory '/mnt/lfs/sources/gawk-4.2.1'
make[2]: Entering directory '/mnt/lfs/sources/gawk-4.2.1'
/tools/bin/mkdir -p '/tools/bin'
./install-sh -c gawk '/tools/bin'
cp: cannot create regular file '/tools/bin/_inst.11639_': Permission denied
make[2]: *** [Makefile:604: install-binPROGRAMS] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/gawk-4.2.1'
make[1]: *** [Makefile:1028: install-am] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gawk-4.2.1'
make: *** [Makefile:725: install-recursive] Error 1
 
Old 09-28-2018, 10:33 AM   #37
maxlndn
LQ Newbie
 
Registered: Sep 2018
Posts: 14

Rep: Reputation: Disabled
A last thing I tried: I installed gawk as in step 5.23 but while logged as root.
No it appears in the /tools/bin directory, but in the glibc configuration process I get this error output:

checking for gawk... gawk
checking version of gawk... v. ?.??, bad
checking for bison... bison
checking version of bison... 3.0.5, ok
checking if gcc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include -isystem /usr/include is sufficient to build libc... yes
checking for nm... nm
checking for python3... no
checking for python... no
configure: error:
*** These critical programs are missing or too old: gawk
*** Check the INSTALL file for required versions.


This error is actually the same as when I manually copy the gawk binary from my /usr/bin directory to the /tools/bin directory.
 
Old 09-28-2018, 12:16 PM   #38
sr_ls_boy
Member
 
Registered: Apr 2015
Posts: 105

Rep: Reputation: Disabled
Quote:
Originally Posted by maxlndn View Post
I also tried reinstalling gawk as in the 5.3 section (logged as lfs user), but it still doesnt appear in the tools binaries.
I don't understand, because I followed the steps carefully.

Should these be in the /tools/bin directory after install ?

Thanks again
Something is wrong. You'll have to figure out where things are going if you want to fix this.
I would check your build environment against chapter 04. Just where exactly does /tools point
at? Try 'readlink /tools'. It should point to /mnt/lfs, if you follow the book correctly.

About right now anyone else on this forum would tell you that it is time to start over
from scratch. No new LFS user wants to hear that news. But, keep looking.
 
Old 09-28-2018, 12:18 PM   #39
maxlndn
LQ Newbie
 
Registered: Sep 2018
Posts: 14

Rep: Reputation: Disabled
Ahah ok I'll take a look at it.
Yes of course not fun to start over, but I wanted to solve this in order to learn something that I would not face if everything went well !
I'll keep you in touch !
 
Old 09-28-2018, 12:20 PM   #40
sr_ls_boy
Member
 
Registered: Apr 2015
Posts: 105

Rep: Reputation: Disabled
In § 5.36, you change ownership of /tools to root.
When re-running § 5.23, did you change ownership
back to user 'clfs'?
 
Old 09-28-2018, 12:28 PM   #41
maxlndn
LQ Newbie
 
Registered: Sep 2018
Posts: 14

Rep: Reputation: Disabled
Yes, I issued "chown lfs:lfs /many/lfs/tools"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] Glibc not compiling in Chapter 6.9 corbis_demon Linux From Scratch 4 08-06-2010 08:44 AM
Yet another glibc, chapter 6.9 problem... gViscardi Linux From Scratch 4 10-25-2008 12:10 PM
glibc chapter 6.9 error jol123 Linux From Scratch 1 03-28-2007 04:03 PM
Problem with Glibc-2.3.4 chapter 6.11 adancoco Linux From Scratch 1 02-14-2005 12:04 PM
glibc-2.3.3 in chapter 6 error znif Linux From Scratch 11 06-28-2004 07:15 AM

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

All times are GMT -5. The time now is 02:53 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