bladox.com Forum Index bladox.com
Turbo SIM Toolkit Adapter Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GCC building problem
Goto page 1, 2  Next
 
Post new topic   Reply to topic    bladox.com Forum Index -> Development
View previous topic :: View next topic  
Author Message
mike
Guest





PostPosted: Tue Dec 05, 2006 5:39 pm    Post subject: GCC building problem Reply with quote

hello to everyone.

I has just bought the turbo sim and I am trying to install the development tools on
Mandriva linux rel2007official, kernel 2.6.17-5mdv on i686.

when i try to make the gcc (which i downloaded from the bladox site) I get:

In file included from ./read-rtl.c:24:
./rtl.h:132: warning: type of bit-field ?code? is a GCC extension
./rtl.h:135: warning: type of bit-field ?mode? is a GCC extension
./read-rtl.c: In function ?fatal_with_file_and_line?:
./read-rtl.c:53: warning: traditional C rejects ISO C style function definitions
./read-rtl.c: In function ?read_rtx?:
./read-rtl.c:653: error: invalid lvalue in increment
make[1]: *** [read-rtl.o] Error 1
make[1]: Leaving directory `/home/mike/Desktop/gcc-3.3.2/gcc'
make: *** [all-gcc] Error 2

and building stops. I am also new in linux and I just followed turbo's development tools instructions, namely:
./configure --target=avr --enable-languages=c
make

What am I doing wrong?

thanxs
Back to top
pz
Guest





PostPosted: Wed Dec 06, 2006 10:42 am    Post subject: Reply with quote

Unfortunately this seems like something compiler (used version in your distribution vs. source?) related. The gcc source on our site is in standard gcc from gnu archive, not any modification by us. You should better to report this bug at mandriva.
Back to top
mike
Guest





PostPosted: Wed Dec 06, 2006 10:52 am    Post subject: Reply with quote

thanks for the answer pz.
the fact is that I installed a rpm package I found.
however, now I do not know how to compile the helloworld program as there are not any instructions.

it might be a trivial issue, but I am not used in linux environments...
Back to top
pz
Guest





PostPosted: Wed Dec 06, 2006 11:41 am    Post subject: Reply with quote

Type "make". But this is something not linux specific, please look for some unix related textbook.
Back to top
mike
Guest





PostPosted: Thu Dec 07, 2006 2:31 pm    Post subject: Reply with quote

and the problems remain....

after not managing to install development tools in linux, I tried the cygwin version.

I untared the compressed file according to the instructions,
I untared the turbo-devel-060822 in the root directory(c:/cygwin/)
and I tried to build the helloworld. I typed make and I got :

avr-gcc -c -std=gnu99 -mmcu=atmega128 -mno-tablejump -Wimplicit-function-declaration -Os -fno-builtin -I../../turbo-devel-060822/include -I. hello_world.c -o hello_world.o
avr-gcc: installation problem, cannot exec 'ccl': No such file or directory
make: ***[hello_world.o] Error 1

can please somebody provide me with a solution?

thanxs
Back to top
pz
Guest





PostPosted: Thu Dec 07, 2006 6:06 pm    Post subject: Reply with quote

Huh, never heard of "ccl" - isn't it "cc1"? But cc1.exe is part of the package, I just searched thru my cygwin installation and there is no "*ccl*" installed.
Back to top
mike
Guest





PostPosted: Fri Dec 08, 2006 4:26 pm    Post subject: Reply with quote

you are right, it is cc1 and I overcame this problem.
then I tried to do make and I got:
Code:
avr-gcc -c -std=gnu99 -mmcu=atmega128 -mno-tablejump -Wimplicit-function-declaration -Os -fno-builtin -I../include -I. hello_world.c -o hello_world.o
hello_world.c:10:25: turbo/turbo.h: No such file or directory
hello_world.c:12: error: parse error before "PROGMEM"
hello_world.c:12: warning: type defaults to `int' in declaration of `t_Foo_en'
hello_world.c:12: error: int-array initialized from non-wide string
hello_world.c:12: warning: data definition has no type or storage class
hello_world.c: In function `action_menu':
hello_world.c:16: warning: implicit declaration of function `display_text_raw'
hello_world.c:16: error: `Q_DISPLAY_TEXT_USER_CLEAR' undeclared (first use in this function)
hello_world.c:16: error: (Each undeclared identifier is reported only once
hello_world.c:16: error: for each function it appears in.)
hello_world.c: At top level:
hello_world.c:19: error: parse error before "action"
hello_world.c: In function `turbo_handler':
hello_world.c:21: error: `action' undeclared (first use in this function)
hello_world.c:23: error: `ACTION_INSERT_MENU' undeclared (first use in this function)
hello_world.c:24: warning: implicit declaration of function `insert_menu'
hello_world.c:26: error: `ACTION_MENU_SELECTION' undeclared (first use in this function)
hello_world.c:27: warning: implicit declaration of function `stk_thread'
hello_world.c:27: error: `data' undeclared (first use in this function)
make: *** [hello_world.o] Error 1


I saw that there is a solution in posts in czech, but unfortunately I do not speek czech Crying or Very sad
Back to top
pz
Guest





PostPosted: Fri Dec 08, 2006 4:39 pm    Post subject: Reply with quote

Finally something we can help with Smile

You don't have set up the TURBO_DIR in Makefile properly. Where do you have have the example installed and where is turbo-devel? I.e. turbo-devel/include, lib, etc.

Btw. you mentioned to install avr-gcc rmp under linux, what if you typed make there?
Back to top
mike
Guest





PostPosted: Fri Dec 08, 2006 5:05 pm    Post subject: Reply with quote

well, pz
now I am using cygwin as with linux I had many problems...

pz wrote:
You don't have set up the TURBO_DIR in Makefile properly. Where do you have have the example installed and where is turbo-devel? I.e. turbo-devel/include, lib, etc.


it is:
C:\cygwin\usr\local\turbo-devel\examples\hello_world
and
in the makefile
TURBO_DIR=..


I think that the required file is in the specified path
Back to top
mike
Guest





PostPosted: Fri Dec 08, 2006 5:13 pm    Post subject: Reply with quote

and of course:
/usr/local/turbo-devel$ ls
CREDITS
ChangeLog
README
doc
examples
include
lib
Back to top
pz
Guest





PostPosted: Fri Dec 08, 2006 5:53 pm    Post subject: Reply with quote

OK, try TURBO_DIR=/usr/local/turbo-devel
Back to top
mike
Guest





PostPosted: Fri Dec 08, 2006 6:39 pm    Post subject: Reply with quote

I did the change and I got the following
avr-gcc -c -std=gnu99 -mmcu=atmega128 -mno-tablejump -Wimplicit-function-declaration -Os -fno-builtin -I/usr/local/turbo-devel/include -I. hello_world.c -o hello_world.o
as: unrecognized option `-mmcu=atmega128'
make: *** [hello_world.o] Error 1
Back to top
mike
Guest





PostPosted: Sun Dec 10, 2006 10:19 am    Post subject: Reply with quote

finally, as I did not get any reply and as I am in a really hurry, I installed SUSE linux on my pc and I managed to compile helloworld.

However, I would like to have an answer in my previous posts in order to have a working cygwin environment also.

Now, I am having problems transferring the helloworld.trb to my phone.
I try to transfer the file via COM over bluetooth.
I tried:
prog_apps -dCOM9 -v helloworld.trb
Initializing device
Device initialized
Entering Application Mode
....and nothing happens...

the same and when I use:
tcp -dCOM9 helloworld.trb /apps/helloworld.trb
SRC......
....
Entering Application Mode
and nothing happens....

What could be the problem?
I tried the above in the windows environment.I have the turbo adapter and the NOKIA 6230 phone.

Also, I do not have the code of prog_apps or tcp and so I do not know where the problem is....

please, I need a solution urgently....
Back to top
pz
Guest





PostPosted: Mon Dec 11, 2006 8:02 am    Post subject: Reply with quote

mike wrote:
I did the change and I got the following
avr-gcc -c -std=gnu99 -mmcu=atmega128 -mno-tablejump -Wimplicit-function-declaration -Os -fno-builtin -I/usr/local/turbo-devel/include -I. hello_world.c -o hello_world.o
as: unrecognized option `-mmcu=atmega128'
make: *** [hello_world.o] Error 1


Probably for some reason your avr-gcc uses "standard" i386 as, not avr-as. Something is wrong with you cygwin installation.
Back to top
pz
Guest





PostPosted: Mon Dec 11, 2006 8:04 am    Post subject: Reply with quote

mike wrote:
finally, as I did not get any reply and as I am in a really hurry, I installed SUSE linux on my pc and I managed to compile helloworld.

However, I would like to have an answer in my previous posts in order to have a working cygwin environment also.

Now, I am having problems transferring the helloworld.trb to my phone.
I try to transfer the file via COM over bluetooth.
I tried:
prog_apps -dCOM9 -v helloworld.trb
Initializing device
Device initialized
Entering Application Mode
....and nothing happens...

the same and when I use:
tcp -dCOM9 helloworld.trb /apps/helloworld.trb
SRC......
....
Entering Application Mode
and nothing happens....

What could be the problem?
I tried the above in the windows environment.I have the turbo adapter and the NOKIA 6230 phone.

Also, I do not have the code of prog_apps or tcp and so I do not know where the problem is....
please, I need a solution urgently....


prog_apps is for uploading app into programmer itself, you need "cemu". Insert turbo with sim cart into sim connector on programmer and use "cemu [--pin xxxx] --app helloworld.trb" where pin is option pin of the sim card itelf.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    bladox.com Forum Index -> Development All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group