LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-28-2005, 01:16 PM   #1
Draco098
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
Problem with GCC 3.4.3 and libgcj


Hello,

I am working with a host / target machine setup. The cpu arch is the same on both, x86_64 (athlon64), the only real difference is size, ie. my host has a 80GB HD, my targets have 1GB compact flash disks (need this for mechanical vibration reasons). I have CentOS 3.4-x86_64 fully installed on my host, and my target machines have the same OS just with a much smaller package list.

I am trying to get GCC 3.4.3 compiled into a relatively small footprint (< 200 Mb), so I can use it on my targets. I only want c, c++ and java installed. I downloaded the gcc-core .tar and ran the make and make install on that and successfully installed it on my target machine, taking up approximately 40MB. When I build the core along with c++ and java, my libraries such as libgcj.a come out to be over 100MB! Compared to a 20MB libgcj on my Fedora 3 machines.

I've tried compiling with different explicit options such as: --enable-shared, --disable-static, --with-arch=athlon64, and a whole bunch of others. Nothing I've tried gets the size of the libgcj.a file down, nor the other big libraries. Any help or insight would be greatly appreciatied. Thanks.


--
Daniel A. Kent
Graduate Research Assistant
Center for Intelligent Machines and Robotics (CIMAR)
University of Florida
 
Old 02-28-2005, 01:43 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
try to strip everything and see how much that brings the space down
http://www.linux.com/guides/Pocket-L...ide/x340.shtml

hope this helps
 
Old 03-01-2005, 07:21 AM   #3
Draco098
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Hey J,

The stripping actually zapped most of it. Took a 100MB library down to about 20MB. I'm curoius why the make/make install sequence doesn't include this step. Must be an option somewhere.

My big search now is for information about the O0g and O2g files which are inside the stdc++.h.gch folder. I found some information indicating they are precompiled headers. But these puppies are 33MB each! Anyone familiar with them? Can I get rid of them somehow with out fubaring the whole thing? Maybe a configuration option?

Thanks again!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libgcj-java-placeholder.sh and Java captainObvious Linux - General 6 07-25-2008 01:42 AM
Solved Problem Second GCC-Pass(or gettext sanity check problem) hoes Linux From Scratch 0 09-04-2005 10:20 AM
the problem of libgcj winpro Linux - Newbie 2 08-28-2005 01:18 PM
[SOLVED] How to run Sun JDK 1.5 without conflict from libgcj? rhimbo Linux - Software 1 12-08-2004 06:37 PM
Problem with GCC thedeath2k4 Linux - Software 3 04-06-2004 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration