#3563 closed task (wontfix)
gcc build instructions have syntax error
Reported by: | miland | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.6 |
Component: | Book | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description
on page:
http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html
an option is given like --disable-libstdc++v3
it should be --disable-libstdcxx
Change History (5)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Please test before changing it: last time I tried to use --disable-libstdcxx, I got an error when running make. --disable-libstdc++v3 gives no error. Will investigate more so that we know what to answer to this ticket...
comment:3 by , 11 years ago
I think there is an error in configure:
# Check whether --enable-libstdcxx was given. if test "${enable_libstdcxx+set}" = set; then : enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval else ENABLE_LIBSTDCXX=default fi if test "${ENABLE_LIBSTDCXX}" = "no" ; then noconfigdirs="$noconfigdirs libstdc++-v3" fi
but everywhere else, the configdir is referenced as target-libstdc++-v3.
Applying the sed:
sed -i -e 's/\(dirs\) \(libstdc\)/\1 target-\2/' configure
and changing --disable-libstdc++-v3 to disable-libstdcxx generates exactly the same Makefiles (apart from the configargs variables) as when using --disable-libstdc++-v3 and no sed.
Will report upstream. Meanwhile, I guess it is OK to use the current switches for gcc-pass1.
comment:4 by , 11 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
We could do:
sed -i -r 's/(disable-libstdc)xx/\1++-v3/' configure
as that just changes the --help output, but we won't do that. We'll just leave things as they are.
comment:5 by , 10 years ago
See upstream's answer at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61011
You are right, but it doesn't seem to hurt anything and we build gcc again 4 packages later. Will fix in svn though.