[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)
PROBLEMEXPOSITION
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
EXPLANATION
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.
SOLUTION
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
following commands:
cd vice-1.8/src/vic20
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
STATUS
This document is for information purpose only. Note that the problem seems to be caused by an error in the compiler GCC.
LINK
CONTRIBUTION
Thanks to Michael Klein for providing a patch which seems to be a good work-around to that problem.
REVISION
- February 12, 2002: Original release of this document
