<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - compile error eglGetSyncValuesCHROMIUM undeclared"
href="https://bugs.freedesktop.org/show_bug.cgi?id=80034#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - compile error eglGetSyncValuesCHROMIUM undeclared"
href="https://bugs.freedesktop.org/show_bug.cgi?id=80034">bug 80034</a>
from <span class="vcard"><a class="email" href="mailto:emil.l.velikov@gmail.com" title="Emil Velikov <emil.l.velikov@gmail.com>"> <span class="fn">Emil Velikov</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=80034#c2">comment #2</a>)
...
<span class="quote">> I don't believe the CFLAGS have changed since I last successfully built mesa
> with them.
>
> export CFLAGS="-m${LIBDIRSUFFIX} -O3 -march=native -pipe"
> export CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
> export CPPFLAGS="${CXXLAGS} -I${XBUILD}/include
> -L${XBUILD}/lib${LIBDIRSUFFIX}:${XBUILD}/lib:/usr/lib${LIBDIRSUFFIX}"
>
> I disabled the CFLAGS/CXXFLAGS/CPPFLAGS variables and mesa built
> successfully.
> </span >
I would recommend setting PKG_CONFIG_PATH/PKG_CONFIG_LIBDIR which should make
the above CPPFLAGS obsolete. Your choice of CPPFLAGS is very hacky imho.
Also as Tapani mentioned CPPFLAGS="${CXXLAGS}... may not be the best of ideas.
<span class="quote">> >Missing ${XBUILD} ? Might be worth dropping this one as well.
>
> Not missing--it is a variable pointing to the installation directory.
> </span >
AFAIK as one provides a new sysconfdir, the value is independent of
PREFIX/EPREFIX. Thus setting it to /etc while the latter two are ${XBUILD} is
not something I've seen and/or encourage.
<span class="quote">> >These seem like libdrm configure flags. Not sure what are they doing here.
> >What are these doing here ?
>
> The above statements suggest you never used
> <a href="http://cgit.freedesktop.org/xorg/util/modular/plain/build.sh">http://cgit.freedesktop.org/xorg/util/modular/plain/build.sh</a> to build all of
> X. I assume you are compiling mesa by hand or are on another platform.
> </span >
Guilty, I've never used the script as mesa's build has changed substantially
since it originated. I use a simple 10-liner script that sets the options that
I need from mesa.
...
<span class="quote">> It might take me a while to figure out where in git the change effects the
> build.</span >
Please set PKG_CONFIG_... as suggested above and drop the CPPFLAGS altogether.
Mesa's build has always been less than stellar, and allowed people to exploit
it to the limits. Recent changes have made things a bit saner.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>