cc command


Forum: DSL Embedded
Topic: cc command
started by: merlin565656

Posted by merlin565656 on Aug. 30 2006,14:58
installing software and getting cc not found error while installing software..

how can I add this function to DSL-embedded..

Posted by mikshaw on Aug. 30 2006,15:06
DSL's cc is tcc.  There is also a gcc mydsl package in the repository.

Depending on what you want to build, you might also need to add some headers (includes) to your system, since DSL contains very little in the way of C development files. The gcc-with-libs.dsl package includes some of the more commonly-used headers.

Posted by merlin565656 on Aug. 30 2006,15:31
I'll try changing the cc to tcc in the build.sh file and see what happens..

what about the ld command.. do you know what its equivelant is..

also.. I've found gcc1.dsl and libc6.dsl and libc6-dev.dsl..
Is that what I should be loading..

Posted by merlin565656 on Aug. 30 2006,16:45
actually changing cc to tcc didn't work.. the parameters arn't the same.. the cc command was using a -02 and many others that dont exist in tcc..

I think this program may have been written for red hat..
dont know if it will be possible to get it to work..

Posted by ^thehatsrule^ on Aug. 31 2006,01:20
Yes, you probably should have just started with gcc.
Posted by merlin565656 on Aug. 31 2006,02:39
my software requires the kernal source..
If i load kernelsource.dsl then load gcc.. the dsl window locks up..
If I load gcc then load kernelsource.dsl i get an out of space error then the dsl window exits (closes..)..

so I can't even try running the setup with gcc

Posted by ^thehatsrule^ on Aug. 31 2006,03:54
You don't have enough memory.
You can try
- increasing your physical RAM
- creating a swap (or increase it) - I'd try this one first.
- do a debian-style hdd install (not very recommended, but it works well with lower memory systems)
- do a remaster (longest, but very worth it)
- create .unc's (if you are using DSL v3+ with unionfs)

Posted by merlin565656 on Sep. 11 2006,04:48
in the windows batch file i increased -m 64
to -m 256
That increased my RAM..
I also increased my HOME with:
sudo mount -t tmpfs /ramdisk -o remount,rw,size=1024M,nouser,exec /ramdisk

and that fixed the issues i was having
i was then able to install gcc1.dsl and my kernel-source.dsl and install the software..
Thanks

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.