Re: [arm-gnu] Problems with setup for Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] Problems with setup for Windows



> Kai Schuetz wrote:
>
>> Hi !
>>
>> I downloaded the gcc-arm binary package for windows. First I had to
>> figure out how to set up the environment, here is what I did:
>>
>> set GCC_INSTALL_PATH=d:\ARM-GCC
>>
>> set PATH=%GCC_INSTALL_PATH%\bin;%PATH%
>> set GCC_EXEC_PREFIX=%GCC_INSTALL_PATH%\libexec\gcc\arm-none-elf
>> set C_INCLUDE_PATH=%GCC_INSTALL_PATH%\lib\gcc\arm-none-elf\3.4.0\include
>> set CPLUS_INCLUDE_PATH=%GCC_INSTALL_PATH%\include\c++\3.4.0
>> set LIBRARY_PATH=%GCC_INSTALL_PATH%\lib\gcc\arm-none-elf\3.4.0
>>
> A simpler approach should simple be to do:
>
>   PATH d:\ARM-GCC;%PATH%

Now I'm a bit confused since I thought I'd tried that first. Actually what
I tried was

set PATH=d:\ARM-GCC\BIN;%PATH%

which should be the same as using PATH (\BIN was missing btw.)

Whatever, now it works !

> GCC will automatically deduce all of the other paths from that.
>
>> This allowed me at least to compile and assemble some code, but when
>> the linker is run I get the following error message:
>>
>> d:/ARM-GCC/libexec/gcc/../../libexec/gcc/arm-none-elf/3.4.0/collect2.exe
>> -X -o dhry crti.o crtbegin.o
>> d:/ARM-GCC/libexec/gcc/../../arm-none-elf/lib/crt0.o
>> -Ld:/ARM-GCC/libexec/gcc/arm-none-elf
>> -Ld:/ARM-GCC/libexec/gcc/../../arm-none-elf/lib
>> C:\DOKUME~1\ks\LOKALE~1\Temp/cccTaaaa.o
>> C:\DOKUME~1\ks\LOKALE~1\Temp/ccIfbaaa.o -lgcc -lc -lgcc crtend.o crtn.o
>> d:\\ARM-GCC\\bin/arm-none-elf-ld.exe: crti.o: No such file: No such
>> file or directory
>> collect2: ld returned 1 exit status
>>
> I believe this is related to the problem you are having above.    When I
> invoke the compiler, I see a full path to all of the "crt" files.
>
> It could also be that the unpacking procedure did not go correctly for
> you.  What program did you use to unpack the .tar.gz file?  It may be
> that some programs do not work correctly; if so, we would definitely
> like to update our web pages to reflect that.

I used pkunzip which seems to do ok.

Thanks for the quick response !

Best Regards,
 Kai
-- 

---------------------------------------------------------
Kai T. Schuetz                  Main:   +49-2407-9086 0
Software Design Engineer        Direct: +49-2407-9086 30
AXYS GmbH                       Fax:    +49-2407-9086 11
Kaiserstr. 100, TPH III C
52134 Herzogenrath, Germany     Email:  ks@xxxxxxx
http://www.axysdesign.com
---------------------------------------------------------