[cfarm-users] bootstrapping gcc 13.2.0 on power9/10

Jeffrey Walton noloader at gmail.com
Sat Mar 16 02:13:26 CET 2024


On Fri, Mar 15, 2024 at 8:42 PM Sean McGovern via cfarm-users
<cfarm-users at lists.tetaneutral.net> wrote:
> On Fri, Mar 15, 2024 at 6:40 PM Peter Bergner <bergner at linux.ibm.com> wrote:
> > On 3/14/24 4:15 AM, Sean McGovern via cfarm-users wrote:
> > > I have not been sucessful doing a simple bootstrap of gcc 13.2.0 on
> > > cfarm29 or cfarm120. It worked fine on cfarm110.
> > >
> > > Are there any special tricks since they are little-endian?
> > >
> > > $ ~/Projects/gcc-13.2.0/configure --prefix=$HOME/tools
> > > --libdir=$HOME/tools/lib64 --enable-languages='c,c++,lto'
> > >
> > > with this configure line and running make I get a bunch of errors when
> > > compiling tree-vec-loop.cc, similar to the following:
> > >
> > > gcc-13.2.0/gcc/tree-vect-loop.cc:5564:12: error: expected unqualified-id
> > [...]
>
> Well, this is embarrassing! It was far simpler than that:
>
> I had CC and CXX environment variables pointing to clang/clang++ in my .bashrc.
> They have been removed.

If Clang is (still?) defining __GNUC__, then it sounds like a Clang
bug. If Clang is going to pretend to be GCC, then it needs to compile
the source files GCC can.

Jeff


More information about the cfarm-users mailing list