LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-01-2018, 06:06 AM   #1
parotta36
LQ Newbie
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slacware
Posts: 25

Rep: Reputation: Disabled
Error installing Binutils -2.29.1 in chapter 5.4


I have started the LFS project recently and I had the following error while building the first pass of the binutils package in chapter 5.4.
I get the error while using it with the time command. It works fine when I configure and make it in separate instances.
I'd like to know why I was not able to build it this way.

Also, I wasn't able to get the case command to work.
Kindly help as soon as possible I'm held up with this for so long and can't figure it out.

Code:
lfs:/mnt/lfs/sources/binutils-2.29$ time { ./configure --prefix=/tools --with-sysroot=$LFS --with-lib-path=/tools/lib --target=$LFS_TGT --disable-nls --disable-werror && make && make install;;}
bash: syntax error near unexpected token `;;'

lfs:/mnt/lfs/sources/binutils-2.29/build$ time{../configure --prefix=/tools --with-sysroot=$LFS --with-lib-path=/tools/lib --target=$LFS_TGT --disable-nls --disable-werror }
bash: time{../configure: No such file or directory

lfs:/mnt/lfs/sources/binutils-2.29/build$ cd ..

lfs:/mnt/lfs/sources/binutils-2.29$ ls
COPYING       README                  config.guess  elfcpp      libiberty       md5.sum         texinfo
COPYING.LIB   README-maintainer-mode  config.log    etc         libtool.m4      missing         ylwrap
COPYING3      bfd                     config.rpath  gas         ltgcc.m4        mkdep           zlib
COPYING3.LIB  binutils                config.sub    gold        ltmain.sh       mkinstalldirs
ChangeLog     build                   configure     gprof       ltoptions.m4    move-if-change
MAINTAINERS   compile                 configure.ac  include     ltsugar.m4      opcodes
Makefile.def  confdefs.h              conftest.adb  install-sh  ltversion.m4    setup.com
Makefile.in   config                  cpu           intl        lt~obsolete.m4  src-release.sh
Makefile.tpl  config-ml.in            depcomp       ld          makefile.vms    symlink-tree

lfs:/mnt/lfs/sources/binutils-2.29$ time{./configure --prefix=/tools --with-sysroot=$LFS --with-lib-path=/tools/lib --target=$LFS_TGT --disable-nls --disable-werror }
bash: time{./configure: No such file or directory

lfs:/mnt/lfs/sources/binutils-2.29$ time{ ./configure --prefix=/tools --with-sysroot=$LFS --with-lib-path=/tools/lib --target=$LFS_TGT --disable-nls --disable-werror && make && make install}
bash: time{: command not found



lfs:/mnt/lfs/sources/binutils-2.29/build$ case$(uname -m) in x86_64) mkdir -v /tools/lib && ln -sv lib /tools/lib64 
bash: syntax error near unexpected token `)'
 
Old 01-02-2018, 01:24 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,312
Blog Entries: 1

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Hi there is a space between time { ../configure >>>>>>>; }
 
Old 01-03-2018, 01:15 AM   #3
parotta36
LQ Newbie
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slacware
Posts: 25

Original Poster
Rep: Reputation: Disabled
I've also tried without spaces. I think it's the one third from the last.

I read that the Live CD isn't supported for the current LFS versions. So, I'm using Slackware 14.2 and all the packages are higher than specified.

Code:
./version_check.sh 
bash, version 4.3.46(1)-release
/bin/sh -> /bin/bash
Binutils: version 2.26.20160125
bison (GNU Bison) 3.0.4
yacc is bison (GNU Bison) 3.0.4
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.25
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.4, GNU MP 6.1.1)
/usr/bin/awk -> /bin/gawk-4.1.3
gcc (GCC) 5.3.0
g++ (GCC) 5.3.0
(GNU libc) 2.23
grep (GNU grep) 2.25
gzip 1.8
Linux version 4.4.14 (root@hive64) (gcc version 5.3.0 (GCC) ) #2 SMP Fri Jun 24 13:38:27 CDT 2016
m4 (GNU M4) 1.4.17
GNU Make 4.1
GNU patch 2.7.5
Perl version='5.22.2';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.29
texi2any (GNU texinfo) 6.1
xz (XZ Utils) 5.2.2
I would also like to know how to use the case command. Thanks.
 
Old 01-03-2018, 02:14 AM   #4
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX
Posts: 2,052
Blog Entries: 4

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
A case statement must end with esac. I don't think you've included that.

If the time thing causes problems, don't use it. Just note down the starting and ending times on paper. The sole purpose of timing the binutils build is to get an idea of the size of the "LFS Standard Build Unit" on your machine. It doesn't have to be all that accurate.
 
Old 01-19-2018, 09:48 AM   #5
parotta36
LQ Newbie
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slacware
Posts: 25

Original Poster
Rep: Reputation: Disabled
I'm still not sure why it doesn't work.
I'm building without it.
 
  


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
Error when installing Binutils in chapter 6.13 (LFS v8.0) Microbob Linux From Scratch 7 06-23-2017 03:42 AM
Stuck at Chapter 5.4, Error when making dir for Binutils 2.20 BrandonJ Linux From Scratch 6 04-02-2010 09:14 PM
Getting an error with Binutils, chapter 5.4 ReyJavikVI Linux From Scratch 15 07-25-2009 07:36 AM
binutils compile error... chapter 5... newbie need help jaydoc Linux From Scratch 7 01-27-2009 04:15 AM

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

All times are GMT -5. The time now is 08:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration