Xyce serial error on centos 7 - configure: error: FATAL: AMD requested but AMD library not found or does not contain amd_valid

324 views
Skip to first unread message

Mostafa Said

unread,
Oct 28, 2021, 10:03:25 AM10/28/21
to xyce-users
Hello 
I am trying to install Xyce both Serial and Parallel on centos 7 server 64bits
when I run the configure script (see below) I got the following errors

configure:22816: error: FATAL: AMD  requested but AMD library not found or does not contain amd_valid
conftest.c:29:28: fatal error: ac_nonexistent.h: No such file or directory
conftest.cpp:61:21: fatal error: mathimf.h: No such file or directory
/tmp/ccDZMR8j.o: In function `main':
/home/mos1/Xyce-7.3/mybuild_Serial/conftest.c:52: undefined reference to `sqrt'
collect2: error: ld returned 1 exit status


I have my suitesparse amd.h in /home/mos1/SuiteSparse-5.10.1/include

I am attaching Xyce serial config.log and configure file and also attaching CMakeCache.txt and configure file for Trilions

Thanks in advance for your help

--
-- -- -- -- -- -- 
Best Regards;
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
Mostafa Abdelrehim, PhD
Assistant Professor, California State University at Bakersfield 
Department of Computer and Electrical Engineering

------------------------------------------------------------------------------------------------------------------------------------------
Dark Ages 1001 Inventions!

 The Meaning Of Life in Islam - worth watching
CMakeCache.txt
reconfigure_Serial_Xyce
config.log
reconfigure_Serial_Trilions

xyce-users

unread,
Oct 28, 2021, 10:07:26 AM10/28/21
to xyce-users

Your SuiteSparse is installed in /home/mos1/SuiteSparse-5.10.1, but you've only told Xyce's configure about where the headers are.  You need also to say where the libraries are:

/home/mos1/Xyce-7.3/configure \
CXXFLAGS="-O3" \
ARCHDIR="$HOME/XyceLibs/Serial" \
CPPFLAGS="-I/home/mos1/SuiteSparse-5.10.1/include" \
LDFLAGS="-L/home/mos1/SuiteSparse-5.10.1/lib" \
--enable-stokhos \
--enable-amesos2 \
--prefix=$HOME/XyceInstall/Serial


Mostafa Said

unread,
Oct 28, 2021, 10:24:10 AM10/28/21
to xyce-users
Thanks a lot, that solves the problem
although now I got another issue configure:22859: error: Unable to find required library, teuchoscore.
although I checked XyceLibs/Serial/lib and i found libteuchoscore.a there 

I am attaching the new config.log and configure files for Xyce

Thanks in advance

--
You received this message because you are subscribed to the Google Groups "xyce-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xyce-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xyce-users/4b7a796a-c55f-4840-a297-5cb9dcb4282an%40googlegroups.com.
reconfigure_Serial
config.log

xyce-users

unread,
Oct 28, 2021, 10:32:15 AM10/28/21
to xyce-users
Are you running this script as root (i.e. through sudo or logged in as root)?  Your config.log shows this:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Xyce configure R::7.3, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ /home/mos1/Xyce-7.3/configure CXXFLAGS=-O3 ARCHDIR=/root/XyceLibs/Serial
+CPPFLAGS=-I/home/mos1/SuiteSparse-5.10.1/include
+LDFLAGS=-L/home/mos1/SuiteSparse-5.10.1/lib --enable-stokhos --enable-amesos2
+--prefix=/root/XyceInstall/Serial

So "$HOME" is being interpreted as "/root" instead of your real home directory.  It's getting "ARCHDIR" as /root/XyceLibs/Serial, which presumably doesn't exist, and therefore it can't find Trilinos libraries.

Run the configure script under your own user ID and this problem should go away.

Mostafa Said

unread,
Oct 28, 2021, 10:51:26 AM10/28/21
to xyce-users
yeah that is right and that solves the problem
thanks a lot, 

Reply all
Reply to author
Forward
0 new messages