![]() |
![]() |
#1 |
Jun 2007
Moscow,Russia
7·19 Posts |
![]()
I'm trying to build msieve under under Ubuntu 12.04 x86
If "make x86", system returns : Code:
make: svnversion: Command not found gcc -D_FILE_OFFSET_BITS=64 -O3 -fomit-frame-pointer -march=k8 -DNDEBUG -D_LARGEFILE64_SOURCE -Wall -W -DMSIEVE_SVN_VERSION="\"unknown\"" -I. -Iinclude -Ignfs -Ignfs/poly -Ignfs/poly/stage1 -c -o common/filter/clique.o common/filter/clique.c In file included from include/msieve.h:24:0, from include/common.h:18, from common/filter/filter.h:23, from common/filter/filter_priv.h:23, from common/filter/clique.c:15: include/util.h:47:19: fatal error: zlib.h: No such file or directory compilation terminated. make: *** [common/filter/clique.o] Error 1 I'm newbie in Linux systems, but it seems that msieve needs some other zlib files.How to get rid of this error and build msieve? Last fiddled with by VolMike on 2012-10-13 at 10:26 |
![]() |
![]() |
![]() |
#2 |
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
2×11×421 Posts |
![]()
Add -Izlib to makefile next to -I. -Iinclude -Ignfs
|
![]() |
![]() |
![]() |
#3 |
Jun 2007
Moscow,Russia
7·19 Posts |
![]()
Thanks!
It makes compilation proceed, libmsieve.a was successfully created, but then system retuns another error Code:
ar: creating libmsieve.a ranlib libmsieve.a gcc -D_FILE_OFFSET_BITS=64 -O3 -fomit-frame-pointer -march=k8 -DNDEBUG -D_LARGEFILE64_SOURCE -Wall -W -DMSIEVE_SVN_VERSION="\"unknown\"" -I. -Iinclude -Ignfs -Izlib -Ignfs/poly -Ignfs/poly/stage1 demo.c -o msieve \ libmsieve.a -lz -lgmp -lm -lpthread demo.c: In function ‘main’: demo.c:559:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] demo.c:581:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] demo.c: In function ‘get_random_seeds’: demo.c:54:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] demo.c:55:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status make: *** [x86] Error 1 Last fiddled with by VolMike on 2012-10-13 at 10:37 |
![]() |
![]() |
![]() |
#4 |
Tribal Bullet
Oct 2004
2×3×19×31 Posts |
![]()
On most other unix systems zlib is a library called libz.a or libz.so; you link it in by adding '-lz' to the compile line. But you've already done that, so you can go into the makefile and remove the part that adds '-lz'.
|
![]() |
![]() |
![]() |
#5 |
Sep 2009
977 Posts |
![]()
If you want to compile against the zlib on your host system, you'll have to install the zlib1g-dev package.
|
![]() |
![]() |
![]() |
#6 |
Jun 2007
Moscow,Russia
13310 Posts |
![]()
Thanks, but it seems int this case not only -lz should be removed. The most easiest way is to install zlib1g-dev as debrouxl mentioned.
|
![]() |
![]() |
![]() |
#7 |
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3·29·83 Posts |
![]()
You can also compile it with NO_ZLIB=1 in the make command.
|
![]() |
![]() |
![]() |
#8 |
Jun 2007
Moscow,Russia
7·19 Posts |
![]() |
![]() |
![]() |
![]() |
#9 | |
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
2·11·421 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
Jun 2007
Moscow,Russia
7×19 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How I Run a Larger Factorization Using Msieve, gnfs and factmsieve.py on Several Ubuntu Machines | EdH | EdH | 7 | 2019-08-21 02:26 |
How I Install msieve onto my Ubuntu Machines | EdH | EdH | 0 | 2018-02-23 14:43 |
Building sr1sieve for RPi | wombatman | Software | 14 | 2017-03-04 16:21 |
Building MSieve without VS? | SWSaunders | Msieve | 3 | 2013-04-26 11:19 |
Building gcc 4.4.0 | CRGreathouse | Software | 1 | 2009-07-07 22:25 |