From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19740 invoked by alias); 11 Oct 2004 17:50:49 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 19721 invoked from network); 11 Oct 2004 17:50:46 -0000 Received: from unknown (HELO redpinesignals.com) (203.196.161.92) by sourceware.org with SMTP; 11 Oct 2004 17:50:46 -0000 Received: from [192.168.1.11] ([192.168.1.11]) by redpinesignals.com (8.11.6+Sun/8.11.6) with ESMTP id i9BFVAQ05962 for ; Mon, 11 Oct 2004 23:31:10 +0800 (CST) Message-ID: <416AC9D7.8000408@redpinesignals.com> Date: Mon, 11 Oct 2004 17:50:00 -0000 From: Sriharsha Vedurmudi User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803 MIME-Version: 1.0 To: gcc Subject: Need Help. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-10/txt/msg00070.txt.bz2 Hello Group, I need some help with Deja Gnu for testing a ported version of gcc for a custom processor. I have downloaded Deja and untarred it into a directory. I then ran ./configure make make install as specified in the INSTALL file. So, now Im sure it got installed well. But how do I run it to verify the custom version of gcc. My gcc (the one I use for Linux running on AMD Athelon XP 2400) is as below: bash-2.05b$ gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit Thread model: posix gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) bash-2.05b$ When I want to shift to the new ported gcc (whose output I currently use with a simulator in GDB), I use this shell script: bash-2.05b$ cat setup echo "==============================================" echo "Setting Environment for GCC compiler for RPINE" echo "==============================================" export GCC_EXEC_PREFIX=/opt/GNUPlus/rpine/lib/gcc-lib/ export PATH=${GCC_EXEC_PREFIX}/rpine-elf32/3.3:$PATH export PATH=/opt/GNUPlus/rpine/rpine-elf32/bin:$PATH export PATH=/opt/GNUPlus/rpine/bin/:$PATH export LD_LIBRARY_PATH=/opt/GNUPlus/rpine/lib/gdb:${LD_LIBRARY_PATH} bash-2.05b$source ./setup That last one was the command I am to give to use the ported gcc instead of the regular one. The version of this ported gcc is: bash-2.05b$ source ./setup ============================================== Setting Environment for GCC compiler for RPINE ============================================== bash-2.05b$ gcc -v Reading specs from /opt/GNUPlus/rpine/lib/gcc-lib/rpine-elf32/3.3/specs Configured with: /mnt/vsdc416/sankhya/PS/l2333/src/views/support_release-1/gnu/gcc-3.3/configure --prefix=/opt/GNUPlus/rpine --target=rpine-elf32 --enable-languages=c --with-gnu-as --with-gnu-ld --without-newlib --host=i686-pc-linux-gnu --with-dwarf2 Thread model: single gcc version 3.3 20040831 (rpine_support_release-1.0) bash-2.05b$ Now, I guess, you have a picture of what is going on. I have two versions of Gcc installed in my system and depending on which target I am compiling for, I change the path so that, that gcc version is used. When I configure and make deja, the path is ofcourse for the AMD-Linux-targetted gcc. But I want to test our "rpine" gcc with this installation of deja (I hope I am not confusing you). How do I do this? From my side, I went through Deja site and read all that was written (at some point it was even suggested that I create a separate user for the purpose) and all that confused me like hell. Can someone explain the following in simpler terms. 1. How to run the test suite on a cross-compiler that co-exists with a native installation? (Refer above to the setup). 2. How to add/delete tests to this suite? (Also, I couldnt see any test-case programs with it) 3. How do I obtain/store results? I've done much searching, but all that left me more confused. Kind regards, Harsha. -- ***************************** * Sriharsha Vedurmudi * Software Engineer * * Redpine Signals Inc. * Gate #395, Plot 87,88 * Sagar Society, Road #2, * Banjara Hills, * Hyderabad - 500 034 * www.redpinesignals.com * * +91-40-23559911 (Office) * +91-9849133133 (Mobile) *****************************