More build oddities

Nigel Spon nigel at adi.co.nz
Mon Apr 7 03:47:18 UTC 2008


I'm trying to use scripts to build RTEMS under MacOS X, but I'm having  
persistent difficulties with the PATH variable. I may be being over- 
optimistic, but I thought I could avoid the nasty detail of having to  
put the path to the RTEMS tools into my global .tcshrc file, by  
invoking make from a script, like this:

	PATH="$BUILD_ROOT/bin:$PATH"
	export PATH
	cd b-rtems
	make RTEMS_BSP="$BSP"
	make RTEMS_BSP="$BSP" install

This fails. The log file says:

...
checking for style of include used by make... GNU
checking for powerpc-rtems4.8-gcc... /Developer/usr/bin/cc
checking for powerpc-rtems4.8-gcc... (cached) /Developer/usr/bin/cc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
...

- which I presume means that it didn't find the cross-compiler. The  
really strange thing is that the Platform section in config.log  
appears to show that the path is just fine:

PATH: /Developer/usr/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /Users/frederickspon/Documents/RTEMSX_4.8/RTEMS_Xcode/Build~~/bin

The last entry is the right path to the build directory, and powerpc- 
rtems4.8-gcc is there.

I'm not sure what else to try here, can anyone suggest what I could do  
to further debug this? Are there switches that will get it to log  
exactly what it looked at in trying to find powerpc-rtems4.8-gcc?

---
“Now, the objective of this expedition is to attempt to find some  
trace of last years expedition.”

Michael Hamel
ADInstruments Ltd, Dunedin, NZ




More information about the users mailing list