From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.107.14.59; helo=eur01-ve1-obe.outbound.protection.outlook.com; envelope-from=sami.mujawar@arm.com; receiver=edk2-devel@lists.01.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140059.outbound.protection.outlook.com [40.107.14.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C6F40211F35C8 for ; Wed, 3 Apr 2019 06:09:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NEUpsP+jhFvE+Xr8VtBgpM2fDLsiFbm5BB1TNB9rr1M=; b=iUaXEnQyo4b7d0P6keYS2eyS2L5UQKcu41yxtg1ykjn8u4Iq0Q7H1u64B0uACWonmEZFN5p2oBhzBNI4tSFWYwDzX/yLUmwQB536MNAqTWVzSwWKEc/+4jlCDJTJ6nkGiMzyd6J8TQ/9VrRDJukPvUoHXDpFDuYQ7sDFbg/mrwo= Received: from DB6PR0802MB2375.eurprd08.prod.outlook.com (10.172.228.142) by DB6PR0802MB2423.eurprd08.prod.outlook.com (10.172.247.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.20; Wed, 3 Apr 2019 13:09:30 +0000 Received: from DB6PR0802MB2375.eurprd08.prod.outlook.com ([fe80::9cb6:69c4:3f70:1221]) by DB6PR0802MB2375.eurprd08.prod.outlook.com ([fe80::9cb6:69c4:3f70:1221%8]) with mapi id 15.20.1750.014; Wed, 3 Apr 2019 13:09:30 +0000 From: Sami Mujawar To: Leif Lindholm , wang xiaofeng CC: "Gao, Liming" , "edk2-devel@lists.01.org" , "ard.biesheuvel@linaro.org" Thread-Topic: =?Windows-1252?Q?Re:_aarch64-linux-gnu-gcc.exe:_error_due_to_loss_=91/=92?= =?Windows-1252?Q?in_code_path_in_in_Jenkins_server?= Thread-Index: AQHU6gxSePaFtSRhw0KYRby5/5YQlKYqRYTQ Date: Wed, 3 Apr 2019 13:09:29 +0000 Message-ID: References: <541f0df5.aa56.169e2314641.Coremail.winggundum82@163.com> <20190403080004.6olnatfjkrge35q7@bivouac.eciton.net> <738e10dc.b06a.169e23d8e5b.Coremail.winggundum82@163.com> <20190403105929.6doiivzthxrfa5hf@bivouac.eciton.net> In-Reply-To: <20190403105929.6doiivzthxrfa5hf@bivouac.eciton.net> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Sami.Mujawar@arm.com; x-originating-ip: [217.140.106.55] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 07c5e5ff-49e5-436f-9dbf-08d6b8359b7d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:DB6PR0802MB2423; x-ms-traffictypediagnostic: DB6PR0802MB2423: x-microsoft-antispam-prvs: x-forefront-prvs: 0996D1900D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(376002)(366004)(136003)(39860400002)(396003)(40434004)(199004)(189003)(13464003)(6246003)(86362001)(8936002)(7736002)(54906003)(446003)(2906002)(486006)(72206003)(476003)(33656002)(66066001)(93886005)(11346002)(6436002)(102836004)(6506007)(186003)(97736004)(106356001)(4326008)(53546011)(99286004)(26005)(76176011)(25786009)(9686003)(110136005)(3846002)(6116002)(105586002)(316002)(478600001)(229853002)(14454004)(68736007)(81166006)(256004)(52536014)(14444005)(71200400001)(305945005)(71190400001)(74316002)(5024004)(55016002)(53936002)(5660300002)(7696005)(81156014)(460985005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0802MB2423; H:DB6PR0802MB2375.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: lK5uy7+BzvssyT0D9b7ThGPhiSr7ri1SdUPBstKiHzAj3tgQPrLJtB2yIETPryFhUNE8U3s+VRfCTY7hYJrDd0IoSxStloCvDCyts5T70KscI2xO8pB1P45G/52kVJE/UNRj1n0r+zB7hDiFsDbzzTleAmSxDu+phhlQUxJRxQkT+UN59rK61KQ/9MCkwVzcz/cmtDZYbxhhT+BwM23lBPW24VJOLbweGbmt6WGKeB/dZnisevMieoR96DvgHt2mPozKBn5EG8gggYzF0g7QWOXxp1NlpmlM9LIdwJDtlxVwNSd8cKWpywvGKCieo17eTP77Pnc4vNvlnfhK1OFxyjeXX/Q5r1qcQDxWVqAwbhbt4N1krwSMWXvOduVD86umczSq8uj7GMgtly4qP5U3wzVqYMQgqcEnctIwOVq9eNU= MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 07c5e5ff-49e5-436f-9dbf-08d6b8359b7d X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2019 13:09:30.0341 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0802MB2423 Subject: =?UTF-8?B?UmU6IGFhcmNoNjQtbGludXgtZ251LWdjYy5leGU6IGVycm9yIGR1ZSB0byBsb3NzIOKAmC/igJlpbiBjb2RlIHBhdGggaW4gaW4gSmVua2lucyBzZXJ2ZXI=?= X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Apr 2019 13:09:34 -0000 Content-Language: en-US Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable I cannot spot anything obvious, but we have seen issues where the workspace= depth is long, which we resolve by using junctions on Windows. We have tried building the FVP platform firmware on our Jenkins Windows 10 = infrastructure, using the same gcc toolchain (gcc-linaro-7.3.1-2018.05-i686= -mingw32_aarch64-linux-gnu) and don=92t see this issue. Our Jenkins PC is configured with the following tools. It might be worth ch= ecking this in your setup. 1. python --version Python 2.7.14 2. java -version java version "1.8.0_202" Java(TM) SE Runtime Environment (build 1.8.0_202-b08) Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode) Note: We do not use Cygwin in our Jenkins infrastructure. Our build scripts= are in DOS batch file format and are invoked by Jenkins. Regards, Sami Mujawar -----Original Message----- From: Leif Lindholm Sent: 03 April 2019 11:59 AM To: wang xiaofeng Cc: Sami Mujawar ; Gao, Liming = ; edk2-devel@lists.01.org; ard.biesheuvel@linaro.org Subject: Re: Re: aarch64-linux-gnu-gcc.exe: error due to loss =91/=92in cod= e path in in Jenkins server On Wed, Apr 03, 2019 at 04:07:58PM +0800, wang xiaofeng wrote: > Hi Leif, > We use VC for X86 (do not need GCC cross complie) Ah, that was not clear from the original mail. Are both server and local system using cygwin/mingw32? Best Regards, Leif > gcc revision : > Using built-in specs. > COLLECT_GCC=3Daarch64-linux-gnu-gcc.exe > COLLECT_LTO_WRAPPER=3Dc:/code/gnutools/gcc-linaro-7.3.1-2018.05-i686-min > gw32_aarch64-linux-gnu/bin/../libexec/gcc/aarch64-linux-gnu/7.3.1/lto- > wrapper.exe > Target: aarch64-linux-gnu > Configured with: > '/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/ > label/tcwg-x86_64-build/target/aarch64-linux-gnu/snapshots/gcc.git~lin > aro-7.3-2018.05/configure' SHELL=3D/bin/bash > --with-mpc=3D/home/tcwg-buildslave/workspace/tcwg-make-release/builder_a > rch/amd64/label/tcwg-x86_64-build/target/aarch64-linux-gnu/_build/buil > ds/destdir/i686-w64-mingw32 > --with-mpfr=3D/home/tcwg-buildslave/workspace/tcwg-make-release/builder_ > arch/amd64/label/tcwg-x86_64-build/target/aarch64-linux-gnu/_build/bui > lds/destdir/i686-w64-mingw32 > --with-gmp=3D/home/tcwg-buildslave/workspace/tcwg-make-release/builder_a > rch/amd64/label/tcwg-x86_64-build/target/aarch64-linux-gnu/_build/buil > ds/destdir/i686-w64-mingw32 --with-gnu-as --with-gnu-ld > --disable-libmudflap --enable-lto --enable-shared > --without-included-gettext --enable-nls --with-system-zlib > --disable-sjlj-exceptions --enable-gnu-unique-object > --enable-linker-build-id --disable-libstdcxx-pch --enable-c99 > --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-long-long > --with-cloog=3Dno --with-ppl=3Dno --with-isl=3Dno --disable-multilib > --enable-fix-cortex-a53-835769 --enable-fix-cortex-a53-843419 > --with-arch=3Darmv8-a --enable-threads=3Dposix --enable-multiarch > --enable-libstdcxx-time=3Dyes --enable-gnu-indirect-function > --with-build-sysroot=3D/home/tcwg-buildslave/workspace/tcwg-make-release > /builder_arch/amd64/label/tcwg-x86_64-build/target/aarch64-linux-gnu/_ > build/sysroots/aarch64-linux-gnu > --with-sysroot=3D/home/tcwg-buildslave/workspace/tcwg-make-release/build > er_arch/amd64/label/tcwg-x86_64-build/target/aarch64-linux-gnu/_build/ > builds/destdir/i686-w64-mingw32/aarch64-linux-gnu/libc > --enable-checking=3Drelease --disable-bootstrap > --enable-languages=3Dc,c++,fortran,lto > --with-libiconv-prefix=3D/home/tcwg-buildslave/workspace/tcwg-make-relea > se/builder_arch/amd64/label/tcwg-x86_64-build/target/aarch64-linux-gnu > /_build/builds/destdir/i686-w64-mingw32/usr --with-system-zlib=3Dno > --build=3Dx86_64-unknown-linux-gnu --host=3Di686-w64-mingw32 > --target=3Daarch64-linux-gnu > --prefix=3D/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arc > h/amd64/label/tcwg-x86_64-build/target/aarch64-linux-gnu/_build/builds > /destdir/i686-w64-mingw32 > Thread model: posix > gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision > d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) > > > > > GNUmake revision : GNUMake-3.81_win32 > > > Can the tool provide more debug output ? > > > > > > > > > > > At 2019-04-03 16:00:04, "Leif Lindholm" wrote: > >Sami, any ideas? > > > >Xiaofeng, what gcc is being used for x86? (output of "gcc -v") > > > >Best Regards, > > > >Leif > > > >On Wed, Apr 03, 2019 at 03:54:33PM +0800, wang xiaofeng wrote: > >> HI ARM Base tool owners, > >> I meet a strange issue that aarch64 build . The aarch64 build > >> pass on my local server. But it fails at Jenkins server(a Win10 > >> autobuild system written by Java that will can call edk2 bat in > >> command line) > >> > >> > >> The build command is > >> "c:\jenkins\workspace\gop2018\udk2018\gnutools\gcc-linaro-7.3.1-201 > >> 8.05-i686-mingw32_aarch64-linux-gnu\bin\aarch64-linux-gnu-gcc" -g > >> -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror > >> -Wno-array-bounds -ffunction-sections -fdata-sections -include > >> AutoGen.h -fno-common -DSTRING_ARRAY_NAME=3DUefiDevicePathLibStrings > >> -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall > >> -Werror -Wno-missing-braces -Wno-array-bounds -include AutoGen.h > >> -fno-common -mlittle-endian -fno-short-enums -fverbose-asm > >> -funsigned-char -ffunction-sections -fdata-sections -Wno-address > >> -fno-asynchronous-unwind-tables -fno-pic -fno-pie -ffixed-x18 -flto > >> -Wno-unused-but-set-variable -Wno-unused-const-variable > >> -mcmodel=3Dsmall -DEDKII -DEFIX64 -DUEFI_BUILD -DFGL_LINUX > >> -DGCC_TOOLCHAIN -c -o > >> c:\jenkins\workspace\gop2018\udk2018\Build\AmdGopPkg\DEBUG_GCC5\AAR > >> CH64\MdePkg\Library\UefiDevicePathLib\UefiDevicePathLib\OUTPUT\.\De > >> vicePathUtilities.obj > >> -Ic:\jenkins\workspace\gop2018\udk2018\MdePkg\Library\UefiDevicePat > >> hLib > >> -Ic:\jenkins\workspace\gop2018\udk2018\Build\AmdGopPkg\DEBUG_GCC5\A > >> ARCH64\MdePkg\Library\UefiDevicePathLib\UefiDevicePathLib\DEBUG > >> -Ic:\jenkins\workspace\gop2018\udk2018\MdePkg > >> -Ic:\jenkins\workspace\gop2018\udk2018\MdePkg\Include > >> -Ic:\jenkins\workspace\gop2018\udk2018\MdePkg\Include\AArch64 > >> c:\jenkins\workspace\gop2018\udk2018\MdePkg\Library\UefiDevicePathL > >> ib\DevicePathUtilities.c > >> > >> > >> But aarch64-linux-gnu-gcc.exe will return error with : > >> c:jenkinsworkspacegop2018udk2018MdePkgLibraryUefiDevicePathLibDevicePa= thUtilities.c: No such file or director The failure is due to all \ is miss= ed from view of aarch64-linux-gnu-gcc.exe, while the makefile and build log= have '\' > >> Another clue is that x86 build is ok on the same Jenkins system > >> > >> > >> Anyone have advice for this strange issue? > >> IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.