This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


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

RE: Error: CC not set to working compiler




-----Original Message-----
From:	Doug Evans [SMTP:dje@transmeta.com]
Sent:	Friday, September 08, 2000 12:02 AM
To:	RakeshN
Cc:	'gcc-help@gcc.gnu.org'; 'crossgcc@sources.redhat.com'; 'gnuh8@pcserv.demon.co.uk'
Subject:	Error: CC not set to working compiler

RakeshN writes:
 > Hi all,
 > 
 > I am doing a canadian cross build. The specs are as follows
 > 
 > build = i586-linux-gnu
 > 
 > host=i586-cygwin32
 > 
 > target=h8300-hms 
 > 
 > When i run 
 > 
 > srcdir/configure --build=i586-linux-gnu --host=i586-cygwin32 --target=h8300-hms --prefix=wininstalldir --exec-prefix=wininstalldir/H-i586-cygwin32 
 > 
 > I get the error that
 > 
 > i586-cygwin32-gcc -o conftest conftest.c failed  .....
 > 
 > CC must be set to working compiler.
 > 
 > I searched for i586-cygwin32-gcc and found out the path for this gcc. 
 > 
 > I then set CC to that gcc and exported it.
 > 
 > But still the error is same....

Have you read the FAQ on building a Canadian Cross?

http://www.objsw.com/CrossGCC/

The shell script there for building a DOS hosted toolchain
without using DOS is equally applicable to building a cygwin
hosted toolchain without using cygwin.

[rakeshn]  Yes i have read the faq. 

The steps followed by me are as follows......

	mkdir linux-x-cygwin32 
	cd linux-x-cygwin32 
	srcdir/configure --target =i586-cygwin32 --prefix=installdir  --exec-prefix=installdir/H-i586-linux 
	make 
	make install 
	cd .. 
	mkdir linux-x-h8300-hms-coff 
	cd linux-x-h8300-hms-coff 
	srcdir/configure --target= h8300-hms --prefix=installdir  --exec-prefix=installdir/H-i586-linux 
	make 
	make install 
	cd .. 
	mkdir cygwin32-x-h8300-hms-coff 
	cd cygwin32-x-h8300-hms-coff 
	srcdir/configure --build=i586-linux-gnu --host=i586-cygwin32  --target=h8300-hms --prefix=wininstalldir --exec-		prefix=wininstalldir/H-i586-cygwin32 
	make 
	make install
  [rakeshn]  The first two configures were successfull. But the last configure attempt gave me these errors...

	*** This configuration is not supported in the following subdirectories:
     send-pr texinfo target-libstdc++ target-libio target-libgloss
    (Any other directories should still work fine.)
	/tmp/ccWGFnM0.s: Assembler messages:
	/tmp/ccWGFnM0.s:27: Error: Unknown pseudo-op:  `.def'
	/tmp/ccWGFnM0.s:27: Error: Unknown pseudo-op:  `.scl'
	/tmp/ccWGFnM0.s:27: Error: ignoring unrecognized symbol type ""
	/tmp/ccWGFnM0.s:27: Error: Rest of line ignored. First ignored character is `3'.
	/tmp/ccWGFnM0.s:27: Error: Unknown pseudo-op:  `.endef'
	/tmp/ccWGFnM0.s:31: Error: Unknown pseudo-op:  `.def'
	/tmp/ccWGFnM0.s:31: Error: Unknown pseudo-op:  `.scl'
	/tmp/ccWGFnM0.s:31: Error: ignoring unrecognized symbol type ""
	/tmp/ccWGFnM0.s:31: Error: Rest of line ignored. First ignored character is `3'.
	/tmp/ccWGFnM0.s:31: Error: Unknown pseudo-op:  `.endef'
	*** The command '/linux-x-cygwin32/gcc/installdir/H-i586-linux/bin/i586-cygwin32-gcc -o 	conftest -g -O2   conftest.c' failed.
	*** You must set the environment variable CC to a working compiler.

	I have set the PATH to the correct path for i586-cygwin32-gcc . I have exported the path also correctly.

But still the error is the same. Should i also set the CC variable ? But configure is already finding  the correct gcc then why should i set it explicitly?

Any help will be appreciated ...

Thanks

	




------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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