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: 11

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

#2 2020-06-12 22:47:31

AsterO'dactyle
Administrator
Registered: 2007-11-29
Posts: 335

Re: Problem when compiling new material law: hid_t unknown

Hello,

Indeed, there is no relation between your modifications and the C.

1/ Open a NEW terminal
2/ Source environment . ../devtoole/etc/env_unstable.sh
2/ clean all: ./waf distclean
4/ configure: ./waf configure
5/ build and install: ./waf install


Code_Asterの開発者

Offline

#3 2020-06-26 09:34:14

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

Re: Problem when compiling new material law: hid_t unknown

Hi,
Thank you so much for your reply, I tried your suggest but the error is still there.

Offline

#4 2020-06-26 19:09:15

AsterO'dactyle
Administrator
Registered: 2007-11-29
Posts: 335

Re: Problem when compiling new material law: hid_t unknown

Hello,

If code_aster compiles without your files, that means there is something wrong in your files.
Maybe your behaviour is not public.

You can post:
- list of files used (names of your .h and .F90 files)
- list of #include used
- list of all variables
Do you use modules ? derivated types ? #define in you .h files ?
Any Python ?

But don't post the "core" (not the program)
Why do you change code_aster/Cata ?


Code_Asterの開発者

Offline

#5 2020-07-01 14:20:36

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

Re: Problem when compiling new material law: hid_t unknown

Hello again,

I'm using the files below to introduce the behavior law :
redece.F90, nmcomp.F90, nmpl3d.F90, lc0068.F90, lc0000.F90
lc0000.h, lc0068.h, nmcomp.h dfdm3d.h, r8inir.h, rcvalb.h
I also post here the #include files.
I'm sorry if this is not exactly what you're mentioning, because i'm a rookie in code_aster.

Thanks.


Attachments:
rcmsh_headers.tar.xz, Size: 2.64 KiB, Downloads: 16

Offline