Cobalt 24 LTS - crashpad_handler build issue

111 views
Skip to first unread message

ramasr...@gmail.com

unread,
Sep 21, 2023, 5:12:29 PM9/21/23
to cobalt-dev
Hi ,

The 24.10.lts build is failing for crashpad_handler , loader_app is OK.

ninja: error: unknown target 'crashpad_handler'

What can be wrong ?

Thanks,
sri

Holden Warriner

unread,
Sep 26, 2023, 1:06:59 PM9/26/23
to cobalt-dev
Hi Sri,

Starting in 24 LTS crashpad handler must be built in a different way. Please see the instructions at https://github.com/youtube/cobalt/blob/main/starboard/doc/evergreen/cobalt_evergreen_overview.md#building-cobalt-evergreen-components.

To summarize, you'll need to define a new "native_target" toolchain in the port, and the ninja build target should now be `native_target/crashpad_handler`.

Thanks,
Holden

ramasr...@gmail.com

unread,
Sep 26, 2023, 5:43:53 PM9/26/23
to cobalt-dev
Thanks you Holden. Somehow the build worked for the previous RC releases of cobalt 24 , by commenting out  crashpad "native_target" dependencies .

Added native target support to toolchain/BUILD.gn ,  This is causing Boring SSL native build failure..

that error is fixed by setting "asm_target_arch" . 

  toolchain_args = {
    current_os = "linux"
    asm_target_arch = "arm"
    is_starboard = false
    is_native_target_build = true
    if(_refsw_arch == "aarch64-linux") {
      current_cpu = "arm64"
    } else if(_refsw_arch == "arm-linux") {
      current_cpu = "arm"
    }
    is_clang = false
  }

But still crahpad_handler error is seen

______
ninja -C out/bt_arm_gold loader_app crashpad_handler
ninja: Entering directory `out/bt-arms_gold'

ninja: error: unknown target 'crashpad_handler'

Thanks,
Sri

ramasr...@gmail.com

unread,
Sep 26, 2023, 5:57:04 PM9/26/23
to cobalt-dev
Sorry , forgot to set  native_target/crashpad_handler . It is fixed now. 

It seems setting native_target requires its own set of parameters . Many other build errors are seen . somehow it is looking for clang++ ,  even with is_clang is set to false.

I am not clear the need of native_target to start with. loader_app, crashpad handler both need to run on the target anyway. And BUILD.gn of crashpad decides not to depend on starboard.

Thanks,
Srini

ramasr...@gmail.com

unread,
Sep 26, 2023, 6:32:18 PM9/26/23
to cobalt-dev
Hi Holden,

downloading newer version of clang fixed some errors. . Crash pad build is failing because of many unresolved symbols from boring ssl.  It seems more changes are required for crashpad native target build.  can a platform not use native target build like is the case with cobalt 23 ?

Thanks,
Sri

ramasr...@gmail.com

unread,
Sep 26, 2023, 9:45:26 PM9/26/23
to cobalt-dev
It is fixed. Have to check if it runs OK.

Thanks,
Sri

Reply all
Reply to author
Forward
0 new messages