[Info] Compiling VICE 1.8 fails on some Linux machines.
The information in this article applies to the following versions of VICE:
- VICE 1.8 on some Linux machines (e.g., SUSE Linux 7.2)
Compiling VICE on a Linux machine, you might get a couple of error messages of the following type:
/tmp/ccmtS7mh.s:947: Error: invalid section for operation
This seems to be a problem of the compiler used. It has been reported that GCC versions 2.95.2, 2.95.3 and 2.95.4 show this erroneously behaviour. If there are other versions, please let us know.
There seems to be more than one workaround to this problem. Please try one by one the following hints in the specified order:
- apply this patch by typing the
patch -p0 < vic20mem-gcc-fix.diff
(it might be necessary to adjust to path to vic20mem-gcc-fix.diff).
- replace the -O5 from the makefile in the vic20 directory with -O3
- remove the -O5 (or -O3) from the makefile in the vic20 directory completely
- remove the -funroll-loop from the configure script completely
This document is for information purpose only. Note that the problem seems to be caused by an error in the compiler GCC.
Thanks to Michael Klein for providing a patch which seems to be a good work-around to that problem.
- February 12, 2002: Original release of this document