LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Error installing Binutils -2.29.1 in chapter 5.4 (https://www.linuxquestions.org/questions/linux-from-scratch-13/error-installing-binutils-2-29-1-in-chapter-5-4-a-4175620643/)

parotta36 01-01-2018 06:06 AM

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 `)'


spiky0011 01-02-2018 01:24 PM

Hi there is a space between time { ../configure >>>>>>>; }

parotta36 01-03-2018 01:15 AM

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.

hazel 01-03-2018 02:14 AM

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.

parotta36 01-19-2018 09:48 AM

I'm still not sure why it doesn't work.
I'm building without it.


All times are GMT -5. The time now is 07:09 AM.