Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Jan 2018 17:04:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        office@FreeBSD.org
Subject:   [Bug 225006] graphics/libgltf: fails to build with clang 6.0 (blocks 113 ports)
Message-ID:  <bug-225006-25061@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225006

            Bug ID: 225006
           Summary: graphics/libgltf: fails to build with clang 6.0
                    (blocks 113 ports)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: office@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
            Blocks: 224669
          Assignee: office@FreeBSD.org
             Flags: maintainer-feedback?(office@FreeBSD.org)

Created attachment 189528
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D189528&action=
=3Dedit
ugly fix

FreeBSD -CURRENT plans to update base Clang to 6.0.0 soon. While testing th=
is
port failed to build.

Shaders.cpp:178:13: error: non-constant-expression cannot be narrowed from =
type
'size_t' (aka 'unsigned int') to 'GLint' (aka 'int') in initializer list
[-Wc++11-narrowing]
            strlen("#version 130\n"),
            ^~~~~~~~~~~~~~~~~~~~~~~~
Shaders.cpp:178:13: note: insert an explicit cast to silence this issue
            strlen("#version 130\n"),
            ^~~~~~~~~~~~~~~~~~~~~~~~
            static_cast<GLint>(     )

To reproduce:
$ poudriere jail -cj clang6-amd64 -a amd64 -v projects/clang600-import -m
svn+https
$ poudriere bulk -Ctj clang6-amd64 graphics/libgltf

http://package18.nyi.freebsd.org/data/headamd64PR224669-default/2018-01-02_=
08h32m49s/logs/errors/libgltf-0.0.2_10.log
http://package18.nyi.freebsd.org/data/headi386PR224669-default/2018-01-07_2=
2h53m03s/logs/errors/libgltf-0.0.2_10.log


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224669
[Bug 224669] [exp-run] Against projects/clang600-import branch
--=20
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-225006-25061>