LibreELEC.tv icon indicating copy to clipboard operation
LibreELEC.tv copied to clipboard

[BUILD][ERROR] PCRE2 error when building RPi4 image on Ubuntu 20.04 aarch64

Open pretoriano80 opened this issue 1 year ago • 11 comments

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

78.log

pretoriano80 avatar Aug 10 '22 19:08 pretoriano80

Can you please try adding ncurses to the depends

https://github.com/LibreELEC/LibreELEC.tv/blob/16f075c66f0c9c6406ba0304c26defa6b5579e17/packages/devel/pcre2/package.mk#L11

heitbaum avatar Aug 10 '22 21:08 heitbaum

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.

pretoriano80 avatar Aug 11 '22 06:08 pretoriano80

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

pretoriano80 avatar Aug 11 '22 06:08 pretoriano80

Nope, pcre2:host still fails...

pretoriano80 avatar Aug 11 '22 07:08 pretoriano80

Here are the logs after adding PKG_DEPENDS_TARGET="toolchain ncurses" CMakeOutput.log CMakeError.log 232.log

pretoriano80 avatar Aug 11 '22 07:08 pretoriano80

@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 avatar Aug 11 '22 19:08 pretoriano80

@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?

SupervisedThinking avatar Aug 11 '22 22:08 SupervisedThinking

@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

heitbaum avatar Aug 12 '22 00:08 heitbaum

@SupervisedThinking with your host opts and @heitbaum PR now both host and target are building without errors .

pretoriano80 avatar Aug 12 '22 04:08 pretoriano80

I closed it by mistake .

pretoriano80 avatar Aug 12 '22 05:08 pretoriano80

Just to double check ,I've done another distclean &build image,it's all good and everything compiled just fine.

pretoriano80 avatar Aug 12 '22 08:08 pretoriano80