lfs@debianlfs:/mnt/lfs/sources/Chapter-5/5.10.GCC-4.6.2-_Pass_2/gcc-4.6.2$ . bld

bash: bld: line 44: syntax error near unexpected token `)'
bash: bld: line 44: ` --with-mpfr-lib=$(pwd)/mpfr/src/.libs 2>&1 | tee gcc-configure.log    && exit $PIPESTATUS ) &&'

I'M getting the above error when I run my script. I've attached the scripts and I would really appreciate it if someone can tell me what's wrong with it.

On the end of that line, right before the &&, you have a closing parenthesis. There is no opening parenthesis corresponding to this closing parenthesis anywhere in your script. So you get a syntax error.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.