WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: adding new programms to compiletc  (Read 19123 times)

Offline c-coder

  • Newbie
  • *
  • Posts: 16
adding new programms to compiletc
« on: December 15, 2008, 05:24:33 PM »
Hello.

I have just booted in tiny core linux and have installed opera for surfing the net.
Everythings works great and is extreme fast.

After such a great impression i have downloaded and installed compiletc to try to compile some programms.
I am missing at the moment the Subversion Programm for fetching the source code and compile it in tcl.

Is allready somebody working to include svn to compiletc?

If not, is it possible to compile svn on my machine and to send it to somebody to include it in compiletc ?

Thanks for the help and the great work till yet.
Greetings c-coder

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: adding new programms to compiletc
« Reply #1 on: December 15, 2008, 05:34:31 PM »
svn will probably not be included in compiletc because it is not a tool required for compiling.

It is more likely that it would be in a separate extension should you or someone else want to create one.

Offline florian

  • Full Member
  • ***
  • Posts: 116
    • Home Page
Re: adding new programms to compiletc
« Reply #2 on: December 16, 2008, 10:13:59 AM »
What about X headers perhaps?
Although there's already a Xorg-dev extension that one can use.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14831
Re: adding new programms to compiletc
« Reply #3 on: December 16, 2008, 02:11:27 PM »
I'll look at making a separate svn extension - I've downloaded the tarballs, now I just have to find the time to compile them

For the X headers - since there's both the base XVesa Kdrive and the Xorg-7.4 extension that people would commonly compile against, I think it's best the headers are separate from compiletc

Offline c-coder

  • Newbie
  • *
  • Posts: 16
Re: adding new programms to compiletc
« Reply #4 on: December 16, 2008, 03:48:55 PM »
I have tryed to compile svn in tiny core linux.

Normally building svn from sources is not a problem,
You need the two source tarballs and install additional the openssl tcl extension.
After this everything should go easy.

For some reason however tiny core linux freeze after a while svn is compiling.
I cant move the mouse pointer nor can i write something on the keyboard.

Its pity that tiny core linux isnt such stable like i thinked itself.

I am asking my self why tcl freeze while i try to comple svn from sources .
Does somebody also has this problem ?

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: adding new programms to compiletc
« Reply #5 on: December 16, 2008, 03:56:46 PM »
My guess is that you were compiling in memory and ran out of it.

Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
Re: adding new programms to compiletc
« Reply #6 on: December 16, 2008, 04:10:43 PM »
it would be awesome if just before running out of free memory, linux severed the network connections, kill -9'ed whatever process took up the most memory, and then gave you the option of restoring the internet connections.

it would be an os-wide version of something i've seen happen to browsers in 2.6, if not by design. it's cooler than what i used to see in dsl. when you ran out of memory or cpu was at 100, it would just stop, i couldn't even switch to tty or leave xwin. in that regard, tc is much more stable (for surfing) than dsl 4.4.2 on the same machines i've used both on.

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: adding new programms to compiletc
« Reply #7 on: December 16, 2008, 05:12:22 PM »
I recall that there were some reports that enabling some swap would help...

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: adding new programms to compiletc
« Reply #8 on: December 16, 2008, 10:21:58 PM »
Quote
it would be awesome if just before running out of free memory, linux severed the network connections, kill -9'ed whatever process took up the most memory, and then gave you the option of restoring the internet connections.
That sounds like a horrible solution.  An operating system shouldn't shut down an arbitrary application simply because it has run out of memory.  It should merely wait until running processes have done their business.  If that means you can't do anything until those processes complete, then it is up to you to decide if you want to force certain apps to close...or force a shutdown.  The OS should never make these decisions for you.
« Last Edit: December 16, 2008, 10:23:41 PM by mikshaw »

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: adding new programms to compiletc
« Reply #9 on: December 16, 2008, 10:33:11 PM »
Ok...maybe that sounded a little harsh.  I'm sorry, but I think it would be a bad idea to let the OS decide what to shut down....the user should be given the freedom to choose, even if it means a little inconvenience.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: adding new programms to compiletc
« Reply #10 on: December 16, 2008, 11:11:40 PM »
Linux OOM killer is one such thing that shuts down a process before memory is exhausted and lockup occurs, but of course it can't read minds and the complaints I've read about is that it shuts down the wrong process or too many processes.  It tries to aim at the offending process that is gobbling memory.  I have also seen scripts that do the same thing.

I have to admit that when running with tce's and no /usr/local mounting I have in the past locked up my system while either compiling or simply untarring a kernel.  Compiling glibc totally in RAM on a system with 1GB memory and no swap ground it to a halt.  The solution of course is to use storage media to untar and build on and use tclocal or tcz's.  I rarely do anything totally in RAM except on the above mentioned1GB Windows only machine I sometimes have use of that has no working usb ports. 

For a remote server that you only have access through ssh or some other means and no physical access to, having the system shut down a process before locking up allowing you to ssh into it, free some memory or take care of other issues, and restart the process may be of some value.  In that case a hard lockup is the worst case scenario.

Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
Re: adding new programms to compiletc
« Reply #11 on: December 16, 2008, 11:13:50 PM »
no offense taken, i'm just glad you didn't phrase it "dumb idea." that was kind.

ideally i agree with you, but when the only choice is waiting (literally) an hour for a process that never frees up the ram, or the os cuts off something using all the ram, i'll take the latter. a really great compromise was the os said "hey, i'm about to run out of ram. should i just assume that's what you want or do you want me to kill the process before you're unable to?"

as often as it happened, that would be great.

but as someone mentioned, swap helps too. in any case something so very "wouldn't it be nice" was intended only as such. wishful thinking, not a formal rfc. your idea is good, i like the combination of yours and mine the best, and there's probably some way to make it even better than that. just don't think it was very serious, it was only a thought :) jason: thanks for mentioning oom, never heard of it. if they take mikshaws idea that could improve it.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11048
Re: adding new programms to compiletc
« Reply #12 on: December 17, 2008, 09:41:38 AM »
You can also monitor your ram usage by uncommenting the monitor call in your .jwmrc-tray, which by default will show percentage and update every 1.5s.
The only barriers that can stop you are the ones you create yourself.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14831
Re: adding new programms to compiletc
« Reply #13 on: December 17, 2008, 09:49:49 AM »
..and BTW the "..0%S" works nicely with no swap now - thanks

Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
Re: adding new programms to compiletc
« Reply #14 on: December 18, 2008, 12:09:45 AM »
You can also monitor your ram usage by uncommenting the monitor call in your .jwmrc-tray, which by default will show percentage and update every 1.5s.

conky is doing a fine job of that. it doesn't become a problem so much because of not monitoring, but because an application, usually a browser (i tried different ones, dillo did it more than firefox!) would not want to surf too much without hogging all the ram, even if i cleared the cache, history, turned off picture loading. this was more of a problem with dsl and 2.4 kernels (whether by cause or coincidence) although it happened with dsl-n too. i'm happy to say tc seems a lot better about it. maybe ff3 is more stable than the versions of ff2 i was using with dsl? seems likely. although i liked ff2 a lot.