[lfs-support] SOLVED: lfs 7.4 section 5.9.1. Installation of Binutils error: Cannot run C compiled programs
bruce.dubbs at gmail.com
Wed Nov 13 13:04:01 PST 2013
Ron Hartikka wrote:
> OK. I'll look at akh's suggstion in my next session.
> I already did a similar thing, actually.
> I think this was in 5.9 binutils pass 2.
> I set the environment variables - like 'export CC=$LFS_TGT-gcc' one at a
You really don't want to do that. It has the potential to cause
problems in other packages. Just pass them to make like the book describes.
> Then I pasted the whole configure command into a file and bashed it.
> Another thing that might have been important in getting me through 5.9:
> logging out of lfs user and back in.
> I did this (prior to my succesful retry of 5.9) because in section 5.10 the
> *Before starting to build GCC, remember to unset any environment variables
> that override the default optimization flags.*
> ... and thought it might be a good thing.
> It would be nice if you could say that each section is independent in the
> sense that you could reboot and folllow a fixed setup procedure between
> each section.
> Is it true? What's the procedure?
When you change to the lfs user, it should only set environment
variables in ~lfs/.bashrc.
More information about the lfs-support