Bug 13155 - [2.7 M2 RC1] nettle ptest failure
Summary: [2.7 M2 RC1] nettle ptest failure
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.7
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.7.1
Assignee: Armin Kuster
QA Contact:
URL:
Whiteboard: with backport
: 13193 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-01-29 08:56 UTC by Sudhir Sharma
Modified: 2019-06-20 14:54 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Full log for 2.7 m2 rc1 (6.74 MB, text/plain)
2019-01-29 08:56 UTC, Sudhir Sharma
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sudhir Sharma 2019-01-29 08:56:40 UTC
Created attachment 4426 [details]
Full log for 2.7 m2 rc1

On running the ptest on 2.7 M2 rc1, it is seen that nettle test is getting failed:

----------------------------------------------------------------------------Package Name:  nettle
----------------------------------------------------------------------------PASS: nettle-pbkdf2-test

+FAIL: nettle-pbkdf2-test

----------------------------------------------------------------------------Total number of test cases passing in Previous release but failing in Current release:  1
----------------------------------------------------------------------------

The full log for the ptest is attached for reference.
Comment 1 Ross Burton 2019-01-31 15:44:43 UTC
Note that the log doesn't have anything useful in beyond "failed".
Comment 2 Armin Kuster 2019-02-27 14:58:49 UTC
*** Bug 13193 has been marked as a duplicate of this bug. ***
Comment 3 Armin Kuster 2019-03-01 15:22:04 UTC
on h/w

PASS: nettle-pbkdf2-test
PASS: pbkdf2-test


so what MACHINE
Comment 4 Armin Kuster 2019-03-02 17:18:55 UTC
I am seeing this thou:

PASS: des3-test
dlopen failed: /usr/lib/libnettle.so: cannot open shared object file: No such file or directory
./run-ptest: line 8:  2273 Aborted                 "./$f"
FAIL: dlopen-test


and


PASS: sha512-test
nm: '../libnettle.a': No such file
nm: '../libnettle.a': No such file
PASS: symbols-test
Comment 5 Armin Kuster 2019-03-02 17:32:02 UTC
I can not reproduce this.

Please provide with more info so I can.
Comment 6 Ross Burton 2019-03-03 12:32:03 UTC
> dlopen failed: /usr/lib/libnettle.so: cannot open shared object file:
> No such file or directory
> FAIL: dlopen-test

The test is trying to open the unversioned name which will exist during a build, but not if just nettle and nettle-ptest is installed.  The test needs to be patched to use the versioned form.  Arguably, this is upstreamable too.

> nm: '../libnettle.a': No such file
> nm: '../libnettle.a': No such file

Poky disables static libraries, so that won't work.
Comment 7 Armin Kuster 2019-03-03 15:20:52 UTC
(In reply to comment #6)
> > dlopen failed: /usr/lib/libnettle.so: cannot open shared object file:
> > No such file or directory
> > FAIL: dlopen-test
> 
> The test is trying to open the unversioned name which will exist during a
> build, but not if just nettle and nettle-ptest is installed.  The test needs
> to be patched to use the versioned form.  Arguably, this is upstreamable too.

the un-versioned lib is in nettle-dev which is just a symlink to the versioned ones.

> 
> > nm: '../libnettle.a': No such file
> > nm: '../libnettle.a': No such file
> 
> Poky disables static libraries, so that won't work.
those are in nettle-static

this is why I would like to how the test was run( image, MACHINE).

I did find this patch which is related to the test
https://git.lysator.liu.se/nettle/nettle/commit/350d87626235a20ec299ea851ef0b81218f1a5ec
Comment 9 Armin Kuster 2019-04-17 04:08:34 UTC
should be in warrior.

please verify
Comment 11 Armin Kuster 2019-05-16 20:19:40 UTC
nettle is passing in current master. will need to backport to warrior etc