From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,be65bed475003838 X-Google-Attributes: gid111c93,public From: Peter Rye Subject: Re: PreCompiled for Alpha Database Date: 1999/01/12 Message-ID: #1/1 X-Deja-AN: 431930711 X-NNTP-Posting-Host: picu-sgh.demon.co.uk:194.222.182.163 References: <76k6q4$561$1@nnrp02.primenet.com> X-Trace: news.demon.co.uk 916184858 nnrp-08:23777 NO-IDENT picu-sgh.demon.co.uk:194.222.182.163 Organization: St. George's Hospital, Paediatric ICU X-OS: Linux Alpha 2.2.0-pre6 Newsgroups: comp.os.linux.alpha X-Complaints-To: abuse@demon.net Daniel Grambihler writes: > Matt Grossman wrote: > > I tried to build mysql on my alpha also and ran into the memory problem. > I have 64M of RAM & 64M of swap (it came preconfigured) so I slapped on > some more swap via a swapfile. Still choked. Added more. Again. I finally > gave up with 1/2Gb of swap! The file it's trying to compile is from a piece > of crap that yacc yakked up. 500+K of C. I think the key problem is that the > size of one of the functions is exceeding the limit of the compiler (that's a > guess - > it's dying inside of a function compilation & at the final compile the compiler > actually died with a non-memory related error - don't remember the exact beast). In Docs/manual.txt you'll find the following: * If you get errors when compiling `sql_yacc.cc' such as the ones shown below, you have probably run out of memory or swap space: Internal compiler error: program cc1plus got fatal signal 11 or Out of virtual memory or Virtual memory exhausted The problem is that `gcc' requires huge amounts of memory to compile `sql_yacc.cc' with inline functions. Try running `configure' with the `--with-low-memory' option: shell> ./configure --with-low-memory This option causes `-fno-inline' to be added to the compile line if you are using `gcc' and `-O0' if you are using something else. You should try the `--with-low-memory' option even if you have so much memory and swap space that you think you can't possibly have run out. This problem has been known to occur even on systems with generous hardware configurations, and the `--with-low-memory' option usually fixes it.