Author Topic: compile runs too much time  (Read 6092 times)

halleluja

  • Full Member
  • ***
  • Posts: 80
compile runs too much time
« on: May 18, 2018, 05:50:39 AM »
Hi all,

i use feap version 8.4 now.
Every time when i modify something in the elmt(e.g. elmt09.f) in user directory, i open a terminal, go to the directory VER84, type 'make' and Enter.

Before i use feap on Ubuntu 14.04, it takes 5 seconds for make.
Now i install Ubuntu 18.04 on another laptop. It takes much longer for make, about 5 mins.
And if i do make, the following code is part of the code shown in the monitor.
`make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.' will be shown more than 2000 times.

Code: [Select]
xye@xye:~/FEAP_VER84/VER84$ make
(cd program; make archive)
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/program'
make[2]: Entering directory '/home/xye/FEAP_VER84/VER84/program'
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. '_MESSAGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building chlbac.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building rmas3d.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building moddis.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building elcnt.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building dot.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building pcheck.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building d4triu.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building ploopin.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building cknon0.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building pblenda2.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building xnumb.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building mkside.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building sgraphc1.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building walloc.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building poldir.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building baslod.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building sgraph.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building upeul.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building seteq.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building ralloc.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building upglob.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building palloc.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building int1dn.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building upang.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building pnorm3d.o
...
...
Warning: Unused dummy argument ‘x’ at (1) [-Wunused-dummy-argument]
Building celmt09.o
make[3]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[3]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
cpair07.f:2:41:

       subroutine cpair07 (npair,ncdim,cp0,tydat)
                                         1
Warning: Unused dummy argument ‘cp0’ at (1) [-Wunused-dummy-argument]
cpair07.f:2:37:

       subroutine cpair07 (npair,ncdim,cp0,tydat)
                                     1
Warning: Unused dummy argument ‘ncdim’ at (1) [-Wunused-dummy-argument]
cpair07.f:2:47:

       subroutine cpair07 (npair,ncdim,cp0,tydat)
                                               1
Warning: Unused dummy argument ‘tydat’ at (1) [-Wunused-dummy-argument]
Building cpair07.o
make[3]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[3]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
cpair09.f:2:41:

       subroutine cpair09 (npair,ncdim,cp0,tydat)
                                         1
Warning: Unused dummy argument ‘cp0’ at (1) [-Wunused-dummy-argument]
cpair09.f:2:37:

       subroutine cpair09 (npair,ncdim,cp0,tydat)
                                     1
Warning: Unused dummy argument ‘ncdim’ at (1) [-Wunused-dummy-argument]
cpair09.f:2:47:

       subroutine cpair09 (npair,ncdim,cp0,tydat)
                                               1
Warning: Unused dummy argument ‘tydat’ at (1) [-Wunused-dummy-argument]
Building cpair09.o
make[3]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[3]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
cpair03.f:2:41:

       subroutine cpair03 (npair,ncdim,cp0,tydat)
                                         1
Warning: Unused dummy argument ‘cp0’ at (1) [-Wunused-dummy-argument]
cpair03.f:2:37:

       subroutine cpair03 (npair,ncdim,cp0,tydat)
                                     1
Warning: Unused dummy argument ‘ncdim’ at (1) [-Wunused-dummy-argument]
cpair03.f:2:47:

       subroutine cpair03 (npair,ncdim,cp0,tydat)
                                               1
Warning: Unused dummy argument ‘tydat’ at (1) [-Wunused-dummy-argument]
Building cpair03.o
make[3]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[3]: Leaving directory '/home/xye/FEAP_VER84/VER84/contact/util'
r - cpair02.o
r - celmt17.o
r - celmt18.o
r - cpair12.o
r - getlab.o
r - cpair16.o
r - celmt19.o
r - celmt01.o
r - celmt04.o
r - cpair17.o
r - cpair10.o
r - scp.o
r - celmt11.o
r - crunu1.o
r - celmt07.o
r - cpair18.o
r - celmt12.o
r - cpair15.o
r - chp.o
r - crunu2.o
r - celmt02.o
r - cpair04.o
r - cpair20.o
r - m_mult.o
r - opp.o
r - cpair14.o
r - cpair05.o
r - ccp.o
r - cpair06.o
r - celmt03.o
r - cpair08.o
r - celmt16.o
r - cpair13.o
r - cpair19.o
r - celmt10.o
r - gettd.o
r - sop.o
r - typ.o
r - celmt05.o
r - cpair01.o
r - celmt15.o
r - celmt06.o
r - crunu3.o
r - celmt20.o
r - gettxtd.o
r - cpair11.o
r - setcp0.o
r - celmt14.o
r - fep.o
r - celmt08.o
r - getcp0.o
r - celmt13.o
r - celmt09.o
r - cpair07.o
r - cpair09.o
r - cpair03.o
--->/home/xye/FEAP_VER84/VER84/contact/util objects now up-to-date<---
make[2]: Leaving directory '/home/xye/FEAP_VER84/VER84/contact/util'
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/contact'
--> Feap Archive updated <--
(cd main; make feap)
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/main'
ranlib /home/xye/FEAP_VER84/VER84/Feap8_4.a
gfortran -o feap feap84.o /home/xye/FEAP_VER84/VER84/packages/arpack/archive/archivelib.a /home/xye/FEAP_VER84/VER84/packages/arpack/arpacklib.a \
  /home/xye/FEAP_VER84/VER84/Feap8_4.a -L/usr/include -lX11 -lm
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/main'
--> Feap executable made <--

Can anyone tell me how to make it faster for compile?


« Last Edit: May 18, 2018, 06:09:54 AM by halleluja »

JStorm

  • Sr. Member
  • ****
  • Posts: 250
Re: compile runs too much time
« Reply #1 on: May 18, 2018, 06:40:07 AM »
This because at the newer Ubuntu you have a newer version of "ar", which have changed the default behaviour. Just add parameter "U" in makefile.in:
Code: [Select]
AR = ar rvU
Then clean everything ("make clean", remove Feap8_4.a) and recompile. Now, just modified files getting recompiled afterwards.

To increase the compilation speed on a multi-core machine you can compile with
Code: [Select]
make -j
or
Code: [Select]
make -j <number of cores to use>
to enable parallel compilation.

halleluja

  • Full Member
  • ***
  • Posts: 80
Re: compile runs too much time
« Reply #2 on: May 18, 2018, 07:27:26 AM »
make clean failed:)

Code: [Select]
xye@xye:~/FEAP_VER84/VER84$ make clean
for i in include include/integer4 include/integer8 maintain program contact elements plot unix user main windows window1 window2 packages/arpack packages/arpack/archive packages/blas packages/lapack packages/meshmod parfeap parfeap/packages/arpack parfeap/partition program/memory unix/memory ; do (cd $i; make clean); done
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/include'
rcsclean -q
make[1]: rcsclean: Command not found
makefile:4: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/include'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/include/integer4'
rcsclean -q
make[1]: rcsclean: Command not found
makefile:4: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/include/integer4'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/include/integer8'
rcsclean -q
make[1]: rcsclean: Command not found
makefile:4: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/include/integer8'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/maintain'
rcsclean -q
make[1]: rcsclean: Command not found
makefile:12: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/maintain'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/program'
make[1]: rcsclean: Command not found
makefile:24: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/program'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/contact'
(cd main; make clean)
make[2]: Entering directory '/home/xye/FEAP_VER84/VER84/contact/main'
make[2]: rcsclean: Command not found
makefile:24: recipe for target 'clean' failed
make[2]: *** [clean] Error 127
make[2]: Leaving directory '/home/xye/FEAP_VER84/VER84/contact/main'
makefile:13: recipe for target 'clean' failed
make[1]: *** [clean] Error 2
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/contact'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/elements'
(cd couple3d; make clean)
make[2]: Entering directory '/home/xye/FEAP_VER84/VER84/elements/couple3d'
make[2]: rcsclean: Command not found
makefile:24: recipe for target 'clean' failed
make[2]: *** [clean] Error 127
make[2]: Leaving directory '/home/xye/FEAP_VER84/VER84/elements/couple3d'
makefile:18: recipe for target 'clean' failed
make[1]: *** [clean] Error 2
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/elements'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/plot'
make[1]: rcsclean: Command not found
makefile:24: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/plot'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/unix'
make[1]: rcsclean: Command not found
makefile:24: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/unix'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/user'
make[1]: rcsclean: Command not found
makefile:24: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/user'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/main'
rcsclean -q
make[1]: rcsclean: Command not found
makefile:19: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/main'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/windows'
rcsclean -q
make[1]: rcsclean: Command not found
makefile:11: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/windows'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/window1'
rcsclean -q
make[1]: rcsclean: Command not found
makefile:11: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/window1'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/window2'
rcsclean -q
make[1]: rcsclean: Command not found
makefile:11: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/window2'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/packages/arpack'
rcsclean -q
make[1]: rcsclean: Command not found
makefile:8: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/packages/arpack'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/packages/arpack/archive'
rcsclean -q
make[1]: rcsclean: Command not found
makefile:8: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/packages/arpack/archive'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/packages/blas'
rcsclean -q
make[1]: rcsclean: Command not found
makefile:7: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/packages/blas'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/packages/lapack'
rcsclean -q
make[1]: rcsclean: Command not found
makefile:7: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/packages/lapack'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/packages/meshmod'
rcsclean -q
make[1]: rcsclean: Command not found
makefile:4: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/packages/meshmod'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/parfeap'
makefile:29: /conf/variables: No such file or directory
makefile:30: /conf/rules: No such file or directory
make[1]: *** No rule to make target '/conf/rules'.  Stop.
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/parfeap'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/parfeap/packages/arpack'
makefile:7: /conf/variables: No such file or directory
makefile:8: /conf/rules: No such file or directory
make[1]: *** No rule to make target '/conf/rules'.  Stop.
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/parfeap/packages/arpack'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/parfeap/partition'
makefile:5: /conf/variables: No such file or directory
makefile:6: /conf/rules: No such file or directory
make[1]: *** No rule to make target '/conf/rules'.  Stop.
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/parfeap/partition'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/program/memory'
make[1]: rcsclean: Command not found
makefile:24: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/program/memory'
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/unix/memory'
make[1]: rcsclean: Command not found
makefile:24: recipe for target 'clean' failed
make[1]: *** [clean] Error 127
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/unix/memory'
makefile:34: recipe for target 'clean' failed
make: *** [clean] Error 2
« Last Edit: May 18, 2018, 09:08:29 AM by halleluja »

halleluja

  • Full Member
  • ***
  • Posts: 80
Re: compile runs too much time
« Reply #3 on: May 18, 2018, 09:13:30 AM »
Code: [Select]
sudo apt-get update
sudo apt-get install rcs
then it works. :)

Thanks a lot.

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2649
Re: compile runs too much time
« Reply #4 on: May 19, 2018, 09:35:31 PM »
Later versions remove the rcsclean -- this is not necessary unless you use the rcs for revision control.

beava

  • New Member
  • *
  • Posts: 1
Re: compile runs too much time
« Reply #5 on: September 12, 2021, 10:21:43 PM »
Hi all,

i use feap version 8.4 now.
Every time when i modify something in the elmt(e.g. elmt09.f) in user directory, i open a terminal, go to the directory VER84, type 'make' and Enter.

Before i use feap on Ubuntu 14.04, it takes 5 seconds for make.
Now i install Ubuntu 18.04 on another laptop. It takes much longer for make, about 5 mins.
And if i do make, the following code is part of the code shown in the monitor.
`make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.' will be shown more than 2000 times.

Code: [Select]
xye@xye:~/FEAP_VER84/VER84$ make
(cd program; make archive)
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/program'
make[2]: Entering directory '/home/xye/FEAP_VER84/VER84/program'
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. '_MESSAGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building chlbac.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building rmas3d.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building moddis.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building elcnt.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building dot.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building pcheck.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building d4triu.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building ploopin.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building cknon0.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building pblenda2.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building xnumb.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building mkside.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building sgraphc1.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building walloc.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building poldir.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building baslod.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building sgraph.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building upeul.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building seteq.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building ralloc.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building upglob.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building palloc.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building int1dn.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building upang.o
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[2]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
Building pnorm3d.o
...
...
Warning: Unused dummy argument ‘x’ at (1) [-Wunused-dummy-argument]
Building celmt09.o
make[3]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[3]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
cpair07.f:2:41:

       subroutine cpair07 (npair,ncdim,cp0,tydat)
                                         1
Warning: Unused dummy argument ‘cp0’ at (1) [-Wunused-dummy-argument]
cpair07.f:2:37:

       subroutine cpair07 (npair,ncdim,cp0,tydat)
                                     1
Warning: Unused dummy argument ‘ncdim’ at (1) [-Wunused-dummy-argument]
cpair07.f:2:47:

       subroutine cpair07 (npair,ncdim,cp0,tydat)
                                               1
Warning: Unused dummy argument ‘tydat’ at (1) [-Wunused-dummy-argument]
Building cpair07.o
make[3]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[3]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
cpair09.f:2:41:

       subroutine cpair09 (npair,ncdim,cp0,tydat)
                                         1
Warning: Unused dummy argument ‘cp0’ at (1) [-Wunused-dummy-argument]
cpair09.f:2:37:

       subroutine cpair09 (npair,ncdim,cp0,tydat)
                                     1
Warning: Unused dummy argument ‘ncdim’ at (1) [-Wunused-dummy-argument]
cpair09.f:2:47:

       subroutine cpair09 (npair,ncdim,cp0,tydat)
                                               1
Warning: Unused dummy argument ‘tydat’ at (1) [-Wunused-dummy-argument]
Building cpair09.o
make[3]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[3]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
cpair03.f:2:41:

       subroutine cpair03 (npair,ncdim,cp0,tydat)
                                         1
Warning: Unused dummy argument ‘cp0’ at (1) [-Wunused-dummy-argument]
cpair03.f:2:37:

       subroutine cpair03 (npair,ncdim,cp0,tydat)
                                     1
Warning: Unused dummy argument ‘ncdim’ at (1) [-Wunused-dummy-argument]
cpair03.f:2:47:

       subroutine cpair03 (npair,ncdim,cp0,tydat)
                                               1
Warning: Unused dummy argument ‘tydat’ at (1) [-Wunused-dummy-argument]
Building cpair03.o
make[3]: Warning: Archive '/home/xye/FEAP_VER84/VER84/Feap8_4.a' seems to have been created in deterministic mode. 'AGES/make.mo' will always be updated. Please consider passing the U flag to ar to avoid the problem.
make[3]: Leaving directory '/home/xye/FEAP_VER84/VER84/contact/util'
r - cpair02.o
r - celmt17.o
r - celmt18.o
r - cpair12.o
r - getlab.o
r - cpair16.o
r - celmt19.o
r - celmt01.o
r - celmt04.o
r - cpair17.o
r - cpair10.o
r - scp.o
r - celmt11.o
r - crunu1.o
r - celmt07.o
r - cpair18.o
r - celmt12.o
r - cpair15.o
r - chp.o
r - crunu2.o
r - celmt02.o
r - cpair04.o
r - cpair20.o
r - m_mult.o
r - opp.o
r - cpair14.o
r - cpair05.o
r - ccp.o
r - cpair06.o
r - celmt03.o
r - cpair08.o
r - celmt16.o
r - cpair13.o
r - cpair19.o
r - celmt10.o
r - gettd.o
r - sop.o
r - typ.o
r - celmt05.o
r - cpair01.o
r - celmt15.o
r - celmt06.o
r - crunu3.o
r - celmt20.o
r - gettxtd.o
r - cpair11.o
r - setcp0.o
r - celmt14.o
r - fep.o
r - celmt08.o
r - getcp0.o
r - celmt13.o
r - celmt09.o
r - cpair07.o
r - cpair09.o
r - cpair03.o
--->/home/xye/FEAP_VER84/VER84/contact/util objects now up-to-date<---
make[2]: Leaving directory '/home/xye/FEAP_VER84/VER84/contact/util'
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/contact'
--> Feap Archive updated <--
(cd main; make feap)
make[1]: Entering directory '/home/xye/FEAP_VER84/VER84/main'
ranlib /home/xye/FEAP_VER84/VER84/Feap8_4.a
gfortran -o feap feap84.o /home/xye/FEAP_VER84/VER84/packages/arpack/archive/archivelib.a /home/xye/FEAP_VER84/VER84/packages/arpack/arpacklib.a \
  /home/xye/FEAP_VER84/VER84/Feap8_4.a -L/usr/include -lX11 -lm
make[1]: Leaving directory '/home/xye/FEAP_VER84/VER84/main'
--> Feap executable made <--

Can anyone tell me how to make it faster for compile?

Code: [Select]
sudo apt-get update
sudo apt-get install rcs

Works for me too.

Thanks.

JStorm

  • Sr. Member
  • ****
  • Posts: 250
Re: compile runs too much time
« Reply #6 on: September 12, 2021, 10:50:28 PM »
You also should change makefile.in to use
Code: [Select]
AR = ar rvUin order to avoid that binaries gets replaced in the archive at each compilation.

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2649
Re: compile runs too much time
« Reply #7 on: September 13, 2021, 06:26:15 AM »
You should copy the elmt*.f file to a new location.  We do not recommend that you ever change the files in ./user -- they are for your use in new developments but at a different location.

One suggestion is to create a directory off of ./main

Add the new elmt*.f there

In the makefile in .main add the new object.

use "make" there.  Only the new file is compiled, the old archive is used without changes.