LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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


Closed Thread
  Search this Thread
Old 06-16-2017, 10:07 PM   #1
Microbob
LQ Newbie
 
Registered: May 2017
Posts: 10

Rep: Reputation: Disabled
"make check" error when compiling Gawk-4.1.4 (for Linux From Scratch v8.0)




Hello,
Recently I've started working on building a Linux based OS using the book Linux From Scratch (LFS 8.0). I'm currently working on section 5.23, compiling the Gawk-4.1.4 package. So far, I've ran the
Code:
./configure --prefix=/tools
and the
Code:
make
without any problems. When I run the
Code:
make check
command though, I get this error:
Code:
- gawk: mbstr1.awk:2: warning: Invalid multibyte data detected. There may be a mismatch between your data and your locale.
. This error is repeated multiple times in the "make check" verbose, and it ultimately terminates the command:
Code:
Makefile:1651: recipe for target 'check' failed
make[1]: *** [check] Error 1
make[1]: Leaving directory '/mnt/lfs/sources/gawk-4.1.4/test'
Makefile:742: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1
.

What can I do to fix this issue? I've already searched around a bit online and found another instances of this issue, but I don't understand how to use the solution given.

Thank you in advance for help on my issue!
 
Old 06-17-2017, 01:23 AM   #2
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
echo $LC_ALL

If what it prints is not "C" then your host environment is likely polluting the build, or your build environment was setup wrong. Are you compiling on MacOS? It's hard to do any more speculation because you didn't include enough of the error to tell us anything more than something went wrong.
 
Old 06-17-2017, 01:52 AM   #3
Microbob
LQ Newbie
 
Registered: May 2017
Posts: 10

Original Poster
Rep: Reputation: Disabled
Smile

Thank you for your input Luridis and I apologize for not including enough details in the beginning. Here's some data that may help:
  • My host OS is Peppermint OS 8.0 (based on Ubuntu 16.04.2)
  • My result for running "echo $LC_ALL" was "POSIX"
  • I have properly compiled the GCC and the glibc libraries into my system, and I have checked that they are working (which they are)
  • I initially posted this thread in the Linux Software thread group, and I was told that it was OK to just ignore that command and continue. Is that true?

Now that I've determined that my host is likely polluting my build, how can I fix this issue?

Thank you!
 
Old 06-17-2017, 01:54 AM   #4
Microbob
LQ Newbie
 
Registered: May 2017
Posts: 10

Original Poster
Rep: Reputation: Disabled
Would it fix the problem if I just "export"ed "C" to "$LC_ALL"?
 
Old 06-17-2017, 02:03 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,650
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Why are you running "make check" anyway? The book recommends omitting checks in chapter 5 because of pollution by the host system. However the error you have reported does make me wonder if you are running this as the LFS user with the correct environment. It's worth checking this against section 4.4. If everything is as described, forget about the "make check" errors. Just don't do the checks until you reach chapter 6.
 
Old 06-17-2017, 02:09 AM   #6
Microbob
LQ Newbie
 
Registered: May 2017
Posts: 10

Original Poster
Rep: Reputation: Disabled
I'm sure that I have the correct environment setup and that my "lfs" user is also setup properly. So, I'll just go ahead and skip the "make check" for now. Thank you for you input!
 
Old 06-17-2017, 04:26 AM   #7
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
Yea, it didn't click that you were in Chapter 5. There's no real point to running tests on tools for errors that will clearly announce themselves as soon as you're in the chroot (chapter 6). If any part of that chain is significantly broken, you won't manage to get the new system's toolchain standing.
 
Old 06-18-2017, 01:46 PM   #8
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,604

Rep: Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread



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
"make check" error when compiling Gawk-4.1.4 (for Linux From Scratch v8.0) Microbob Linux - Software 6 06-12-2017 02:37 PM
Make "Linux From Scratch" OS executable on "LIVE MODE" fedifedi Linux From Scratch 2 03-11-2014 04:44 AM
Compiling Problems (error: C preprocessor "/lib/cpp" fails sanity check) closetosomethingreal Slackware 3 01-25-2006 01:22 PM
Problems with "make check" while compiling Glibc in Chapter 6.11 Spuckdung Linux From Scratch 2 02-13-2005 05:12 AM

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

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