From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24594 invoked by alias); 19 Feb 2010 18:54:43 -0000 Received: (qmail 24583 invoked by uid 22791); 19 Feb 2010 18:54:42 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.gmx.net (HELO mail.gmx.net) (213.165.64.20) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 19 Feb 2010 18:54:36 +0000 Received: (qmail invoked by alias); 19 Feb 2010 18:54:32 -0000 Received: from 188-23-5-30.adsl.highway.telekom.at (EHLO [10.0.0.2]) [188.23.5.30] by mail.gmx.net (mp006) with SMTP; 19 Feb 2010 19:54:32 +0100 Message-ID: <4B7EDE63.60504@gmx.de> Date: Fri, 19 Feb 2010 18:54:00 -0000 From: Chrissy User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: "Yann E. MORIN" CC: crossgcc@sourceware.org Subject: Re: i686-unknown-linux-gnu-gcc: undefined reference to `__memcpy_chk' References: <4B726A3C.9040605@gmx.de> <201002111934.25945.yann.morin.1998@anciens.enib.fr> <4B7EA32A.6000903@gmx.de> In-Reply-To: <4B7EA32A.6000903@gmx.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00059.txt.bz2 Hi again, I got the problem. strace 4.5.18 was configured to be built, that didn't work. So I tried version 4.5.19 and it compiled properly. Regards Chrissy Am 19.02.2010 15:41, schrieb Chrissy: > Hi Yann, All, > > thanks for your introduction to ct-ng. I tried > ct-ng i686-nptl-linux-gnu > and got a step further, but it did not compile properly. I got the error > (from build.log) > > [ALL ] /bin/bash ../libtool --tag CXX --tag disable-shared > --mode=compile > /media/f_mp3/MiniFS/toolchain_conf/targets/i686-nptl-linux-gnu/build/build-cc/./gcc/xgcc > -shared-libgcc > -B/media/f_mp3/MiniFS/toolchain_conf/targets/i686-nptl-linux-gnu/build/build-cc/./gcc > -nostdinc++ > -L/media/f_mp3/MiniFS/toolchain_conf/targets/i686-nptl-linux-gnu/build/build-cc/i686-nptl-linux-gnu/libstdc++-v3/src > -L/media/f_mp3/MiniFS/toolchain_conf/targets/i686-nptl-linux-gnu/build/build-cc/i686-nptl-linux-gnu/libstdc++-v3/src/.libs > -B/media/f_mp3/MiniFS/toolchain/i686-nptl-linux-gnu/bin/ > -B/media/f_mp3/MiniFS/toolchain/i686-nptl-linux-gnu/lib/ -isystem > /media/f_mp3/MiniFS/toolchain/i686-nptl-linux-gnu/include -isystem > /media/f_mp3/MiniFS/toolchain/i686-nptl-linux-gnu/sys-include > -I/media/f_mp3/MiniFS/toolchain_conf/targets/src/gcc-4.3.2/libstdc++-v3/../gcc > -I/media/f_mp3/MiniFS/toolchain_conf/targets/i686-nptl-linux-gnu/build/build-cc/i686-nptl-linux-gnu/libstdc++-v3/include/i686-nptl-linux-gnu > -I/media/f_mp3/MiniFS/toolchain_conf/targets/i686-nptl-linux-gnu/build/build-cc/i686-nptl-linux-gnu/libstdc++-v3/include > -I/media/f_mp3/MiniFS/toolchain_conf/targets/src/gcc-4.3.2/libstdc++-v3/libsupc++ > -fno-implicit-templates -prefer-pic -Wall -Wextra -Wwrite-strings > -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections > -fdata-sections -g -Os -c -o bad_typeid.lo > /media/f_mp3/MiniFS/toolchain_conf/targets/src/gcc-4.3.2/libstdc++-v3/libsupc++/bad_typeid.cc > [ERROR] Build failed in step 'Installing final compiler' > [ERROR] Error happened in > '/usr/local/lib/ct-ng-1.6.0/scripts/functions' in function > 'CT_DoExecLog' (line unknown, sorry) > [ERROR] called from > '/usr/local/lib/ct-ng-1.6.0/scripts/build/cc/gcc.sh' at line # 350 in > function 'do_cc' > [ERROR] called from > '/usr/local/lib/ct-ng-1.6.0/scripts/crosstool-NG.sh' at line # 562 in > function 'main' > [ERROR] Look at '/media/f_mp3/MiniFS/toolchain/build.log' for more > info on this error. > > Does someone know, what the problem is? > Thanks. > Regards > Chrissy > > Am 11.02.2010 19:34, schrieb Yann E. MORIN: > >> Hello Chrissy, All! >> >> On Wednesday 10 February 2010 09:11:40 Chrissy wrote: >> >> >>> [ALL ] /media/Entwicklung/MiniFS/toolchain/targets/i686-unknown-linux-gnu >>> /build/build-libc/elf/librtld.os: In function `print_statistics': >>> [ALL ] rtld.c:(.text+0x272): undefined reference to `__memcpy_chk' >>> [ALL ] rtld.c:(.text+0x33b): undefined reference to `__memcpy_chk' >>> [ALL ] rtld.c:(.text+0x588): undefined reference to `__memcpy_chk' >>> [ALL ] /media/Entwicklung/MiniFS/toolchain/targets/i686-unknown-linux-gnu >>> /build/build-libc/elf/librtld.os: In function `_dl_make_tlsdesc_dynamic': >>> [ALL ] (.text+0x148b6): undefined reference to `__memset_chk' >>> [ALL ] collect2: ld returned 1 exit status >>> I'm compiling on an Ubuntu 9.10 with gcc 4.4.1. >>> I attached the first and the last part of build.log, I hope that helps. >>> >>> >> You are using quite bleeding-edge versions of gcc. Those are known to be >> particularly hard to build, especially in the case where the build machine >> is of the same kind as the target (in your case x86). >> >> As a first-timer, I would suggest that you start off with the existing >> sample: i686-nptl-linux-gnu. You can recall the sample that way: >> >> ct-ng i686-nptl-linux-gnu <- configure using values from the sample >> ct-ng show-config <- prints current configuration >> >> Once your sample built OK, you can _try_ to change one version _at_a_time_ >> with: >> >> ct-ng menuconfig >> ct-ng build >> >> If you have more than one processor (or a multi-core processor), you can >> instruct crosstool-NG to build in //: >> >> ct-ng build.4 (replace 4 with the actual number of processors) >> >> Even on a single-core system, you may benefit a bit from running two jobs: >> >> ct-ng build.2 >> >> HTH. >> >> Regards, >> Yann E. MORIN. >> >> >> > -- For unsubscribe information see http://sourceware.org/lists.html#faq