Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add support for macOS

Aperta
#350 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp, macos

Direzione di ricerca

Inizia esaminando il branch dev/jachocho/macos collegato nell’issue e riproduci i fallimenti di clang/linker e objcopy descritti. Traccia quindi il modo in cui vengono compilate e pacchettizzate le librerie esistenti di CLR Instrumentation Engine, poi determina il percorso di build compatibile con macOS. Il lavoro è completato quando la copertura del codice dinamica funziona su macOS e i binari macOS richiesti sono inclusi in NuGet.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

task

To support dynamic code coverage on macOS we need nuget with CLR IE macOS binaries.

I was trying to build CLR IE on macOS but it looks like it's not so easy. I was trying to build it with clang 11. I saw some issues with stringstream but after commenting out some stringstream usages I was able to reach linking. Linking is failing with such issues:

ld: warning: ignoring file ../unix/src/liblinux_pal.a, building for macOS-x86_64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file ../unix/src/atl/libatl.a, building for macOS-x86_64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file ../InstrumentationEngine.Api/libInstrumentationEngine.Api.a, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )
ld: warning: ignoring file ../InstrumentationEngine.Lib/libInstrumentationEngine.Lib.a, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )

There are also issues with objcopy in macOS. I've tried 2 versions llvm-objcopy from llvm 11, and gobjcopy from binutils package. In both cases during linking there were issues and redefined library was ignored.

All my changes you can find on branch: https://github.com/jakubch1/CLRInstrumentationEngine/tree/dev/jachocho/macos

Lingua principale
C++
Stelle
105
Fork
53
Merge medio
2g 21h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/CLRInstrumentationEngine

Tutte le issue di microsoft/CLRInstrumentationEngine

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.