Discussion:
[GAP Forum] Error message when compiling gap development version
Gábor Horváth
2018-11-24 09:16:55 UTC
Permalink
Hi All,

At the "LINK libgap.la" stage of the compilation, I receive the following
error message:



*** Warning: Linking the shared library libgap.la against the
*** static library /home/ghorvath/work/gap/extern/install/zlib/lib/libz.a
is not portable!
/usr/bin/ld:
/home/ghorvath/work/gap/extern/install/zlib/lib/libz.a(gzlib.o):
relocation R_X86_64_PC32 against symbol `gzrewind' can not be used when
making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile.rules:361: recipe for target 'libgap.la' failed
make: *** [libgap.la] Error 1



I use debian stretch x64, and what is more puzzling is that I have another
machine, with debian stretch x64, which doesn't produce this error. I am
trying to compile the git development version of gap, commit
ebe360c59300c.

And of course, after this error, several of the packages won't compile,
they complain not finding the appropriate information about gap in the
sysinfo.gap file.

What could cause the error?

Thanks,
Gabor

Horvath Gabor
-------------------------------------------------------------------------------
e-mail: ***@science.unideb.hu
phone: +36 52 512900 / 22798
web: http://www.math.unideb.hu/horvath-gabor
Max Horn
2018-11-24 09:25:25 UTC
Permalink
Hi Gabor,
Post by Gábor Horváth
Hi All,
That means that GAP could not find the zlib header files and thus had to compile its own version. You can avoid the problem by installing a suitable package with your package manager; typically something like zlib-dev or libz-dev.

Or use GAP 4.10.0 instead of a GAP development version, then you shouldn't have this problem either :-)

Cheers,
Max
Post by Gábor Horváth
*** Warning: Linking the shared library libgap.la against the
*** static library /home/ghorvath/work/gap/extern/install/zlib/lib/libz.a is not portable!
/usr/bin/ld: /home/ghorvath/work/gap/extern/install/zlib/lib/libz.a(gzlib.o): relocation R_X86_64_PC32 against symbol `gzrewind' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile.rules:361: recipe for target 'libgap.la' failed
make: *** [libgap.la] Error 1
I use debian stretch x64, and what is more puzzling is that I have another machine, with debian stretch x64, which doesn't produce this error. I am trying to compile the git development version of gap, commit ebe360c59300c.
And of course, after this error, several of the packages won't compile, they complain not finding the appropriate information about gap in the sysinfo.gap file.
What could cause the error?
Thanks,
Gabor
Horvath Gabor
-------------------------------------------------------------------------------
phone: +36 52 512900 / 22798
web: http://www.math.unideb.hu/horvath-gabor
_______________________________________________
Forum mailing list
https://mail.gap-system.org/mailman/listinfo/forum
Loading...