Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jul 2012 17:12:00 +0400 (MSK)
From:      Eygene Ryabinkin <rea@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/170259: [patch][clang] devel/dev86: fix build with clang
Message-ID:  <20120729131200.CC752DA82D@void.codelabs.ru>
Resent-Message-ID: <201207291350.q6TDo2iH096304@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         170259
>Category:       ports
>Synopsis:       [patch][clang] devel/dev86: fix build with clang
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 29 13:50:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Eygene Ryabinkin
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
Code Labs
>Environment:

System: FreeBSD 10.0-CURRENT amd64

>Description:

devel/dev86 fails to build due with clang to the problematic
return type of do_control() inside tok_io.c.

>How-To-Repeat:

Add the following lines to the /etc/make.conf to enable clang,
{{{
.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif
}}}
and build devel/dev86.

>Fix:

http://codelabs.ru/fbsd/ports/dev86/0.16.18-fix-clang-build.diff

It works for me and passes builds with GCC and clang.  QA page:
  http://codelabs.ru/fbsd/ports/qa/devel/dev86/0.16.18
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120729131200.CC752DA82D>