tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Cross-building NetBSD-current on Mac OS X 10.5 (Leopard)



No go. :(
Running "build.sh -U -u -X ../xsrc-current -x -m i386 -T tooldir.Darwin -O 
obj.i386-Darwin-XXX -D destdir.i386 -R release.i386 distribution"
on "Darwin mini.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 
PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386"
in src-current/tools/mpfr
gives:

        checking for recent GMP... yes
        checking for __gmpz_init in -lgmp... no
        configure: error: libgmp not found or uses a different ABI.
        Please read the INSTALL file -- see "In case of problem".

Full/more output is appended below.


 - Hubert


...
dependall ===> tools/mpfr
checking for a BSD-compatible install... 
/Users/feyrer/work/NetBSD/cvs/src-current/tooldir.Darwin/bin/i486--netbsdelf-install
 -c -p -r
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... 
/Users/feyrer/work/NetBSD/cvs/src-current/tools/mpfr/../../external/lgpl3/mpfr/dist/install-sh
 -c -d
checking for gawk... 
/Users/feyrer/work/NetBSD/cvs/src-current/tooldir.Darwin/bin/nbawk
checking whether 
/Users/feyrer/work/NetBSD/cvs/src-current/tooldir.Darwin/bin/nbmake sets 
$(MAKE)... no
checking whether to disable maintainer-specific portions of Makefiles... yes
checking build system type... x86_64-apple-darwin10.8.0
checking host system type... x86_64-apple-darwin10.8.0
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... 
/Volumes/pkgsrc5/pkg/bin/gsed
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for style of include used by 
/Users/feyrer/work/NetBSD/cvs/src-current/tooldir.Darwin/bin/nbmake... none
checking dependency style of cc... none
checking how to run the C preprocessor... cc -E
checking for ICC... no
checking whether cc understands -c and -o together... yes
checking for function prototypes... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking if the compiler understands -Wl,-search_paths_first... yes
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for main in -lm... yes
checking whether time.h and sys/time.h may both be included... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking for string.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/fpu.h usability... no
checking sys/fpu.h presence... no
checking for sys/fpu.h... no
checking for working alloca.h... yes
checking for alloca... yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking how to copy va_list... va_copy
checking for memmove... yes
checking for memset... yes
checking for setlocale... yes
checking for strtol... yes
checking for gettimeofday... yes
checking for long long int... yes
checking for intmax_t... yes
checking for working INTMAX_MAX... yes
checking for union fpc_csr... no
checking for fesetround... yes
checking for gcc float-conversion bug... no
checking for denormalized numbers... yes
checking if NAN == NAN... no
checking if charset has consecutive values... yes
checking for math/round... yes
checking for math/trunc... yes
checking for math/floor... yes
checking for math/ceil... yes
checking for math/rint... yes
checking for long double... yes
checking format of `long double' floating point... IEEE extended, little endian
checking for gmp.h... yes
checking for a sed that does not truncate output... (cached) 
/Volumes/pkgsrc5/pkg/bin/gsed
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... 
/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker 
(/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin10/4.2.1/ld option 
to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from cc object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... no
checking for -exported_symbols_list linker flag... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fno-common -DPIC
checking if cc PIC flag -fno-common -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker 
(/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared 
libraries... yes
checking dynamic linker characteristics... darwin10.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking whether gcc __attribute__ ((mode (XX))) works... yes
checking for recent GMP... yes
checking for __gmpz_init in -lgmp... no
configure: error: libgmp not found or uses a different ABI.
Please read the INSTALL file -- see "In case of problem".

*** Failed target:  .configure_done
*** Failed command: (cd build && AR=ar 
AWK=/Users/feyrer/work/NetBSD/cvs/src-current/tooldir.Darwin/bin/nbawk CC=cc 
CPPFLAGS= CXX=c++ 
INSTALL=/Users/feyrer/work/NetBSD/cvs/src-current/tooldir.Darwin/bin/i486--netbsdelf-install\
 -c\ -p\ -r LDFLAGS= 
LEX=/Users/feyrer/work/NetBSD/cvs/src-current/tooldir.Darwin/bin/nblex 
MAKE=/Users/feyrer/work/NetBSD/cvs/src-current/tooldir.Darwin/bin/nbmake 
RANLIB=ranlib 
YACC=/Users/feyrer/work/NetBSD/cvs/src-current/tooldir.Darwin/bin/nbyacc 
PATH="/Users/feyrer/work/NetBSD/cvs/src-current/tooldir.Darwin/bin:$PATH" 
ABI=32 /bin/sh 
/Users/feyrer/work/NetBSD/cvs/src-current/tools/mpfr/../../external/lgpl3/mpfr/dist/configure
 --with-gmp=/Users/feyrer/work/NetBSD/cvs/src-current/tooldir.Darwin 
--disable-shared 
--prefix=/Users/feyrer/work/NetBSD/cvs/src-current/tooldir.Darwin)
*** Error code 1

Stop.
nbmake: stopped in /Users/feyrer/work/NetBSD/cvs/src-current/tools/mpfr





Am 16.08.2011 um Di. 16.08.2011 06:15 schrieb Alistair Crooks:

> The attached, horrible, crufty and utterly uncleaned up diff will
> allow NetBSD-current to be cross-built on a Mac OS X Leopard machine
> (and, I think, anything with an OLD gcc, but untested on the same).
> 
> The symptoms of the problem are that the configuration of mpfr during
> the tools build stage will fail because a gmp library with mpz_init in
> it cannot be found.  Having talked to Matt Green, he tells me that
> this is because the version of libgmp that has just been built is for
> 64-bit, and a 32-bit tools binary is needed.  The three changes to the
> gmp, mpfr and mpc Makefiles do this (very crudely).
> 
> After that's been fixed, the version of gcc that was available in the
> tools build (i.e.  the native compiler, gcc 4.0.1 in my case) couldn't
> handle extern inlines - I changed all occurrences to static inlines. 
> Again, very crudely.
> 
> These changes were enough to get an amd64 release cross-built on Leopard.
> 
> Regards,
> Alistair
> <leopard.diff>



Home | Main Index | Thread Index | Old Index