Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2017-08-12 19:44:25

winksaville
Member
Registered: 2017-08-04
Posts: 8

Build error on tip of tree e17e1fdca7b

I'm trying to build on Arch Linux and I'm getting a couple "No such file or directory" errors on includes:

[7335/8007] Compiling bibc/supervis/dll_mfront.c
../../bibc/renum/onmetl.c:23:10: fatal error: programs/metisbin.h: No such file or directory
 #include "programs/metisbin.h"
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

../../bibc/supervis/dll_mfront.c:31:10: fatal error: MFrontBehaviour.h: No such file or directory
 #include "MFrontBehaviour.h"
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.

Waf: Leaving directory `/home/wink/aur/aster-hg/src/aster/build/release'
Build failed
 -> task in 'asterexec' failed (exit status 1): 
	{task 140592172550224: c onmetl.c -> onmetl.c.1.o}
['/usr/bin/gcc', '-march=x86-64', '-mtune=generic', '-O2', '-pipe', '-fstack-protector-strong', '-fno-plt', '-fPIC', '-fno-strict-aliasing', '-march=x86-64', '-mtune=generic', '-fstack-protector-strong', '-march=x86-64', '-mtune=generic', '-fstack-protector-strong', '-D_FORTIFY_SOURCE=2', '-I/opt/petsc/linux-c-opt/include', '-I/usr/include', '-I/home/wink/aur/aster-hg/src/aster/bibc/include', '-I/home/wink/aur/aster-hg/src/aster/bibcxx/include', '-I/home/wink/aur/aster-hg/src/aster/bibfor/include', '-I/home/wink/aur/aster-hg/src/aster/bibcxx', '-I/home/wink/aur/aster-hg/src/aster/build/release/bibc/include', '-I/home/wink/aur/aster-hg/src/aster/bibc/include', '-I/home/wink/aur/aster-hg/src/aster/build/release', '-I/lib/python2.7/site-packages/numpy/core/include', '-I/usr/include/scotch', '-I/home/wink/aur/tfel/src/tfel-2.0.3/include', '-I/usr/include/python2.7', '-D_MAIN_=main', '-DNPY_NO_PREFIX', '-DHAVE_MFRONT=1', '-DTFEL_ARCH64', '-DNO_RUNTIME_CHECK_BOUNDS', '-DNDEBUG', '-DASTER_ARCH=64', '-DHAVE_PYEMBED=1', '-DNDEBUG', '../../bibc/renum/onmetl.c', '-c', '-o', '/home/wink/aur/aster-hg/src/aster/build/release/bibc/renum/onmetl.c.1.o']
 -> task in 'asterexec' failed (exit status 1): 
	{task 140592172551376: c dll_mfront.c -> dll_mfront.c.1.o}
['/usr/bin/gcc', '-march=x86-64', '-mtune=generic', '-O2', '-pipe', '-fstack-protector-strong', '-fno-plt', '-fPIC', '-fno-strict-aliasing', '-march=x86-64', '-mtune=generic', '-fstack-protector-strong', '-march=x86-64', '-mtune=generic', '-fstack-protector-strong', '-D_FORTIFY_SOURCE=2', '-I/opt/petsc/linux-c-opt/include', '-I/usr/include', '-I/home/wink/aur/aster-hg/src/aster/bibc/include', '-I/home/wink/aur/aster-hg/src/aster/bibcxx/include', '-I/home/wink/aur/aster-hg/src/aster/bibfor/include', '-I/home/wink/aur/aster-hg/src/aster/bibcxx', '-I/home/wink/aur/aster-hg/src/aster/build/release/bibc/include', '-I/home/wink/aur/aster-hg/src/aster/bibc/include', '-I/home/wink/aur/aster-hg/src/aster/build/release', '-I/lib/python2.7/site-packages/numpy/core/include', '-I/usr/include/scotch', '-I/home/wink/aur/tfel/src/tfel-2.0.3/include', '-I/usr/include/python2.7', '-D_MAIN_=main', '-DNPY_NO_PREFIX', '-DHAVE_MFRONT=1', '-DTFEL_ARCH64', '-DNO_RUNTIME_CHECK_BOUNDS', '-DNDEBUG', '-DASTER_ARCH=64', '-DHAVE_PYEMBED=1', '-DNDEBUG', '../../bibc/supervis/dll_mfront.c', '-c', '-o', '/home/wink/aur/aster-hg/src/aster/build/release/bibc/supervis/dll_mfront.c.1.o']
==> ERROR: A failure occurred in build().
    Aborting...

Where is metisbin.h?

Also, there is a "MFrontBehaviour.h" but dll_mfront.c is a C file so I'd expect to see bibc/mfront/MFrontBehaviour.h not the one in bibcxx?:

$ find -type f -iname 'mfrontbeh*'
./bibcxx/mfront/MFrontBehaviour.h
./bibcxx/mfront/MFrontBehaviour.cxx

Offline

#2 2017-08-13 05:53:55

winksaville
Member
Registered: 2017-08-04
Posts: 8

Re: Build error on tip of tree e17e1fdca7b

I've answered my own questions:

Where is metisbin.h?
Answer: Added metis-5.1.0-p3  as well as metis-5.1.0-p3/GKLib to my INCLUDES environment variable.
One strange thing was I got a weird error:

[7333/8007] Compiling bibc/supervis/dll_umat.c
In file included from /usr/include/string.h:634:0,
                 from /usr/include/python2.7/Python.h:38,
                 from /home/wink/aur/aster-hg/src/aster/bibc/include/aster.h:22,
                 from ../../bibc/renum/onmetl.c:19:
/home/wink/foss/metis/src/metis-5.1.0-p3/programs/metisbin.h:43:14: error: expected identifier or ‘(’ before ‘__extension__’
 extern char* strdup (const char *);
              ^

Which I resolved by commenting out the the code at line 43:

extern char* strdup (cons char*);

The other question was; there is a "MFrontBehaviour.h" but dll_mfront.c is a C file so I'd expect to see bibc/mfront/MFrontBehaviour.h not the one in bibcxx?:
Answer: I used

bibcxx/mfront/MFrontBehaviour.h

which I discovered after posting can be included in C compilations.

It then compiled but now doesn't link:

[7993/8007] Linking build/release/bibc/asterNEW12
bibc/supervis/dll_mfront.c.1.o: In function `mfront_get_mater_prop_':
dll_mfront.c:(.text+0x223): undefined reference to `getTridimMaterialPropertiesNames'
bibfor/echange/as_mfdfin.F90.1.o: In function `as_mfdfin_':
as_mfdfin.F90:(.text+0x62): undefined reference to `mfioex_'
bibfor/echange/as_mfdonp.F90.1.o: In function `as_mfdonp_':
as_mfdonp.F90:(.text+0x167): undefined reference to `mfioex_'
collect2: error: ld returned 1 exit status

So I did more searching and discovered aster-full-src downloads, which I'm now trying.

Offline

Board footer