gcc1: out of memory error when installing wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
sandy123
Newbie
Newbie
Posts: 4
Joined: Tue Sep 06, 2011 4:24 pm

gcc1: out of memory error when installing wine

Post by sandy123 »

I am installing wine 1.1.26 on suse 9.2. I am installing it from source. I can't get it to install. Everything goes well until I get this far. This is the first error that I got:
gcc -c -I. -I. -I../../../include -I../../../include -D_REENTRANT -fPIC -Wall-pipe -fno-strict-aliasing -Wwrite-strings -Wpointer-arith -g -O2 -o package.o package.c

gcc1: out of memory allocating 287975456 bytes after a total of 22175744 bytes
make[2]: *** [package.o] Error 1
make[2]: Leaving directory `/home/Gytatan/Desktop/allneededinstallwine/wine-1.1.26/dlls/msi/tests'
make[1]: *** [msi/tests] Error 2

The next time I tried I got this error at the same place in the installation, but it didn't mention out of memory:

gcc -c -I. -I. -I../../../include -I../../../include -D_REENTRANT -fPIC -Wall-pipe -fno-strict-aliasing -Wwrite-strings -Wpointer-arith -g -O2 -o package.o package.c
{standard input}: Assembler messages:
{standard input}:46104: Warning: end of file not at end of a line; newline inserted
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:http://www.suse.de/feedback> for instructions.
make[2]: *** [package.o] Error 1
make[2]: Leaving directory `/home/Gytatan/Desktop/allneededinstallwine/wine-1.1.26/dlls/msi/tests'
{standard input}:47451: Error: unbalanced parenthesis in operand 1.
make[1]: *** [msi/tests] Error 2
make[1]: Leaving directory `/home/Gytatan/Desktop/allneededinstallwine/wine-1.1.26/dlls'
make: *** [dlls] Error 2

Compilation failed, aborting install.

Possible reason to get that error was that there wasn't enough space to install. I changed my ulimit to unlimited, then I did grep MemTotal/proc/meminfo to find out my memory and this is what I got:
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 2045
virtual memory (kbytes, -v) unlimited

If I understand right, the part wine installs into is supposed to be this part, and this is the memory I show in that: df -h $HOME
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 37G 3.6G 34G 10% /
Can you help? Please?
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

gcc1: out of memory error when installing wine

Post by jjmckenzie »

On Tue, Sep 6, 2011 at 2:37 PM, sandy123 <[email protected]> wrote:
I am installing wine 1.1.26 on suse 9.2.  I am installing it from source.  I can't get it to install.  Everything goes well until I
get this far.
Is there a particular reason that you are attempting to build a very
old and unsupported version of Wine?

Maybe you are trying to build 1.3.26?

I'm using an older version of gcc on my Mac (this is what Apple
supplies) as well as newer versions and have never run into an 'out of
memory' error building Wine.

James
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: gcc1: out of memory error when installing wine

Post by dimesio »

sandy123 wrote:I am installing wine 1.1.26 on suse 9.2.
That version of Wine is very old and no longer supported, and that version of SUSE is so old that Wine 1.1.26 is probably too new for it. If you really want to stick with that old OS, install a version of Wine that was current at the time it was out. But I'd really recommend upgrading both.
sandy123
Newbie
Newbie
Posts: 4
Joined: Tue Sep 06, 2011 4:24 pm

gcc1: out of memory error when installing wine

Post by sandy123 »

I am trying to use wine to be able to run a winamp player. I had used an even older version of wine several years ago to run a shoutcast server, in winamp. It worked great. Now I am trying to use winamp as a player, but need to use a newer version of winamp than the one that I had used earlier as we need to use a certain plugin that won't install in the older version of winamp that we used before. See my problems, it is sort of like a multiple piece puzzle getting it to fit all together. We have the server and player running full time, and have to count on it running steadily, so windows with all the viruses it frequently collects even with a virus protector, and the hang up problems from continual running isn't an option. We have one machine that has run continually without stopping for 3 years. Hats off to linux. I tried updating to a newer version of suse, but after 9.2 from what I understand, it goes to the one CD version instead of the 5 Cd version. Hence you are stuck loading lots of programs, and dealing with all the dependencies. I tried this and it was nearly impossible. I was trying to find a version of wine that would run on suse 9.2 that would let me run winamp version 5.0 or better. When I searched the internet, I came up with the combination of programs that I used. Can you give me some help on a better way to do this? Any help and advise is greatly appreciated. I have been stuck on this situation for months.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: gcc1: out of memory error when installing wine

Post by dimesio »

sandy123 wrote: I tried updating to a newer version of suse, but after 9.2 from what I understand, it goes to the one CD version instead of the 5 Cd version. Hence you are stuck loading lots of programs, and dealing with all the dependencies.
That's a one DVD version, and I found it easier than swapping all those CDs. Not sure what you mean about dealing with dependencies; the installer handles all of them just fine. But that's not a Wine issue.
Can you give me some help on a better way to do this? Any help and advise is greatly appreciated.
What about native Linux media players? There are plenty of them.
Martin Gregorie

gcc1: out of memory error when installing wine

Post by Martin Gregorie »

On Wed, 2011-09-07 at 21:01 -0500, dimesio wrote:
sandy123 wrote:
I tried updating to a newer version of suse, but after 9.2 from what I understand, it goes to the one CD version instead of the 5 Cd version. Hence you are stuck loading lots of programs, and dealing with all the dependencies.
That's a one DVD version, and I found it easier than swapping all those CDs. Not sure what you mean about dealing with dependencies; the installer handles all of them just fine. But that's not a Wine issue.

Can you give me some help on a better way to do this? Any help and advise is greatly appreciated.
What about native Linux media players? There are plenty of them.
Try SqueezeboxServer as a native audio streaming server. It may be
proprietary, but its free and 'just works'. OTOH its OSS equivalent
(Firefly, aka mt-daapd) was buggy and pretty much abandonware last time
I looked.


Martin
sandy123
Newbie
Newbie
Posts: 4
Joined: Tue Sep 06, 2011 4:24 pm

gcc1: out of memory error when installing wine

Post by sandy123 »

Thanks for your help. By way of explanation, the dependencies problem came when I tried to install wine. There were so many programs that I had to download and install that I couldn't get through the programs needed to install wine. But wine wouldn't install without them.

I need to use the winamp player because there is a specific plugin for it that will lock onto an IEP when it is streaming, and no matter what goes on, internet down for a day, or whatever, it always automatically reconnects itself and starts firing up so I am pretty locked in to what I need as far as the player.

What version of wine do you recommend that would run winamp and what version of linux do you recommend to go with wine? Am I missing something as to getting wine to install in the new version of suse without having a bunch of dependencies to deal with? I really would like to use suse as I am familiar with it but think I could pick up on another version even though I dread learning another as I have . Thank you for your help. You have no idea how I appreciate it.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: gcc1: out of memory error when installing wine

Post by dimesio »

sandy123 wrote: What version of wine do you recommend that would run winamp and what version of linux do you recommend to go with wine? Am I missing something as to getting wine to install in the new version of suse without having a bunch of dependencies to deal with? I really would like to use suse as I am familiar with it but think I could pick up on another version even though I dread learning another as I have . Thank you for your help. You have no idea how I appreciate it.
As I've already said, I recommend the latest version of both your OS and Wine, if only to be able to get support. As for dependencies, yes, Wine has a lot of them, and you have to install them. I really don't understand why that it is a problem. I've used openSUSE since 10.3 (have 11.4 now), and Yast has always just downloaded and installed whatever was needed.
Locked