Re: Compiling with Scons on Mac arm64
Bill Deegan <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <CAEyG4CFC61huWv5hOb26uf1R-wBKGOsqYvvZDhytxEbkxpAVSw@mail.gmail.com> |
Paola, We need more information. Which version of Python, SCons, xcode? Can you provide a toy project in github to reproduce this issue? Then we can see directly your SCons usage and help resolve the issue. -Bill On Tue, Feb 1, 2022 at 9:36 AM Paola Ferrario <[email protected]> wrote: > Hi all! > I’m having a problem compiling my C++ application using Scons on a Mac > with M1 processor. > Specifically, it seems that it tries to compile for a x86_64 architecture, > since I see a lot of warnings such as > "warning: ignoring file ..., building for macOS-x86_64 but attempting to > link with file built for macOS-arm64” > when linking to third-party libraries, correctly compiled in the arm64 > architecture. After the warnings, the compilation ends with error > “ld: symbol(s) not found for architecture x86_64” > > I was wondering if there is a flag I can pass to the compiler to specify > the architecture. I’ve tried with > > -arch=arm64 > > but it doesn’t work. > What should I do? > > Thank you and best regards > > Paola > _______________________________________________ > Scons-users mailing list > [email protected] > https://pairlist4.pair.net/mailman/listinfo/scons-users > _______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users