Skip to content

HelloWorld console app build failed on ppc64le with .NET8 Preview3 #84771

@Sapana-Khemkar

Description

@Sapana-Khemkar

Description

HelloWorld console app build failed on ppc64le with .NET8 Preview3 with assert as below

MSBuild version 17.6.0-preview-23174-01+e7de13307 for .NET
* Assertion at /root/sapana/dotnet-s390x/runtime/src/mono/mono/metadata/assembly.c:1084, condition `is_ok (hook_error)' not met, function:mono_assembly_invoke_load_hook_internal, (null) assembly:/home/ubuntu/dotnet-ppc64le-v8.0.0-preview-3/.dotnet/shared/Microsoft.NETCore.App/8.0.0-preview.3.23174.8/System.Private.CoreLib.dll type:NullReferenceException member:(null)

Reproduction Steps

Steps to reproduce issue

  1. Cross build .NET8 preview3 on ubuntu18.04 machine and generate tarball for ppc64le
  2. Install it on ppc64le vm using below script
mkdir .dotnet
DOTNET_FILE=dotnet-sdk-8.0.100-preview.3.23178.7-linux-ppc64le.tar.gz
export DOTNET_ROOT=$(pwd)/.dotnet
tar zxf "$DOTNET_FILE" -C "$DOTNET_ROOT"
export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
  1. Output of dotnet --info is as below
ubuntu@dotnet2--2:~$ dotnet --info
.NET SDK:
 Version:   8.0.100-preview.3.23178.7
 Commit:    e300b0e1e6

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  20.04
 OS Platform: Linux
 RID:         linux-ppc64le
 Base Path:   /home/ubuntu/dotnet-ppc64le-v8.0.0-preview-3/.dotnet/sdk/8.0.100-preview.3.23178.7/

.NET workloads installed:
There are no installed workloads to display.

Host:
  Version:      8.0.0-preview.3.23174.8
  Architecture: ppc64le
  Commit:       47bad717bd

.NET SDKs installed:
  8.0.100-preview.3.23178.7 [/home/ubuntu/dotnet-ppc64le-v8.0.0-preview-3/.dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.0-preview.3.23177.8 [/home/ubuntu/dotnet-ppc64le-v8.0.0-preview-3/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.0-preview.3.23174.8 [/home/ubuntu/dotnet-ppc64le-v8.0.0-preview-3/.dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  DOTNET_ROOT       [/home/ubuntu/dotnet-ppc64le-v8.0.0-preview-3/.dotnet/]

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download
  1. Create sample console app
    dotnet new console -o HelloWorld
  2. Build HelloWorld
cd HelloWorld
dotnet build

Expected behavior

Build HelloWorld console app sucessfully

Actual behavior

Build failed with error

build.log

Regression?

No response

Known Workarounds

None

Configuration

  • Which version of .NET is the code running on?

8.0.100-preview.3.23178.7

  • What OS and version, and what distro if applicable?
ubuntu@dotnet2--2:~/HelloWorld$ uname -a
Linux dotnet2--2 5.4.0-125-generic #141-Ubuntu SMP Wed Aug 10 13:41:48 UTC 2022 ppc64le ppc64le ppc64le GNU/Linux

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions