From owner-freebsd-current@freebsd.org Wed Jul 25 06:39:30 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B9561040AC8 for ; Wed, 25 Jul 2018 06:39:30 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-21.consmr.mail.gq1.yahoo.com (sonic313-21.consmr.mail.gq1.yahoo.com [98.137.65.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0135971F44 for ; Wed, 25 Jul 2018 06:39:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: U0wjPc4VM1l8lLhYqkQJUeJnbkOwL0y8uz831gVv0wFMUX8P7KCqQaZvkiCPfsY iupW8I0kbj2.fL4zMaFLkVoE809d4qg3a.LEWtX4_LOk.sYiOfM7kJDgIqzHcaEsktuas_69gFme LQkm3HEscgCZiTWUbvaq8xWk_nFIgk11irZ94yoeLhiUG4yt82_0O.oxedYJoUKIxGuTVtXRGuZN hZ6_SG5x0ipKqAFkvGj5CdgTE..dSklB5OJqlRjZebTOPXvy88QXzzGy9HmBMQugc6AJ1r8oZV3x bdY01Gs61IvRV7ZgKnEKpQhb4LvAlEqZWGLnFWcWZfFbBGkJmtUoPRWqWSzY3KV3FOCqNnKnOHI. lKrxwZYGAJk0ObPteDgab.gDo22QsZJuSGNhI37zR8yx2YnfLNywxoKq6KQyVrW5GlVs.Krz7NZi 8oI7P3qtuboUJeAvM62BQQwEQtD.xm5tJaF_QAfTx9e3AcU.7MunMU462RLi13iHIcG7Im1dF0VC H9mXFjWnhufZi0_cMfGiP8q48Y8FPkQOUZe2LseQJcBGqQpYQPv5YdhSw6e5oa1tK7HvRCh1s3YR CK1.DISMgZ1mQinzDc2GcngJxwNSiXG0VTrldY34dvJ7qQ0mO9mICp5EkkRmxbx56mOFaLOPUcnK lUSpwvSc8_8RvEeCMP6.rvsddYgZAharsP4cFTxDZJw7WIIu1Jsu0djoIvrtnvhmDbA8NRrvwztZ y7yZNK7BOhhnSR.jwe_FP5skSgu5ez8Aae.aTmpK1B_KTZrW.zsLVZDt_0DZeYbVzC9141ye4v7I hvTGCV5_pOJKYYP5f46hvYElXqCnjZDhJ56c8iukWV2X5cF4yyj5PPe4mf7LTu9yrDrTSqVSqzDN ..NZ8gV3AgxWb3TZwrty9J14Jm3CSYZh3UoP5.NJv6qd9ARJAlMVVqCbbCvowZW.u.MMpmutbjiS DIcCGbK85OSZEkzEBOQz9dEXz2V5p.jHPQEMi2JRt4xrDdht1Yii8OL8Cw_JaUqTQtwkQUppJYoE uK_oxD3WcR2M8zyr.Wn754KobFAHy0J8zrmZCeHwfl7PJ8vQew81.buHZAE63VezXtkjp Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Wed, 25 Jul 2018 06:39:23 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp413.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 9fc224754d06040e512481562d5a345b; Wed, 25 Jul 2018 06:39:22 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: head -r336568 and -r336570 appears to have made ci.freebsg.org's FreeBSD-head-amd64-gcc fail either than it had been (error: operand type 'struct *' is incompatible with argument 1 of '__atomic_fetch_add') From: Mark Millard In-Reply-To: Date: Tue, 24 Jul 2018 23:39:21 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Konstantin Belousov , FreeBSD Current X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2018 06:39:30 -0000 On 2018-Jul-24, at 10:32 PM, Mark Millard wrote: > https://ci.freebsd.org/job/FreeBSD-head-amd64-gcc/6597/consoleText > (head -r336573 after the prior 6596's -r336565 ): >=20 > --- all_subdir_lib/ofed --- > In file included from = /workspace/src/contrib/ofed/librdmacm/cma.h:43:0, > from /workspace/src/contrib/ofed/librdmacm/acm.c:42: > /workspace/src/contrib/ofed/librdmacm/cma.h: In function = 'fastlock_init': > /workspace/src/contrib/ofed/librdmacm/cma.h:60:2: error: invalid = initializer > atomic_store(&lock->cnt, 0); > ^ > In file included from = /workspace/src/contrib/ofed/librdmacm/acm.c:42:0: > /workspace/src/contrib/ofed/librdmacm/cma.h: In function = 'fastlock_acquire': > /workspace/src/contrib/ofed/librdmacm/cma.h:68:2: error: operand type = 'struct *' is incompatible with argument 1 of = '__atomic_fetch_add' > if (atomic_fetch_add(&lock->cnt, 1) > 0) > ^~ > /workspace/src/contrib/ofed/librdmacm/cma.h: In function = 'fastlock_release': > /workspace/src/contrib/ofed/librdmacm/cma.h:73:2: error: operand type = 'struct *' is incompatible with argument 1 of = '__atomic_fetch_sub' > if (atomic_fetch_sub(&lock->cnt, 1) > 1) > ^~ > . . . > --- all_subdir_lib/ofed --- > *** [acm.o] Error code 1 >=20 >=20 > https://ci.freebsd.org/job/FreeBSD-head-amd64-gcc/6621/consoleText ( = for > -r336700 ) still shows this type of error. [I should have a subject with "head -r336568 through -r336570 . . .".] =46rom what I can tell looking around having something like: if (atomic_fetch_add(&lock->cnt, 1) > 0) involve a __atomic_fetch_add indicates that: /usr/local/lib/gcc/x86_64-unknown-freebsd12.0/6.4.0/include/stdatomic.h was in use instead of FreeBSD's stdatomic.h file. If this is right, then the issue may be tied to head -r335782 implicitly changing the order of the include file directory searching for builds via the devel/*-gcc . (I reverted -r335782 in my environment some time ago and have not run into this problem in my context so far.) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)