waebbl / waebbl-gentoo

Personal overlay of gentoo ebuilds, loosely focused on the 3D domain.
17 stars 17 forks source link

sci-libs/calculix-ccx-2.17 build fails #335

Closed khumarahn closed 3 years ago

khumarahn commented 3 years ago

Hi. Emerging calculix-ccx fails with error:

...
a - writeheading.o
a - writenewmesh.o
./date.pl; x86_64-pc-linux-gnu-gcc -Wall -DARCH="Linux" -DMATRIXSTORAGE -DNETWORKOUT -O2 -pipe -march=native -I/usr/include/spooles -DSPOOLES -DUSE_MT -fopenmp -c ccx_2.17.c; x86_64-pc-linux-gnu-gfortran -Wall -O2 -pipe -fallow-argument-mismatch -fopenmp -o ccx_2.17 ccx_2.17.o ccx_2.17.a  -llapack -lm -lc -lspooles -lpthread -lblas
ccx_2.17.c: In function ‘main’:
ccx_2.17.c:1676:18: warning: ‘nkon0’ may be used uninitialized in this function [-Wmaybe-uninitialized]
 1676 |       ne=ne0;nkon=nkon0;
      |              ~~~~^~~~~~
In file included from ccx_2.17.c:30:
CalculiX.h:62:29: warning: ‘ne0’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   62 | #define RENEW(a,b,c) a=(b *)u_realloc((b *)(a),(c)*sizeof(b),__FILE__,__LINE__,#a)
      |                             ^~~~~~~~~
ccx_2.17.c:72:39: note: ‘ne0’ was declared here
   72 |     iprestr,kode,isolver,nslavs,nkon_,ne0,nkon0,mortar,
      |                                       ^~~
ccx_2.17.c:814:61: warning: ‘nxstate’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  814 |  for(i=nxstate;i<nstate_*mi[0]*(ne+nintpoint);i++){xstate[i]=0.;}
      |                                                    ~~~~~~~~~^~~
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: ccx_2.17.a(robustdesign.o): in function `robustdesign':
robustdesign.c:(.text+0x1956): undefined reference to `randomfieldmain'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: robustdesign.c:(.text+0x3a81): undefined reference to `dudsmain'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: ccx_2.17.a(sensitivity.o): in function `sensitivity':
sensitivity.c:(.text+0x2d51): undefined reference to `projectgradmain'
collect2: error: ld returned 1 exit status
make: *** [Makefile:21: ccx_2.17] Error 1
 * ERROR: sci-libs/calculix-ccx-2.17::waebbl failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sci-libs/calculix-ccx-2.17::waebbl'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/calculix-ccx-2.17::waebbl'`.
 * The complete build log is located at '/var/tmp/portage/sci-libs/calculix-ccx-2.17/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/calculix-ccx-2.17/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/calculix-ccx-2.17/work/CalculiX/ccx_2.17/src'
 * S: '/var/tmp/portage/sci-libs/calculix-ccx-2.17/work/CalculiX/ccx_2.17/src'
# emerge -pv calculix-ccx 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ~] sci-libs/calculix-ccx-2.17::waebbl [2.10::waebbl] USE="openmp threads -arpack -doc -examples" 0 KiB

I don't see a reason immediately.

waebbl commented 3 years ago

Thanks for reporting this. Could you please attach the complete build log?

khumarahn commented 3 years ago

build.log yes, sure

waebbl commented 3 years ago

Looks like the arpack package is not optional anymore. Building with USE=arpack solves the issue. I'm gonna update the ebuild.

waebbl commented 3 years ago

Should have been fixed with the PR #337 Please sync and try again.

khumarahn commented 3 years ago

thanks! The repo syncs from https://github.com/gentoo-mirror/waebbl I'll have wait for it to sync

khumarahn commented 3 years ago

It builds fine. Very many thanks!!!