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

You are not logged in.

#1 2020-05-12 18:56:07

Duc Vu
Member
Registered: 2020-04-03
Posts: 6

Problem when compiling new material law: hid_t unknown

Hello,

I've got some trouble when compiling the code_aster 14.4 from source.
I've already built the CA 14.4 from source on my ubuntu 18.04 and it has worked fine.
Today, I added a new behaviour law to the folder '/src/bibpyt/Comportement' and 'code_aster/Cata' with some others necessary files (*F90) but I did not touched the folder '/src/bibc'. After that, when I hit :

./waf configure
./waf install

I got this

checking environment... no found
executing: ./waf.engine install --out=build/std --jobs=4
Waf: Entering directory `/opt/aster/dev/codeaster/src/build/std/release'
[7491/8222] Compiling bibc/hdf/hdftsd.c
[7493/8222] Compiling bibc/hdf/hdfopg.c
[7494/8222] Compiling bibc/hdf/hdfclg.c
[7496/8222] Compiling bibc/hdf/hdfcrg.c
In file included from ../../../bibc/include/aster.h:27:0,
                 from ../../../bibc/hdf/hdfclg.c:19:
../../../bibc/hdf/hdfclg.c:32:35: error: unknown type name ‘hid_t’; did you mean ‘id_t’?
 ASTERINTEGER DEFP(HDFCLG, hdfclg, hid_t *idg)
                                   ^
../../../bibc/include/definition.h:272:52: note: in definition of macro ‘DEFP’
 #define DEFP(UN,LN,a)               STDCALL(UN,LN)(a)
                                                    ^

In file included from ../../../bibc/include/aster.h:27:0,
                 from ../../../bibc/hdf/hdftsd.c:19:
../../../bibc/hdf/hdftsd.c:37:38: error: unknown type name ‘hid_t’; did you mean ‘id_t’?
 ASTERINTEGER DEFPSPP(HDFTSD, hdftsd, hid_t *iddat, char *type, STRING_SIZE lt,
                                      ^
../../../bibc/include/definition.h:94:64: note: in definition of macro ‘DEFPSPP’
 #define DEFPSPP(UN,LN,a,b,lb,c,d)               STDCALL(UN,LN)(a,b,c,d,lb)
                                                                ^

../../../bibc/hdf/hdfopg.c:33:1: error: unknown type name ‘hid_t’; did you mean ‘id_t’?
 hid_t DEFPS(HDFOPG, hdfopg, hid_t *idf, char *nomgr, STRING_SIZE ln)
 ^~~~~
 id_t
In file included from ../../../bibc/include/aster.h:27:0,
                 from ../../../bibc/hdf/hdfopg.c:19:
../../../bibc/hdf/hdfopg.c:33:29: error: unknown type name ‘hid_t’; did you mean ‘id_t’?
 hid_t DEFPS(HDFOPG, hdfopg, hid_t *idf, char *nomgr, STRING_SIZE ln)
                             ^
../../../bibc/include/definition.h:76:58: note: in definition of macro ‘DEFPS’
 #define DEFPS(UN,LN,a,b,lb)               STDCALL(UN,LN)(a,b,lb)
                                                          ^

../../../bibc/hdf/hdfcrg.c:34:1: error: unknown type name ‘hid_t’; did you mean ‘id_t’?
 hid_t DEFPSS(HDFCRG, hdfcrg, hid_t *idf, char *nomgp, STRING_SIZE lp,
 ^~~~~
 id_t
In file included from ../../../bibc/include/aster.h:27:0,
                 from ../../../bibc/hdf/hdfcrg.c:19:
../../../bibc/hdf/hdfcrg.c:34:30: error: unknown type name ‘hid_t’; did you mean ‘id_t’?
 hid_t DEFPSS(HDFCRG, hdfcrg, hid_t *idf, char *nomgp, STRING_SIZE lp,
                              ^
../../../bibc/include/definition.h:82:64: note: in definition of macro ‘DEFPSS’
 #define DEFPSS(UN,LN,a,b,lb,c,lc)               STDCALL(UN,LN)(a,b,c,lb,lc)
                                                                ^

Waf: Leaving directory `/opt/aster/dev/codeaster/src/build/std/release'
Build failed
 -> task in 'asterexec' failed with exit status 1 (run with -v to display more information)
 -> task in 'asterexec' failed with exit status 1 (run with -v to display more information)
 -> task in 'asterexec' failed with exit status 1 (run with -v to display more information)
 -> task in 'asterexec' failed with exit status 1 (run with -v to display more information)

Can anyone please explain to me why I got this problem and how to solve it? Many thanks.

Offline