html5 apps failing to build with "icu error"

Activity

Show:

Walt Miner December 18, 2023 at 3:27 PM

Close for QQ M2

Jan-Simon Moeller November 28, 2023 at 9:32 PM

Jan-Simon Moeller November 28, 2023 at 1:19 PM

Update: Upstream YP commit

https://git.yoctoproject.org/poky/commit/meta/recipes-support/icu?id=754866f32bfc1e3986199b353f037536f326ae77

 

disabled the .dat file generation due to issues in the autobuilder. But this did break node apparently.

 

Experiment is now:

Jan-Simon Moeller November 24, 2023 at 2:43 PM
Edited

I can confirm that this reproduces in a ubuntu 18.04 chroot environment.

Steps:

a) debootstrap minimal env, add full ubuntu sources.list , apt-get dist-upgrade, install yocto dependencies but no other dependencies.

b) then build master as usual.

 

A manual build leads to this log:

 

Actually it is already plain "npm" as even 'npm --help' fails:

 

strace:

 

npm is started from the npm-native or node-npm-native package.

 

icu is read-in from:

and

So esentially it must be icu-native (vers 70).  The ubuntu 18.04 is older ... iirc icu60 .

 

So diagnosis so far:

we do read the -native build for npm, we do read the -native icu , both built with YP. still we do fail.

 

The call to icu is actually in node already (npm calls node internally).

 

Well, there is no ".dat" file anywhere in recipe-sysroots (not for target and not for native).

 

Our node version is configured to use "system-icu" aka the one in the system (or -native sysroot).

But our build of icu-native does not ship a .dat file (target won't either).

So there is a mismatch.

 

Now we can compile node with --with-intl=none and yes, it will solve this one, but then webpack fails due to exactly this.

Catch-22 right now. Need to see what we can do.

Jan-Simon Moeller November 23, 2023 at 1:45 PM

Will repro in chroot env (ubuntu 18.04) first and give details.

Fixed

Details

Assignee

Reporter

Fix versions

Labels

Affects versions

Priority

Created November 23, 2023 at 1:04 PM
Updated April 29, 2024 at 3:39 PM
Resolved December 15, 2023 at 12:57 PM