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 09-23-2013, 02:13 AM   #1
retux
LQ Newbie
 
Registered: Jan 2011
Posts: 9

Rep: Reputation: 0
LFS 7.4 Chapter 5.7.1 Installation of Glibc "An upstream change needs to be reverted"


Hi

I am trying to do Linux From Scratch first time using the LFS 7.4 book.

I am doing it on a Debian 7.1.0 host in a VMware virtual machine.

I followed the instructions here http://www.linuxquestions.org/questi...for-lfs-34994/ to make the Debian host suitable for LFS.

I followed the book and everything seemed to be working fine until I got to Chapter 5.7.1 at "An upstream change needs to be reverted:"

I entered the command
Code:
sed -i -e 's/static __m128i/inline &/' sysdeps/x86_64/multiarch/strstr.c
but I got an error
Code:
sed: can't read sysdeps/x86_64/multiarch/strstr.c: No such file or directory
The output of version-check.sh is
Code:
./version-check.sh 
bash, version 4.2.37(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Debian) 2.22
bison (GNU Bison) 2.5
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 4.0.1
/usr/bin/awk -> /usr/bin/gawk
gcc (Debian 4.7.2-5) 4.7.2
g++ (Debian 4.7.2-5) 4.7.2
(Debian EGLIBC 2.13-38) 2.13
grep (GNU grep) 2.12
gzip 1.5
Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.46-1+deb7u1
m4 (GNU M4) 1.4.16
GNU Make 3.81
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.1.0alpha
g++ compilation OK
Please help me solve this.
 
Old 09-23-2013, 03:04 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by retux View Post
I am trying to do Linux From Scratch first time using the LFS 7.4 book.

I am doing it on a Debian 7.1.0 host in a VMware virtual machine.

I followed the instructions here http://www.linuxquestions.org/questi...for-lfs-34994/ to make the Debian host suitable for LFS.
Just a reminder: The blog entry isn't up-to-date when using LFS 7.4 and Debian Wheezy. It is Debian Squeeze and LFS 7.1/7.2 specific.

If I look at the version check output I do see that you did install g++, which wasn't needed before and isn't mentioned in the blog entry.

Quote:
I followed the book and everything seemed to be working fine until I got to Chapter 5.7.1 at "An upstream change needs to be reverted:"

I entered the command
Code:
sed -i -e 's/static __m128i/inline &/' sysdeps/x86_64/multiarch/strstr.c
but I got an error
Code:
sed: can't read sysdeps/x86_64/multiarch/strstr.c: No such file or directory
From which location did you execute the sed command?

You need to unpack glibc, enter the glibc directory and execute the commands in the chapter (as mentioned here: 5.3. General Compilation Instructions (second important box))
 
Old 09-23-2013, 04:07 AM   #3
retux
LQ Newbie
 
Registered: Jan 2011
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Just a reminder: The blog entry isn't up-to-date when using LFS 7.4 and Debian Wheezy. It is Debian Squeeze and LFS 7.1/7.2 specific.

If I look at the version check output I do see that you did install g++, which wasn't needed before and isn't mentioned in the blog entry.
I didn't follow the instructions exactly, I just installed the required packages to make the host LSF compliant and did dpkg-reconfigure to make bash the shell linked to by /bin/sh.

The LFS 7.4 book lists g++ as a host system requirement

Quote:
GCC-4.1.2 including the C++ compiler, g++ (Versions greater than 4.8.1 are not recommended as they have not
been tested)

Quote:
From which location did you execute the sed command?
I was accidentally executing the sed command from the /sources/linux-3.10.10 directory instead of the /sources/glibc-build directory.

It is working now.

Thank you for your help.
 
  


Reply

Tags
lfs



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.3 / Chapter 6.27.1 / Page 132 / Error From "su nobody ...make check..." hexiang Linux From Scratch 3 08-29-2013 10:32 PM
[SOLVED] LFS 7.3 / Chapter 6.17.1 / Page 108 / Error from " make -k check " Drumachine Linux From Scratch 5 08-19-2013 04:19 AM
[SOLVED] "C preprocessor... ...fails sanity check" in LFS 7.0 chapter 6.17 nerdy117 Linux From Scratch 9 11-24-2011 11:38 PM
glibc " make check " error in CHAPTER 6 lfs_rocks Linux From Scratch 5 02-12-2008 04:32 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 09:09 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