Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: [hwloc-devel] pgi 11.1
From: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2011-03-01 08:00:04


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