This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Error: installation problem, cannot exec `cc1' ..'as', etc..


After happily using GCC-3.2.2 compiled for the m68k (MingWin) for many years, I ported it to a new WinVista PC where it worked fine for a month. Then, after some Vista problems, I reinstalled Vista and installed GCC exactly as I had done previously and it no longer compiled:

m68k-elf-gcc -I"C:\SBCToolsV3\boards\wildfiremod\dbug\rtl\include" -I"C:\SBCToolsV3\boards\wildfiremod\dbug\tcpip\include" -O0 -g3 -Wall -c -m528x -o"main.o" "../main.c"
m68k-elf-gcc: installation problem, cannot exec `cc1': No such file or directory


This is definitely a path problem. When I placed 'cc1' in the bin directory (on the PATH) and attempted to compile, it no longer complained about 'cc1'. Instead, the error changed to:

m68k-elf-gcc -I"C:\SBCToolsV3\boards\wildfiremod\dbug\rtl\include" -I"C:\SBCToolsV3\boards\wildfiremod\dbug\tcpip\include" -O0 -g3 -Wall -c -m528x -o"main.o" "../main.c"
m68k-elf-gcc: installation problem, cannot exec `as': No such file or directory


The strange thing is that when I enter "-print-search-dirs" at the command prompt from the corresponding directory, m68k-elf-gcc appears to be aware of the correct 'cc1' and 'as' paths:

C:\SBCToolsV3\workspace\DemoAD_dbug_wfmod\Debug>m68k-elf-gcc -print-search-dirs
install: /SBCToolsV3/compiler/m68k-elf-3.3.2/lib/gcc-lib/m68k-elf\3.3.2\
programs: =..\lib\gcc-lib\m68k-elf\3.3.2\;..\lib\gcc-lib\;\SBCToolsV3\compiler\m
68k-elf-3.3.2\lib\gcc-lib\m68k-elf\3.3.2\;\SBCToolsV3\compiler\m68k-elf-3.3.2\li
b\gcc-lib\m68k-elf\3.3.2\;\SBCToolsV3\compiler\m68k-elf-3.3.2\lib\gcc-lib\m68k-e
lf\;\usr\lib\gcc\m68k-elf\3.3.2\;\usr\lib\gcc\m68k-elf\;..\m68k-elf\bin\m68k-elf
\3.3.2\;..\m68k-elf\bin\;\SBCToolsV3\compiler\m68k-elf-3.3.2\m68k-elf\bin\m68k-e
lf\3.3.2\;\SBCToolsV3\compiler\m68k-elf-3.3.2\m68k-elf\bin\
libraries: =..\lib\gcc-lib\m68k-elf\3.3.2\;..\lib\gcc-lib\;\SBCToolsV3\compiler\
m68k-elf-3.3.2\lib\gcc-lib\m68k-elf\3.3.2\;\usr\lib\gcc\m68k-elf\3.3.2\;..\m68k-
elf\lib\m68k-elf\3.3.2\;..\m68k-elf\lib\;\SBCToolsV3\compiler\m68k-elf-3.3.2\m68
k-elf\lib\m68k-elf\3.3.2\;\SBCToolsV3\compiler\m68k-elf-3.3.2\m68k-elf\lib\;..\l
ib\m68k-elf\3.3.2\;..\lib\


I am baffled as to why GCC cannot find the .exe's when it claims to have their search paths???

Attempts to use the -Bprefix option (http://gcc.gnu.org/ml/gcc-help/2007-09/msg00172.html) failed, possibly because I do not know how to use it correctly:

C:\SBCToolsV3\workspace\DemoAD_dbug_wfmod\Debug>m68k-elf-gcc -B"C:\SBCToolsV3\co
mpiler\m68k-elf-3.3.2\lib\gcc-lib\m68k-elf\3.3.2\" -I"C:\SBCToolsV3\boards\wildf
iremod\dbug\rtl\include" -I"C:\SBCToolsV3\boards\wildfiremod\dbug\tcpip\include"
-O0 -g3 -Wall -c -m528x -o"main.o" "../main.c"
m68k-elf-gcc: no input files


Can anyone help me?

Bob


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]