X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: RoBoard Lab Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP cross compilers for open-source hardware Date: Wed, 04 Sep 2013 23:03:57 +0800 Organization: Netfront http://www.netfront.net/ Lines: 54 Message-ID: References: <201308301736 DOT r7UHawZN001455 AT delorie DOT com> <5224A5F3 DOT 3010500 AT iki DOT fi> <52261016 DOT 108 AT iki DOT fi> NNTP-Posting-Host: 114.34.144.113 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: adenine.netfront.net 1378307039 16445 114.34.144.113 (4 Sep 2013 15:03:59 GMT) X-Complaints-To: news AT netfront DOT net NNTP-Posting-Date: Wed, 4 Sep 2013 15:03:59 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: <52261016.108@iki.fi> Bytes: 3842 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 於 2013/9/4 上午 12:36, Andris Pavenis 提到: > > You can use the same approach as I did with building RPM packages - not > use installed GMP, MPFR (and MPC for later GCC versions) at all but > build accepable versions as static libraries and link with them. > > Andris > We are following your approach to build gcc 4.3.2 under Cygwin, and today the compiling fails again at the same place (when linking cc1-dummy.exe): --- error messages --- /usr/src/rpm/BUILD/djcross-gcc-4.3.2/tmpbuild/./prev-gcc/xgcc -B/usr/src/rpm/BUILD/djcross-gcc-4.3.2/tmpbuild/./prev-gcc/ -B/usr/src/rpm/BUILD/djcross-gcc-4.3.2/tmpinst/i686-pc-cygwin/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -o cc1-dummy.exe c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o c-parser.o cygwin2.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o main.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libc pp/libcpp.a -lintl ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/usr/src/rpm/BUILD/djcross-gcc-4.3.2/tmpinst/lib -L/usr/src/rpm/BUILD/djcross-gcc-4.3.2/tmpinst/lib -lmpfr -lgmp /usr/src/rpm/BUILD/djcross-gcc-4.3.2/tmpinst /lib/libmpfr.a(get_str.o):get_str.c: (.text+0x18e): undefined reference to '___chkstk_ms' /usr/src/rpm/BUILD/djcross-gcc-4.3.2/tmpinst/lib/libmpfr.a(get_str.o):get_str.c: (.text+0x4cd): undefined reference to '___chkstk_ms' /usr/src/rpm/BUILD/djcross-gcc-4.3.2/tmpinst/lib/libmpfr.a(get_str.o):get_str.c: (.text+0x985): undefined reference to '___chkstk_ms' /usr/src/rpm/BUILD/djcross-gcc-4.3.2/tmpinst/lib/libmpfr.a(get_str.o):get_str.c: (.text+0xac6): undefined reference to '___chkstk_ms' /usr/src/rpm/BUILD/djcross-gcc-4.3.2/tmpinst/lib/libmpfr.a(get_str.o):get_str.c: (.text+0xb8c): undefined reference to '___chkstk_ms' /usr/src/rpm/BUILD/djcross-gcc-4.3.2/tmpinst/lib/libmpfr.a(get_str.o):get_str.c: (.text+0xbb5): more undefined references '___chkstk_ms' ------ The '___chkstk_ms' is in libgcc.a, and so we add manually -L -lgcc to the above xgcc command line and then the linking of cc1-dummy.exe successes. It seems that the makefile should be patched for Cygwin. We will try this and report later. :) --- news://freenews.netfront.net/ - complaints: news AT netfront DOT net ---