Date: Tue, 06 Jan 2015 22:04:45 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 196576] [patch] graphics/svgalib build broken with WITH_DEBUG=YES Message-ID: <bug-196576-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196576 Bug ID: 196576 Summary: [patch] graphics/svgalib build broken with WITH_DEBUG=YES Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: zeising@FreeBSD.org Reporter: mizhka@gmail.com Assignee: zeising@FreeBSD.org Flags: maintainer-feedback?(zeising@FreeBSD.org) Created attachment 151431 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=151431&action=edit svn patch Hi, In case of WITH_DEBUG=YES, graphics/svgalib build is broken using clang (at least under FreeBSD 10.1). The root cause is different behaviour of "inline" in GNU89 & C99: http://clang.llvm.org/compatibility.html#inline. As quick fix, the attached patch adds "static" for inline function outb. The issue is reproduced only if cc doesn't do optimization like removal of inline function. If you define WITH_DEBUG as yes, cc will use -O0 instead of -O2. Please find attached patch to fix this issue. Patch is verified by poudriere, log is attached. --- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> --- Auto-assigned to maintainer zeising@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196576-13>