Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
mitchjs
PostPosted: Dec 01, 2006 - 12:52 AM
Wannabe


Joined: Jun 24, 2004
Posts: 97
Location: Philadelphia, PA

I know...vista...vista...

its still a pretty nice OS
and after its shoved down our throats by MS...
so i figured ill start learning it now

im impressed on how much stuf works...
course 2 things dont (avrstudio)

Im running with UAC off

the GCC compiler, I get this error

Compiling...
main.c
avr-gcc: _spawnvp: error: No such file or directory

anyone know what that means

i guess avr-gcc is a MFC based code
and that is spawn of some process

prob some path issue...

how would i bring this up with the authors?

thanks all
-Mitch
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
dl8dtl
PostPosted: Dec 01, 2006 - 10:01 AM
Raving lunatic


Joined: Dec 20, 2002
Posts: 7276
Location: Dresden, Germany

> i guess avr-gcc is a MFC based code

Of course not. ;-)

> and that is spawn of some process

But yes, that's what it does. avr-gcc.exe is just the
compiler driver, and it wants to invoke cc1, [avr-]as,
and [avr-]ld.

_________________
Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.
Please read the `General information...' article before.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
mitchjs
PostPosted: Dec 01, 2006 - 02:16 PM
Wannabe


Joined: Jun 24, 2004
Posts: 97
Location: Philadelphia, PA

ok its a DEV C++ app then...???

anyway.. any thoughts why its not spawning the cc1 process?

mitch
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
dl8dtl
PostPosted: Dec 01, 2006 - 02:50 PM
Raving lunatic


Joined: Dec 20, 2002
Posts: 7276
Location: Dresden, Germany

> ok its a DEV C++ app then...?

It's a plain command-line command.

> any thoughts why its not spawning the cc1 process?

No, you probably need to analyze that using a syscall
tracer. Are you sure it's installed correctly? I'd
read the "No such file or directory" error message as
if one of the child programs could not be found in the
expected locations. But of course, it could be that the
error message is just nonsensical.

_________________
Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.
Please read the `General information...' article before.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
KKP
PostPosted: Dec 01, 2006 - 06:36 PM
Resident


Joined: Jun 26, 2001
Posts: 851
Location: Silkeborg, Denmark

A wild guess:

In vista, the filesystem is by default in fsckup-mode. If you are used to XP, and install winavr, winavr won't get installed where you think it'll be installed, and the searchpath won't be set correctly. Instead of putting it in c:\winavr or in c:\program files\winavr, it will be put in an 'emulation folder' in your profile. This enables users to install/modify programs without changing things for other users. When you try to look at the filesystem you will see it as if the files are where they are supposed to be. If this emulation was done thoroughly it wouldn't be a problem, but it's only three-quarterway, and when the spawned process attempts to spawn another, information is lost somewhere.

Copy the winavr installer executable to your desktop, rightclick it, select run as administrator. You may think you are logged in as administrator, but you don't have the admin rights enabled UNLESS you do this. Wait for it to install.
Try if it works now. If not:
Create a shortcut to cmd.exe on your desktop, rightclick and run as administrator, and THEN you can likely invoke the compiler. You probably +edit: need to reboot+ after you install winavr.


Last edited by KKP on Dec 03, 2006 - 10:42 AM; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
mitchjs
PostPosted: Dec 03, 2006 - 09:18 AM
Wannabe


Joined: Jun 24, 2004
Posts: 97
Location: Philadelphia, PA

its for sure a PATH problem...

how does avr-gcc.exe know where the cc1.exe file is
and for that matter when all the standard includes are

having a path of "c\:avrgcc\bin"
it seems to work upwards and back in to other dirs to find files in XP

does not work in vista

mitch
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
realwarder
PostPosted: Dec 03, 2006 - 11:11 PM
Rookie


Joined: Oct 03, 2005
Posts: 40


I'm just trying to get this to work too.

It's a pain, whatever it is.

ou first get the cc1 / ld not found problem. If you add c:\winavr\avr\bin to the path it then complains about not finding ldscripts. Most odd.

Running the installer as Administrator didn't help for me. It does look like cygwin is not seeing paths correctly.

Does anyone know how that environment normally works? I.e. how does gcc-avr know where ld is?

edit: running cmd as admin doesn't help either.
 
 View user's profile Send private message  
Reply with quote Back to top
realwarder
PostPosted: Dec 04, 2006 - 01:04 AM
Rookie


Joined: Oct 03, 2005
Posts: 40


I've worked around it, not ideally, but in a hack it to make it work manner.

Using Process Monitor tool I can see which search paths are being explored and it's not looking in the right places. No idea why, no time to work out why.

This is what I believe I did to get it working for me:

From the directory above your makefile (build directory?) create a Vista symbolic link:

mklink /d avr \winavr\avr

From the directory with your makefile:

mklink /d ldscripts \winavr\avr\lib\ldscripts


Then copy files from:

c:\winavr\lib\gcc\avr\3.4.3\include to
c:\winavr\avr\include

Copy files from:

C:\WinAVR\lib\gcc\avr\3.4.3\avr5 to
c:\winavr\avr\lib\avr5


I'm using Atmel128 so I guess things might be different for others.

This very crude hack - obviously is not a fix. More a "I need this working now and can't be bothered to find a real fix" workaround.

RW.
 
 View user's profile Send private message  
Reply with quote Back to top
mitchjs
PostPosted: Dec 04, 2006 - 03:38 PM
Wannabe


Joined: Jun 24, 2004
Posts: 97
Location: Philadelphia, PA

Well.. i dont exactly follow your quick work around...

where is avr-gcc.exe looking for cc1.exe and others...

mitch
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
realwarder
PostPosted: Dec 06, 2006 - 04:30 AM
Rookie


Joined: Oct 03, 2005
Posts: 40


Oh yes, my path has this in it too. Sorry, missed that.

c:\winavr\libexec\gcc\avr\3.4.3;c:\winavr\avr\bin;C:\WinAVR\bin;C:\WinAVR\utils\bin;
 
 View user's profile Send private message  
Reply with quote Back to top
ikletti
PostPosted: Dec 06, 2006 - 09:18 AM
Hangaround


Joined: Oct 17, 2003
Posts: 311
Location: Germany

realwarder wrote:
[...]
I'm using Atmel128 so I guess things might be different for others.

If you´ve got the toolchain working, it shouldn´t make any difference which of the AVRs you use. The controller type is defined in the makefile, after all.

realwarder wrote:
This very crude hack - obviously is not a fix. More a "I need this working now and can't be bothered to find a real fix" workaround.

Not poking fun at you, but why don´t you then use something that works? Like Win XP or Win 2K?
 
 View user's profile Send private message  
Reply with quote Back to top
realwarder
PostPosted: Dec 06, 2006 - 06:41 PM
Rookie


Joined: Oct 03, 2005
Posts: 40


ikletti wrote:

Not poking fun at you, but why don´t you then use something that works? Like Win XP or Win 2K?


Yes, well. Sometimes you have to test your products on the latest OS before others find it doesn't work.

There's a certain irony there...
 
 View user's profile Send private message  
Reply with quote Back to top
ikletti
PostPosted: Dec 07, 2006 - 08:49 AM
Hangaround


Joined: Oct 17, 2003
Posts: 311
Location: Germany

realwarder wrote:
Yes, well. Sometimes you have to test your products on the latest OS before others find it doesn't work.
I fully agree with that.

I also don´t want to go into a lengthy discussion, but I thought you were trying to get avr-gcc and the toolchain working and not one of your products.

Ingo.
 
 View user's profile Send private message  
Reply with quote Back to top
Nyarlathotep
PostPosted: Jan 22, 2007 - 10:53 AM
Newbie


Joined: Jul 05, 2004
Posts: 4


You just have to activate the index-service of Windwos Vista to get the AVR GCC working correctly.
(In my german vista it is called "Indexdienst", dont know the exact name of the english Windows Vista).
 
 View user's profile Send private message  
Reply with quote Back to top
daqq
PostPosted: Jan 22, 2007 - 05:20 PM
Raving lunatic


Joined: Dec 15, 2003
Posts: 4402
Location: Slovakia, Bratislava

Solution: Ignore the existence of Vista...

_________________
There are pointy haired bald people.
Time flies when you have a bad prescaler selected.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
EW
PostPosted: Jan 22, 2007 - 05:42 PM
Raving lunatic


Joined: Mar 01, 2001
Posts: 4953
Location: Rocky Mountains

Thanks for trying it out on Vista. I'm sorry I can't help as I don't have Vista.

FYI, AVR GCC in WinAVR is built using MinGW/MSYS, so it's nothing to do with any MS-based products.

I would be intersted to know exactly what directories avr-gcc is trying to search.

Eric
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
marsbotschafter
PostPosted: Jan 29, 2007 - 09:23 AM
Newbie


Joined: Jan 29, 2007
Posts: 4
Location: Traunreut

All workarounds here does'nt work with my Vista. Have anybody another solution?
Does anybody know whether the programmers of WinAVR work on a solution about this problem?
 
 View user's profile Send private message  
Reply with quote Back to top
dl8dtl
PostPosted: Jan 29, 2007 - 09:44 AM
Raving lunatic


Joined: Dec 20, 2002
Posts: 7276
Location: Dresden, Germany

WinAVR has noone like a "programmer". It has almost close to one
person who's just assembling that binary distribution, using open
source software from everywhere, and compiling and bundling it for an
easy Win32 installation. I wouldn't call that a programmer (within
that context), as he mostly doesn't touch the existing opensource
software.

So as you guys run into problems with GCC, you'd have to ask the GCC
developers for whether they are working on a solution on this. What
might really help you here is that this is most likely not only tied
to the AVR platform (which is of really minor importance to the GCC
folks) but probably to all Win32 (or Win64?) ports of GCC in general.
On the other hand, about the only purpose of Windows Vista (from what
I can read about it) appears to be the Microsoft platform to enforce
what they call "Digital Rights Management" (and what in fact appears
to be rather a money-printing guarantee for Microsoft and Holywood).
If you consider that the Free Software Foundation (who's the legal
owner of GCC) calls that "Digital Restrictions Management" because
it's the fundamentally opposite of their view of what your rights for
computer data and software should be, this might in fact drastically
lower the priority of a Windows Vista porting effort for GCC.

Just MHO, of course.

_________________
Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.
Please read the `General information...' article before.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
EW
PostPosted: Jan 29, 2007 - 06:39 PM
Raving lunatic


Joined: Mar 01, 2001
Posts: 4953
Location: Rocky Mountains

I agree with Joerg on everything he said. My only addition is that I might suggest that you contact the MinGW project on SourceForge and ask them about their support for Vista. The MinGW project puts together a GCC toolchain for Windows hosts. This is what I use to build the core AVR cross toolchain for binutils, gcc and avr-libc.

Eric
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
skipper
PostPosted: Jan 30, 2007 - 10:03 AM
Rookie


Joined: Jan 02, 2003
Posts: 28


Hi Mitch,
Hi Guys,

I've successfuly installed and compiled one project on MS Vista Enterprise with WinAVR20070122. You should create the following batch with PATH extensions to start the compiler modules:

Code:

@echo off
setlocal
set AVR=%ProgramFiles%\Atmel\WinAVR
set PATH=%AVR%\libexec\gcc\avr\4.1.1;%AVR%\bin;%AVR%\avr\bin;%AVR%\utils\bin;%PATH%;
set AVRALEXLIB=%CD%\..\lib
set AVRALEXCOMMON=%CD%\..\common
set AVRHEXDIR=%CD%\..\_hex
set DIRAVR=%AVR%
set DIRAVRBIN=%AVR%\bin
set TMP=%CD%\..\_temp
set TEMP=%CD%\..\_temp
echo ...
echo Running in %CD%
echo     Entering now in a new Shell!
echo     Type exit to escape from local!
cmd
endlocal


There my be also inlcude definition problems, if any
please post your help request here!

please test
cheers
Alex
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits