[Mesa-dev] [Bug 107369] "volatile" in OpenCL code not recognized by POLARIS10 and KABINI

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 26 16:34:48 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=107369

--- Comment #5 from Aaron Watry <awatry at gmail.com> ---
I reverted llvm to the 6.0.0 version packaged in the padoka ppa (from my 7.0svn
build) and libclc to the package manager's version and managed to reproduce the
failure.

Failing versions:
  libclc: 0.2.0+git20180312-1
  llvm..: 1:6.0-41~exp5~ubuntu1
  mesa..: 18.2-dev (b21b38c46cd)

Since mesa hadn't changed and LLVM didn't seem to be the issue, I upgraded
libclc to the current upstream revision (still built using llvm 6.0.0), and it
started working.

Figuring that debian's version included the git checkout date, I checked out
the latest code as of both Mar 8 and Mar 12, but both of those worked as well.

So, I checked out the debian sources and re-built their .debs on my system,
those failed.

They've patched configure.py in libclc to add in some debian-specific build
flags. When I copied those changes to upstream libclc as of 20180312 it started
failing in the same way. Those same changes also break the current upstream
libclc source.

The specific lines that debian have patched libclc's configure.py with that
break things seem to be:

# add in debian build flags
proc_cflags = Popen(("dpkg-buildflags","--get","CFLAGS"), stdout=PIPE)
clang_bc_flags = " " + proc_cflags.communicate()[0].strip("\n")

Where the output of 'dpkg-buildflags --get CFLAGS' for me is:
-g -O2 -fdebug-prefix-map=/home/awatry/src/libclc=. -fstack-protector-strong
-Wformat -Werror=format-security

Something in there is breaking the bitcode compilation for libclc in debian.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180726/d64fa816/attachment.html>


More information about the mesa-dev mailing list