gcc will not read its own makefile

Jonathan Wakely jwakely.gcc@gmail.com
Tue May 31 14:37:00 GMT 2011


On 31 May 2011 14:26, Ian Lance Taylor wrote:
> RedSonja <Sally.Riedhammer@cassidian.com> writes:
>
>> Jonathan Wakely-4 wrote:
>>>
>>> On 31 May 2011 13:21, RedSonja wrote:
>>>>
>>>> Hello. I am porting a big C++ project from Windows to Solaris 9 with
>>>> Eclipse
>>>> and gnu. It can make its own makefile but then it says:
>>>>
>>>> gcc -f /export/home/MyPath/Debug/makefile -v
>>>
>>> Maybe you meant "make -f ..." ?
>>>
>>> GCC is a compiler, it doesn't read makefiles
>>>
>>>
>>
>>
>> it says:
>>
>> (Exec error:Cannot run make)
>>
>> Why would it say that? I typed make at first. Do I have to install it
>> separately?
>
> The "make" program is not part of gcc.  You do have to have the make
> program installed in order to build gcc or to use a Makefile.  If you
> don't have a make program, you should install it.  I'm sure that Solaris
> provides a make program, though perhaps it is not installed by default.
> It may be installed in /usr/ccs/bin/make on Solaris, so check that
> /usr/ccs/bin is on your PATH.

Or try /usr/xpg4/bin/make for POSIX make, or /usr/sfw/bin/gmake for GNU make



More information about the Gcc-help mailing list