libxml2 not compilable on Cray, static/dynamic lib

2019-08-28 22:01发布

问题:

Since I cannot seem to use the available libxml2 (see my other question), I want to compile it myself from scratch. I need to use the Cray wrapped Intel compiler for this.

During the linking stage, I get many of these errors:

ld: attempted static link of dynamic object `./.libs/libxml2.so'

The configure line is this:

libxml2/configure
    --prefix=local-icc
    CC=/opt/cray/pe/craype/2.5.14/bin/cc
    CXX=/opt/cray/pe/craype/2.5.14/bin/CC
    --enable-option-checking
    --host=x86_64-linux-gnu
    --without-zlib
    --without-python
    --without-readline
    --without-threads
    --without-history
    --without-reader
    --without-writer
    --with-output
    --without-ftp
    --without-http
    --without-pattern
    --without-catalog
    --without-docbook
    --without-iconv
    --without-schemas
    --without-schematron
    --without-modules
    --without-xptr
    --without-xinclude
    'CFLAGS=-xAVX2 -O3 -fPIC -std=c99'
    'CXXFLAGS=-xAVX2 -O3 -fPIC'

The same libxml2 works fine on other high performance computing systems, and I can also compile them with the Intel compiler there. What could be the issue of this static/dynamic issue?