From owner-freebsd-ports@freebsd.org Mon Jan 15 11:58:01 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 96217E77823; Mon, 15 Jan 2018 11:58:01 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay106.isp.belgacom.be (mailrelay106.isp.belgacom.be [195.238.20.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BF4087054A; Mon, 15 Jan 2018 11:58:00 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes IronPort-PHdr: =?us-ascii?q?9a23=3A5zIf5BJ/oCa/vLYM89mcpTZWNBhigK39O0sv0rFi?= =?us-ascii?q?tYgfLfzxwZ3uMQTl6Ol3ixeRBMOHs6sC07KempujcFRI2YyGvnEGfc4EfD4+ou?= =?us-ascii?q?JSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgpp?= =?us-ascii?q?POT1HZPZg9iq2+yo9JDffxhEiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+?= =?us-ascii?q?RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLd?= =?us-ascii?q?QgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QKsqUjq+8ahkVB7oiD?= =?us-ascii?q?8GNzEn9mHXltdwh79frB64uhBz35LYbISTOfFjfK3SYMkaSHJPUMhRSSJPH4Cy?= =?us-ascii?q?YIkBD+UOIelWoJLwp0cMoBeiGQWgGP/jxiFOi3Tr3aM6yeMhEQTe0QI+HtIOsn?= =?us-ascii?q?DUp8jrOacVVuC117fHzTDZYPNQwjf29Y/FcgwgofGOWbJ9asrfyVMxGAzbk1ie?= =?us-ascii?q?tILrMymS1uQXvGiW9uxtXv+hhW4grgF+uDmvxsE0h4nHnIIa1E7L+j5iwIkoP9?= =?us-ascii?q?G4T1R7YdG8HJtUsyGaKY52TtklQ2FytyY3zKANt52jfCUSy5kr2gTTZ+KIfoWJ?= =?us-ascii?q?+B7vSeicLDliiH54dr+yiBC/+lW6xOLmTMm7ylNKozJAktnLq38CyQTe6tOCSv?= =?us-ascii?q?th5keh3iuP1xzL5uFEP080ka3bJoYiwrEqkpoTsEHDETHsmEXxlqOWakQk+uqs?= =?us-ascii?q?6+j9frrmoZicN5RqhQH7KKsunNe/Df4/MggUUGiX4eW81Lv98k3lWLhHjeA6nr?= =?us-ascii?q?PHvJ3VJMkXvLO1DgFb34o59hqyATir3MwdnXYdLVJFfByHj5LuO1HLOP34Efa/?= =?us-ascii?q?g1aokDpwyfDGJKPuDYvWIXjYjbjtZ7F961RTyAYr19BQ+4pUCq0dIPL0QkLxus?= =?us-ascii?q?bYAQEnPAOv2OboFcxx1psZWWKVHq+ZK7jfsVGS5u0xPeaDf5QVtyvnJ/gi/f7u?= =?us-ascii?q?gmczmUUBcqmxwZsXdHe4E+xoI0WDf3XjnMwOEXwXsQYnUOPqlUeCUSRNaHa0Q6?= =?us-ascii?q?Ix/T87CJi4AojdXY+tm6GO0D28Hp1MaWBMEkqMHmvwd4WYR/cMbzqfItdgkj0F?= =?us-ascii?q?VLmuUYoh1RChtALhxbpnNPTb9TMDupL4ydd5/erTlQs99W88M8PI93yGRilMn3?= =?us-ascii?q?EaTjo306R+pgQp0laRw6F9gvNwG8Ze6vlSXkE9L5GKnMJgDNWnZgPDep+iT1G9?= =?us-ascii?q?T9CvByp5Gs4wwdsmTVxwFv+ZolbExSX8UOxdrKCCGJFhqvGU5HP2Pcsoji+ejK?= =?us-ascii?q?Q=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2AqAwDalVxa/4aF9lFdGQEBAQEBAQEBA?= =?us-ascii?q?QEBAQcBAQEBAYNBVhB0FBOPK41oAQGCATIBmQ8vhRYChExDFQEBAQEBAQEBAQF?= =?us-ascii?q?qKII4JAGCRwEFOhwjEAsOCgklDyoeBhOKNwytFIozAQEBAQEBAQEBAQEBAQEBA?= =?us-ascii?q?QEhhDyFVYMugy8Eh2sFo2SIDI0ygQCCDZEQjT6LIzUjgVBMMAiCZwmET0A3AQE?= =?us-ascii?q?BAYw3AQEB?= X-IPAS-Result: =?us-ascii?q?A2AqAwDalVxa/4aF9lFdGQEBAQEBAQEBAQEBAQcBAQEBAYN?= =?us-ascii?q?BVhB0FBOPK41oAQGCATIBmQ8vhRYChExDFQEBAQEBAQEBAQFqKII4JAGCRwEFO?= =?us-ascii?q?hwjEAsOCgklDyoeBhOKNwytFIozAQEBAQEBAQEBAQEBAQEBAQEhhDyFVYMugy8?= =?us-ascii?q?Eh2sFo2SIDI0ygQCCDZEQjT6LIzUjgVBMMAiCZwmET0A3AQEBAYw3AQEB?= Received: from 134.133-246-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.246.133.134]) by relay.skynet.be with ESMTP; 15 Jan 2018 12:57:56 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id w0FBvujt077981; Mon, 15 Jan 2018 12:57:56 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Mon, 15 Jan 2018 12:57:56 +0100 From: Tijl Coosemans To: Luca Pizzamiglio Cc: FreeBSD Current , freebsd-ports@freebsd.org Subject: Re: atomic in i386 Current after CLANG 6 upgrade Message-ID: <20180115125756.37b803ba@kalimero.tijl.coosemans.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2018 11:58:01 -0000 On Mon, 15 Jan 2018 11:43:44 +0100 Luca Pizzamiglio wrote: > I've already received a couple of messages from pkg-fallout about build > failure on head-i386-default [1] [2] both pointing to the same errors, > about missing intrinsic symbols related to __atomic_* > > The clang documentation about C11 atomic builtins [3] stats that __atomic_* > are GCC extension and Clang provides them. > > It seems to me that this specific GCC-compatible builtin are enabled on > amd64, but not on i386. > Is there a way to enable GCC compatible __atomic_ builtin also on i386? > Or should I provide patches to adopt _c11_atomic_* instead of __atomic_* > for every ports that need it ? > > [1] > http://beefy11.nyi.freebsd.org/data/head-i386-default/p458948_s327953/logs/librdkafka-0.11.3.log > [2] > http://beefy11.nyi.freebsd.org/data/head-i386-default/p458948_s327953/logs/stress-ng-0.09.09.log > [3] https://clang.llvm.org/docs/LanguageExtensions.html#langext-c11-atomic 8 byte atomics requires at least i586. So either find a way to disable the use of these atomics in these ports or add something like this to the port Makefile. .if ${ARCH} == i386 && ! ${MACHINE_CPU:Mi586} CFLAGS+= -march=i586 .endif