Bug 111126 - gcc 4.3 does not compile
Summary: gcc 4.3 does not compile
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Gerald Pfeifer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-02 08:20 UTC by Thomas Schweikle
Modified: 2007-04-09 20:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schweikle 2007-04-02 08:20:23 UTC
cd /usr/ports/lang/gcc43
make clean build

/usr/ports/lang/gcc43/work/build/gcc/gcj -B/usr/ports/lang/gcc43/work/build/i386-portbld-freebsd6.2/libjava/ -B/usr/ports/lang/gcc43/work/build/gcc/ -ffloat-store -fomit-frame-pointer -fclasspath= -fbootclasspath=../.././..//gcc-4.3-20070323/libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -O2 -c -fsource-filename=/usr/ports/lang/gcc43/work/build/i386-portbld-freebsd6.2/libjava/classpath/lib/classes -MT gnu/javax/swing/text/html/parser/HTML_401F.lo -MD -MP -MF gnu/javax/swing/text/html/parser/HTML_401F.deps @gnu/javax/swing/text/html/parser/HTML_401F.list -fPIC -o gnu/javax/swing/text/html/parser/.libs/HTML_401F.o

jc1: out of memory allocating 4072 bytes after a total of 536269360 bytes
gmake[3]: *** [gnu/javax/swing/text/html/parser/HTML_401F.lo] Error 1
gmake[3]: Leaving directory `/usr/ports/lang/gcc43/work/build/i386-portbld-freebsd6.2/libjava'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/lang/gcc43/work/build/i386-portbld-freebsd6.2/libjava'
gmake[1]: *** [all-target-libjava] Error 2
gmake[1]: Leaving directory `/usr/ports/lang/gcc43/work/build'
gmake: *** [bootstrap-lean] Error 2
*** Error code 2

Stop in /usr/ports/lang/gcc43.

If the computer is equiped with more memory (2 GByte) this will be exausted too.

How-To-Repeat: cd /usr/ports/lang/gcc43
make clean build
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-04-02 09:00:49 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gerald

Over to maintainer
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-04-09 19:34:59 UTC
gerald      2007-04-09 18:34:53 UTC

  FreeBSD ports repository

  Modified files:
    lang/gcc43           Makefile 
  Log:
  Check for, and warn about the datasize limit, before trying to build
  with Java support.
  
  PR:             111126
  Suggested by:   kris, cperciva
  
  Revision  Changes    Path
  1.305     +9 -0      ports/lang/gcc43/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Gerald Pfeifer freebsd_committer freebsd_triage 2007-04-09 20:22:46 UTC
State Changed
From-To: open->closed

I added a description of this issue to lang/gcc43/pkg-descr on 2007/03/31. 
Today, I committed a run-time check that verifies whether we have a 
sufficiently high datasize limit before trying to build this port. 

The problem here is that you may have arbitrarily much memory, but by 
default FreeBSD may not give you more than 512MB per process.  Please 
give the updated port a try and let me know whether the new warning 
does address this satisfactorily.  (If have, of course, also reported 
the underlying issue upstream earlier this year.) 

Thanks for the report!
Comment 4 Thomas Schweikle 2007-04-09 20:46:36 UTC
Memory limit is set to 768 MiByte (512 MiByte RAM, 256 MiByte
swap for historical reasons). I had the Memory limit set to 768
MiByte, but this lead to instabilities since processes could
exaust all memory, even memory needed by the system itself. I
lowered the memory limit successive to 540 MiByte. This value
seems to avoid instabilities, but is, I think, not enough to
compile gcc43 :-(

-- 
Thomas