LibreELEC.tv
LibreELEC.tv copied to clipboard
[BUILD][ERROR] PCRE2 error when building RPi4 image on Ubuntu 20.04 aarch64
Describe the bug
Build fails due to pcre2 error
Informations
- LE Version: LE11 (16f075c)
- Hardware Platform: RPi4
- Build system: Ubuntu 20.04 aarch64
Log file
Can you please try adding ncurses to the depends
https://github.com/LibreELEC/LibreELEC.tv/blob/16f075c66f0c9c6406ba0304c26defa6b5579e17/packages/devel/pcre2/package.mk#L11
I had to add ncurses to both host and target depends (it failed when i added only to target ).So far it seem to work ,but the build didn't completed yet,so i will let you know when it does.
pcre2 build log -> 130.log
DONE 130 3 install pcre2:target 32.0203 2.8321 117 29.7113 1660197438.6561 1660197468.3674 /home/ubuntu/LibreELEC.tv/build.LibreELEC-RPi4.arm-11.0-devel/.threads/logs/130.log
Nope, pcre2:host still fails...
Here are the logs after adding PKG_DEPENDS_TARGET="toolchain ncurses"
CMakeOutput.log
CMakeError.log
232.log
@heitbaum and @SupervisedThinking I've tried all your suggestions but pcre2:host still fails .
What puzzles me is that if i use PROJECT=RPi DEVICE=RPi4 ARCH=arm scripts/build pcre2
then pcre2 builds just fine.But trying the same with pcre2:host fails.
I tried to reset the master branch,distclean ,etc...no dice.
@pretoriano80 well I guess we need host build opts too 🤦🏻♂️😅
PKG_CMAKE_OPTS_HOST="-DBUILD_SHARED_LIBS=OFF \
-DBUILD_STATIC_LIBS=ON \
-DPCRE2_BUILD_PCRE2_8=ON \
-DPCRE2_BUILD_PCRE2_16=ON \
-DPCRE2_BUILD_PCRE2_32=ON \
-DPCRE2_SUPPORT_JIT=ON \
-DPCRE2_BUILD_TESTS=OFF \
-DPCRE2_SUPPORT_LIBREADLINE=OFF"
What's the result if you add something like this & might add the libedit switch @heitbaum PRed?
@pretoriano80 - can you please check your output on your build host
-- Link pcre2grep with libz ........ : Library not found
-- Link pcre2grep with libbz2 ...... : Library not found
-- Link pcre2test with libeditline . : Library not found
-- Link pcre2test with libreadline . : Library not found
The build on the my Oracle Ampere node (within the docker) for both :host and :target have the above output.
https://github.com/LibreELEC/LibreELEC.tv/pull/6785#issuecomment-1211847418
@SupervisedThinking with your host opts and @heitbaum PR now both host and target are building without errors .
I closed it by mistake .
Just to double check ,I've done another distclean &build image,it's all good and everything compiled just fine.