I didn't get crashes with 3.34-2 (I didn't try 3.34-1) with --enable-download, so I left it for the time being
Search Criteria
Package Details: freefem++ 3.36-1
Package Actions
| Package Base: | freefem++ |
|---|---|
| Description: | A PDE oriented language using the finite element method |
| Upstream URL: | http://www.freefem.org/ff++/index.htm |
| Category: | science |
| Licenses: | |
| Submitter: | holos |
| Maintainer: | holos |
| Last Packager: | holos |
| Votes: | 8 |
| First Submitted: | 2012-11-11 19:08 |
| Last Updated: | 2015-04-06 23:24 |
Dependencies (8)
- arpack
- fftw
- freeglut
- glu
- suitesparse
- ed (make)
- gcc-fortran (make)
- wget (make)
Required by (0)
Sources
- disable-doc.patch
- http://www.freefem.org/ff++/ftp/freefem++-3.36.tar.gz
Latest Comments
Comment by holos
Comment by holos
suitesparse is in the repos :P
freefem is really weird with detecting system libraries, so I'd be happy to remove --enable-download from the package.
Comment by Gug
Hi, the package depend on suitesparse AUR package, but the current package use the ff++ downloaded one (using a different version).
ff++ compiles fine but in my case, simple applications crash with segfault (e.g using solve() or builmesh() functions). It might be related, any idea?
Comment by holos
matael, the real error is farther up, when compiling UMFPACK.cpp and NewSolver.cpp. The freefem build system fails to detect UMFPACK (in the suitesparse package) and doesn't properly include headers, so the build fails. I am waiting for the 3.32 tarball to fix it.
Comment by matael
I don't really understand, but the package won't compile here :
Makefile:1658: recipe for target 'UMFPACK64.so' failed
make[3]: *** [UMFPACK64.so] Error 1
Looks like something's missing... i don't understand where this problem comes from
Comment by facunditito
It appears that there is a new version. To install it, I had to change the PKGBUILD
The site: http://www.freefem.org/ff++/ftp/freefem++-3.31.tar.gz gave me a 404 error, the new or correct is http://www.freefem.org/ff++/ftp/freefem++-3.31-2.tar.gz with its new sha256sum (4e61e6b44bc709f2e6f64c5a64d7597caead208e39fd97e231d41b86dfbccf65)
Comment by holos
the "reference to $srcdir" warning is due to a couple pkg-config files that set the prefix incorrectly.
Comment by holos
perhaps it was a server issue, the source is available.
the build should succeed without `--enable-download`, you just lose all the other components that the build system grabs.
I have poked around building the different components independently and getting freefem's build system to recognize them. I think I've been successful with (par)metis, superlu, tetgen, and mmg3d (mostly fixing header/lib locations). I've had trouble with others, like scotch_esmumps. Freefem will recognize the presence of the scotch/mumps libs, but magically won't build the corresponding freefem solib. Someday I might bug the devs.
Comment by srg
The build fails because it mmg3d4.0.tgz is no longer available online:
cd ../pkg;wget --no-check-certificate http://www.math.u-bordeaux1.fr/~cdobrzyn/logiciels/download/mmg3d4.0.tgz
--2013-11-21 11:19:51-- http://www.math.u-bordeaux1.fr/~cdobrzyn/logiciels/download/mmg3d4.0.tgz
Resolving www.math.u-bordeaux1.fr (www.math.u-bordeaux1.fr)... 147.210.16.9
Connecting to www.math.u-bordeaux1.fr (www.math.u-bordeaux1.fr)|147.210.16.9|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2013-11-21 11:19:58 ERROR 403: Forbidden.
I suggest changing `--enable-download` to `--disable-download` in build script, and rather depend on mmg3d package on AUR explicitly (if mmg3d source is made available again).
Comment by holos
Thanks for figuring that out.
I tried deleting the `--disable-pastix` line and it actually built just fine.
Comment by viperpaulo
Hi !
New version released. I have a solution to compile with SuiteSparse installed, here is my PKGBUILD : http://pastebin.archlinux.fr/470589. I didn't succeed to compile with pastix enabled.
Hope this helps...
Comment by holos
It was incorrect for me to have added umfpack as a conflict, according to https://bugs.archlinux.org/task/17625
Beyond adding a note, I don't know how to ignore the incompatible stuff from suitesparse. There doesn't seem to be anything relevant in the mailing list.
I'm also inclined to add --disable-pdf because the pdf is updated much more frequently than the tarball anyways.
Comment by viperpaulo
You can modify the PKGBUILD as follow :
- If you want to signal a conflict with umfpack :
conflicts=('umfpack')
provides=('umfpack')
This solves problems when you have another program which uses umfpack.
- You can also add this, which would be better I guess (not sure about that)
conflicts=('umfpack' 'suitesparse')
provides=('umfpack' 'suitesparse=4.0.2')
- I think that you can just not mention conflict with umfpack, it works well like that.
But I didn't find how to signal a conflict for compilation step, since it's impossible to compile when SuiteSparse is already installed and conflicts has effects on installation steps but not during compilation.
Also to solve multi-threads compilations problems you should add this to the PKGBUILD :
options=('!makeflags')
which will reset all makeflags during compilation.
Comment by viperpaulo
Hi,
Thx for this package !
I found why mrbit and others have some troubles :
- missing dep : metis
- export MAKEFLAGS="-j1"
- uninstall SuiteSparse to compile
hope this help !
Anonymous comment
I cannot compile MUMPS. It tells
Cannot open included file 'mpif.h'
Anonymous comment
Comment by holos
still builds here.
Comment by foobarrior
suddenly cannot build MUMPS=\
Comment by holos
umfpack is provided by suitesparse in extra. it should be fine as it is.
Comment by mrbit
sorry, for bad english,
conflicts=('umfpack') !!!!
there is no package "umfpack" in the AUR !!!
Comment by holos
it builds just fine here. updated with umfpack as a conflict.
Comment by mrbit
no work...
make[5]: Leaving directory `/home/mrbit/aur3/freefem++/src/freefem++-3.20/download/umfpack/SuiteSparse/AMD/Doc'
make[4]: Leaving directory `/home/mrbit/aur3/freefem++/src/freefem++-3.20/download/umfpack/SuiteSparse/AMD'
rm: operando mancante
Try 'rm --help' for more information.
make[3]: [SuiteSparse/UFconfig/UFconfig.mk] Errore 123 (ignorato)
touch SuiteSparse/UFconfig/UFconfig.mk
touch SuiteSparse/FF
cd SuiteSparse/UMFPACK/Source && make
cd SuiteSparse/AMD/Source && make
make[4]: Entering directory `/home/mrbit/aur3/freefem++/src/freefem++-3.20/download/umfpack/SuiteSparse/AMD/Source'
gcc -I../../AMD/Include -I../../UFconfig -march=corei7-avx -mtune=generic -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -mmmx -msse -msse2 -fPIC -I../Include -I../../UFconfig -c amd_global.c -o amd_global.o
make[4]: *** lettura della pipe dei processi: Argomento non valido. Stop.
make[4]: *** Attesa dei processi non terminati....
make[4]: Entering directory `/home/mrbit/aur3/freefem++/src/freefem++-3.20/download/umfpack/SuiteSparse/UMFPACK/Source'
gcc -I../../AMD/Include -I../../UFconfig -march=corei7-avx -mtune=generic -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -mmmx -msse -msse2 -fPIC -I../Include -I../../AMD/Include -I../../UFconfig -DDINT -c umf_analyze.c -o umf_i_analyze.o
make[4]: *** lettura della pipe dei processi: Argomento non valido. Stop.
make[4]: *** Attesa dei processi non terminati....
make[4]: Leaving directory `/home/mrbit/aur3/freefem++/src/freefem++-3.20/download/umfpack/SuiteSparse/AMD/Source'
make[3]: *** [../lib/libamd.a] Errore 2
make[3]: *** Attesa dei processi non terminati....
make[4]: Leaving directory `/home/mrbit/aur3/freefem++/src/freefem++-3.20/download/umfpack/SuiteSparse/UMFPACK/Source'
make[3]: *** [../lib/libumfpack.a] Errore 2
make[3]: Leaving directory `/home/mrbit/aur3/freefem++/src/freefem++-3.20/download/umfpack'
make[2]: *** [all-recursive] Errore 1
make[2]: Leaving directory `/home/mrbit/aur3/freefem++/src/freefem++-3.20/download'
make[1]: *** [all-recursive] Errore 1
make[1]: Leaving directory `/home/mrbit/aur3/freefem++/src/freefem++-3.20'
make: *** [all] Errore 2
==> ERRORE:
Comment by mrbit
ok, now work : unistalled suitesparse....!!
Comment by mrbit
installed suitesparse 4.0.2
Comment by mrbit
how to do that ??
Comment by holos
have you tried uninstalling umfpack before trying to build?
Comment by mrbit
i'm using makepkg, but still don't work !!!
Comment by holos
yaourt is probably automatically downloading umfpack for suitesparse. Read lazork's comment. Use makepkg.
Comment by mrbit
make[3]: Entering directory `/tmp/yaourt-tmp-root/aur-freefem/src/freefem++-3.20/src/x11'
g++ -DHAVE_CONFIG_H -I. -I../.. -I./../fflib -I./../Graphics -I./../.. -I./../femlib -march=x86-64 -mtune=generic -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -mmmx -msse -msse2 -DBAMG_LONG_LONG -DNCHECKPTR -fPIC -MT Xrgraph.o -MD -MP -MF .deps/Xrgraph.Tpo -c -o Xrgraph.o `test -f '../Graphics/Xrgraph.cpp' || echo './'`../Graphics/Xrgraph.cpp
mv -f .deps/Xrgraph.Tpo .deps/Xrgraph.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I./../fflib -I./../Graphics -I./../.. -I./../femlib -march=x86-64 -mtune=generic -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -mmmx -msse -msse2 -DBAMG_LONG_LONG -DNCHECKPTR -fPIC -MT parallelempi-empty.o -MD -MP -MF .deps/parallelempi-empty.Tpo -c -o parallelempi-empty.o `test -f '../mpi/parallelempi-empty.cpp' || echo './'`../mpi/parallelempi-empty.cpp
mv -f .deps/parallelempi-empty.Tpo .deps/parallelempi-empty.Po
g++ -march=x86-64 -mtune=generic -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -O3 -mmmx -msse -msse2 -DBAMG_LONG_LONG -DNCHECKPTR -fPIC -Wl,-O1,--sort-common,--as-needed,-z,relro -rdynamic -o FreeFem++-x11 Xrgraph.o parallelempi-empty.o ../lglib/liblg.a ../fflib/libff.a -lumfpack -lamd -larpack -llapack -lblas -lXxf86vm -lXext -lX11 -lXpm -lm -ldl /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../libgfortran.so
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib/libumfpack.a(umfpack_gn_tictoc.o): nella funzione "umfpack_tic":
(.text+0x5): riferimento non definito a "SuiteSparse_time"
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib/libumfpack.a(umfpack_gn_tictoc.o): nella funzione "umfpack_toc":
(.text+0x25): riferimento non definito a "SuiteSparse_time"
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib/libumfpack.a(umf_i_cholmod.o): nella funzione "umf_i_cholmod":
(.text+0x9e): riferimento non definito a "cholmod_start"
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib/libumfpack.a(umf_i_cholmod.o): nella funzione "umf_i_cholmod":
(.text+0x1cd): riferimento non definito a "cholmod_analyze"
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib/libumfpack.a(umf_i_cholmod.o): nella funzione "umf_i_cholmod":
(.text+0x1e4): riferimento non definito a "cholmod_free_sparse"
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib/libumfpack.a(umf_i_cholmod.o): nella funzione "umf_i_cholmod":
(.text+0x298): riferimento non definito a "cholmod_free_factor"
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib/libumfpack.a(umf_i_cholmod.o): nella funzione "umf_i_cholmod":
(.text+0x2b1): undefined reference to "cholmod_print_common"
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib/libumfpack.a(umf_i_cholmod.o): nella funzione "umf_i_cholmod":
(.text+0x2be): undefined reference to "cholmod_finish"
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib/libumfpack.a(umf_i_cholmod.o): in the function "umf_i_cholmod":
(.text+0x440): undefined reference to "cholmod_transpose"
collect2: error: ld returned 1 exit status
make[3]: *** [FreeFem++-x11] Errore 1
Comment by holos
fixed
Comment by mrbit
error build
Comment by holos
I wrote the PKGBUILD with the ++ elsewhere so now there are two packages, freefem and freefem++. Thanks to lazork for the tip.
Comment by haawda
The package has no maintainer, so you can easily update it yourself. If you do not want to maintain it, just orphan it again after uploading.
Comment by lazork
I need to remove umfpack from the list of dependencies to be able to compile.
umfpack installs the latest version of suitesparse which I believe is not compatible with freefem.
Better let freefem download its own version of suitesparse (which it will do, since it's using the option --enable-download).
Btw, this PKGBUILD works with version 3.20 as well; just edit the version and the md5sum
Anonymous comment
> add patch
Is it still needed? Well, added.
Comment by mrbit
Comment by mrbit
add patch -Np1 -i ../disable-doc.patch ...!!!!
Comment by mrbit
ok, thanks
Anonymous comment
Updated:
- Removed '--disable-pdf' option.
- Added '--enable-download' option.
- Added PDF manual to the package.
Comment by mrbit
modified PKGBUILD :
--enable-download
# --disable-pdf
has completed....
Comment by mrbit
Output written on freefem++doc.pdf (378 pages, 9511141 bytes).
Transcript written on freefem++doc.log.
make[2]: *** [freefem++doc.pdf] Errore 1
make[2]: Leaving directory `/tmp/packerbuild-0/freefem/freefem/src/freefem++-3.19-1/DOC'
make[1]: *** [all-recursive] Errore 1
make[1]: Leaving directory `/tmp/packerbuild-0/freefem/freefem/src/freefem++-3.19-1'
make: *** [all] Errore 2
==> ERRORE:
Comment by mrbit
For additional information on amsmath, use the `?' option.
(/usr/share/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texmf-dist/tex/latex/base/textcomp.sty
(/usr/share/texmf-dist/tex/latex/base/ts1enc.def))
! LaTeX Error: File `gensymb.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name: ??????
not compila..!!!!
Anonymous comment
@mrbit
Hmm, documentation building should be disabled by the "--disable-pdf" option... Okay, I fixed it. Thanks for report.
Comment by mrbit
! LaTeX Error: File `gensymb.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name: ????????