r/linuxfromscratch • • Aug 25 '15

Can't compile binutils 2.24, chapter 5.4, version 7.5

hello everybody: I'm trying to build linux from scratch but I'm stuck on first compilation. I did everything as it requested and launched configured. then I write command make and it says that: make: *** No targets. Stop. Makefile is empty This is configure output: http://pastebin.com/e36fG5My and this is my version-check.sh: http://pastebin.com/GWKuxrDZ

can anybody help me?

4 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/glukosio Aug 26 '15

they are correctly set. the first is /mnt/lfs as it should be, the second is x86_64-lfs-linux-gnu

1

u/[deleted] Aug 26 '15

and what is the output of 'ls -lah /tools' ?

1

u/glukosio Aug 26 '15
lrwxrwxrwx 1 root root 14 Aug 24 20:08 /tools -> /mnt/lfs/tools

2

u/[deleted] Aug 26 '15

yep thats also correct, very strange. other than a few packages on your host system being 'too new' (which I cannot imagine being the source of your problem) I'm out of ideas, sorry.
(I just followed the beginning of the guide v7.5 myself and encountered no such problem with the make command - I'm on arch which has even newer packages than debian)

Since you're at the very beginning of the guide, I'd suggest beginning from scratch (had to make the pun...). if that doesnt work you could try again from a live-cd to see if your host system is the source of the problem, and if you don't particularly need the older packages maybe try the latest stable guide (v7.7) instead. Or you could wait around for another, more skilled lfs-er. If I come up with any other possible solutions/questions i'll let you know.

1

u/glukosio Aug 26 '15

thank you for answers. I'll try with 7.7 and begin from scratch! I guess that's the best thing! ;)

1

u/glukosio Aug 26 '15

Nothing to do. It's something wrong with my host-system i guess... even with 7.7 it gives me the same error! :/

2

u/[deleted] Aug 26 '15

maybe checkout if something of this thread applies to you:
http://comments.gmane.org/gmane.linux.lfs.beyond.support/45842

this is my /mnt/lfs dir (all files inside these 2 dirs should have lfs as owner & group):
drwxrwxrwt 7 lfs root 4,0K sources
drwxr-xr-x 8 lfs root 4,0K tools

after my configure command I get 4 files in binutils-build:
-rw-r--r-- 1 lfs lfs 376K Makefile
-rw-r--r-- 1 lfs lfs 26K config.log
-rwxr-xr-x 1 lfs lfs 32K config.status
-rw-r--r-- 1 lfs lfs 13 serdep.tmp

you could check if - except for the Makefile of course - configure does the same for you (pay attention to ownership,group and permissions). check the contents of your config.log against mine:

this is my config.log: http://pastebin.com/nFAkW20F

1

u/glukosio Aug 26 '15

I think I've solved!! :D My config log was identical to your, so I've read the thread and the guy solved reinstalling gawk. I reinstalled it and it just worked! :D Thank you again!! you made my day! :)

2

u/[deleted] Aug 26 '15 edited Aug 26 '15

Nice! Good luck with the rest of the guide, I think in your case the hardest part is done :)

1

u/glukosio Aug 26 '15

I hope so!! ;)