Reply
Thread Tools
casketizer's Avatar
Posts: 566 | Thanked: 282 times | Joined on Sep 2010 @ Lower Saxony
#11
Got it working now, yayay

Code:
[2|user@Nokia-N900-51-1|~/tcc]tcc -o blah blah.c
[2|user@Nokia-N900-51-1|~/tcc]./blah
Blah!
Providing Inc and lib dirs via -I and -L is not working.
You were right. One has to properly install the following two packages to make tinyc work:

Code:
linux-kernel-headers_2.6.28-20103103+0m5_armel.deb
libc6-dev_2.5.1-1eglibc27+0m5_armel.deb
(available in SDK repo) Installing those will eat up approx. 5MB rootfs Luckily rootfs is compressed so it's not as bad as i thought it would be.

Now everything works fine.

Last edited by casketizer; 2011-02-15 at 22:12. Reason: cleanup
 

The Following User Says Thank You to casketizer For This Useful Post:
casketizer's Avatar
Posts: 566 | Thanked: 282 times | Joined on Sep 2010 @ Lower Saxony
#12
Celebrated too soon.

If I use simple math like / % i get:

Code:
[2|user@Nokia-N900-51-1|~/tcc]tcc -o sttest st.c
tcc: undefined symbol '__aeabi_idiv'
tcc: undefined symbol '__aeabi_idivmod'
tcc: undefined symbol '__aeabi_uldivmod'
How do I fix? Please help.
 
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#13
I think this is problem in tcc linker. It is not fully ported to arm. You can still use tcc to compile code and use gnu ld linker for linking. Try ask somebody on tcc mailing list.
 

The Following User Says Thank You to pali For This Useful Post:
Posts: 457 | Thanked: 599 times | Joined on Feb 2012
#14
It seems that there is new tcc version 0.9.26 and I think that should help about this problem, but who want make it work in maemo?
 

The Following User Says Thank You to teroyk For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#15
I will guess that pali will update the package with latest debian version.
As long it is not updated in extras you can try the attached compiled version.
It is compiled from diablo source not maemo optified.
Attached Files
File Type: deb tcc_0.9.27-1_armel.deb (193.6 KB, 303 views)
 

The Following 3 Users Say Thank You to Halftux For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 06:43.