GNU+Linux-Libre From Scratch system

4 respostas [Última entrada]
HKR
HKR

I am a translator!

Desconectado
Joined: 04/18/2015

Hi everybody

I'm learning from zero how make an GNU+LINUX-Libre system. I didn't find any tutorial about that on Internet. However I found Linux From Scratch project. On it I find this manual named LFS-BOOK-7.9
This manual explain what we need to build an basic GNU-Linux operating system and how.
Of course if the manual explain we need non free-software like default Linux kernel with blobs, I will change it for Linux-Libre (and probably I will need some help). And I do the same for the other source software by checking the licence.

Now I'm in chapter 5.4. Binutils-2.26 - Pass 1. I'am trying to extract source file by using

tar -jxvf binutils-2.26.tar.bz2

but I get this error message.

lfs@trisquel-pc:/mnt/LFS/sources$ tar -jxvf binutils-2.26.tar.bz2
tar (child): bzip2: Cannot exec: Too many levels of symbolic links
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

And all in LFS directory belong to lfs user

I don't undertand where there are "Too many levels of symbolic links"

When I uncomment on lfs's .bash_profile file
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash

All work but according the manual we need an empty environnent to avoid some problem.

I think the problem come from variable environnemt or the sysmlink I maked before but I don't know what exactly.

/bin/sh → /bin/bash
/usr/bin/awk → usr/bin/gawk

Think for your help

Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

Is bzip2 is in /bin or /usr/bin or both? Are they symlinks?

HKR
HKR

I am a translator!

Desconectado
Joined: 04/18/2015

@martinh :

I open an terminal by using CTRT-ALT-T (It's the gnome-terminal)
On this shell I'm logged under user@trisquel-pc. I use this command
user@trisquel-pc:~$ su - lfs
to get a shell under lfs user.

All my sources files are under /mnt/LFS/sources

The ownner of LFS folder and his files and subdirectories is lfs user.
lfs@trisquel-pc:~$ls -al /mnt/LFS/
drwx-w--wT 4 lfs lfs 4096 Jul 18 20:55 .
drwxr-xr-x 3 root root 4096 Jul 18 20:51 ..
drwxrwxrwt 6 lfs lfs 4096 Jul 19 12:36 sources
drwxrwxrwt 2 lfs lfs 4096 Jul 18 17:05 tools

for my tar.bz2 file
lfs@trisquel-pc:~$ ls -al /mnt/LFS/sources/binutils-2.26.tar.bz2
-rw-rw-rwT 1 lfs lfs 25543552 Jan 25 10:44 /mnt/LFS/sources/binutils-2.26.tar.bz2

@MagicBanana

I get this error by using any command like
lfs@trisquel-pc:~$ man tar
man: can't execute pager: Too many levels of symbolic links
man: command exited with status 255: (cd /home/lfs && LESS=-ix8RmPm Manual page tar(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page tar(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$ MAN_PN=tar(1) pager -s)

I try also this code in bash file

echo 'int main(){}' > dummy.c && g++ -o dummy dummy.c
if [ -x dummy ]
then echo "g++ compilation OK";
else echo "g++ compilation failed"; fi
rm -f dummy.c dummy

The outputs

g++: error trying to exec 'as': execvp: Too many levels of symbolic links
g++ compilation failed

About bzip2
lfs@trisquel-pc:~$ which bzip2
/bin/bzip2

and in /usr/bin they are not bzip2

jxself
Desconectado
Joined: 09/13/2010

The GNU+Linux From Scratch system provide their own support channels. You may have better luck there: http://linuxfromscratch.org/support.html

petrolifero
Desconectado
Joined: 04/06/2013

http://unix.stackexchange.com/questions/141436/too-many-levels-of-symbolic-links

on the final, we can see "Use absolute paths."

Is a good question, but i suggest that you pick the error message and go on yacy or stackoverflow, unix.stackexchange or similar sites and write the error message. :)

It is usually too arrogant to imagine that has to be the first to have a particular error :)

Anything, we are here to help :)

free greetings