out of memory when compiling with -Os1
Original Reporter info from Mantis: BeniBela @benibela
-
Reporter name: Benito van der Zander
Original Reporter info from Mantis: BeniBela @benibela
- Reporter name: Benito van der Zander
Description:
Compiling FLRE with -Os1 uses so much memory that the compilation does not end before the oom killer gets rid of fpc.
Steps to reproduce:
$ git clone git@github.com:BeRo1985/flre.git
$ cd flre/src/
$ fpc -Os1 FLRE.pas
Free Pascal Compiler version 3.3.1 [2019/01/01] for x86_64
Copyright (c) 1993-2018 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling FLRE.pas
FLRE.pas(4845,5) Note: Local variable "Index" not used
FLRE.pas(4846,5) Note: Local variable "CurrentChar" not used
FLRE.pas(5013,5) Note: Local variable "Index" not used
FLRE.pas(5014,5) Note: Local variable "CurrentChar" not used
FLRE.pas(5174,5) Note: Local variable "Index" not used
FLRE.pas(5175,5) Note: Local variable "CurrentChar" not used
FLRE.pas(5357,5) Note: Local variable "Index" not used
FLRE.pas(5358,5) Note: Local variable "CurrentChar" not used
FLRE.pas(5474,5) Note: Local variable "Index" not used
FLRE.pas(5475,5) Note: Local variable "CurrentChar" not used
FLRE.pas(5642,5) Note: Local variable "Index" not used
FLRE.pas(5643,5) Note: Local variable "CurrentChar" not used
FLRE.pas(8087,3) Error: Compilation raised exception internally
Error: /usr/local/bin/ppcx64 can't be executed, error message: Failed to execute "/usr/local/bin/ppcx64", error code: -9
Additional information:
I have 8GB RAM
Mantis conversion info:
- Mantis ID: 34818
- OS: linux
- OS Build: opensuse
- Build: r40681
- Platform: amd64
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 40851 (#644c47e1)
- Monitored by: » Vincent (Vincent Snijders)
- Target version: 3.3.1