More build oddities

Daron Chabot daron.chabot at usask.ca
Thu Apr 10 03:51:14 UTC 2008


On 9-Apr-08, at 9:23 PM, Nigel Spon wrote:
>
> On 10/04/2008, at 3:06 PM, Daron Chabot wrote:
>> hmmm... try un-defining CC, then re-run your problematic script. I  
>> vaguely recall some issue(s) when CC is defined...
>
>
> Well, thats interesting. I tried:

"interesting" is good... :-)

>
>
> 	unset CC
> 	PATH="$BUILD_ROOT/bin:$PATH"
> 	export PATH
> 	cd b-rtems
> 	make RTEMS_BSP="$BSP" all install
>
>
> and got:
>
>
> configure: creating make/virtex.cache
> checking for RTEMS_CPU_MODEL... ppc405
> checking for RTEMS_BSP_FAMILY... (cached) virtex
> checking for CPU_CFLAGS... (cached) -mcpu=403 -Dppc405 -Dvirtex
> checking for CFLAGS_OPTIMIZE_V... (cached) -O2 -g -fno-keep-inline- 
> functions
> checking for style of include used by make... GNU
> checking for powerpc-rtems4.8-gcc... powerpc-rtems4.8-gcc
> checking for powerpc-rtems4.8-gcc... (cached) powerpc-rtems4.8-gcc
> checking for C compiler default output file name...
> configure: error: C compiler cannot create executables
>
>
> But in config.log we now see:
>
>
> configure:2950: checking for CFLAGS_OPTIMIZE_V
> configure:2957: result: -O2 -g -fno-keep-inline-functions
> configure:2978: checking for style of include used by make
> configure:3006: result: GNU
> configure:3038: checking for powerpc-rtems4.8-gcc
> configure:3054: found /Users/frederickspon/Documents/RTEMSX_4.8/ 
> RTEMS_Xcode/Build~~/bin/powerpc-rtems4.8-gcc
> configure:3065: result: powerpc-rtems4.8-gcc
> configure:3086: checking for powerpc-rtems4.8-gcc
> configure:3113: result: powerpc-rtems4.8-gcc
> configure:3391: checking for C compiler version
> configure:3398: powerpc-rtems4.8-gcc --version >&5
> powerpc-rtems4.8-gcc (GCC) 4.1.1
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.   
> There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
> PURPOSE.
>
> configure:3401: $? = 0
> configure:3408: powerpc-rtems4.8-gcc -v >&5
> Using built-in specs.
> Target: powerpc-rtems4.8
> Configured with: /Users/frederickspon/Documents/RTEMSX_4.8/ 
> RTEMS_Xcode/../tools/gcc-4.1.1/configure --target=powerpc-rtems4.8  
> --prefix=/Users/frederickspon/Documents/RTEMSX_4.8/RTEMS_Xcode/ 
> Build~~ --with-gnu-as --with-gnu-ld --with-newlib --verbose -- 
> enable-threads --enable-languages=c,c++
> Thread model: rtems
> gcc version 4.1.1
> configure:3411: $? = 0
> configure:3418: powerpc-rtems4.8-gcc -V >&5
> powerpc-rtems4.8-gcc: '-V' option must have argument
> configure:3421: $? = 1
> configure:3444: checking for C compiler default output file name
> configure:3471: powerpc-rtems4.8-gcc -mcpu=403 -Dppc405 -Dvirtex - 
> O2 -g -fno-keep-inline-functions   conftest.c  >&5
> /Users/frederickspon/Documents/RTEMSX_4.8/RTEMS_Xcode/Build~~/lib/ 
> gcc/powerpc-rtems4.8/4.1.1/../../../../powerpc-rtems4.8/bin/ld:  
> crt0.o: No such file: No such file or directory
> collect2: ld returned 1 exit status

The "~~" in that path worries  
me...	                                                              ^^^

We should return this discussion to the list so that Ralf can weigh  
in...


-- dc



More information about the users mailing list