Hello list-
on certain systems (more-or-less current MiniBIAN in my case, seems to apply to
Debian systems too) the pass 1 of building gcc-5.2.0 breaks with the following
error message:
gcc-5.2.0/gcc/expr.c:6529:1: internal compiler error: output_operand: invalid
shift operand
This happens when your current gcc is 4.6.x. Look at your /usr/bin directory
and check to which subdirectory the gcc link points. If there is only 4.6.x
installed on your host, use your favorite package manager to upgrade to at
least 4.7, according to the GCC Bug #67919. I’ve tried 4.8, and it worked for
me.
NOTE: After upgrading, re-check the aforementioned link in /usr/bin:
ls -l /usr/bin/gcc*
In my case the link still pointed to gcc-4.6. If this is the case on your host,
too, then use:
pushd $PWD ; cd /usr/bin ; rm -f gcc ; rm -f g++ ; ln -s gcc-4.8 gcc ; ln -s
g++-4.8 g++ ; popd $PWD
And, in Murphy’s name, do the same for /usr/bin/cc. On my host, it points to
/etc/alternatives/cc which in turn points to /usr/bin/gcc which is fine.
Kind regards,
Carsten Posingies
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style