* Compiling problems with Compaq's C/C++
@ 2000-05-10 4:00 h0l0gRaM
2000-05-10 4:00 ` Eric Jones
0 siblings, 1 reply; 8+ messages in thread
From: h0l0gRaM @ 2000-05-10 4:00 UTC (permalink / raw)
Hi!
I downloaded C/C++ compilers from Compaq's site and cpml math lib.
Also libots and Compaq's binutils & gdb for RH6.2
Everything installed without errors ,CCC create link for ld.
And then I try it ,compiling several programs.
Few program compiles fine ,only few warning but binary is run able.
And heres LAME-3.70 compiling output.
...and lame is configured to use ccc & cpml.
ccc -o lame main.o -L. -lmp3lame -lcpml `gtk-config --libs`
-lncurses
/bin/ld: error in loading shared libraries: libc.so.6.1: failed to map
segment from shared object: Cannot allocate memory
collect2: ld returned 127 exit status
.....
(collect2: ld returned 127 exit status will come more than 127+n
times.)
So ,I ran ldconfig and then make.
Then I got this :
ccc -o lame main.o -L. -lmp3lame -lcpml `gtk-config --libs`
-lncurses
collect2: ld terminated with signal 11 [Segmentation fault]
collect2: ld returned 33 exit status
.....
When compiling some other ,libc6.so founds.
I think that's not memory problem ,I have 128mb + 50mb swap.
Now ,I'm really out of road ,wheres highway....
What is going wrong ,any suggestions ?
System is Alpha XL300(ev5) with RH6.2
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compiling problems with Compaq's C/C++
2000-05-10 4:00 Compiling problems with Compaq's C/C++ h0l0gRaM
@ 2000-05-10 4:00 ` Eric Jones
2000-05-10 4:00 ` Michal Jaegermann
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Eric Jones @ 2000-05-10 4:00 UTC (permalink / raw)
h0l0gRaM <hgm@saunalahti.fi> said:
>When compiling some other ,libc6.so founds.
>I think that's not memory problem ,I have 128mb + 50mb swap.
rtfm. swap should be 2*128M = 256M.
--
---
Eric Jones
ehjones@GREATGOOGLYMOOGLY.bellatlantic.net
Remove the Zappa quote to mail me.
Here's a few email addresses to help out the spammers:
tosspam@aol.com,root@localhost,root@127.0.0.1,root@fbi.gov
Hot NEW WAY to speed up your NEWS READING! Press Alt-F4 for more information!
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Compiling problems with Compaq's C/C++
2000-05-10 4:00 ` Eric Jones
@ 2000-05-10 4:00 ` Michal Jaegermann
2000-05-10 4:00 ` Eric Jones
2000-05-10 4:00 ` h0l0gRaM
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Michal Jaegermann @ 2000-05-10 4:00 UTC (permalink / raw)
Eric Jones (xeno@quanta.dyndns.org) wrote:
: h0l0gRaM <hgm@saunalahti.fi> said:
: >When compiling some other ,libc6.so founds.
: >I think that's not memory problem ,I have 128mb + 50mb swap.
: rtfm. swap should be 2*128M = 256M.
Oh! May I ask in which FM you found that perl of wisdom? Do you still
apply it to boxes with 4 GB of a physical memory on board? This manual
would be somewhat obsolete and not for Linux, I suppose? As a matter of
fact Linux can run happily with a zero swap space and although this is
usually not recommened for various reasons there are systems set that
way.
What Linux does is in some places called "paging" as opposed to
"swapping". Early VM implementations from days when 64K of memory was a
huge amount do not have to be necessarily used nowadays and "rules" like
"swap is two times amount of your memory, plus some slack" do not apply.
Michal
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Compiling problems with Compaq's C/C++
2000-05-10 4:00 ` Michal Jaegermann
@ 2000-05-10 4:00 ` Eric Jones
0 siblings, 0 replies; 8+ messages in thread
From: Eric Jones @ 2000-05-10 4:00 UTC (permalink / raw)
Michal Jaegermann <michal@gortel.phys.ualberta.ca> said:
>Oh! May I ask in which FM you found that perl of wisdom? Do you still
>apply it to boxes with 4 GB of a physical memory on board? This manual
>would be somewhat obsolete and not for Linux, I suppose? As a matter of
>fact Linux can run happily with a zero swap space and although this is
>usually not recommened for various reasons there are systems set that
>way.
Hi, Mike. Still masturbating that ego, I see.
I'll concede that I can't find any FAQ's out there anymore that recommend
that linux users use 2* the physical memory. However, the rule of thumb that was
recommended in the linux FAQ when I first started using linux was 2* the
physical memory. FreeBSD recommends this still. It's a good rule because even
though you may have gargantuan amounts of physical memory, intensive
calculations and big applications can eat this up very quickly. An example of
this is some quantum chromodynamics code an acquaintence of mine was running.
It consumed his close to 1 GB of memory and still used swap. In fact, quoting
one of the FAQs for Debian/Alpha,
With respect to the issue of swap partition size, there are many
views. One rule of thumb which works well is to use as much swap as
you have system memory, although there probably isn't much point in
going over 64MB of swap for most users. It also shouldn't be smaller
than 16MB, in most cases. Of course, there are exceptions to these
rules. If you are trying to solve 10000 simultaneous equations on a
machine with 256MB of memory, you may need a gigabyte (or more) of
swap.
I personally have 128M or ram in my box and 2* the physical memory for
swap. I've seen goodly chunks of swap being used during large compiles.
In any event, under linux these days no one seems to have a solid answer.
So. Use 2*, don't use 2*, I couldn't care less.
Neener.
--
---
Eric Jones
ehjones@GREATGOOGLYMOOGLY.bellatlantic.net
Remove the Zappa quote to mail me.
Here's a few email addresses to help out the spammers:
tosspam@aol.com,root@localhost,root@127.0.0.1,root@fbi.gov
Hot NEW WAY to speed up your NEWS READING! Press Alt-F4 for more information!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compiling problems with Compaq's C/C++
2000-05-10 4:00 ` Eric Jones
2000-05-10 4:00 ` Michal Jaegermann
@ 2000-05-10 4:00 ` h0l0gRaM
2000-05-10 4:00 ` h0l0gRaM
2000-05-11 4:00 ` Martin Sinot
3 siblings, 0 replies; 8+ messages in thread
From: h0l0gRaM @ 2000-05-10 4:00 UTC (permalink / raw)
Eric Jones wrote:
> h0l0gRaM <hgm@saunalahti.fi> said:
> >When compiling some other ,libc6.so founds.
> >I think that's not memory problem ,I have 128mb + 50mb swap.
>
> rtfm. swap should be 2*128M = 256M.
>
And do you think when I have 512mb ram and 1024mb (one gig) swap ????
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compiling problems with Compaq's C/C++
2000-05-10 4:00 ` Eric Jones
2000-05-10 4:00 ` Michal Jaegermann
2000-05-10 4:00 ` h0l0gRaM
@ 2000-05-10 4:00 ` h0l0gRaM
2000-05-10 4:00 ` Eric Jones
2000-05-11 4:00 ` Martin Sinot
3 siblings, 1 reply; 8+ messages in thread
From: h0l0gRaM @ 2000-05-10 4:00 UTC (permalink / raw)
Eric Jones wrote:
> h0l0gRaM <hgm@saunalahti.fi> said:
> >When compiling some other ,libc6.so founds.
> >I think that's not memory problem ,I have 128mb + 50mb swap.
>
> rtfm. swap should be 2*128M = 256M.
Hey ,you're kidding ,right ?
128mb should be enough ,now when using common progs ,theres still some memory
which not be used.
Now I see 2-4 megs unused memory.
Main progs.
Netscape browser & mail
Xmms
3 Terminals
....
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compiling problems with Compaq's C/C++
2000-05-10 4:00 ` h0l0gRaM
@ 2000-05-10 4:00 ` Eric Jones
0 siblings, 0 replies; 8+ messages in thread
From: Eric Jones @ 2000-05-10 4:00 UTC (permalink / raw)
h0l0gRaM <hgm@saunalahti.fi> said:
>> rtfm. swap should be 2*128M = 256M.
>
>Hey ,you're kidding ,right ?
>
>128mb should be enough ,now when using common progs ,theres still some memory
>which not be used.
>Now I see 2-4 megs unused memory.
>Main progs.
> Netscape browser & mail
> Xmms
>3 Terminals
Do what you want. I'm just giving you a probable solution. How much memory
do you see free when you compile a kernel?
--
---
Eric Jones
ehjones@GREATGOOGLYMOOGLY.bellatlantic.net
Remove the Zappa quote to mail me.
Here's a few email addresses to help out the spammers:
tosspam@aol.com,root@localhost,root@127.0.0.1,root@fbi.gov
Hot NEW WAY to speed up your NEWS READING! Press Alt-F4 for more information!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compiling problems with Compaq's C/C++
2000-05-10 4:00 ` Eric Jones
` (2 preceding siblings ...)
2000-05-10 4:00 ` h0l0gRaM
@ 2000-05-11 4:00 ` Martin Sinot
3 siblings, 0 replies; 8+ messages in thread
From: Martin Sinot @ 2000-05-11 4:00 UTC (permalink / raw)
Eric Jones <xeno@quanta.dyndns.org> wrote in message
news:slrn8hiqkn.2jg.xeno@quanta.dyndns.org...
> h0l0gRaM <hgm@saunalahti.fi> said:
> >When compiling some other ,libc6.so founds.
> >I think that's not memory problem ,I have 128mb + 50mb swap.
>
> rtfm. swap should be 2*128M = 256M.
>
That is only a rule of thumb. Linux can run without any swap
space if necessary. 178M should be more than sufficient to
compile everything. Moreover, the problem occurs during link
time, and linking only costs a few megs of memory at most.
It is the compiling/assembling which can be very memory
hungry. I agree that most likely memory is not the problem.
--
Martin Sinot
Nijmegen, Netherlands
martin@spase.nl
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2000-05-11 4:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-10 4:00 Compiling problems with Compaq's C/C++ h0l0gRaM
2000-05-10 4:00 ` Eric Jones
2000-05-10 4:00 ` Michal Jaegermann
2000-05-10 4:00 ` Eric Jones
2000-05-10 4:00 ` h0l0gRaM
2000-05-10 4:00 ` h0l0gRaM
2000-05-10 4:00 ` Eric Jones
2000-05-11 4:00 ` Martin Sinot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox