LinuxQuestions.org
Visit Jeremy's Blog.
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 06-19-2012, 04:03 PM   #1
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Rep: Reputation: Disabled
glibc doesnt 'make' on mint linux


hey i was trying to do lfs earlier on ubuntu and i encountered many problems now im trying to make it on mint linux wich seems to be going a bit better but now i ran into a snag. on glibc when i try to make i get this:

Code:
/bin/sh: 3: x86_64-lfs-linux-gnu-gcc: not found
first of all i didnt name my lfs 'lfs' so can that lfs in the code be causing the problems if so how can i change it

the rest up to here installed perfectly which is much more than i did on ubuntu...

i ran the version-check.sh and i only had to install one item to make it complient but on the list i could not find glibc but eglibc 2.15 im assuming that this is the actual problem if so how can i change it?

thanks
 
Old 06-19-2012, 04:14 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

In binutils chapter 5.4 did you issue the symlink
Code:
case $(uname -m) in
  x86_64) mkdir -v /tools/lib && ln -sv lib /tools/lib64 ;;
esac
 
Old 06-19-2012, 04:18 PM   #3
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
yup i restarted the whole thing once just to make sure that was my first guess before posting here :/

but i'll try it again it should take +/- 30 mins

Last edited by kiyoshi7; 06-19-2012 at 04:29 PM.
 
Old 06-19-2012, 04:46 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
The other symlink is in chapter 5.5
Code:
ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | \
    sed 's/libgcc/&_eh/'`
 
Old 06-19-2012, 04:55 PM   #5
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
ok just finished trying it again... the same message popped up :/
 
Old 06-19-2012, 09:18 PM   #6
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 27

Rep: Reputation: Disabled
Give it a try with the LiveCD I've made for 7.1. Maybe you'll have better luck with it. I was able to finish it myself only after using it.

http://youtu.be/SzaFNOoGGrw?hd=1

I think the key is to copy/paste the commands from the manual as supposed to type it.

Good luck.
 
Old 06-19-2012, 09:45 PM   #7
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
hmmm i didnt know there was a live cd that works with 7.1 i'll try it if my new attempt on mint (this time im using an old version) maybe its that glibc thats the problem
 
Old 06-19-2012, 11:41 PM   #8
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
uhul looks like changing to an older os worked for some odd reason well worked +/- now im on 5.8 adjusting the tool chain the new problem seems fairly simple but i dont know why im not being able to solve it when i run this:

SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs
$LFS_TGT-gcc -dumpspecs | sed \
-e 's@/lib\(64\)\?/ld@/tools&@g' \
-e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS
echo "New specs file is: $SPECS"
unset SPECS

on the '$LFS_TGT-gcc...' part im being told that i dont have permission which i find odd cause i gave lfs user permission... i found the file in question manually and gave lfs permission for that file and it still didnt work...

and suggestions?
 
Old 06-20-2012, 09:40 AM   #9
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 27

Rep: Reputation: Disabled
Bizarre. Let's try this.

Reboot with the live CD that I've made, make an SSH connection to it.
Then do this (remember, just copy and paste)

You should only have /dev/sda1 for swap, and all the rest into /dev/sda2 or the grub instructions at the end of the manual won't work. If you haven't partitioned that way, please redo from scratch with that partitioning in mind..

export LFS=/mnt/lfs
mkdir -pv $LFS
mount -v -t ext3 /dev/sda2 $LFS
/sbin/swapon -v /dev/sda1
cd $LFS

groupadd lfs
useradd -s /bin/bash -g lfs -m -k /dev/null lfs
passwd lfs

**** STOP COPY HERE AS YOU NEED TO PUT THE NEW PASSWORD ****
**** WHEN COMPLETED, CONTINUE COPYING AND PASTING ****

chown -v lfs $LFS/tools
chown -v lfs $LFS/sources
su - lfs

cat > ~/.bash_profile << "EOF"
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
EOF

cat > ~/.bashrc << "EOF"
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL LFS_TGT PATH
EOF

source ~/.bash_profile
export LFS=/mnt/lfs

... and give it another shot. Make sure when you copy and paste to hit enter if the see the last line of the pasted items so that it can be executed as well.

SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs
$LFS_TGT-gcc -dumpspecs | sed -e 's@/lib\(64\)\?/ld@/tools&@g' -e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS
echo "New specs file is: $SPECS"
unset SPECS

What I have indicated above (minus chapter 5.8 instructions) needs to be done every time you reboot the LiveCD before an SSH connection for chapter 5 only. If not, problem occurs (including permissions) and you'll need to recompile what has been missed, which is really hard to find sometimes....

Last edited by Mordillo98; 06-20-2012 at 10:05 AM.
 
Old 06-20-2012, 10:57 AM   #10
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
well i saw you vid i found it cool but can it be used to make a 64 bit lfs?


lol i used your os and found out where i made a mistake (i did the same when using your os) so i corrected it on mint and am continuing on both of them. since yours was built for lfs its a safe reference

thanks

Last edited by kiyoshi7; 06-20-2012 at 02:33 PM.
 
Old 06-20-2012, 02:36 PM   #11
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 27

Rep: Reputation: Disabled
Nah. According to this link: http://www.linuxfromscratch.org/lfs/...hitecture.html

... It says:

'The primary target architecture of LFS is the 32-bit Intel CPU. If you have not built an LFS system before, you should probably start with that target. The 32-bit architecture is the most widely supported Linux system and is most compatible with both open source and proprietary software'

... So I decided to make my life simple and do 32-bit Intel CPU architecture for now.
 
Old 06-20-2012, 02:54 PM   #12
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Can you post what the problem was so as to aid others.
 
Old 06-20-2012, 04:04 PM   #13
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 27

Rep: Reputation: Disabled
Glad my LiveCD could help out. I've made another video about installing LFS 7.1 with VmWare Workstation 8 showing what to do up to Chapter 5.8. Hopefully this can useful to others about how to make this work for them.

http://youtu.be/zGvGQ3SR48U?hd=1

Good luck !!
 
Old 06-20-2012, 05:55 PM   #14
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
well when i was setting up the enviroment i forgot to change a directory to the name that i was using


cat > ~/.bashrc << "EOF"
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL LFS_TGT PATH
EOF

since i decided not to use the name lfs / LFS i also had to change it in the code as well but i forgot to change whats in bold

well another snag on mint but i think its from lack of attention so im only going to work with your gentoo untill i finish the whole process btw is it possible to write a 16 bit system? if im doing lfs to learn i might as well play a little as well

Last edited by kiyoshi7; 06-20-2012 at 06:21 PM.
 
Old 06-20-2012, 06:22 PM   #15
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 27

Rep: Reputation: Disabled
Thx for letting us know. That would be great if you could mark this thread as resolved so that it can be used as a reference later on.

Cheers ...
 
  


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] Glibc make error on Linux From Scratch 7.0 ubuntudude12 Linux From Scratch 4 01-19-2012 11:49 AM
printer doesnt work on linux mint joyspirited Linux - Newbie 12 04-03-2010 02:33 PM
glibc-compiling loves to make errors? ok, let me post mine here: glibc 2.9 me-$-on Linux From Scratch 7 04-11-2009 06:22 PM
i want to make but my linux doesnt have /usr/src/kernels/...... papseddy Red Hat 5 11-06-2008 02:25 PM
glibc-2.3.6 make error on Linux kernel 2.4.18-3 g_deepakala Red Hat 1 02-03-2006 12:13 AM

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

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