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 

Setup Problems on Cygwin on Windows Vista SP2

 
Post new topic   Reply to topic    bladox.com Forum Index -> Development
View previous topic :: View next topic  
Author Message
o4oxide



Joined: 19 Jul 2008
Posts: 17

PostPosted: Sat Jan 16, 2010 2:11 pm    Post subject: Setup Problems on Cygwin on Windows Vista SP2 Reply with quote

Good day,

I have a problem with setting up the development environment on Cygwin running on windows vista sp2

I believe the turbo-win pack is sufficient so I untarred it as per below

$ tar xvfpz usr.tar.gz
usr/
usr/local/
usr/local/avr/
usr/local/avr/bin/
usr/local/avr/bin/ar.exe
usr/local/avr/bin/as.exe
usr/local/avr/bin/gcc.exe
usr/local/avr/bin/ld.exe
usr/local/avr/bin/nm.exe
usr/local/avr/bin/ranlib.exe
usr/local/avr/bin/strip.exe
usr/local/avr/lib/
usr/local/avr/lib/ldscripts/
usr/local/avr/lib/ldscripts/avr23xx.xr
usr/local/avr/lib/ldscripts/avr44x4.xr
usr/local/avr/lib/ldscripts/avrmega161.xn
usr/local/avr/lib/ldscripts/avr1.x
usr/local/avr/lib/ldscripts/avr1.xbn
usr/local/avr/lib/ldscripts/avr1.xn
usr/local/avr/lib/ldscripts/avr1.xr
usr/local/avr/lib/ldscripts/avr1.xu
usr/local/avr/lib/ldscripts/avr1200.x
usr/local/avr/lib/ldscripts/avr1200.xbn
usr/local/avr/lib/ldscripts/avr1200.xn
usr/local/avr/lib/ldscripts/avr1200.xr
usr/local/avr/lib/ldscripts/avr1200.xu
usr/local/avr/lib/ldscripts/avr2.x
usr/local/avr/lib/ldscripts/avr2.xbn
usr/local/avr/lib/ldscripts/avr2.xn
usr/local/avr/lib/ldscripts/avr2.xr
usr/local/avr/lib/ldscripts/avr2.xu
usr/local/avr/lib/ldscripts/avr23xx.x
usr/local/avr/lib/ldscripts/avr23xx.xbn
usr/local/avr/lib/ldscripts/avr23xx.xn
usr/local/avr/lib/ldscripts/avr23xx.xu
usr/local/avr/lib/ldscripts/avr3.x
usr/local/avr/lib/ldscripts/avr3.xbn
usr/local/avr/lib/ldscripts/avr3.xn
usr/local/avr/lib/ldscripts/avr3.xr
usr/local/avr/lib/ldscripts/avr3.xu
usr/local/avr/lib/ldscripts/avr4.x
usr/local/avr/lib/ldscripts/avr4.xbn
usr/local/avr/lib/ldscripts/avr4.xn
usr/local/avr/lib/ldscripts/avr4.xr
usr/local/avr/lib/ldscripts/avr4.xu
usr/local/avr/lib/ldscripts/avr4433.x
usr/local/avr/lib/ldscripts/avr4433.xbn
usr/local/avr/lib/ldscripts/avr4433.xn
usr/local/avr/lib/ldscripts/avr4433.xr
usr/local/avr/lib/ldscripts/avr4433.xu
usr/local/avr/lib/ldscripts/avr44x4.x
usr/local/avr/lib/ldscripts/avr44x4.xbn
usr/local/avr/lib/ldscripts/avr44x4.xn
usr/local/avr/lib/ldscripts/avr44x4.xu
usr/local/avr/lib/ldscripts/avr5.x
usr/local/avr/lib/ldscripts/avr5.xbn
usr/local/avr/lib/ldscripts/avr5.xn
usr/local/avr/lib/ldscripts/avr5.xr
usr/local/avr/lib/ldscripts/avr5.xu
usr/local/avr/lib/ldscripts/avr85xx.x
usr/local/avr/lib/ldscripts/avr85xx.xbn
usr/local/avr/lib/ldscripts/avr85xx.xn
usr/local/avr/lib/ldscripts/avr85xx.xr
usr/local/avr/lib/ldscripts/avr85xx.xu
usr/local/avr/lib/ldscripts/avrmega103.x
usr/local/avr/lib/ldscripts/avrmega103.xbn
usr/local/avr/lib/ldscripts/avrmega103.xn
usr/local/avr/lib/ldscripts/avrmega103.xr
usr/local/avr/lib/ldscripts/avrmega103.xu
usr/local/avr/lib/ldscripts/avrmega161.x
usr/local/avr/lib/ldscripts/avrmega161.xbn
usr/local/avr/lib/ldscripts/avrmega161.xr
usr/local/avr/lib/ldscripts/avrmega161.xu
usr/local/avr/lib/ldscripts/avrmega603.x
usr/local/avr/lib/ldscripts/avrmega603.xbn
usr/local/avr/lib/ldscripts/avrmega603.xn
usr/local/avr/lib/ldscripts/avrmega603.xr
usr/local/avr/lib/ldscripts/avrmega603.xu
usr/local/bin/
usr/local/bin/avr-addr2line.exe
usr/local/bin/avr-ar.exe
usr/local/bin/avr-as.exe
usr/local/bin/avr-c++filt.exe
usr/local/bin/avr-cpp.exe
usr/local/bin/avr-gcc-3.3.2
usr/local/bin/avr-gcc.exe
usr/local/bin/avr-gccbug
usr/local/bin/avr-gcov.exe
usr/local/bin/avr-ld.exe
usr/local/bin/avr-nm.exe
usr/local/bin/avr-objcopy.exe
usr/local/bin/avr-objdump.exe
usr/local/bin/avr-ranlib.exe
usr/local/bin/avr-readelf.exe
usr/local/bin/avr-size.exe
usr/local/bin/avr-strings.exe
usr/local/bin/avr-strip.exe
usr/local/etc/
usr/local/include/
usr/local/info/
usr/local/info/as.info
usr/local/info/bfd.info
usr/local/info/bfd.info-1
usr/local/info/bfd.info-2
usr/local/info/bfd.info-3
usr/local/info/bfd.info-4
usr/local/info/bfd.info-5
usr/local/info/bfd.info-6
usr/local/info/bfd.info-7
usr/local/info/bfd.info-8
usr/local/info/bfd.info-9
usr/local/info/binutils.info
usr/local/info/configure.info
usr/local/info/configure.info-1
usr/local/info/configure.info-2
usr/local/info/configure.info-3
usr/local/info/cpp.info
usr/local/info/cppinternals.info
usr/local/info/dir
usr/local/info/gcc.info
usr/local/info/gccint.info
usr/local/info/ld.info
usr/local/info/standards.info
usr/local/lib/
usr/local/lib/gcc-lib/
usr/local/lib/gcc-lib/avr/
usr/local/lib/gcc-lib/avr/3.3.2/
usr/local/lib/gcc-lib/avr/3.3.2/avr3/
usr/local/lib/gcc-lib/avr/3.3.2/avr3/libgcc.a
usr/local/lib/gcc-lib/avr/3.3.2/avr4/
usr/local/lib/gcc-lib/avr/3.3.2/avr4/libgcc.a
usr/local/lib/gcc-lib/avr/3.3.2/avr5/
usr/local/lib/gcc-lib/avr/3.3.2/avr5/libgcc.a
usr/local/lib/gcc-lib/avr/3.3.2/cc1.exe
usr/local/lib/gcc-lib/avr/3.3.2/collect2.exe
usr/local/lib/gcc-lib/avr/3.3.2/include/
usr/local/lib/gcc-lib/avr/3.3.2/include/fixed
usr/local/lib/gcc-lib/avr/3.3.2/include/float.h
usr/local/lib/gcc-lib/avr/3.3.2/include/iso646.h
usr/local/lib/gcc-lib/avr/3.3.2/include/limits.h
usr/local/lib/gcc-lib/avr/3.3.2/include/README
usr/local/lib/gcc-lib/avr/3.3.2/include/stdarg.h
usr/local/lib/gcc-lib/avr/3.3.2/include/stdbool.h
usr/local/lib/gcc-lib/avr/3.3.2/include/stddef.h
usr/local/lib/gcc-lib/avr/3.3.2/include/syslimits.h
usr/local/lib/gcc-lib/avr/3.3.2/include/unwind.h
usr/local/lib/gcc-lib/avr/3.3.2/include/varargs.h
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/fix-he
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/fixinc
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/fixinc
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/fixpro
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/gsysli
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/includ
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/includ
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/includ
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/includ
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/includ
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/includ
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/includ
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/includ
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/includ
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/includ
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/mkhead
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/mkhead
usr/local/lib/gcc-lib/avr/3.3.2/install-tools/mkinst
usr/local/lib/gcc-lib/avr/3.3.2/libgcc.a
usr/local/lib/gcc-lib/avr/3.3.2/specs
usr/local/lib/libiberty.a
usr/local/man/
usr/local/man/man1/
usr/local/man/man1/avr-addr2line.1
usr/local/man/man1/avr-ar.1
usr/local/man/man1/avr-as.1
usr/local/man/man1/avr-c++filt.1
usr/local/man/man1/avr-dlltool.1
usr/local/man/man1/avr-gcc.1
usr/local/man/man1/avr-ld.1
usr/local/man/man1/avr-nlmconv.1
usr/local/man/man1/avr-nm.1
usr/local/man/man1/avr-objcopy.1
usr/local/man/man1/avr-objdump.1
usr/local/man/man1/avr-ranlib.1
usr/local/man/man1/avr-readelf.1
usr/local/man/man1/avr-size.1
usr/local/man/man1/avr-strings.1
usr/local/man/man1/avr-strip.1
usr/local/man/man1/avr-windres.1
usr/local/man/man1/cpp.1
usr/local/man/man1/gcov.1
usr/local/man/man7/
usr/local/man/man7/fsf-funding.7
usr/local/man/man7/gfdl.7
usr/local/man/man7/gpl.7
usr/local/share/
usr/local/share/locale/
usr/local/share/locale/be/
usr/local/share/locale/be/LC_MESSAGES/
usr/local/share/locale/be/LC_MESSAGES/gcc.mo
usr/local/share/locale/da/
usr/local/share/locale/da/LC_MESSAGES/
usr/local/share/locale/da/LC_MESSAGES/bfd.mo
usr/local/share/locale/da/LC_MESSAGES/binutils.mo
usr/local/share/locale/da/LC_MESSAGES/gcc.mo
usr/local/share/locale/da/LC_MESSAGES/ld.mo
usr/local/share/locale/da/LC_MESSAGES/opcodes.mo
usr/local/share/locale/de/
usr/local/share/locale/de/LC_MESSAGES/
usr/local/share/locale/de/LC_MESSAGES/gcc.mo
usr/local/share/locale/de/LC_MESSAGES/opcodes.mo
usr/local/share/locale/el/
usr/local/share/locale/el/LC_MESSAGES/
usr/local/share/locale/el/LC_MESSAGES/gcc.mo
usr/local/share/locale/es/
usr/local/share/locale/es/LC_MESSAGES/
usr/local/share/locale/es/LC_MESSAGES/bfd.mo
usr/local/share/locale/es/LC_MESSAGES/binutils.mo
usr/local/share/locale/es/LC_MESSAGES/gas.mo
usr/local/share/locale/es/LC_MESSAGES/gcc.mo
usr/local/share/locale/es/LC_MESSAGES/ld.mo
usr/local/share/locale/es/LC_MESSAGES/opcodes.mo
usr/local/share/locale/fr/
usr/local/share/locale/fr/LC_MESSAGES/
usr/local/share/locale/fr/LC_MESSAGES/bfd.mo
usr/local/share/locale/fr/LC_MESSAGES/binutils.mo
usr/local/share/locale/fr/LC_MESSAGES/gas.mo
usr/local/share/locale/fr/LC_MESSAGES/gcc.mo
usr/local/share/locale/fr/LC_MESSAGES/ld.mo
usr/local/share/locale/fr/LC_MESSAGES/opcodes.mo
usr/local/share/locale/id/
usr/local/share/locale/id/LC_MESSAGES/
usr/local/share/locale/id/LC_MESSAGES/opcodes.mo
usr/local/share/locale/ja/
usr/local/share/locale/ja/LC_MESSAGES/
usr/local/share/locale/ja/LC_MESSAGES/bfd.mo
usr/local/share/locale/ja/LC_MESSAGES/binutils.mo
usr/local/share/locale/ja/LC_MESSAGES/gcc.mo
usr/local/share/locale/nl/
usr/local/share/locale/nl/LC_MESSAGES/
usr/local/share/locale/nl/LC_MESSAGES/gcc.mo
usr/local/share/locale/pt_BR/
usr/local/share/locale/pt_BR/LC_MESSAGES/
usr/local/share/locale/pt_BR/LC_MESSAGES/opcodes.mo
usr/local/share/locale/ro/
usr/local/share/locale/ro/LC_MESSAGES/
usr/local/share/locale/ro/LC_MESSAGES/opcodes.mo
usr/local/share/locale/sv/
usr/local/share/locale/sv/LC_MESSAGES/
usr/local/share/locale/sv/LC_MESSAGES/bfd.mo
usr/local/share/locale/sv/LC_MESSAGES/binutils.mo
usr/local/share/locale/sv/LC_MESSAGES/gcc.mo
usr/local/share/locale/sv/LC_MESSAGES/ld.mo
usr/local/share/locale/sv/LC_MESSAGES/opcodes.mo
usr/local/share/locale/tr/
usr/local/share/locale/tr/LC_MESSAGES/
usr/local/share/locale/tr/LC_MESSAGES/bfd.mo
usr/local/share/locale/tr/LC_MESSAGES/binutils.mo
usr/local/share/locale/tr/LC_MESSAGES/gas.mo
usr/local/share/locale/tr/LC_MESSAGES/gcc.mo
usr/local/share/locale/tr/LC_MESSAGES/ld.mo
usr/local/share/locale/tr/LC_MESSAGES/opcodes.mo
usr/local/share/locale/zh_CN/
usr/local/share/locale/zh_CN/LC_MESSAGES/
usr/local/share/locale/zh_CN/LC_MESSAGES/bfd.mo
usr/local/share/locale/zh_CN/LC_MESSAGES/binutils.mo

but when I try to compile hello_world example I get

$ make
avr-gcc -c -std=gnu99 -mmcu=atmega128 -mno-tablejump -Wimplicit-function-declara
tion -Os -fno-builtin -IC:/cygwin/turbo-devel-060822/include -I. hello_world.c -
o hello_world.o
make: avr-gcc: Command not found
make: *** [hello_world.o] Error 127

Please can you tell me whats wrong
Back to top
View user's profile Send private message
pz
Guest





PostPosted: Sun Jan 17, 2010 7:51 pm    Post subject: Reply with quote

Can you check the PATH variable if it includes /usr/local/bin?
I.e. type "$PATH"
Back to top
o4oxide



Joined: 19 Jul 2008
Posts: 17

PostPosted: Sun Jan 24, 2010 2:02 pm    Post subject: Reply with quote

Thanks for the speedy answer pz.

I don't think PATH is the problem as below:

$ $PATH
bash: /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Windows/system32:/
cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Program: No suc
h file or directory


However I discovered that the first time I make the hello_world example this is the message it gives

$ make
Makefile:25: hello_world.d: No such file or directory
avr-gcc -M -std=gnu99 -mmcu=atmega128 -mno-tablejump -Wimplicit-function-declara
tion -Os -fno-builtin -IC:/cygwin/turbo-devel-060822/include -I. hello_world.c |
sed 's/hello_world.o/& hello_world.d/g' >hello_world.d
/bin/sh: /usr/local/bin/avr-gcc: Permission denied
avr-gcc -c -std=gnu99 -mmcu=atmega128 -mno-tablejump -Wimplicit-function-declara
tion -Os -fno-builtin -IC:/cygwin/turbo-devel-060822/include -I. hello_world.c -
o hello_world.o
make: avr-gcc: Command not found
make: *** [hello_world.o] Error 127


its when I run it again that I get

$ make
avr-gcc -c -std=gnu99 -mmcu=atmega128 -mno-tablejump -Wimplicit-function-declara
tion -Os -fno-builtin -IC:/cygwin/turbo-devel-060822/include -I. hello_world.c -
o hello_world.o
make: avr-gcc: Command not found
make: *** [hello_world.o] Error 127


same as what I posted initially. I feel its something permission related because when I look at the properties of the avr-gcc file and other files in the /usr/local/bin directory the permissions on them do not include executing the file.

Could anything be wrong

Please any ideas?
Back to top
View user's profile Send private message
pz
Guest





PostPosted: Tue Jan 26, 2010 5:57 pm    Post subject: Reply with quote

Following has been tested with win vista business 32b ver 6.0.6000, cygwin ver 1.7.1:

chmod +x /usr/local/bin/*
chmod +x /usr/local/lib/gcc-lib/avr/3.3.2/cc1.exe

If you get "as: unrecognized option `-mmcu=atmega128'" then edit /usr/local/lib/gcc-lib/avr/3.3.2/specs. Look for "invoke_as:", there is line starting with "as %...", change to "avr-as %....".

If you get "/usr/local/bin/avr-gcc.exe: error while loading shared libraries: cygintl-2.dll: cannot open shared object file: No such file or directory" then install "libintl2/libintl2-0.12.1-3 GNU Internationalization runtime library".
Back to top
Display posts from previous:   
Post new topic   Reply to topic    bladox.com Forum Index -> Development All times are GMT
Page 1 of 1

 
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