Closed Bug 1652032 Opened 4 years ago Closed 4 years ago

Windows arm64 cross compiling using msvc + makefiles fails

Categories

(NSS :: Build, defect, P1)

3.53

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: glogow, Assigned: glogow)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

I'm currently working on cross-compiling LibreOffice from Windows x86_64 to arm64. One of the dependencies is NSS / NSPR, which fails to build in my setup.

I also had a look into the repo, but couldn't find any patch looking like a fix.

Actual results:

Compilation failed.

Expected results:

Compilation works.

This is needed to cross compile on x86_64 cygwin to arm64 using
MSVC compiler.

There are two places, where NSS tries to compile either x86_64
MSVC assembler or GCC aarch64 code, which will fail the build.
And also drop the non-MSVC arch build flags for them.

AFAI could identify, there isn't any armasm64 compatible asm
code in the whole NSS library, so I don't even adapt AS for the
build. The cross-build finishes this way.

Assignee: nobody → glogow
Severity: -- → S3
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P1
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.56

FYI: the NSPR part of the fix is still not merged, so the build will still fail.

(In reply to Jan-Marek Glogowski from comment #4)

FYI: the NSPR part of the fix is still not merged, so the build will still fail.

where is the nspr part?

A separate nspr bug report should be filed with the suggested change to nspr. please CC me.

Attachment #9162830 - Attachment description: Bug 1652032 Allow cross-compiling to cygwin → Bug 1656187 Allow cross-compiling to cygwin

Comment on attachment 9162830 [details]
Bug 1656187 Allow cross-compiling to cygwin

Revision D83118 was moved to bug 1656187. Setting attachment 9162830 [details] to obsolete.

Attachment #9162830 - Attachment is obsolete: true
Depends on: 1656187

Comment on attachment 9162857 [details]
Bug 1652032 Disable all freebl assembler code for MSVC arm64

Revision D83137 was moved to bug 1655105. Setting attachment 9162857 [details] to obsolete.

Attachment #9162857 - Attachment is obsolete: true
Attachment #9162857 - Attachment is obsolete: false
Regressions: 1662833
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: