Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] pgi 11.1
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2011-03-01 09:13:50


Do you have a support contract with PGI, perchance?

I have brought things similar to this to them before and they fixed it.

On Mar 1, 2011, at 8:00 AM, Brice Goglin wrote:

> I just tried a PGI compiler 11.1 and couldn't compile hwloc trunk, v1.1
> or even v1.0. All of them fail in the libxml headers. It looks like it
> doesn't like prototypes with a variable number of arguments:
>
> libtool: compile: /opt/cluster/compiler/pgi/linux86-64/latest/bin/pgcc -DHAVE_CONFIG_H -I. -I../../v1.0/src -I../include/private -I../include/hwloc -I/home/goglin/hwloc/v1.0/include -I/home/goglin/hwloc/build1.0/include -I/home/goglin/hwloc/v1.0/include -I/home/goglin/hwloc/build1.0/include -I/usr/include/libxml2 -I/home/goglin/hwloc/v1.0/include -c ../../v1.0/src/topology-xml.c -fpic -DPIC -o .libs/topology-xml.o
> PGC-S-0036-Syntax error: Recovery attempted by inserting '[' before '(' (/usr/include/libxml2/libxml/xmlerror.h: 846)
> PGC-S-0036-Syntax error: Recovery attempted by inserting ']' before ';' (/usr/include/libxml2/libxml/xmlerror.h: 846)
> PGC-S-0091-Integer constant expression required (/usr/include/libxml2/libxml/xmlerror.h: 846)
> PGC-S-0082-Function returning array not allowed (/usr/include/libxml2/libxml/xmlerror.h: 846)
> PGC-S-0036-Syntax error: Recovery attempted by inserting '=' before '(' (/usr/include/libxml2/libxml/xmlerror.h: 877)
> PGC-S-0074-Non-constant expression in initializer (/usr/include/libxml2/libxml/xmlerror.h: 877)
> PGC-S-0076-Initializer not allowed for function (/usr/include/libxml2/libxml/xmlerror.h: 877)
> PGC-S-0036-Syntax error: Recovery attempted by inserting '=' before '(' (/usr/include/libxml2/libxml/xmlerror.h: 881)
> PGC-S-0074-Non-constant expression in initializer (/usr/include/libxml2/libxml/xmlerror.h: 881)
> PGC-S-0076-Initializer not allowed for function (/usr/include/libxml2/libxml/xmlerror.h: 881)
> PGC-S-0036-Syntax error: Recovery attempted by inserting '=' before '(' (/usr/include/libxml2/libxml/xmlerror.h: 885)
> PGC-S-0074-Non-constant expression in initializer (/usr/include/libxml2/libxml/xmlerror.h: 885)
> PGC-S-0076-Initializer not allowed for function (/usr/include/libxml2/libxml/xmlerror.h: 885)
> PGC-S-0036-Syntax error: Recovery attempted by inserting '=' before '(' (/usr/include/libxml2/libxml/xmlerror.h: 889)
> PGC-S-0074-Non-constant expression in initializer (/usr/include/libxml2/libxml/xmlerror.h: 889)
> PGC-S-0076-Initializer not allowed for function (/usr/include/libxml2/libxml/xmlerror.h: 889)
> PGC-S-0036-Syntax error: Recovery attempted by inserting '[' before '(' (/usr/include/libxml2/libxml/valid.h: 44)
> PGC-S-0036-Syntax error: Recovery attempted by inserting ']' before ';' (/usr/include/libxml2/libxml/valid.h: 44)
> PGC-S-0091-Integer constant expression required (/usr/include/libxml2/libxml/valid.h: 44)
> PGC-S-0082-Function returning array not allowed (/usr/include/libxml2/libxml/valid.h: 44)
> PGC-S-0036-Syntax error: Recovery attempted by inserting '[' before '(' (/usr/include/libxml2/libxml/valid.h: 59)
> PGC-S-0036-Syntax error: Recovery attempted by inserting ']' before ';' (/usr/include/libxml2/libxml/valid.h: 59)
> PGC-S-0091-Integer constant expression required (/usr/include/libxml2/libxml/valid.h: 59)
> PGC-S-0082-Function returning array not allowed (/usr/include/libxml2/libxml/valid.h: 59)
> PGC-S-0036-Syntax error: Recovery attempted by inserting '[' before '(' (/usr/include/libxml2/libxml/parser.h: 597)
> PGC-F-0008-Error limit exceeded (/usr/include/libxml2/libxml/parser.h)
> PGC/x86-64 Linux 11.1-0: compilation aborted
> make[1]: *** [topology-xml.lo] Error 1
> make[1]: Leaving directory `/home/goglin/hwloc/build1.0/src'
> make: *** [all-recursive] Error 1
>
>
> If I disable XML, it fails during link:
>
> libtool: link: /opt/cluster/compiler/pgi/linux86-64/latest/bin/pgcc -shared -fpic -DPIC .libs/topology.o .libs/traversal.o .libs/topology-synthetic.o .libs/bind.o .libs/cpuset.o .libs/misc.o .libs/topology-linux.o .libs/topology-x86.o -lc -Wl,-soname -Wl,libhwloc.so.0 -o .libs/libhwloc.so.0.2.0
> /usr/bin/ld: /opt/cluster/compiler/pgi/shared/11.1/lib64/libpgbind.a(bindsa.o): relocation R_X86_64_PC32 against undefined symbol `syscall@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
> make[1]: *** [libhwloc.la] Error 2
>
>
> I tried with CFLAGS=-fPIC but it didn't help (we already have -fpic
> -DPIC on the compile line).
>
> I think earlier problems with PGI were caused by versions <= 10.
>
> Anybody else tried PGI 11? Any idea what's going on above?
>
> Brice
>
> _______________________________________________
> hwloc-devel mailing list
> hwloc-devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-devel

-- 
Jeff Squyres
jsquyres_at_[hidden]
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/