[Bug 239266] lang/gcc8 fails to build with clang8: tree-vect-loop.c:4979:12: error: expected unqualified-id

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Aug 13 19:57:02 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239266

--- Comment #20 from Mark Millard <marklmi26-fbsd at yahoo.com> ---
(In reply to Gerald Pfeifer from comment #19)

I did not realize that you wanted someone to test
building with your simpler, more uniform way of
doing the rename.

Seems fine. Details of test follow (since a clang
based system is unusual) . . .

A non-bootrap build is faster and historically showed
the error, so that I what I used for this test. I can
re-run with a full bootstrap if desired.

# more /usr/local/etc/poudriere.d/options/lang_gcc8/options
# This file is auto-generated by 'make config'.
# Options for gcc8-8.2.0_2
_OPTIONS_READ=gcc8-8.2.0_2
_FILE_COMPLETE_OPTIONS_LIST=BOOTSTRAP GRAPHITE
OPTIONS_FILE_UNSET+=BOOTSTRAP
OPTIONS_FILE_UNSET+=GRAPHITE

For the following on an old PowerMc G5 2-socket with 2 cores each:

# uname -apKU
FreeBSD FBSDG5L2 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r347549M: Wed May 22
15:14:43 PDT 2019    
markmi at FBSDG5L:/usr/obj/powerpc64vtsc_clang_altbinutils/powerpc.powerpc64/usr/src/powerpc.powerpc64/sys/GENERIC64vtsc-NODBG
 powerpc powerpc64 1300025 1300025

(The above pre-dates the secure-plt changes that block
cross builds for buildworld buildkernel from amd64.)

# cc -v
FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on LLVM
8.0.0)
Target: powerpc64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin

# c++ -v
FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on LLVM
8.0.0)
Target: powerpc64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin

# mv /usr/ports/lang/gcc8/files/patch-gcc_tree-vect-loop.c ~/

(That removed my original patch.)

# patch < patch-clang-vec_step 
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: lang/gcc8/files/patch-clang-vec_step
|===================================================================
|--- lang/gcc8/files/patch-clang-vec_step       (nonexistent)
|+++ lang/gcc8/files/patch-clang-vec_step       (working copy)
--------------------------
(Creating file lang/gcc8/files/patch-clang-vec_step...)
Patching file lang/gcc8/files/patch-clang-vec_step using Plan A...
Empty context always matches.
Hunk #1 succeeded at 1.
done

# poudriere bulk -jFBSDpowerpc64 -C -w lang/gcc8
. . .
[00:00:49] [01] [00:00:00] Building lang/gcc8 | gcc8-8.3.0_2
[00:40:12] [01] [00:39:23] Finished lang/gcc8 | gcc8-8.3.0_2: Success

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ppc mailing list