mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   768k Skylake Problem/Bug (https://www.mersenneforum.org/showthread.php?t=20714)

tha 2016-01-04 21:38

I am currently trying to build a custom version of mprime on my Ubuntu Skylake system.

I got the following errors during compile:
[CODE]
/usr/bin/ld: cannot find -lgssapi_krb5
/usr/bin/ld: cannot find -lkrb5
/usr/bin/ld: cannot find -lk5crypto
[/CODE]

The original list was longer but I was able to figure which dev packages need to be installed to eliminate these error messages. These 3 are a little harder to Google, if anyone knows in which packages they belong I would appreciate any help.


I modified the makefile in the following way, but that was more wild guessing than understanding what I am doing. If anyone wants to comment it, I welcome insight.
[CODE]
# Makefile for Linux 64-bit mprime
#
# Ugh, different linux variants require different makefiles.
# The current makefile is for CentOS 5.10. We prefer to link against
# older Linux versions because linking on the latest, greatest version
# will create an mprime executable that will not run on older
# Linux versions because of glibc incompatibilites.
#
# Some linux versions require some of the variations below:
# "export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig"
# CFLAGS = -I.. -I../gwnum -DX86_64 -O2 -Wno-unused-result
# LFLAGS = -Wl,-M
# LIBS = ../gwnum/gwnum.a ../gwnum/gwnum.ld -lm -lpthread -Wl,-Bstatic $(shell pkg-config --static --libs libcurl) -lstdc++ -Wl,-Bdynamic -ldl

CC = gcc
# CFLAGS = -I.. -I../gwnum -I/usr/local/include -DX86_64 -O2
CFLAGS = -I.. -I../gwnum -DX86_64 -O2 -Wno-unused-result

CPP = g++
CPPFLAGS = -I.. -I../gwnum -DX86_64 -O2

# LFLAGS = -Wl,-M -Wl,-L/usr/local/lib
# LIBS = ../gwnum/gwnum.a ../gwnum/gwnum.ld -lm -lpthread -Wl,-Bstatic -lcurl -Wl,-Bdynamic -lrt -lstdc++ -ldl

LFLAGS = -Wl,-M
LIBS = ../gwnum/gwnum.a ../gwnum/gwnum.ld -lm -lpthread -Wl,-Bstatic $(shell pkg-config --static --libs libcurl) -lstdc++ -Wl,-Bdynamic -ldl

.
.
.
[/CODE]

Mark Rose 2016-01-04 21:44

[QUOTE=tha;421238]I am currently trying to build a custom version of mprime on my Ubuntu Skylake system.

I got the following errors during compile:
[CODE]
/usr/bin/ld: cannot find -lgssapi_krb5
/usr/bin/ld: cannot find -lkrb5
/usr/bin/ld: cannot find -lk5crypto
[/CODE]

The original list was longer but I was able to figure which dev packages need to be installed to eliminate these error messages. These 3 are a little harder to Google, if anyone knows in which packages they belong I would appreciate any help.
[/quote]

Try sudo apt-get install libkrb5-dev . Some quick Googling suggests that's the answer.

chalsall 2016-01-04 21:49

[QUOTE=tha;421238]I am currently trying to build a custom version of mprime on my Ubuntu Skylake system.[/QUOTE]

Did you take the advise given, and run the torture test on your kit?

I will give you that it's really cool that you got an error on a regular test. Reproducibility is questionable, and errors are wonderful.

tha 2016-01-04 22:02

[QUOTE=Mark Rose;421239]

Try sudo apt-get install libkrb5-dev . Some quick Googling suggests that's the answer.[/QUOTE]

That was the one I tried first, and actually I am still amazed it doesn't work. That package is installed.

tha 2016-01-04 22:04

[QUOTE=chalsall;421241]Did you take the advise given, and run the torture test on your kit?

I will give you that it's really cool that you got an error on a regular test. Reproducibility is questionable, and errors are wonderful.[/QUOTE]

No, not yet. I have a couple of other tests that I want to run first. About 12 more hours before the current test completes. I lost some more time trying to compile mprime than i thought beforehand.

chalsall 2016-01-04 22:10

[QUOTE=tha;421245]No, not yet. I have a couple of other tests that I want to run first. About 12 more hours before the current test completes. I lost some more time trying to compile mprime than i thought beforehand.[/QUOTE]

Always trust yourself more than others.

Always trust that others are smarter than yourself.

You will find that laughter comes to you naturally when you realize that most are smarter than you are.... :smile:

science_man_88 2016-01-04 23:06

[QUOTE=tha;421243]That was the one I tried first, and actually I am still amazed it doesn't work. That package is installed.[/QUOTE]

[code]I have problems compiling with my unofficial and unsupported multilib setup.
If you are using multilib packages from somewhere and also have some 32bit packages installed, then you might run into problems with the build process trying to link 32bit libraries instead of 64bit libraries. If this occurs, it can probably be solved by placing the following line:
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
after the lines for CFLAGS and CXXFLAGS passed to the configure script. In other words, make it look something like this:
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
./configure \
Beyond that, you are on your own. This is an unsupported setup.[/code]

for the last one at least suggested on linuxquestions.

Madpoo 2016-01-05 00:49

[QUOTE=chalsall;421247]Always trust yourself more than others.

Always trust that others are smarter than yourself.

You will find that laughter comes to you naturally when you realize that most are smarter than you are.... :smile:[/QUOTE]

And remember that half the people you meet have below average intelligence. :smile:

tha 2016-01-05 09:53

Find the results of the second run below added to the previous results. The asterisks and equal signs have been added by hand and indicate whether the results match the database and the previous result.

[CODE]
[Sat Jan 2 18:39:23 2016]
M14942437 is not prime. Res64: 683A0DFFC5827CD8. We8: E57106A7,7379210,00000000
M14942267 is not prime. Res64: C35562BC4F3511F3. We8: D8A74C7B,2423514,00000000
M14942209 is not prime. Res64: 8587C9937E3BED22. We8: CDAD4A41,7713418,00000000
M14942293 is not prime. Res64: 035EFC95F88CFC27. We8: 36084309,4746867,00000000

[Sun Jan 3 22:02:18 2016]
Iteration: 14329935/14942209, ERROR: FFT data has been zeroed!
Possible hardware failure, consult the readme.txt file.
Continuing from last save file.

[Sun Jan 3 22:26:02 2016]
* M14942267 is not prime. Res64: D20C84656405F3FB. We8: FCFDD819,14910347,00000000
= M14942539 is not prime. Res64: 0A930E56A9284971. We8: 7FE55A2A,1188977,00000000
* M14942437 is not prime. Res64: 136153185F4D524F. We8: B81CE272,9576909,00000000
[Sun Jan 3 22:37:01 2016]
* M14942497 is not prime. Res64: 80BD5A064693F1C0. We8: 0CAD30A7,2607443,00000000
= M14942293 is not prime. Res64: 035EFC95F88CFC27. We8: 36502AEF,8394253,00000000
* M14942567 is not prime. Res64: D233F12AC3781E04. We8: 59875C25,3894081,00000000
[Sun Jan 3 22:42:28 2016]
* M14942563 is not prime. Res64: 6815BC39FCD7650F. We8: A94AFB88,2473090,00000000
[Sun Jan 3 22:55:12 2016]
* M14942209 is not prime. Res64: 0AA69D2EA9100E22. We8: 7D077832,14397436,00010000

[Tue Jan 5 10:23:11 2016]
** M14942437 is not prime. Res64: 93143F0CBBAD2FA0. We8: 844CE773,5198729,00000000
== M14942539 is not prime. Res64: 0A930E56A9284971. We8: 7F956974,128927,00000000
** M14942497 is not prime. Res64: CEE4728C3572D92D. We8: CF2E680E,10682871,00000000
=* M14942293 is not prime. Res64: 5F610C0DD3EBDF8B. We8: F9C61BE7,11359273,00000000
[Tue Jan 5 10:30:06 2016]
** M14942267 is not prime. Res64: 493F577EC048F8EF. We8: C3F1DC26,7450471,00000000
** M14942567 is not prime. Res64: 4C77352E05C4856F. We8: 9E995A4B,12435812,00000000
** M14942563 is not prime. Res64: 024A64B503B8470C. We8: CA1DC7AE,4404779,00000000
[Tue Jan 5 10:35:49 2016]
** M14942209 is not prime. Res64: 17C3E50DD9AA888D. We8: 386CCC42,9077154,00000000
[/CODE]

tha 2016-01-05 11:03

2 Attachment(s)
One more way to create errors, see the attached text file, line ending for either windows or Linux.

I first tried to run 8M exponents, which went fine. Then started to work on 9M and ran into troubles.

tha 2016-01-05 11:24

[QUOTE=tha;421297]One more way to create errors, see the attached text file, line ending for either windows or Linux.

I first tried to run 8M exponents, which went fine. Then started to work on 9M and ran into troubles.[/QUOTE]


This seems to me to be not related to the Skylake bug of this thread, but rather mprime not handling the chances in the worktodo file well under specific circumstances. It continuous at an iteration it shouldn't even if mprime is stopped (option 5 - exit) and restarted (./mprime -m) and the files saved by mprime are deleted in between.

Ah, I now see. mprime added the FFT2=400K to the worktodo file, I did not notice that and when I changed the 8M exponents into 9M exponents I did not take it away.

This small case closed.


All times are UTC. The time now is 23:23.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.