From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80101 invoked by alias); 7 Oct 2016 14:17:20 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 80089 invoked by uid 89); 7 Oct 2016 14:17:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=$arg, wlrpath, Wlrpath, Hx-languages-length:3710 X-HELO: mail-oi0-f66.google.com Received: from mail-oi0-f66.google.com (HELO mail-oi0-f66.google.com) (209.85.218.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 07 Oct 2016 14:17:18 +0000 Received: by mail-oi0-f66.google.com with SMTP id i127so1761908oia.0 for ; Fri, 07 Oct 2016 07:17:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=+upFSacCFuI/n3DlV2nbkGne+sT3dj2deIHmVN8qKc8=; b=X0N0ocBofO9aWku07GwZd54zXAStZdXMX/qgCArFJH77QoTG8QF3iBQYk3zNnhIFp2 gS821bZ3zUZp0UI7Y1vRJXTRXpwEwwH92oSaFRPW3sDaqY+c36u8RTB/N9XLSfRbePxX vpk/rsmN2cbmWKhhsXuK7rbVCqTxQ4247pK1Lv6EwSo5JZNc+Yj375BKBdip50HXsudY ClnVF6qFyeMPD0zJtLM7IUqg349x7ZthZ3nhaFsLO1VDi6SzgQ0EMRub62CmNogzPXMi 6luWovO9zTIxZaG+AydvbQ7k/AUg/3RT4fSB/AkdA0nsO/4YMNWmMNFpmAXYhIyCqYbx xUDw== X-Gm-Message-State: AA6/9Rn6aqpdZhepviOtI0YTMSen02LGOWtWMKcQEfo8Qqc+rR4l3/yM7wLIdGqwLyq9LhS+7yFUhxuWNK5h/A== X-Received: by 10.157.60.106 with SMTP id j39mr13064308ote.129.1475849836711; Fri, 07 Oct 2016 07:17:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.221.3 with HTTP; Fri, 7 Oct 2016 07:17:15 -0700 (PDT) In-Reply-To: <871szt89tz.fsf@redhat.com> References: <871szt89tz.fsf@redhat.com> From: Yao Qi Date: Fri, 07 Oct 2016 14:17:00 -0000 Message-ID: Subject: Re: [buildbot] Customized build and board file To: Sergio Durigan Junior Cc: "gdb-patches@sourceware.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00166.txt.bz2 On Thu, Oct 6, 2016 at 10:08 PM, Sergio Durigan Junior wrote: > > Yes, it is possible to provide specific parameters to a builder, so it > should be easy to do this. About the new board file, I understand that > it is just a workaround due to the limitations you mentioned below, and > as such it is not going to be put upstream, right? We'd also have to > provide a specific parameter to this builder if we want it to use this > board file. > Yes, if we have an armv7 box in gcc compile farm, we don't need that board file at all. The board file won't be upstream. >> Note that this is trade-off among various limitations, >> - we don't have armv7 devices in gcc compile farm, so we have to emulate >> on an armv8 machine, >> - libc6:armhf is not installed on gcc114, so I build the toolchain, and= force >> gdb and test programs use my sysroot. I am going to raise a request = to >> install libc6:armhf, but it may take a while. > > It's been a while since I want to have an ARM buildslave on the > BuildBot, so even with these limitations I still think it's a nice thing > to have. > > Thanks for working on this. I'll have to write special code for this > buildslave, so let me know when you have everything ready. When you write code, please take another requirement into account, that is, I may set up another buildslave where GDB is built for aarch64, but test cases are compiled for arm. In this case, nothing special in configure option, but another board file is needed too. Here are my steps to build gdb and run tests on gcc114, TOOLCHAIN=3D/home/qiyao/gcc-7/arm-linux-gnueabihf cd build-arm ../binutils-gdb/configure --host=3Darm-linux-gnueabihf --target=3Darm-linux-gnueabihf CC=3D"$TOOLCHAIN/bin/arm-linux-gnueabihf-gcc --sysroot=3D$TOOLCHAIN/sysroot" CXX=3D"$TOOLCHAIN/bin/arm-linux-gnueabihf-g++ --sysroot=3D$TOOLCHAIN/sysroot" LDFLAGS=3D"-Wl,-dynamic-linker,$TOOLCHAIN/sysroot/lib/ld-linux-armhf.so.3 -Wl,-rpath,$TOOLCHAIN/sysroot/lib -Wl,-rpath,$TOOLCHAIN/sysroot/usr/lib -Wl,-rpath,$TOOLCHAIN/lib" --disable-ld --disable-gold --disable-binutils --disable-gas --disable-gprof PATH=3D$TOOLCHAIN/bin:$PATH make -j32 cd gdb PATH=3D/home/qiyao/gcc-7/arm-linux-gnueabihf/bin:$PATH make check RUNTESTFLAGS=3D'--target_board=3Dunix-aarch32' and unix-aarch32.exp is: --------------------- unset_board_info isremote set_board_info isremote 0 load_generic_config "unix" process_multilib_options "" set toolchain_base "/home/qiyao/gcc-7/arm-linux-gnueabihf" set_board_info compiler "${toolchain_base}/bin/arm-linux-gnueabihf-gcc --sysroot=3D${toolchain_base}/sysroot" set_board_info c++compiler "${toolchain_base}/bin/arm-linux-gnueabihf-g++ --sysroot=3D${toolchain_base}/sysroot" set_board_info f77compiler "${toolchain_base}/bin/arm-linux-gnueabihf-gfortran --sysroot=3D${toolchain_base}/sysroot" set_board_info f90compiler "${toolchain_base}/bin/arm-linux-gnueabihf-gfortran --sysroot=3D${toolchain_base}/sysroot" set_board_info ldflags "-Wl,-dynamic-linker,${toolchain_base}/sysroot/lib/ld-linux-armhf.so.3 -Wl,-rpath,${toolchain_base}/sysroot/usr/lib/ -Wl,-rpath,${toolchain_base}/sysroot/lib -Wl,-rpath,${toolchain_base}/lib" set_board_info gdb_init_commands [list "set libthread-db-search-path ${toolchain_base}/sysroot/lib" "set auto-load safe-path /" "set sysroot /" ] proc gdb_load { arg } { global gdb_prompt foreach command [gdb_init_commands] { send_gdb "$command\n" gdb_expect 30 { -re "$gdb_prompt $" { } default { perror "gdb_init_command for target failed" return } } } if { $arg !=3D "" } { return [gdb_file_cmd $arg] } return 0 } --------------------------- There are 1138 test fails but I didn't triage them yet. --=20 Yao (=E9=BD=90=E5=B0=A7)