[ewg] duplicate member error when building infinipath-psm-3.1-364.1140

Elken, Tom tom.elken at intel.com
Mon Apr 29 15:21:12 PDT 2013


> When compiling infinipath-psm with gcc versions >=4.6 it fails to build
> with the following error, "ptl_ips/ips_proto_header.h:81:12: error:
> duplicate member ‘dst_subcontext’".
[Tom] 
Thanks for pointing this out.  
A PSM developer tells me that you can remove that line 81 from source, and re-compile.

Can you file a Bug on this at the Open Fabrics Bugzilla?
Product: Open Fabrics Linux
Component:  QIB driver   ( I see that there is no PSM component;  I'll try to get that fixed)

 > The fact that this worked before
> appears to be have been a bug in gcc [0], which is now fixed. I believe
> that the proper fix is removing the dst_subcontext definition from one of
> the structs, but am not sure which one.
> 
> I could not find the infinipath-psm repository on git.openfabrics.org.
> Where can I find it?
[Tom] 
git://github.com/01org/psm

> 
> Also, in order to (try to) build infinipath-psm, I had to remove -Werror
> from BASECFLAGS in buildflags.mak. I subscribe to the philosophy that
> -Werror is a development tool and should not be used by default in the
> distributed sources [1].
[Tom] 
We don't subscribe to that philosophy. :) 
The fact that the code should compile warning free is part of our assurance of quality.  If a user is encountering a warning we didn't, we don't want that to be a silent event.  If the user wants to press on and ignore an error, they can remove the -Werror flag.

Cheers,
Tom


> 
> Best,
> Jack
> 
> [0] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47376
> [1]
> http://blog.flameeyes.eu/2009/02/future-proof-your-code-dont-use-werror



More information about the ewg mailing list