[Beignet] [PATCH 1/3] GBE: fix multiple files compilation bugs.

Zhigang Gong zhigang.gong at linux.intel.com
Fri Sep 12 01:28:21 PDT 2014


Clang abort to compile and generate the following error message.
"Global is external, but doesn't have external or weak linkage"

This is indeed a temporary workaround solution so I put a XXX there.
Just like those linked_once fixed-up solution, these are all temporary
solutions, right?

Things may change when we switch to the master branch after Junyan's
patchset. But for this 0.9.x branch,
We may just use these temporary solutions.

> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Song, Ruiling
> Sent: Friday, September 12, 2014 4:21 PM
> To: Zhigang Gong; Gong, Zhigang
> Cc: beignet at lists.freedesktop.org
> Subject: Re: [Beignet] [PATCH 1/3] GBE: fix multiple files compilation
bugs.
> 
> 
> What kind of non-fatal error? Disable verifier pass can be only a
temporary
> solution.
> 
> > +    // XXX remove the verifier pass to workaround a non-fatal error.
> >  #if LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >=5
> > -    FPM.add(createVerifierPass(true));
> > +    //FPM.add(createVerifierPass(true));
> >  #else
> > -    FPM.add(createVerifierPass());
> > +    //FPM.add(createVerifierPass());
> >  #endif
> >      FPM.add(new TargetLibraryInfo(*libraryInfo));
> >      FPM.add(createTypeBasedAliasAnalysisPass());
> > --
> > 1.8.3.2
> >
> > _______________________________________________
> > Beignet mailing list
> > Beignet at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/beignet
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet



More information about the Beignet mailing list