More build oddities

Joel Sherrill joel.sherrill at OARcorp.com
Wed Apr 9 21:59:19 UTC 2008


Nigel Spon wrote:
> Sorry, was away for a couple of days there. Thanks for all the
> commentary, I'm learning a lot here.
>
> I'm building on an Intel Mac under 10.5 (Leopard). I'm using autoconf
> 2.61 and automake 1.10. They are both in /usr/bin. I'm using absolute
> paths in my build scripts which are passed to me by the XCode
> environment.
>   
When your PATH is dumped, the directory I think is
your tool directory looks like this.

/Users/frederickspon/Documents/RTEMSX_4.8/RTEMS_Xcode/Build~~/bin

Are you sure your $PATH is right?

--joel
> Here is somewhat more of the log:
>
> Making all in powerpc-rtems4.8/c
> Making all in .
> Configuring RTEMS_BSP=virtex
> checking for gmake... no
> checking for make... make
> checking build system type... i386-apple-darwin9.2.2
> checking host system type... powerpc-unknown-rtems4.8
> checking rtems target cpu... powerpc
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /Users/frederickspon/Documents/
> RTEMSX_4.8/RTEMS_Xcode/../tools/rtems-4.8.0/c/src/../../install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking for powerpc-rtems4.8-strip... powerpc-rtems4.8-strip
> checking whether to enable maintainer-specific portions of
> Makefiles... no
> checking for RTEMS_BSP... virtex
> checking for /Users/frederickspon/Documents/RTEMSX_4.8/RTEMS_Xcode/../
> tools/rtems-4.8.0/c/src/../../bspkit/powerpc/*/cfg/virtex.cfg... no
> checking for /Users/frederickspon/Documents/RTEMSX_4.8/RTEMS_Xcode/../
> tools/rtems-4.8.0/c/src/../../make/custom/virtex.cfg... yes
> checking whether BSP supports networking... yes
> checking whether CPU supports libposix... yes
> checking for rpcgen... rpcgen
> configure: setting up make/custom
> checking for /Users/frederickspon/Documents/RTEMSX_4.8/RTEMS_Xcode/../
> tools/rtems-4.8.0/c/src/../../bspkit/powerpc/*/cfg/virtex.cfg... no
> checking for /Users/frederickspon/Documents/RTEMSX_4.8/RTEMS_Xcode/../
> tools/rtems-4.8.0/c/src/../../make/custom/virtex.cfg... yes
> 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... /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.
>
>
> I would guess that the 'config.log' referred to is the one in b-rtems/
> powerpc-rtems4.8/c/virtex, where I find:
>
>
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by rtems-c-src configure 4.8.0, which was
> generated by GNU Autoconf 2.61.  Invocation command line was
>
>    $ /Users/frederickspon/Documents/RTEMSX_4.8/RTEMS_Xcode/../tools/
> rtems-4.8.0/c/src/configure --prefix=/Users/frederickspon/Documents/
> RTEMSX_4.8/RTEMS_Xcode/Build~~ --host=powerpc-rtems4.8 --build=i386-
> apple-darwin9.2.2 --target=powerpc-rtems4.8 --disable-sim --enable-cxx
> --with-target-subdir=powerpc-rtems4.8 --exec-prefix=/Users/
> frederickspon/Documents/RTEMSX_4.8/RTEMS_Xcode/Build~~/powerpc-
> rtems4.8 --includedir=/Users/frederickspon/Documents/RTEMSX_4.8/
> RTEMS_Xcode/Build~~/powerpc-rtems4.8/include build_alias=i386-apple-
> darwin9.2.2 host_alias=powerpc-rtems4.8 target_alias=powerpc-rtems4.8
> --with-project-root=../../ --with-project-top=../../
>
> ## --------- ##
> ## Platform. ##
> ## --------- ##
>
> hostname = p140.adi.co.nz
> uname -m = i386
> uname -r = 9.2.2
> uname -s = Darwin
> uname -v = Darwin Kernel Version 9.2.2: Tue Mar  4 21:17:34 PST 2008;
> root:xnu-1228.4.31~1/RELEASE_I386
>
> /usr/bin/uname -p = i386
> /bin/uname -X     = unknown
>
> /bin/arch              = unknown
> /usr/bin/arch -k       = unknown
> /usr/convex/getsysinfo = unknown
> /usr/bin/hostinfo      = Mach kernel version:
>          Darwin Kernel Version 9.2.2: Tue Mar  4 21:17:34 PST 2008;
> root:xnu-1228.4.31~1/RELEASE_I386
> Kernel configured for up to 2 processors.
> 2 processors are physically available.
> 2 processors are logically available.
> Processor type: i486 (Intel 80486)
> Processors active: 0 1
> Primary memory available: 2.00 gigabytes
> Default processor set: 65 tasks, 229 threads, 2 processors
> Load average: 0.71, Mach factor: 1.39
> /bin/machine           = unknown
> /usr/bin/oslevel       = unknown
> /bin/universe          = unknown
>
> PATH: /Users/frederickspon/Documents/RTEMSX_4.8/RTEMS_Xcode/Build~~/bin
> PATH: /Developer/usr/bin
> PATH: /usr/bin
> PATH: /bin
> PATH: /usr/sbin
> PATH: /sbin
>
>
> ## ----------- ##
> ## Core tests. ##
> ## ----------- ##
>
> configure:1869: checking for gmake
> configure:1899: result: no
> configure:1869: checking for make
> configure:1885: found /Developer/usr/bin/make
> configure:1896: result: make
> configure:1971: checking build system type
> configure:1989: result: i386-apple-darwin9.2.2
> configure:2012: checking host system type
> configure:2027: result: powerpc-unknown-rtems4.8
> configure:2049: checking rtems target cpu
> configure:2084: result: powerpc
> configure:2103: checking for a BSD-compatible install
> configure:2159: result: /usr/bin/install -c
> configure:2170: checking whether build environment is sane
> configure:2213: result: yes
> configure:2241: checking for a thread-safe mkdir -p
> configure:2280: result: /Users/frederickspon/Documents/RTEMSX_4.8/
> RTEMS_Xcode/../tools/rtems-4.8.0/c/src/../../install-sh -c -d
> configure:2293: checking for gawk
> configure:2323: result: no
> configure:2293: checking for mawk
> configure:2323: result: no
> configure:2293: checking for nawk
> configure:2323: result: no
> configure:2293: checking for awk
> configure:2309: found /usr/bin/awk
> configure:2320: result: awk
> configure:2331: checking whether make sets $(MAKE)
> configure:2352: result: yes
> configure:2414: checking for powerpc-rtems4.8-strip
> configure:2430: found /Users/frederickspon/Documents/RTEMSX_4.8/
> RTEMS_Xcode/Build~~/bin/powerpc-rtems4.8-strip
> configure:2441: result: powerpc-rtems4.8-strip
> configure:2522: checking whether to enable maintainer-specific
> portions of Makefiles
> configure:2531: result: no
> configure:2591: checking for RTEMS_BSP
> configure:2605: result: virtex
> configure:2652: checking for /Users/frederickspon/Documents/RTEMSX_4.8/
> RTEMS_Xcode/../tools/rtems-4.8.0/c/src/../../bspkit/powerpc/*/cfg/
> virtex.cfg
> configure:2663: result: no
> configure:2652: checking for /Users/frederickspon/Documents/RTEMSX_4.8/
> RTEMS_Xcode/../tools/rtems-4.8.0/c/src/../../make/custom/virtex.cfg
> configure:2657: result: yes
> configure:2681: checking whether BSP supports networking
> configure:2699: result: yes
> configure:2744: checking whether CPU supports libposix
> configure:2762: result: yes
> configure:2773: checking for rpcgen
> configure:2789: found /Developer/usr/bin/rpcgen
> configure:2800: result: rpcgen
> configure:2809: setting up make/custom
> configure:2871: checking for /Users/frederickspon/Documents/RTEMSX_4.8/
> RTEMS_Xcode/../tools/rtems-4.8.0/c/src/../../bspkit/powerpc/*/cfg/
> virtex.cfg
> configure:2882: result: no
> configure:2871: checking for /Users/frederickspon/Documents/RTEMSX_4.8/
> RTEMS_Xcode/../tools/rtems-4.8.0/c/src/../../make/custom/virtex.cfg
> configure:2876: result: yes
> configure:2903: creating make/virtex.cache
> configure:2911: checking for RTEMS_CPU_MODEL
> configure:2918: result: ppc405
> configure:2925: checking for RTEMS_BSP_FAMILY
> configure:2932: result: virtex
> configure:2939: checking for CPU_CFLAGS
> configure:2946: result: -mcpu=403 -Dppc405 -Dvirtex
> 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:3065: result: /Developer/usr/bin/cc
> configure:3086: checking for powerpc-rtems4.8-gcc
> configure:3113: result: /Developer/usr/bin/cc
> configure:3391: checking for C compiler version
> configure:3398: /Developer/usr/bin/cc --version >&5
> i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
> Copyright (C) 2005 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: /Developer/usr/bin/cc -v >&5
> Using built-in specs.
> Target: i686-apple-darwin9
> Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable-
> checking -enable-werror --prefix=/usr --mandir=/share/man --enable-
> languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/
> $/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/
> lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --
> host=i686-apple-darwin9 --target=i686-apple-darwin9
> Thread model: posix
> gcc version 4.0.1 (Apple Inc. build 5465)
> configure:3411: $? = 0
> configure:3418: /Developer/usr/bin/cc -V >&5
> gcc-4.0: argument to `-V' is missing
> configure:3421: $? = 1
> configure:3444: checking for C compiler default output file name
> configure:3471: /Developer/usr/bin/cc -mcpu=403 -Dppc405 -Dvirtex -O2 -
> g -fno-keep-inline-functions   conftest.c  >&5
> cc1: error: invalid option 'cpu=403'
> configure:3474: $? = 1
> configure:3512: result:
> configure: failed program was:
> | /* confdefs.h.  */
> | #define PACKAGE_NAME "rtems-c-src"
> | #define PACKAGE_TARNAME "rtems-c-src"
> | #define PACKAGE_VERSION "4.8.0"
> | #define PACKAGE_STRING "rtems-c-src 4.8.0"
> | #define PACKAGE_BUGREPORT "http://www.rtems.org/bugzilla"
> | /* end confdefs.h.  */
> |
> | int
> | main ()
> | {
> |
> |   ;
> |   return 0;
> | }
> configure:3519: error: C compiler cannot create executables
> See `config.log' for more details.
>
>
>
> Heres the directory in the PATH where it should have found the
> compiler, and the compiler appears to be there
>
>
>
> [p140:~] frederickspon% ls /Users/frederickspon/Documents/RTEMSX_4.8/
> RTEMS_Xcode/Build~~/bin
> cklength                        powerpc-rtems4.8-difftest       powerpc-rtems4.8-ranlib
> eolstrip                        powerpc-rtems4.8-g++            powerpc-rtems4.8-readelf
> install-if-change               powerpc-rtems4.8-gcc            powerpc-rtems4.8-size
> packhex                         powerpc-rtems4.8-gcc-4.1.1      powerpc-rtems4.8-sorttimes
> powerpc-rtems4.8-addr2line      powerpc-rtems4.8-gccbug         powerpc-rtems4.8-
> strings
> powerpc-rtems4.8-ar             powerpc-rtems4.8-gcov           powerpc-rtems4.8-strip
> powerpc-rtems4.8-as             powerpc-rtems4.8-ld             rtems-bin2c
> powerpc-rtems4.8-c++            powerpc-rtems4.8-nm             unhex
> powerpc-rtems4.8-c++filt        powerpc-rtems4.8-objcopy
> powerpc-rtems4.8-cpp            powerpc-rtems4.8-objdump
>
>
>
>
> ---
> Wi not trei a holiday in Sweden this yer?
>
> Michael Hamel
> ADInstruments Ltd, Dunedin, NZ
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>   


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list