Stack installation failed on log4cxx

I’m trying to update my stack to v15 on Ubuntu 16.04, but I’m getting an error on log4cxx.

 [ 32/80 ]  log4cxx 0.10.0.lsst7 ... 

***** error: from /home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/EupsBuildDir/Linux64/log4cxx-0.10.0.lsst7/build.log:
make[3]: *** [delayedloop] Error 1
c++ -g -O2 -o .libs/console console.o  -L/home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/Linux64/apr/1.5.2/lib /home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/Linux64/apr/1.5.2/lib/libapr-1.so -lrt -lcrypt -lpthread -ldl -L/home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/Linux64/apr_util/1.5.4/lib /home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/Linux64/apr_util/1.5.4/lib/libaprutil-1.so /home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/Linux64/apr_util/1.5.4/lib/libexpat.so ../../../src/main/cpp/.libs/liblog4cxx.so -Wl,--rpath -Wl,/home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/Linux64/apr/1.5.2/lib -Wl,--rpath -Wl,/home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/Linux64/apr_util/1.5.4/lib -Wl,--rpath -Wl,/home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/Linux64/log4cxx/0.10.0.lsst7/lib
/home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/Linux64/apr_util/1.5.4/lib/libaprutil-1.so: undefined reference to `XML_StopParser'
collect2: error: ld returned 1 exit status
Makefile:274: recipe for target 'stream' failed
make[3]: *** [stream] Error 1
/home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/Linux64/apr_util/1.5.4/lib/libaprutil-1.so: undefined reference to `XML_StopParser'
collect2: error: ld returned 1 exit status
Makefile:268: recipe for target 'console' failed
make[3]: *** [console] Error 1
make[3]: Leaving directory '/home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/EupsBuildDir/Linux64/log4cxx-0.10.0.lsst7/log4cxx-0.10.0.lsst7/src/examples/cpp'
Makefile:263: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/EupsBuildDir/Linux64/log4cxx-0.10.0.lsst7/log4cxx-0.10.0.lsst7/src/examples'
Makefile:263: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/EupsBuildDir/Linux64/log4cxx-0.10.0.lsst7/log4cxx-0.10.0.lsst7/src'
Makefile:315: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
+ exit -4
eups distrib: Failed to build log4cxx-0.10.0.lsst7.eupspkg: Command:
	source "/home/mdon849/LSST/lsst-stack-v15/eups/2.1.4/bin/setups.sh"; export EUPS_PATH="/home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6"; (/home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/EupsBuildDir/Linux64/log4cxx-0.10.0.lsst7/build.sh) >> /home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/EupsBuildDir/Linux64/log4cxx-0.10.0.lsst7/build.log 2>&1 4>/home/mdon849/LSST/lsst-stack-v15/stack/miniconda3-4.3.21-10a4fa6/EupsBuildDir/Linux64/log4cxx-0.10.0.lsst7/build.msg 
exited with code 252

It seems XML_StopParser is in libexpat, and from this similar problem it looks like it may be a compatibility issue.

I already have v13 and v14 installed on my machine (where log4cxx installed correctly), but was having a separate series of errors trying to update. Consequently, I’m now trying to do a clean source install of v15 in a new directory, so I’m wondering if there’s some conflict here due to this.

Any suggestions would be appreciated.

So we only officially support RedHat/CentOS and Mac OS. We did do an Ubuntu clean install during release testing for the LOLs but we used Ubuntu 16.04 - any chance you can try that?

Yes, as Frossie said, I tested the installation instructions on a clean Ubuntu 16.04 virtual machine. Note that the preconditions respect to previous releases have changed a bit.

I have rebuild the log4cxx without problem. The libexpat (libexpat1, libexpat1-dev) version installed is

2.1.0-7ubuntu0.16.04.3

Yes, I’m also running Ubuntu 16.04 on my machine and have libexpat1, libexpat1-dev installed – so I’m not sure what the issue is…