Date: Sun, 25 Dec 2011 15:50:00 -0800 (PST) From: tplou@lbl.gov To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/163619: OFED failed to build with clang Message-ID: <201112252350.pBPNo0Ur025858@neutron.lbl.gov> Resent-Message-ID: <201112260010.pBQ0AB86078933@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 163619 >Category: kern >Synopsis: OFED failed to build with clang >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 26 00:10:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: User >Release: FreeBSD 9.0-RC3 amd64 >Organization: N/A >Environment: System: FreeBSD 9.0-RC3 FreeBSD 9.0-RC3 #0 r228312: Tue Dec 6 10:22:33 PST 2011 root@:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When try to build r228873 with WITH_OFED=YES, it fails with the following error: @/sys/cdefs.h:148:23: note: expanded from: ... #define __CONCAT(x,y) x/**/y ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 3 warnings and 20 errors generated. *** Error code 1 In file included from /usr/src/sys/modules/mlx4/../../ofed/drivers/net/mlx4/cmd.c:36: In file included from /usr/src/sys/modules/mlx4/../../ofed/include/linux/pci.h:48: In file included from /usr/src/sys/modules/mlx4/../../ofed/include/linux/dmapool.h:35: In file included from /usr/src/sys/modules/mlx4/../../ofed/include/linux/device.h:36: In file included from /usr/src/sys/modules/mlx4/../../ofed/include/linux/module.h:47: In file included from @/sys/linker.h:34: In file included from ./machine/elf.h:42: @/sys/elf_generic.h:58:1: error: unknown type name 'Elf' __ElfType(Addr); ^ @/sys/elf_generic.h:56:30: note: expanded from: #define __ElfType(x) typedef __ElfN(x) __CONCAT(Elf_,x) ^ @/sys/elf_generic.h:54:46: note: expanded from: #define __ElfN(x) __CONCAT(__CONCAT(__CONCAT(Elf,__ELF_WORD_SIZE),_),x) ^ @/sys/cdefs.h:148:23: note: expanded from: #define __CONCAT(x,y) x/**/y ^ @/sys/cdefs.h:148:23: note: expanded from: #define __CONCAT(x,y) x/**/y ^ @/sys/cdefs.h:148:23: note: expanded from: #define __CONCAT(x,y) x/**/y ^ In file included from /usr/src/sys/modules/mlx4/../../ofed/drivers/net/mlx4/cmd.c:36: In file included from /usr/src/sys/modules/mlx4/../../ofed/include/linux/pci.h:48: In file included from /usr/src/sys/modules/mlx4/../../ofed/include/linux/dmapool.h:35: In file included from /usr/src/sys/modules/mlx4/../../ofed/include/linux/device.h:36: In file included from /usr/src/sys/modules/mlx4/../../ofed/include/linux/module.h:47: In file included from @/sys/linker.h:34: In file included from ./machine/elf.h:42: @/sys/elf_generic.h:58:1: error: expected identifier or '(' __ElfType(Addr); ^ @/sys/elf_generic.h:56:30: note: expanded from: #define __ElfType(x) typedef __ElfN(x) __CONCAT(Elf_,x) ^ @/sys/elf_generic.h:54:50: note: expanded from: #define __ElfN(x) __CONCAT(__CONCAT(__CONCAT(Elf,__ELF_WORD_SIZE),_),x) ^ ./machine/elf.h:38:25: note: expanded from: #define __ELF_WORD_SIZE 64 /* Used by <sys/elf_generic.h> */ ^ @/sys/cdefs.h:148:28: note: expanded from: #define __CONCAT(x,y) x/**/y ^ @/sys/cdefs.h:148:23: note: expanded from: #define __CONCAT(x,y) x/**/y ^ @/sys/cdefs.h:148:23: note: expanded from: #define __CONCAT(x,y) x/**/y ^ In file included from /usr/src/sys/modules/mlx4/../../ofed/drivers/net/mlx4/cmd.c:36: In file included from /usr/src/sys/modules/mlx4/../../ofed/include/linux/pci.h:48: In file included from /usr/src/sys/modules/mlx4/../../ofed/include/linux/dmapool.h:35: In file included from /usr/src/sys/modules/mlx4/../../ofed/include/linux/device.h:36: In file included from /usr/src/sys/modules/mlx4/../../ofed/include/linux/module.h:47: In file included from @/sys/linker.h:34: In file included from ./machine/elf.h:42: @/sys/elf_generic.h:59:1: error: unknown type name 'Elf' __ElfType(Half); ^ @/sys/elf_generic.h:56:30: note: expanded from: #define __ElfType(x) typedef __ElfN(x) __CONCAT(Elf_,x) ^ @/sys/elf_generic.h:54:46: note: expanded from: #define __ElfN(x) __CONCAT(__CONCAT(__CONCAT(Elf,__ELF_WORD_SIZE),_),x) ^ @/sys/cdefs.h:148:23: note: expanded from: #define __CONCAT(x,y) x/**/y ^ @/sys/cdefs.h:148:23: note: expanded from: #define __CONCAT(x,y) x/**/y ^ @/sys/cdefs.h:148:23: note: expanded from: #define __CONCAT(x,y) x/**/y ^ In file included from /usr/src/sys/modules/mlx4/../../ofed/drivers/net/mlx4/cmd.c:36: In file included from /usr/src/sys/modules/mlx4/../../ofed/include/linux/pci.h:48: In file included from /usr/src/sys/modules/mlx4/../../ofed/include/linux/dmapool.h:35: In file included from /usr/src/sys/modules/mlx4/../../ofed/include/linux/device.h:36: In file included from /usr/src/sys/modules/mlx4/../../ofed/include/linux/module.h:47: In file included from @/sys/linker.h:34: In file included from ./machine/elf.h:42: @/sys/elf_generic.h:59:1: error: expected identifier or '(' __ElfType(Half); ... >How-To-Repeat: Build the kernel with WITH_OFED=YES using clang. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112252350.pBPNo0Ur025858>