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%

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.

We do plan to provide a Windows installer with the next release that will make it easier to install and use GCC.

--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@xxxxxxxxxxxxxxxx