LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-21-2011, 02:04 PM   #1
randalleg
LQ Newbie
 
Registered: Apr 2011
Posts: 23

Rep: Reputation: 0
coreutils-8.10 fail: cp/sparse-fiemap


I just starting building another LFS on a differet box to avert my frustration of getting my wireless to work on my other BLFS project and for the first time in three builds ran across this error in coreutils chapter 6.22 of LFS version 6.8

I found a solution on the web pretty quickly but I didnt see it in this forum so maybe I missed it but I thought I'd post it regardless and if anything maybe someone can explain why it happened or someone else will find their solution faster.

Anyway I applied this patch which isnt in the book but on the website;

http://www.linuxfromscratch.org/patc...fiemap-1.patch


Maybe somebody can break down what was going on there even though I got past it Im always curious to hear why. Most of what I read through google seemed a bit over my head!!!!
 
Old 06-24-2011, 06:13 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
FYI The patch you linked to only alters the tests, it doesn't alter anything else. Presumably you were getting an error while running the tests? This patch makes the error go away, it doesn't alter coreutils at all
 
Old 06-27-2011, 12:53 AM   #3
randalleg
LQ Newbie
 
Registered: Apr 2011
Posts: 23

Original Poster
Rep: Reputation: 0
Interesting to know. I wonder why I was getting the error!!!
 
Old 07-26-2011, 01:35 AM   #4
linjoy42
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Rep: Reputation: Disabled
Hello,

This is my first post to linuxquestions forums, but I've used them for resources for a while. I can usually find an answer to a question before I need to ask it. Anyway, I'm building lfs for my first time (version 6.8). I've reached the chapter 6.22 coreutils-8.10 install and ran into the same error as above. I found this on the gnu bug list for cp/sparce-fiemap.

Quote:
bug#8532: FAIL: cp/sparse-fiemap

* tests/cp/sparse-fiemap: Parenthesize ternary expression used
as an argument to awk's printf. Otherwise, gawk 3.0.1 and the
one from debian stable's original-awk would get a syntax error.
EDIT:

The line they are referring to can be found by grep-ing for awk in tests/cp/sparse-fiemap
Code:
root:/sources/coreutils-8.10# grep awk tests/cp/sparse-fiemap
    | awk '/^ *[0-9]/ {printf "%d %d ", $2 , (NF < 5 ? $NF : $5) } END {print ""}'
I did this to make nice the offending expression

Code:
sed -i -e 's/NF < 5 ? $NF : $5/(&)/' tests/cp/sparse-fiemap
Unfortunately this did not fix my problem. I looked over the lfs patch suggested above, but it doesn't look like it actually fixes a problem as was mentioned earlier. I found the same syntactical error in the file tests/filefrag-extent-compare and applied a similar modification, but neither change has had any effect on the test. I also did a make distclean and completely recompiled before testing.

Last edited by linjoy42; 07-26-2011 at 01:39 AM.
 
  


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
sparse file vs. ramfs Skaperen Linux - Kernel 0 05-17-2011 06:02 PM
[SOLVED] How to use sparse tool Odulo Linux - Kernel 1 07-08-2010 12:13 PM
Sparse matrix library Asuralm Programming 1 05-22-2008 11:52 AM
LXer: Sparse v0.4 Released LXer Syndicated Linux News 0 09-18-2007 09:41 AM
sparse array in java lado Programming 4 12-18-2004 05:48 AM

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

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