Part Number: AM4376
I need to support openssl version 1.1.0 on a target using the TI IDK and I have updated my default-version.inc to include openssl version 1.1.0 as follows:
PREFERRED_VERSION_openssl = "1.1.%"
PREFERRED_VERSION_openssl-native = "1.1.%"
PREFERRED_VERSION_nativesdk-openssl = "1.1.%"
When I try to bitbake -f openssl I get the following error:
WARNING: /home/dev/linaro/tisdk/sources/oe-core/meta/recipes-connectivity/openssl/openssl_1.1.0h.bb.do_build is tainted from a forced run | ETA: 0:00:01
Initialising tasks: 100% |########################################################################################################################| Time: 0:00:02
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: openssl-native-1.1.0h-r0.arago0 do_patch: Command Error: 'quilt --quiltrc /home/dev/linaro/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/openssl-native/1.1.0h-r0.arago0/recipe-sysroot-native/etc/quiltrc push' exited with 0 Output:
Applying patch 0001-Take-linking-flags-from-LDFLAGS-env-var.patch
can't find file to patch at input line 19
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 08face4353d80111973aba9c1304c92158cfad0e Mon Sep 17 00:00:00 2001
|From: Alexander Kanavin <alex.kanavin@gmail.com>
|Date: Tue, 28 Mar 2017 16:40:12 +0300
|Subject: [PATCH] Take linking flags from LDFLAGS env var
|
|This fixes "No GNU_HASH in the elf binary" issues.
|
|Upstream-Status: Inappropriate [oe-core specific]
|Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|---
| Configurations/unix-Makefile.tmpl | 2 +-
| Configure | 2 +-
| 2 files changed, 2 insertions(+), 2 deletions(-)
|
|diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
|index c029817..43b769b 100644
|--- a/Configurations/unix-Makefile.tmpl
|+++ b/Configurations/unix-Makefile.tmpl
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 32
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/Configure b/Configure
|index aee7cc3..274d236 100755
|--- a/Configure
|+++ b/Configure
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
Patch 0001-Take-linking-flags-from-LDFLAGS-env-var.patch does not apply (enforce with -f)
ERROR: openssl-native-1.1.0h-r0.arago0 do_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/dev/linaro/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/openssl-native/1.1.0h-r0.arago0/temp/log.do_patch.30376
ERROR: Task (virtual:native:/home/dev/linaro/tisdk/sources/oe-core/meta/recipes-connectivity/openssl/openssl_1.1.0h.bb:do_patch) failed with exit code '1'
ERROR: openssl-1.1.0h-r0.arago0 do_patch: Command Error: 'quilt --quiltrc /home/dev/linaro/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.1.0h-r0.arago0/recipe-sysroot-native/etc/quiltrc push' exited with 0 Output:
Applying patch 0001-cryptodev-Fix-issue-with-signature-generation.patch
patching file crypto/engine/eng_cryptodev.c
Hunk #1 succeeded at 11 (offset 9 lines).
Hunk #2 succeeded at 88 (offset 15 lines).
Hunk #3 succeeded at 216 (offset 27 lines).
Hunk #4 succeeded at 227 (offset 27 lines).
Hunk #5 succeeded at 243 (offset 27 lines).
Hunk #6 succeeded at 326 (offset 27 lines).
Hunk #7 succeeded at 366 (offset 27 lines).
Hunk #8 FAILED at 437.
Hunk #9 FAILED at 496.
Hunk #10 succeeded at 898 with fuzz 1 (offset 136 lines).
Hunk #11 FAILED at 772.
Hunk #12 FAILED at 780.
Hunk #13 FAILED at 797.
Hunk #14 succeeded at 944 with fuzz 1 (offset 137 lines).
Hunk #15 succeeded at 969 (offset 138 lines).
Hunk #16 succeeded at 985 with fuzz 1 (offset 138 lines).
Hunk #17 succeeded at 998 (offset 138 lines).
Hunk #18 succeeded at 1009 with fuzz 2 (offset 138 lines).
Hunk #19 FAILED at 922.
Hunk #20 FAILED at 948.
Hunk #21 succeeded at 1153 with fuzz 2 (offset 160 lines).
Hunk #22 succeeded at 1238 with fuzz 2 (offset 203 lines).
Hunk #23 succeeded at 1506 with fuzz 2 (offset 216 lines).
Hunk #24 succeeded at 1553 with fuzz 2 (offset 223 lines).
Hunk #25 succeeded at 1629 (offset 218 lines).
Hunk #26 FAILED at 1484.
8 out of 26 hunks FAILED -- rejects in file crypto/engine/eng_cryptodev.c
Patch 0001-cryptodev-Fix-issue-with-signature-generation.patch does not apply (enforce with -f)
ERROR: openssl-1.1.0h-r0.arago0 do_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/dev/linaro/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.1.0h-r0.arago0/temp/log.do_patch.30377
ERROR: Task (/home/dev/linaro/tisdk/sources/oe-core/meta/recipes-connectivity/openssl/openssl_1.1.0h.bb:do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 570 tasks of which 568 didn't need to be rerun and 2 failed.
Summary: 2 tasks failed:
virtual:native:/home/dev/linaro/tisdk/sources/oe-core/meta/recipes-connectivity/openssl/openssl_1.1.0h.bb:do_patch
/home/dev/linaro/tisdk/sources/oe-core/meta/recipes-connectivity/openssl/openssl_1.1.0h.bb:do_patch
Summary: There were 3 WARNING messages shown.
Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
dev@dev-vbox:~/linaro/tisdk/build$
The reference error log has this error:
ERROR: Command Error: 'quilt --quiltrc /home/dev/linaro/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/openssl-native/1.1.0h-r0.arago0/recipe-sysroot-native/etc/quiltrc push' exited with 0 Output:
Applying patch 0001-Take-linking-flags-from-LDFLAGS-env-var.patch
can't find file to patch at input line 19
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 08face4353d80111973aba9c1304c92158cfad0e Mon Sep 17 00:00:00 2001
|From: Alexander Kanavin <alex.kanavin@gmail.com>
|Date: Tue, 28 Mar 2017 16:40:12 +0300
|Subject: [PATCH] Take linking flags from LDFLAGS env var
|
|This fixes "No GNU_HASH in the elf binary" issues.
|
|Upstream-Status: Inappropriate [oe-core specific]
|Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|---
| Configurations/unix-Makefile.tmpl | 2 +-
Any Idea what I am missing?
Thanks in advance,
Rob