[MANJARO]Building trouble : linkage problem on syrthesppfunc

This forum is dedicated to Syrthes related issues, as the Syrthes tool does not have its own forum.
Post Reply
Josuez
Posts: 16
Joined: Thu Jun 27, 2019 6:15 am

[MANJARO]Building trouble : linkage problem on syrthesppfunc

Post by Josuez »

Hello Yvan and everyone

Hope you are doing good through these troubled times.
I went out of my comfort zone and looked for trouble as I tried to re-setup my working environment on a new system, so far one problem I don't know how to tackle has occurred.

A little bit of background : I am on the last version of Manjaro so Arch based, and using anaconda to manage python environments.
I am trying to build Syrthes4.3.5 after having successfully built Salome_mecaV2019.0.3 and Code_Saturne9.3.0, using salome_meca libraries for HDF5 CGNS MED and a python3.6.12 environment.
I attempt to build Syrthes4.3.5 using the automatic python installer.

As you understood from the title my problem occurs during the make call on syrthesppfunc
Konsole wrote: .
.
.
blablabla
.
.
.

- you ve chosen not to install "syrthescfd"

--> No precompiled GUI build /home/simulation/opt/syrthes4.3.5/src/syrthes-gui/exe.linux-x86_64

--> building GUI

/home/simulation/opt/syrthes4.3.5/src/
Installation : generation of python files ...
function report
NO file ERREUR.log

---------------------------------------------------------
Before using SYRTHES, each user must source
the /home/simulation/opt/syrthes4.3.5/arch/Linux_x86_64/bin/syrthes.profile file before using the code.

The easiest way is to put the following lines in each of the users
'.profile' or '.bashrc' (depending on the shell)

syrthesprofile=/home/simulation/opt/syrthes4.3.5/arch/Linux_x86_64/bin/syrthes.profile
#(adjust path to your system)
if [ -f $syrthesprofile ] ; then
. $syrthesprofile
fi

---------------------------------------------------------
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Warning : installation of some components failed
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Check log files for more information....
ERREUR.log wrote: ../syrthesppfunc.log:collect2: error: ld returned 1 exit status
../syrthesppfunc.log:make[1]: *** [Makefile:15: a.out] Error 1
../syrthesppfunc.log:make: *** [Makefile:40: ppfunc] Error 2
syrthesppfunc.log wrote: mkdir: missing operand
Try 'mkdir --help' for more information.
make -I /home/simulation/opt/syrthes4.3.5 -C ./syrthes-ppfunc/src clean
make[1]: Entering directory '/home/simulation/opt/syrthes4.3.5/src/syrthes-ppfunc/src'
mkdir: missing operand
Try 'mkdir --help' for more information.
rm -rf /home/simulation/opt/syrthes4.3.5/build//*.o
make[1]: Leaving directory '/home/simulation/opt/syrthes4.3.5/src/syrthes-ppfunc/src'
make -I /home/simulation/opt/syrthes4.3.5 -C ./syrthes-ppfunc/src
make[1]: Entering directory '/home/simulation/opt/syrthes4.3.5/src/syrthes-ppfunc/src'
mkdir: missing operand
Try 'mkdir --help' for more information.
gcc -c -O3 -D _FILE_OFFSET_BITS=64 -I/home/simulation/opt/syrthes4.3.5/src/syrthes-ppfunc/include ppfunc_cini.c -o /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o
gcc -c -O3 -D _FILE_OFFSET_BITS=64 -I/home/simulation/opt/syrthes4.3.5/src/syrthes-ppfunc/include ppfunc_clim.c -o /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim.o
gcc -c -O3 -D _FILE_OFFSET_BITS=64 -I/home/simulation/opt/syrthes4.3.5/src/syrthes-ppfunc/include ppfunc_clim_hmt.c -o /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o
gcc -c -O3 -D _FILE_OFFSET_BITS=64 -I/home/simulation/opt/syrthes4.3.5/src/syrthes-ppfunc/include ppfunc_cphy.c -o /home/simulation/opt/syrthes4.3.5/build//ppfunc_cphy.o
gcc -c -O3 -D _FILE_OFFSET_BITS=64 -I/home/simulation/opt/syrthes4.3.5/src/syrthes-ppfunc/include ppfunc_cvol.c -o /home/simulation/opt/syrthes4.3.5/build//ppfunc_cvol.o
gcc -c -O3 -D _FILE_OFFSET_BITS=64 -I/home/simulation/opt/syrthes4.3.5/src/syrthes-ppfunc/include ppfunc_ecrire_vide.c -o /home/simulation/opt/syrthes4.3.5/build//ppfunc_ecrire_vide.o
gcc -c -O3 -D _FILE_OFFSET_BITS=64 -I/home/simulation/opt/syrthes4.3.5/src/syrthes-ppfunc/include ppfunc_manip_chaine.c -o /home/simulation/opt/syrthes4.3.5/build//ppfunc_manip_chaine.o
gcc -c -O3 -D _FILE_OFFSET_BITS=64 -I/home/simulation/opt/syrthes4.3.5/src/syrthes-ppfunc/include ppfunc_rescon.c -o /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon.o
ppfunc_cini.c: In function ‘cini_xx’:
ppfunc_cini.c:140:8: warning: implicit declaration of function ‘rep_listint’ [-Wimplicit-function-declaration]
140 | rep_listint(list_ilist[numlist],&nb,ch+id+ifin);
| ^~~~~~~~~~~
ppfunc_rescon.c: In function ‘rescon’:
ppfunc_rescon.c:135:5: warning: implicit declaration of function ‘rep_listint’ [-Wimplicit-function-declaration]
135 | rep_listint(list_ilist[numlist],&nb,ch+id+ifin);
| ^~~~~~~~~~~
ppfunc_clim.c: In function ‘clim_xx’:
ppfunc_clim.c:144:5: warning: implicit declaration of function ‘rep_listint’ [-Wimplicit-function-declaration]
144 | rep_listint(list_ilist[numlist],&nb,ch+id+ifin);
| ^~~~~~~~~~~
ppfunc_cvol.c: In function ‘condvol_xx’:
ppfunc_cvol.c:148:8: warning: implicit declaration of function ‘rep_listint’ [-Wimplicit-function-declaration]
148 | rep_listint(list_ilist[numlist],&nb,ch+id+ifin);
| ^~~~~~~~~~~
ppfunc_cphy.c: In function ‘lire_ecrire_prophy’:
ppfunc_cphy.c:116:4: warning: implicit declaration of function ‘extr_motcle_’ [-Wimplicit-function-declaration]
116 | extr_motcle_(motcle,ch,&i1,&i2);
| ^~~~~~~~~~~~
ppfunc_clim_hmt.c: In function ‘clim_hmt_hhh’:
ppfunc_clim_hmt.c:140:5: warning: implicit declaration of function ‘rep_listint’ [-Wimplicit-function-declaration]
140 | rep_listint(list_ilist[numlist],&nb,ch+id+ifin);
| ^~~~~~~~~~~
ppfunc_cphy.c:124:13: warning: implicit declaration of function ‘rep_ch’ [-Wimplicit-function-declaration]
124 | ifin=rep_ch(list_formule_rho[numlist],ch+id);
| ^~~~~~
ppfunc_cphy.c:176:8: warning: implicit declaration of function ‘rep_listint’ [-Wimplicit-function-declaration]
176 | rep_listint(list_ilist[numlist],&nb,ch+id+ifin);
| ^~~~~~~~~~~
gcc -c -O3 -D _FILE_OFFSET_BITS=64 -I/home/simulation/opt/syrthes4.3.5/src/syrthes-ppfunc/include ppfunc_rescon_hmt.c -o /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon_hmt.o
gcc -c -O3 -D _FILE_OFFSET_BITS=64 -I/home/simulation/opt/syrthes4.3.5/src/syrthes-ppfunc/include ppfunc_syrthes.c -o /home/simulation/opt/syrthes4.3.5/build//ppfunc_syrthes.o
ppfunc_syrthes.c:59:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
59 | main(argc,argv)
| ^~~~
ppfunc_syrthes.c: In function ‘main’:
ppfunc_syrthes.c:228:2: warning: implicit declaration of function ‘ecrire_vide_cini’; did you mean ‘ecrire_vide_cphy’? [-Wimplicit-function-declaration]
228 | ecrire_vide_cini();
| ^~~~~~~~~~~~~~~~
| ecrire_vide_cphy
ppfunc_syrthes.c:241:2: warning: implicit declaration of function ‘ecrire_vide_prophy’; did you mean ‘ecrire_vide_cphy’? [-Wimplicit-function-declaration]
241 | ecrire_vide_prophy();
| ^~~~~~~~~~~~~~~~~~
| ecrire_vide_cphy
ppfunc_syrthes.c:252:2: warning: implicit declaration of function ‘lire_ecrire_clim’; did you mean ‘lire_ecrire_chmt’? [-Wimplicit-function-declaration]
252 | lire_ecrire_clim();
| ^~~~~~~~~~~~~~~~
| lire_ecrire_chmt
ppfunc_syrthes.c:296:2: warning: implicit declaration of function ‘ecrire_vide_cini_hmt’; did you mean ‘ecrire_vide_rescon_hmt’? [-Wimplicit-function-declaration]
296 | ecrire_vide_cini_hmt();
| ^~~~~~~~~~~~~~~~~~~~
| ecrire_vide_rescon_hmt
ppfunc_syrthes.c:308:2: warning: implicit declaration of function ‘ecrire_vide_chmt’; did you mean ‘ecrire_vide_cphy’? [-Wimplicit-function-declaration]
308 | ecrire_vide_chmt();
| ^~~~~~~~~~~~~~~~
| ecrire_vide_cphy
ppfunc_syrthes.c:321:2: warning: implicit declaration of function ‘ecrire_vide_condvol_hmt’; did you mean ‘ecrire_vide_condvol’? [-Wimplicit-function-declaration]
321 | ecrire_vide_condvol_hmt();
| ^~~~~~~~~~~~~~~~~~~~~~~
| ecrire_vide_condvol
ppfunc_syrthes.c: In function ‘quel_model’:
ppfunc_syrthes.c:429:12: warning: implicit declaration of function ‘rep_int’ [-Wimplicit-function-declaration]
429 | model=rep_int(ch+i2+1);
| ^~~~~~~
ppfunc_rescon_hmt.c: In function ‘rescon_hmt’:
ppfunc_rescon_hmt.c:145:5: warning: implicit declaration of function ‘rep_listint’ [-Wimplicit-function-declaration]
145 | rep_listint(list_ilist[numlist],&nb,ch+id+ifin);
| ^~~~~~~~~~~
gcc -o /home/simulation/opt/syrthes4.3.5/arch/Linux_x86_64/bin/syrthes-ppfunc -O3 -D _FILE_OFFSET_BITS=64 /home/simulation/opt/syrthes4.3.5/build//*.o -lm
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0xcd540): multiple definition of `ch'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3ad80): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0xcd140): multiple definition of `chs'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3a980): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0xcd940): multiple definition of `motcle'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3b180): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0xc3500): multiple definition of `list_ilist'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x30d40): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x0): multiple definition of `list_condi'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0xaae60): multiple definition of `list_formule'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x186a0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim.o:(.bss+0xcd540): multiple definition of `ch'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3ad80): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim.o:(.bss+0xcd140): multiple definition of `chs'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3a980): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim.o:(.bss+0xcd940): multiple definition of `motcle'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3b180): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim.o:(.bss+0x927c0): multiple definition of `list_formule1'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x927c0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim.o:(.bss+0xc3500): multiple definition of `list_ilist'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x30d40): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim.o:(.bss+0x0): multiple definition of `list_condi'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim.o:(.bss+0x7a120): multiple definition of `list_formule2'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x7a120): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim.o:(.bss+0x186a0): multiple definition of `list_formule6'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x186a0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim.o:(.bss+0x30d40): multiple definition of `list_formule5'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x30d40): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim.o:(.bss+0x493e0): multiple definition of `list_formule4'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x493e0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim.o:(.bss+0x61a80): multiple definition of `list_formule3'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x61a80): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim.o:(.bss+0xaae60): multiple definition of `list_formule'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x186a0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_cphy.o:(.bss+0x147800): multiple definition of `ch'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3ad80): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_cphy.o:(.bss+0x147400): multiple definition of `chs'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3a980): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_cphy.o:(.bss+0x147c00): multiple definition of `motcle'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3b180): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_cphy.o:(.bss+0x13d7c0): multiple definition of `list_ilist'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x30d40): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_cphy.o:(.bss+0x0): multiple definition of `list_condi'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_cvol.o:(.bss+0x6bac0): multiple definition of `ch'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3ad80): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_cvol.o:(.bss+0x6b6c0): multiple definition of `chs'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3a980): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_cvol.o:(.bss+0x6bec0): multiple definition of `motcle'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3b180): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_cvol.o:(.bss+0x30d40): multiple definition of `list_formule1'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x927c0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_cvol.o:(.bss+0x186a0): multiple definition of `list_formule2'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x7a120): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_cvol.o:(.bss+0x61a80): multiple definition of `list_ilist'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x30d40): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_cvol.o:(.bss+0x0): multiple definition of `list_condi'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_cvol.o:(.bss+0x493e0): multiple definition of `list_formule'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x186a0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon_hmt.o:(.bss+0xcd540): multiple definition of `ch'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3ad80): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon_hmt.o:(.bss+0xcd140): multiple definition of `chs'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3a980): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon_hmt.o:(.bss+0xcd940): multiple definition of `motcle'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3b180): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon_hmt.o:(.bss+0x927c0): multiple definition of `list_formule1'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x927c0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon_hmt.o:(.bss+0x7a120): multiple definition of `list_formule2'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x7a120): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon_hmt.o:(.bss+0x61a80): multiple definition of `list_formule3'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x61a80): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon_hmt.o:(.bss+0xc3500): multiple definition of `list_ilist'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x30d40): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon_hmt.o:(.bss+0x0): multiple definition of `list_condi'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon_hmt.o:(.bss+0x186a0): multiple definition of `list_formule6'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x186a0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon_hmt.o:(.bss+0x30d40): multiple definition of `list_formule5'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x30d40): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon_hmt.o:(.bss+0x493e0): multiple definition of `list_formule4'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x493e0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon_hmt.o:(.bss+0xaae60): multiple definition of `list_formule'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x186a0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon.o:(.bss+0x927c0): multiple definition of `list_formule1'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x927c0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon.o:(.bss+0xc3500): multiple definition of `list_ilist'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x30d40): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon.o:(.bss+0xcd540): multiple definition of `ch'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3ad80): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon.o:(.bss+0xcd140): multiple definition of `chs'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3a980): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon.o:(.bss+0xcd940): multiple definition of `motcle'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3b180): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon.o:(.bss+0x0): multiple definition of `list_condi'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon.o:(.bss+0x186a0): multiple definition of `list_formule6'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x186a0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon.o:(.bss+0x30d40): multiple definition of `list_formule5'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x30d40): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon.o:(.bss+0x493e0): multiple definition of `list_formule4'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x493e0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon.o:(.bss+0x61a80): multiple definition of `list_formule3'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x61a80): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon.o:(.bss+0x7a120): multiple definition of `list_formule2'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_clim_hmt.o:(.bss+0x7a120): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_rescon.o:(.bss+0xaae60): multiple definition of `list_formule'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x186a0): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_syrthes.o:(.bss+0x400): multiple definition of `ch'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3ad80): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_syrthes.o:(.bss+0x0): multiple definition of `chs'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3a980): first defined here
/usr/bin/ld: /home/simulation/opt/syrthes4.3.5/build//ppfunc_syrthes.o:(.bss+0x800): multiple definition of `motcle'; /home/simulation/opt/syrthes4.3.5/build//ppfunc_cini.o:(.bss+0x3b180): first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:15: a.out] Error 1
make[1]: Leaving directory '/home/simulation/opt/syrthes4.3.5/src/syrthes-ppfunc/src'
make: *** [Makefile:40: ppfunc] Error 2
But fromt there I don't know where to look to find the faulty linkage.
Other than that the gui is built without problems.
I have reduced the dependencies to the minimum for troubleshooting. Only the salome_meca HDF5 and MED libraries are called for the build and you can check the setup.ini file attached to this post.

I have tried to run a test case just in case but it also exits immediately on a [collect2: error: ld returned 1 exit status] error.

Have you ever seen this behavior ?
Attachments
syrthesppfunc.log
(18.72 KiB) Downloaded 1215 times
ERREUR.log
(188 Bytes) Downloaded 1191 times
setup.ini
(4.04 KiB) Downloaded 1216 times
Yvan Fournier
Posts: 4146
Joined: Mon Feb 20, 2012 3:25 pm

Re: [MANJARO]Building trouble : linkage problem on syrthesppfunc

Post by Yvan Fournier »

Hello,

Yes, I had a similar issue on Arch Linux, due to the more recent and picky tools.

In setup.ini, you can add linker options to work around this:
specific_lib= -Wl,--allow-multiple-definition
specific_option= -Wl,--allow-multiple-definition
Best regards,

Yvan
Josuez
Posts: 16
Joined: Thu Jun 27, 2019 6:15 am

Re: [MANJARO]Building trouble : linkage problem on syrthesppfunc

Post by Josuez »

As always thanks for the quick answer

I implemented your solution and this actually helped for some other problems that weren't highlighted during the installation.
As a result I can now run syrthes on test cases and get an output.

But syrthesppfunc still threw an error during the automatic installation, I haven't tested extensively but I suppose it will prevent me to define functions in my cases. This is the only module which fails to build.

I will attach the setup.ini and ERREUR.log
Attachments
ERREUR.log
(188 Bytes) Downloaded 1232 times
setup.ini
(4.19 KiB) Downloaded 1185 times
Yvan Fournier
Posts: 4146
Joined: Mon Feb 20, 2012 3:25 pm

Re: [MANJARO]Building trouble : linkage problem on syrthesppfunc

Post by Yvan Fournier »

Hello,

Do you have any other part of the error message in which the missing library name might appear ?

I am not sure of what ppfunc is used for, so do not know if you will miss it or not.

Best regards,

Yvan
michal777
Posts: 9
Joined: Thu Feb 25, 2021 9:58 pm

Re: [MANJARO]Building trouble : linkage problem on syrthesppfunc

Post by michal777 »

Hi, I probably have the same problem - can't compile and there are complaints about multiple definitions. I tried the workaround with --allow-multiple-definition in setup.ini but it didn't help.
I attach file resume. It looks like the problem starts in line 290 of the attached file
gcc -o /home/michal/build/syrthes5.0/arch/Linux_x86_64/bin/syrthes-ppfunc -O3 -D _FILE_OFFSET_BITS=64 -D_SYRTHES_MPI_ /home/michal/build/syrthes5.0/build//*.o -lm
So the issue may be in syrthes-ppfunc and the workaround with --allow-multiple-definition seems to be not working here.
Attachments
setup.ini
(4.23 KiB) Downloaded 1094 times
resume.txt
(263.62 KiB) Downloaded 1066 times
Yvan Fournier
Posts: 4146
Joined: Mon Feb 20, 2012 3:25 pm

Re: [MANJARO]Building trouble : linkage problem on syrthesppfunc

Post by Yvan Fournier »

Hello,

Yes, I had a similar issue even with Syrthes 5 on recent distribs (On Debian 11 on my work machine. I have not compiled Syrthes on my home Arch-based system in a while...).

Fixing it basically requires modifying the code, adding "static" qualifiers on some variables to keep the deifnitions local (and then, the code is still ugly). I can try to upload a patched version of Syrthes 5 in the coming days, but that version also includes binary libraries for new dependencies, which should probably work, but couls cause issues. The additional libaries are under a GPL licence, and can be compiled, but that makes the build procedure more complex.

The Syrthes team should have the latest compilation patches I sent them a few days ago, so e-mailing Syrthes support so that they post an u to date version on the web would be a good idea... Hoping they integrated my patches and respond.... I'll remind them if I seem them this coming week...

Best regards,

Yvan
JuanMiTC
Posts: 2
Joined: Mon Jul 10, 2023 2:46 pm

Re: [MANJARO]Building trouble : linkage problem on syrthesppfunc

Post by JuanMiTC »

Is there any update on this problem? I am experiencing very similar problems installing Syrthes 5.0 on Ubuntu 22 and would like to know if there has been any progress.

Regards and thanks.
JuanMiTC
Posts: 2
Joined: Mon Jul 10, 2023 2:46 pm

Re: [MANJARO]Building trouble : linkage problem on syrthesppfunc

Post by JuanMiTC »

Well, I don't know if it was inspiration at the time of writing the post but I found the solution. The reality is that it is quite simple.

Gcc >= 10 starts complaining about multiple definitions. The problem is solved with the -fcommon flag.

To do so, in setup.ini you have to write the following
specific_option= -fcommon
Unfortunately, Yvan's solution did not work for me.

Regards
Post Reply