delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/14/10:46:08

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=x8EE6/05bq/LkizF0THL3en0zm2FXIU5CfhVHaoHDi4
Di2OVR0IgyZHesZnsBMFJLPAhKPfKaId1+DsBGQ77NnBRe6seR6K4ByGamrQ+FmY
acL9bPlb/AJwmHckBMYRjmHvZ/MnGIU8KYi02iSxKvaDVWpi8egn89dChYK5RWe4
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=Q41qx1M0KbSe1hrlg+aIVi/TEuA=; b=cVbJzpLacLjohXZOZ
jEc6Z4SSB/62K5997Y4zT+pQBBVerd6RHNkE6kTZ9NS0xidxktfSCvdDK64Bi0XI
JYLsUmrTQiy7WKW7CRjwF0+xknVbGC4vKSKPZMgxvhR1W2S4pgPAzw0f2KAaAQJk
6ESoQae0M/2g13TrNsJqU6JhN4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD,SPF_NEUTRAL,TW_BF,TW_BG,TW_BJ,TW_CX,TW_DC,TW_FD,TW_GC,TW_GD,TW_IB,TW_JL,TW_QV,TW_SG,TW_YM autolearn=no version=3.3.1
Message-ID: <51924E12.1030408@cs.utoronto.ca>
Date: Tue, 14 May 2013 10:45:38 -0400
From: Ryan Johnson <ryan DOT johnson AT cs DOT utoronto DOT ca>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Error building crossgcc on cygwin
References: <20130514140433 DOT GB24540 AT raven DOT wolf DOT lan>
In-Reply-To: <20130514140433.GB24540@raven.wolf.lan>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r4EEk2U5001018

On 14/05/2013 10:04 AM, Josef Wolf wrote:
> I am trying to compile gcc on cygwin under 64bit win7
>
> To configure gcc, I use the following command:
>
>   /var/tmp/builds/crossgcc/src/gcc-4.7.2/configure \
>     --prefix=/usr/local/crossgcc \
>     --with-gmp=/usr/x86_64-pc-cygwin/sys-root/usr \
>     --with-mpc=/usr/x86_64-pc-cygwin/sys-root/usr \
>     --with-mpfr=/usr/x86_64-pc-cygwin/sys-root/usr \
[snip]
> But configure complains that it can't find gmp, mpc and mpfr.
[snip]
> configure:5458: gcc -o conftest.exe -O2 -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include   -s conftest.c  -L/usr/x86_64-pc-cygwin/sys-root/usr/lib -L/usr/x86_64-pc-cygwin/sys-root/usr/lib -L/usr/x86_64-pc-cygwin/sys-root/usr/lib -lmpc -lmpfr -lgmp >&5
> /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../crt0.o: In function `mainCRTStartup':
> /usr/src/debug/cygwin-1.7.18-1/winsup/cygwin/crt0.c:29: undefined reference to `_cygwin_crt0'
> /usr/src/debug/cygwin-1.7.18-1/winsup/cygwin/crt0.c:34: undefined reference to `_cygwin_premain0'
> /usr/src/debug/cygwin-1.7.18-1/winsup/cygwin/crt0.c:35: undefined reference to `_cygwin_premain1'
> /usr/src/debug/cygwin-1.7.18-1/winsup/cygwin/crt0.c:36: undefined reference to `_cygwin_premain2'
> /usr/src/debug/cygwin-1.7.18-1/winsup/cygwin/crt0.c:37: undefined reference to `_cygwin_premain3'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x15): undefined reference to `___main'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x1b): undefined reference to `__imp__mpfr_init'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x3e): undefined reference to `__imp__mpfr_atan2'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x53): undefined reference to `__imp__mpfr_erfc'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x6c): undefined reference to `__imp__mpfr_subnormalize'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x75): undefined reference to `__imp__mpfr_clear'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x91): undefined reference to `__imp__mpc_init2'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0xb2): undefined reference to `__imp__mpc_set_ui_ui'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0xc7): undefined reference to `__imp__mpc_cosh'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0xe0): undefined reference to `__imp__mpc_pow'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0xf5): undefined reference to `__imp__mpc_acosh'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0xfe): undefined reference to `__imp__mpc_clear'
How did you configure GMP et al? Are you really using 64-bit cygwin? And 
if so, is `gcc' really the 64-bit cygwin compiler and not the default 
32-bit compiler?

In any case, this looks like a general cross-compiler question that has 
no obvious bearing on cygwin, so you'll probably benefit from more 
expertise if you ask on a gcc or crosstool-ng [1] mailing list (the 
latter seems to support several ARM variants OOTB, and is the least 
painful route in my experience).

[1] http://crosstool-ng.org/#status

Ryan


>   Here is the
> relevant part of the config.log file. Any ideas? The whole cponfig.log is
> appended at the end of this mail.
>
> configure:5427: checking for the correct version of the gmp/mpfr/mpc libraries
> configure:5458: gcc -o conftest.exe -O2 -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include   -s conftest.c  -L/usr/x86_64-pc-cygwin/sys-root/usr/lib -L/usr/x86_64-pc-cygwin/sys-root/usr/lib -L/usr/x86_64-pc-cygwin/sys-root/usr/lib -lmpc -lmpfr -lgmp >&5
> /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../crt0.o: In function `mainCRTStartup':
> /usr/src/debug/cygwin-1.7.18-1/winsup/cygwin/crt0.c:29: undefined reference to `_cygwin_crt0'
> /usr/src/debug/cygwin-1.7.18-1/winsup/cygwin/crt0.c:34: undefined reference to `_cygwin_premain0'
> /usr/src/debug/cygwin-1.7.18-1/winsup/cygwin/crt0.c:35: undefined reference to `_cygwin_premain1'
> /usr/src/debug/cygwin-1.7.18-1/winsup/cygwin/crt0.c:36: undefined reference to `_cygwin_premain2'
> /usr/src/debug/cygwin-1.7.18-1/winsup/cygwin/crt0.c:37: undefined reference to `_cygwin_premain3'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x15): undefined reference to `___main'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x1b): undefined reference to `__imp__mpfr_init'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x3e): undefined reference to `__imp__mpfr_atan2'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x53): undefined reference to `__imp__mpfr_erfc'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x6c): undefined reference to `__imp__mpfr_subnormalize'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x75): undefined reference to `__imp__mpfr_clear'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x91): undefined reference to `__imp__mpc_init2'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0xb2): undefined reference to `__imp__mpc_set_ui_ui'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0xc7): undefined reference to `__imp__mpc_cosh'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0xe0): undefined reference to `__imp__mpc_pow'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0xf5): undefined reference to `__imp__mpc_acosh'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0xfe): undefined reference to `__imp__mpc_clear'
> collect2: ld returned 1 exit status
> configure:5458: $? = 1
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE_URL ""
> | #define LT_OBJDIR ".libs/"
> | /* end confdefs.h.  */
> | #include <mpc.h>
> | int
> | main ()
> | {
> |
> |     mpfr_t n;
> |     mpfr_t x;
> |     mpc_t c;
> |     int t;
> |     mpfr_init (n);
> |     mpfr_init (x);
> |     mpfr_atan2 (n, n, x, GMP_RNDN);
> |     mpfr_erfc (n, x, GMP_RNDN);
> |     mpfr_subnormalize (x, t, GMP_RNDN);
> |     mpfr_clear(n);
> |     mpfr_clear(x);
> |     mpc_init2 (c, 53);
> |     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
> |     mpc_cosh (c, c, MPC_RNDNN);
> |     mpc_pow (c, c, c, MPC_RNDNN);
> |     mpc_acosh (c, c, MPC_RNDNN);
> |     mpc_clear (c);
> |
> |   ;
> |   return 0;
> | }
> configure:5462: result: no
> configure:5483: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
> Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
> their locations.  Source code for these libraries can be found at
> their respective hosting sites as well as at
> ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
> http://gcc.gnu.org/install/prerequisites.html for additional info.  If
> you obtained GMP, MPFR and/or MPC from a vendor distribution package,
> make sure that you have installed both the libraries and the header
> files.  They may be located in separate packages.
>
> Here is the whole config.log file:
>
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by configure, which was
> generated by GNU Autoconf 2.64.  Invocation command line was
>
>    $ /var/tmp/builds/crossgcc/src/gcc-4.7.2/configure --prefix=/usr/local/crossgcc --with-gmp=/usr/x86_64-pc-cygwin/sys-root/usr --with-mpc=/usr/x86_64-pc-cygwin/sys-root/usr --with-mpfr=/usr/x86_64-pc-cygwin/sys-root/usr --enable-install-libbfd --enable-languages=c --with-gnu-ld --with-gnu-as --with-newlib --enable-commonbfdlib --enable-multilib --enable-interwork --disable-libssp --nfp --gas -v --target=arm-none-eabi --with-cpu=cortex-m3 --with-tune=cortex-m3 --with-mode=thumb --with-float=soft --disable-nls --without-headers
>
> ## --------- ##
> ## Platform. ##
> ## --------- ##
>
> hostname = MD12HFAC
> uname -m = i686
> uname -r = 1.7.18(0.263/5/3)
> uname -s = CYGWIN_NT-6.1-WOW64
> uname -v = 2013-04-19 10:39
>
> /usr/bin/uname -p = unknown
> /bin/uname -X     = unknown
>
> /bin/arch              = i686
> /usr/bin/arch -k       = unknown
> /usr/convex/getsysinfo = unknown
> /usr/bin/hostinfo      = unknown
> /bin/machine           = unknown
> /usr/bin/oslevel       = unknown
> /bin/universe          = unknown
>
> PATH: /usr/local/crossgcc/host/bin
> PATH: /usr/local/crossgcc/bin
> PATH: /usr/local/bin
> PATH: /usr/bin
> PATH: /cygdrive/c/WINDOWS/system32
> PATH: /cygdrive/c/WINDOWS
> PATH: /cygdrive/c/WINDOWS/System32/Wbem
> PATH: /cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0
> PATH: /cygdrive/c/Program Files/WIDCOMM/Bluetooth Software
> PATH: /cygdrive/c/Program Files/WIDCOMM/Bluetooth Software/syswow64
> PATH: /cygdrive/c/Program Files/TortoiseSVN/bin
> PATH: /cygdrive/c/Program Files/Microsoft/Web Platform Installer
> PATH: /cygdrive/c/Program Files (x86)/Microsoft ASP.NET/ASP.NET Web Pages/v1.0
> PATH: /cygdrive/c/Program Files (x86)/Windows Kits/8.0/Windows Performance Toolkit
> PATH: /cygdrive/c/Program Files/Microsoft SQL Server/110/Tools/Binn
>
>
> ## ----------- ##
> ## Core tests. ##
> ## ----------- ##
>
> configure:2237: checking build system type
> configure:2251: result: i686-pc-cygwin
> configure:2298: checking host system type
> configure:2311: result: i686-pc-cygwin
> configure:2331: checking target system type
> configure:2344: result: arm-none-eabi
> configure:2398: checking for a BSD-compatible install
> configure:2466: result: /usr/bin/install -c
> configure:2477: checking whether ln works
> configure:2499: result: yes
> configure:2503: checking whether ln -s works
> configure:2507: result: yes
> configure:2514: checking for a sed that does not truncate output
> configure:2578: result: /usr/bin/sed
> configure:2587: checking for gawk
> configure:2603: found /usr/bin/gawk
> configure:2614: result: gawk
> configure:3070: checking for libitm support
> configure:3076: result: no
> configure:3653: checking to see if cat works as expected
> configure:3658: result: yes
> configure:3776: checking for gcc
> configure:3792: found /usr/bin/gcc
> configure:3803: result: gcc
> configure:4032: checking for C compiler version
> configure:4041: gcc --version >&5
> gcc (GCC) 4.5.3
> Copyright (C) 2010 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:4052: $? = 0
> configure:4041: gcc -v >&5
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.5.3/lto-wrapper.exe
> Target: i686-pc-cygwin
> Configured with: /gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3/configure --srcdir=/gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --datarootdir=/usr/share --docdir=/usr/share/doc/gcc4 -C --datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man -v --with-gmp=/usr --with-mpfr=/usr --enable-bootstrap --enable-version-specific-runtime-libs --libexecdir=/usr/lib --enable-static --enable-shared --enable-shared-libgcc --disable-__cxa_atexit --with-gnu-ld --with-gnu-as --with-dwarf2 --disable-sjlj-exceptions --enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite --enable-lto --enable-java-awt=gtk --disable-symvers --enable-libjava --program-suffix=-4 --enable-libgomp --enable-libssp --enable-libada --enable-threads=posix --with-arch=i686 --with-tune=generic --enable-libgcj-sublibs CC=gcc-4 CXX=g++-4 CC_FOR_TARGET=gcc-4 CXX_FOR_TARGET=g++-4 GNATMAKE_FOR_TARGET=gnatmake GNATBIND_FOR_TARGET=gnatbind --with-ecj-jar=/usr/share/java/ecj.jar
> Thread model: posix
> gcc version 4.5.3 (GCC)
> configure:4052: $? = 0
> configure:4041: gcc -V >&5
> gcc: '-V' option must have argument
> configure:4052: $? = 1
> configure:4041: gcc -qversion >&5
> gcc: unrecognized option '-qversion'
> gcc: no input files
> configure:4052: $? = 1
> configure:4072: checking for C compiler default output file name
> configure:4094: gcc -O2  -s conftest.c  >&5
> configure:4098: $? = 0
> configure:4135: result: a.exe
> configure:4151: checking whether the C compiler works
> configure:4160: ./a.exe
> configure:4164: $? = 0
> configure:4179: result: yes
> configure:4186: checking whether we are cross compiling
> configure:4188: result: no
> configure:4191: checking for suffix of executables
> configure:4198: gcc -o conftest.exe -O2  -s conftest.c  >&5
> configure:4202: $? = 0
> configure:4224: result: .exe
> configure:4230: checking for suffix of object files
> configure:4252: gcc -c -O2  conftest.c >&5
> configure:4256: $? = 0
> configure:4277: result: o
> configure:4281: checking whether we are using the GNU C compiler
> configure:4300: gcc -c -O2  conftest.c >&5
> configure:4300: $? = 0
> configure:4309: result: yes
> configure:4318: checking whether gcc accepts -g
> configure:4338: gcc -c -g  conftest.c >&5
> configure:4338: $? = 0
> configure:4379: result: yes
> configure:4396: checking for gcc option to accept ISO C89
> configure:4460: gcc  -c -O2  conftest.c >&5
> configure:4460: $? = 0
> configure:4473: result: none needed
> configure:4551: checking for g++
> configure:4567: found /usr/bin/g++
> configure:4578: result: g++
> configure:4605: checking for C++ compiler version
> configure:4614: g++ --version >&5
> g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
> Copyright (C) 2004 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:4625: $? = 0
> configure:4614: g++ -v >&5
> Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
> Configured with: /managed/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/configure --verbose --program-suffix=-3 --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug
> Thread model: posix
> gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
> configure:4625: $? = 0
> configure:4614: g++ -V >&5
> g++: `-V' option must have argument
> configure:4625: $? = 1
> configure:4614: g++ -qversion >&5
> g++: unrecognized option `-qversion'
> g++: no input files
> configure:4625: $? = 1
> configure:4629: checking whether we are using the GNU C++ compiler
> configure:4648: g++ -c   conftest.cpp >&5
> configure:4648: $? = 0
> configure:4657: result: yes
> configure:4666: checking whether g++ accepts -g
> configure:4686: g++ -c -g  conftest.cpp >&5
> configure:4686: $? = 0
> configure:4727: result: yes
> configure:4816: checking for gnatbind
> configure:4846: result: no
> configure:4908: checking for gnatmake
> configure:4938: result: no
> configure:4957: checking whether compiler driver understands Ada
> configure:4980: result: no
> configure:4989: checking how to compare bootstrapped objects
> configure:5014: result: cmp --ignore-initial=16 $$f1 $$f2
> configure:5086: checking for objdir
> configure:5101: result: .libs
> configure:5267: checking for the correct version of gmp.h
> configure:5287: gcc -c -O2 -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include   conftest.c >&5
> configure:5287: $? = 0
> configure:5305: gcc -c -O2 -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include   conftest.c >&5
> configure:5305: $? = 0
> configure:5306: result: yes
> configure:5322: checking for the correct version of mpfr.h
> configure:5340: gcc -c -O2 -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include   conftest.c >&5
> configure:5340: $? = 0
> configure:5357: gcc -c -O2 -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include   conftest.c >&5
> configure:5357: $? = 0
> configure:5358: result: yes
> configure:5375: checking for the correct version of mpc.h
> configure:5392: gcc -c -O2 -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include   conftest.c >&5
> configure:5392: $? = 0
> configure:5408: gcc -c -O2 -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include   conftest.c >&5
> configure:5408: $? = 0
> configure:5409: result: yes
> configure:5427: checking for the correct version of the gmp/mpfr/mpc libraries
> configure:5458: gcc -o conftest.exe -O2 -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include   -s conftest.c  -L/usr/x86_64-pc-cygwin/sys-root/usr/lib -L/usr/x86_64-pc-cygwin/sys-root/usr/lib -L/usr/x86_64-pc-cygwin/sys-root/usr/lib -lmpc -lmpfr -lgmp >&5
> /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../crt0.o: In function `mainCRTStartup':
> /usr/src/debug/cygwin-1.7.18-1/winsup/cygwin/crt0.c:29: undefined reference to `_cygwin_crt0'
> /usr/src/debug/cygwin-1.7.18-1/winsup/cygwin/crt0.c:34: undefined reference to `_cygwin_premain0'
> /usr/src/debug/cygwin-1.7.18-1/winsup/cygwin/crt0.c:35: undefined reference to `_cygwin_premain1'
> /usr/src/debug/cygwin-1.7.18-1/winsup/cygwin/crt0.c:36: undefined reference to `_cygwin_premain2'
> /usr/src/debug/cygwin-1.7.18-1/winsup/cygwin/crt0.c:37: undefined reference to `_cygwin_premain3'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x15): undefined reference to `___main'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x1b): undefined reference to `__imp__mpfr_init'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x3e): undefined reference to `__imp__mpfr_atan2'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x53): undefined reference to `__imp__mpfr_erfc'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x6c): undefined reference to `__imp__mpfr_subnormalize'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x75): undefined reference to `__imp__mpfr_clear'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0x91): undefined reference to `__imp__mpc_init2'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0xb2): undefined reference to `__imp__mpc_set_ui_ui'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0xc7): undefined reference to `__imp__mpc_cosh'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0xe0): undefined reference to `__imp__mpc_pow'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0xf5): undefined reference to `__imp__mpc_acosh'
> /tmp/ccAlCJHS.o:conftest.c:(.text+0xfe): undefined reference to `__imp__mpc_clear'
> collect2: ld returned 1 exit status
> configure:5458: $? = 1
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE_URL ""
> | #define LT_OBJDIR ".libs/"
> | /* end confdefs.h.  */
> | #include <mpc.h>
> | int
> | main ()
> | {
> |
> |     mpfr_t n;
> |     mpfr_t x;
> |     mpc_t c;
> |     int t;
> |     mpfr_init (n);
> |     mpfr_init (x);
> |     mpfr_atan2 (n, n, x, GMP_RNDN);
> |     mpfr_erfc (n, x, GMP_RNDN);
> |     mpfr_subnormalize (x, t, GMP_RNDN);
> |     mpfr_clear(n);
> |     mpfr_clear(x);
> |     mpc_init2 (c, 53);
> |     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
> |     mpc_cosh (c, c, MPC_RNDNN);
> |     mpc_pow (c, c, c, MPC_RNDNN);
> |     mpc_acosh (c, c, MPC_RNDNN);
> |     mpc_clear (c);
> |
> |   ;
> |   return 0;
> | }
> configure:5462: result: no
> configure:5483: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
> Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
> their locations.  Source code for these libraries can be found at
> their respective hosting sites as well as at
> ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
> http://gcc.gnu.org/install/prerequisites.html for additional info.  If
> you obtained GMP, MPFR and/or MPC from a vendor distribution package,
> make sure that you have installed both the libraries and the header
> files.  They may be located in separate packages.
>
> ## ---------------- ##
> ## Cache variables. ##
> ## ---------------- ##
>
> ac_cv_build=i686-pc-cygwin
> ac_cv_c_compiler_gnu=yes
> ac_cv_cxx_compiler_gnu=yes
> ac_cv_env_AR_FOR_TARGET_set=
> ac_cv_env_AR_FOR_TARGET_value=
> ac_cv_env_AR_set=
> ac_cv_env_AR_value=
> ac_cv_env_AS_FOR_TARGET_set=
> ac_cv_env_AS_FOR_TARGET_value=
> ac_cv_env_AS_set=
> ac_cv_env_AS_value=
> ac_cv_env_CCC_set=
> ac_cv_env_CCC_value=
> ac_cv_env_CC_FOR_TARGET_set=
> ac_cv_env_CC_FOR_TARGET_value=
> ac_cv_env_CC_set=
> ac_cv_env_CC_value=
> ac_cv_env_CFLAGS_set=set
> ac_cv_env_CFLAGS_value=-O2
> ac_cv_env_CPPFLAGS_set=
> ac_cv_env_CPPFLAGS_value=
> ac_cv_env_CXXFLAGS_set=
> ac_cv_env_CXXFLAGS_value=
> ac_cv_env_CXX_FOR_TARGET_set=
> ac_cv_env_CXX_FOR_TARGET_value=
> ac_cv_env_CXX_set=
> ac_cv_env_CXX_value=
> ac_cv_env_DLLTOOL_FOR_TARGET_set=
> ac_cv_env_DLLTOOL_FOR_TARGET_value=
> ac_cv_env_DLLTOOL_set=
> ac_cv_env_DLLTOOL_value=
> ac_cv_env_GCC_FOR_TARGET_set=
> ac_cv_env_GCC_FOR_TARGET_value=
> ac_cv_env_GCJ_FOR_TARGET_set=
> ac_cv_env_GCJ_FOR_TARGET_value=
> ac_cv_env_GFORTRAN_FOR_TARGET_set=
> ac_cv_env_GFORTRAN_FOR_TARGET_value=
> ac_cv_env_GOC_FOR_TARGET_set=
> ac_cv_env_GOC_FOR_TARGET_value=
> ac_cv_env_LDFLAGS_set=set
> ac_cv_env_LDFLAGS_value=-s
> ac_cv_env_LD_FOR_TARGET_set=
> ac_cv_env_LD_FOR_TARGET_value=
> ac_cv_env_LD_set=
> ac_cv_env_LD_value=
> ac_cv_env_LIBS_set=
> ac_cv_env_LIBS_value=
> ac_cv_env_LIPO_FOR_TARGET_set=
> ac_cv_env_LIPO_FOR_TARGET_value=
> ac_cv_env_LIPO_set=
> ac_cv_env_LIPO_value=
> ac_cv_env_NM_FOR_TARGET_set=
> ac_cv_env_NM_FOR_TARGET_value=
> ac_cv_env_NM_set=
> ac_cv_env_NM_value=
> ac_cv_env_OBJCOPY_set=
> ac_cv_env_OBJCOPY_value=
> ac_cv_env_OBJDUMP_FOR_TARGET_set=
> ac_cv_env_OBJDUMP_FOR_TARGET_value=
> ac_cv_env_OBJDUMP_set=
> ac_cv_env_OBJDUMP_value=
> ac_cv_env_RANLIB_FOR_TARGET_set=
> ac_cv_env_RANLIB_FOR_TARGET_value=
> ac_cv_env_RANLIB_set=
> ac_cv_env_RANLIB_value=
> ac_cv_env_READELF_FOR_TARGET_set=
> ac_cv_env_READELF_FOR_TARGET_value=
> ac_cv_env_READELF_set=
> ac_cv_env_READELF_value=
> ac_cv_env_STRIP_FOR_TARGET_set=
> ac_cv_env_STRIP_FOR_TARGET_value=
> ac_cv_env_STRIP_set=
> ac_cv_env_STRIP_value=
> ac_cv_env_WINDMC_FOR_TARGET_set=
> ac_cv_env_WINDMC_FOR_TARGET_value=
> ac_cv_env_WINDMC_set=
> ac_cv_env_WINDMC_value=
> ac_cv_env_WINDRES_FOR_TARGET_set=
> ac_cv_env_WINDRES_FOR_TARGET_value=
> ac_cv_env_WINDRES_set=
> ac_cv_env_WINDRES_value=
> ac_cv_env_build_alias_set=
> ac_cv_env_build_alias_value=
> ac_cv_env_build_configargs_set=
> ac_cv_env_build_configargs_value=
> ac_cv_env_host_alias_set=
> ac_cv_env_host_alias_value=
> ac_cv_env_host_configargs_set=
> ac_cv_env_host_configargs_value=
> ac_cv_env_target_alias_set=set
> ac_cv_env_target_alias_value=arm-none-eabi
> ac_cv_env_target_configargs_set=
> ac_cv_env_target_configargs_value=
> ac_cv_exeext=.exe
> ac_cv_host=i686-pc-cygwin
> ac_cv_objext=o
> ac_cv_path_SED=/usr/bin/sed
> ac_cv_path_install='/usr/bin/install -c'
> ac_cv_prog_AWK=gawk
> ac_cv_prog_ac_ct_CC=gcc
> ac_cv_prog_ac_ct_CXX=g++
> ac_cv_prog_cc_c89=
> ac_cv_prog_cc_g=yes
> ac_cv_prog_cxx_g=yes
> ac_cv_target=arm-none-eabi
> acx_cv_cc_gcc_supports_ada=no
> acx_cv_prog_LN=ln
> gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
> lt_cv_objdir=.libs
>
> ## ----------------- ##
> ## Output variables. ##
> ## ----------------- ##
>
> AR=''
> AR_FOR_BUILD='$(AR)'
> AR_FOR_TARGET=''
> AS=''
> AS_FOR_BUILD='$(AS)'
> AS_FOR_TARGET=''
> AWK='gawk'
> BISON=''
> BUILD_CONFIG=''
> CC='gcc'
> CC_FOR_BUILD='$(CC)'
> CC_FOR_TARGET=''
> CFLAGS='-O2'
> CFLAGS_FOR_BUILD=''
> CFLAGS_FOR_TARGET=''
> COMPILER_AS_FOR_TARGET=''
> COMPILER_LD_FOR_TARGET=''
> COMPILER_NM_FOR_TARGET=''
> CONFIGURE_GDB_TK=''
> CPPFLAGS=''
> CXX='g++'
> CXXFLAGS='-g -O2'
> CXXFLAGS_FOR_BUILD=''
> CXXFLAGS_FOR_TARGET=''
> CXX_FOR_BUILD='$(CXX)'
> CXX_FOR_TARGET=''
> DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
> DEFS=''
> DLLTOOL=''
> DLLTOOL_FOR_BUILD='$(DLLTOOL)'
> DLLTOOL_FOR_TARGET=''
> ECHO_C=''
> ECHO_N='-n'
> ECHO_T=''
> EXEEXT='.exe'
> EXPECT=''
> EXTRA_CONFIGARGS_LIBJAVA='--disable-static'
> FLAGS_FOR_TARGET=''
> FLEX=''
> GCC_FOR_TARGET=''
> GCC_SHLIB_SUBDIR=''
> GCJ_FOR_BUILD='$(GCJ)'
> GCJ_FOR_TARGET=''
> GDB_TK=''
> GFORTRAN_FOR_BUILD='$(GFORTRAN)'
> GFORTRAN_FOR_TARGET=''
> GNATBIND='no'
> GNATMAKE='no'
> GOC_FOR_BUILD='$(GOC)'
> GOC_FOR_TARGET=''
> INSTALL_DATA='${INSTALL} -m 644'
> INSTALL_GDB_TK=''
> INSTALL_PROGRAM='${INSTALL}'
> INSTALL_SCRIPT='${INSTALL}'
> LD='/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld.exe'
> LDFLAGS='-s'
> LDFLAGS_FOR_BUILD=''
> LDFLAGS_FOR_TARGET=''
> LD_FOR_BUILD='$(LD)'
> LD_FOR_TARGET=''
> LEX=''
> LIBOBJS=''
> LIBS=''
> LIPO=''
> LIPO_FOR_TARGET=''
> LN='ln'
> LN_S='ln -s'
> LTLIBOBJS=''
> M4=''
> MAINT=''
> MAINTAINER_MODE_FALSE=''
> MAINTAINER_MODE_TRUE=''
> MAKEINFO=''
> NM=''
> NM_FOR_BUILD='$(NM)'
> NM_FOR_TARGET=''
> OBJCOPY=''
> OBJDUMP=''
> OBJDUMP_FOR_TARGET=''
> OBJEXT='o'
> PACKAGE_BUGREPORT=''
> PACKAGE_NAME=''
> PACKAGE_STRING=''
> PACKAGE_TARNAME=''
> PACKAGE_URL=''
> PACKAGE_VERSION=''
> PATH_SEPARATOR=':'
> POSTSTAGE1_CONFIGURE_FLAGS=''
> RANLIB=''
> RANLIB_FOR_BUILD='$(RANLIB)'
> RANLIB_FOR_TARGET=''
> RAW_CXX_FOR_TARGET=''
> READELF=''
> READELF_FOR_TARGET=''
> RPATH_ENVVAR=''
> RUNTEST=''
> SED='/usr/bin/sed'
> SHELL='/bin/sh'
> STRIP=''
> STRIP_FOR_TARGET=''
> SYSROOT_CFLAGS_FOR_TARGET=''
> TOPLEVEL_CONFIGURE_ARGUMENTS='/var/tmp/builds/crossgcc/src/gcc-4.7.2/configure --prefix=/usr/local/crossgcc --with-gmp=/usr/x86_64-pc-cygwin/sys-root/usr --with-mpc=/usr/x86_64-pc-cygwin/sys-root/usr --with-mpfr=/usr/x86_64-pc-cygwin/sys-root/usr --enable-install-libbfd --enable-languages=c --with-gnu-ld --with-gnu-as --with-newlib --enable-commonbfdlib --enable-multilib --enable-interwork --disable-libssp --nfp --gas -v --target=arm-none-eabi --with-cpu=cortex-m3 --with-tune=cortex-m3 --with-mode=thumb --with-float=soft --disable-nls --without-headers'
> WINDMC=''
> WINDMC_FOR_BUILD='$(WINDMC)'
> WINDMC_FOR_TARGET=''
> WINDRES=''
> WINDRES_FOR_BUILD='$(WINDRES)'
> WINDRES_FOR_TARGET=''
> YACC=''
> ac_ct_CC='gcc'
> ac_ct_CXX='g++'
> bindir='${exec_prefix}/bin'
> build='i686-pc-cygwin'
> build_alias=''
> build_configargs=''
> build_configdirs='build-libiberty build-texinfo build-flex build-bison build-m4 build-fixincludes'
> build_cpu='i686'
> build_libsubdir='build-i686-pc-cygwin'
> build_noncanonical='i686-pc-cygwin'
> build_os='cygwin'
> build_subdir='build-i686-pc-cygwin'
> build_tooldir=''
> build_vendor='pc'
> clooginc=''
> clooglibs=''
> compare_exclusions=''
> configdirs='intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libtermcap'
> datadir='${datarootdir}'
> datarootdir='${prefix}/share'
> do_compare='cmp --ignore-initial=16 $$f1 $$f2'
> docdir='${datarootdir}/doc/${PACKAGE}'
> dvidir='${docdir}'
> exec_prefix='NONE'
> extra_host_libiberty_configure_flags=''
> extra_mpc_gmp_configure_flags=''
> extra_mpc_mpfr_configure_flags=''
> extra_mpfr_configure_flags=''
> gmpinc='-I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include -I/usr/x86_64-pc-cygwin/sys-root/usr/include '
> gmplibs='-L/usr/x86_64-pc-cygwin/sys-root/usr/lib -L/usr/x86_64-pc-cygwin/sys-root/usr/lib -L/usr/x86_64-pc-cygwin/sys-root/usr/lib -lmpc -lmpfr -lgmp'
> host='i686-pc-cygwin'
> host_alias=''
> host_configargs=''
> host_cpu='i686'
> host_noncanonical='i686-pc-cygwin'
> host_os='cygwin'
> host_subdir='.'
> host_vendor='pc'
> htmldir='${docdir}'
> includedir='${prefix}/include'
> infodir='${datarootdir}/info'
> libdir='${exec_prefix}/lib'
> libexecdir='${exec_prefix}/libexec'
> localedir='${datarootdir}/locale'
> localstatedir='${prefix}/var'
> mandir='${datarootdir}/man'
> oldincludedir='/usr/include'
> pdfdir='${docdir}'
> poststage1_ldflags=''
> poststage1_libs=''
> pplinc=''
> ppllibs=''
> prefix='/usr/local/crossgcc'
> program_transform_name='s&^&arm-none-eabi-&'
> psdir='${docdir}'
> sbindir='${exec_prefix}/sbin'
> sharedstatedir='${prefix}/com'
> stage1_cflags=''
> stage1_checking=''
> stage1_languages=''
> stage1_ldflags=''
> stage1_libs=''
> stage2_werror_flag=''
> sysconfdir='${prefix}/etc'
> target='arm-none-eabi'
> target_alias='arm-none-eabi'
> target_configargs=''
> target_configdirs='target-libgcc target-libgloss target-newlib target-libgomp target-libitm target-libstdc++-v3 target-libmudflap target-libssp target-libquadmath target-libgfortran target-boehm-gc target-libffi target-zlib target-libjava target-libobjc target-libada target-libgo target-rda'
> target_cpu='arm'
> target_noncanonical='arm-none-eabi'
> target_os='eabi'
> target_subdir='arm-none-eabi'
> target_vendor='none'
> tooldir=''
>
> ## ------------------- ##
> ## File substitutions. ##
> ## ------------------- ##
>
> alphaieee_frag=''
> host_makefile_frag='config/mh-cygwin'
> ospace_frag=''
> serialization_dependencies=''
> target_makefile_frag=''
>
> ## ----------- ##
> ## confdefs.h. ##
> ## ----------- ##
>
> /* confdefs.h */
> #define PACKAGE_NAME ""
> #define PACKAGE_TARNAME ""
> #define PACKAGE_VERSION ""
> #define PACKAGE_STRING ""
> #define PACKAGE_BUGREPORT ""
> #define PACKAGE_URL ""
> #define LT_OBJDIR ".libs/"
>
> configure: exit 1
>
>



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019