Active Topics

 


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,154 | Thanked: 8,464 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: 501 | Thanked: 619 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: 868 | Thanked: 2,516 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, 316 views)
 

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


 
Forum Jump


All times are GMT. The time now is 12:14.