Hi Dario, Do you really mean to be building for ARM?
Another thing to check is your PKG_CONFIG set up. Here is mine: > printenv | grep pkgconfig PKG_CONFIG_PATH=.:/usr/local/lib/pkgconfig:/opt/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig If you want to try my macx-clang make-spec, here it is: https://ccrma.stanford.edu/~jos/tgz/macx-clang.tgz I am on an iMac Pro, latest Big Sur update. - Julius On Tue, Feb 16, 2021 at 4:45 AM Dario Sanfilippo <sanfilippo.da...@gmail.com> wrote: > Following suggestion by Stéphane, I have removed the -march=native flag > and I managed to build a faust2caqt app, but the app instantly crashes with > the following error when opening it: > > Process: test_adaa [6556] > Path: /Users/USER/*/test_adaa.app/Contents/MacOS/test_adaa > Identifier: com.yourcompany.test-adaa > Version: 1.0.0 (1.0.0) > Code Type: ARM-64 (Native) > Parent Process: ??? [1] > Responsible: test_adaa [6556] > User ID: 501 > > Date/Time: 2021-02-16 13:42:28.486 +0100 > OS Version: macOS 11.2.1 (20D74) > Report Version: 12 > Anonymous UUID: 4A161F82-9B5B-4297-A5A3-82B4C2586876 > > Sleep/Wake UUID: 4B4B7471-D0EE-465C-BA66-8283EBC78547 > > Time Awake Since Boot: 34000 seconds > Time Since Wake: 1700 seconds > > System Integrity Protection: enabled > > Crashed Thread: 0 > > Exception Type: EXC_BAD_ACCESS (Code Signature Invalid) > Exception Codes: 0x0000000000000032, 0x000000010415c000 > Exception Note: EXC_CORPSE_NOTIFY > > Termination Reason: Namespace CODESIGNING, Code 0x2 > > kernel messages: > > VM Regions Near 0x10415c000: > __LINKEDIT 10414c000-10415c000 [ 64K] r--/r-- > SM=COW /Users/*/test_adaa.app/Contents/MacOS/test_adaa > --> mapped file 10415c000-104160000 [ 16K] r--/r-x > SM=PRV Object_id=c7c4649 > __TEXT 1042ec000-104368000 [ 496K] r-x/r-x > SM=COW /usr/lib/dyld > > Application Specific Information: > dyld: launch, loading dependent libraries > > @executable_path/../Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport > > Thread 0 Crashed: > 0 dyld 0x0000000104348780 bcmp + 16 > 1 dyld 0x0000000104309408 > ImageLoaderMachO::validateFirstPages(linkedit_data_command const*, int, > unsigned char const*, unsigned long, long long, ImageLoader::LinkContext > const&) + 136 > 2 dyld 0x00000001043103b8 > ImageLoaderMachOCompressed::instantiateFromFile(char const*, int, unsigned > char const*, unsigned long, unsigned long long, unsigned long long, stat > const&, unsigned int, unsigned int, linkedit_data_command const*, > encryption_info_command const*, ImageLoader::LinkContext const&) + 268 > 3 dyld 0x0000000104307ffc > ImageLoaderMachO::instantiateFromFile(char const*, int, unsigned char > const*, unsigned long, unsigned long long, unsigned long long, stat const&, > ImageLoader::LinkContext const&) + 172 > 4 dyld 0x00000001042f0290 > dyld::loadPhase6(int, stat const&, char const*, dyld::LoadContext const&) + > 668 > 5 dyld 0x00000001042f8dd8 > dyld::loadPhase5(char const*, char const*, dyld::LoadContext const&, > unsigned int&, std::__1::vector<char const*, std::__1::allocator<char > const*> >*) + 1328 > 6 dyld 0x00000001042f8824 > dyld::loadPhase4(char const*, char const*, dyld::LoadContext const&, > unsigned int&, std::__1::vector<char const*, std::__1::allocator<char > const*> >*) + 208 > 7 dyld 0x00000001042f833c > dyld::loadPhase3(char const*, char const*, dyld::LoadContext const&, > unsigned int&, std::__1::vector<char const*, std::__1::allocator<char > const*> >*) + 600 > 8 dyld 0x00000001042f7cf0 > dyld::loadPhase1(char const*, char const*, dyld::LoadContext const&, > unsigned int&, std::__1::vector<char const*, std::__1::allocator<char > const*> >*) + 212 > 9 dyld 0x00000001042efe0c > dyld::loadPhase0(char const*, char const*, dyld::LoadContext const&, > unsigned int&, std::__1::vector<char const*, std::__1::allocator<char > const*> >*) + 468 > 10 dyld 0x00000001042ef9b0 dyld::load(char > const*, dyld::LoadContext const&, unsigned int&) + 196 > 11 dyld 0x00000001042f977c > dyld::libraryLocator(char const*, bool, char const*, > ImageLoader::RPathChain const*, unsigned int&) + 56 > 12 dyld 0x00000001043039d4 > ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, > ImageLoader::RPathChain const&, char const*) + 344 > 13 dyld 0x00000001043021ac > ImageLoader::link(ImageLoader::LinkContext const&, bool, bool, bool, > ImageLoader::RPathChain const&, char const*) + 160 > 14 dyld 0x00000001042f25f4 > dyld::link(ImageLoader*, bool, bool, ImageLoader::RPathChain const&, > unsigned int) + 328 > 15 dyld 0x00000001042f4928 > dyld::_main(macho_header const*, unsigned long, int, char const**, char > const**, char const**, unsigned long*) + 6764 > 16 dyld 0x00000001042ed258 > dyldbootstrap::start(dyld3::MachOLoaded const*, int, char const**, > dyld3::MachOLoaded const*, unsigned long*) + 476 > 17 dyld 0x00000001042ed038 _dyld_start + 56 > > Thread 0 crashed with ARM Thread State (64-bit): > x0: 0x000000010415c000 x1: 0x000000016bd69780 x2: > 0x0000000000000f80 x3: 0x0000000000040001 > x4: 0x0000000000000003 x5: 0x0000000000000000 x6: > 0x0000000104370280 x7: 0x0000000000000000 > x8: 0x0000000000000000 x9: 0x000000016bd6a1b0 x10: > 0x0000000000000001 x11: 0x0001803000000000 > x12: 0x0000000000000032 x13: 0x0004000000000000 x14: > 0x00000000000506c8 x15: 0x000000016bd6a130 > x16: 0x00000000000000c5 x17: 0x0000000000000000 x18: > 0x0000000000000000 x19: 0x0000000104375bc0 > x20: 0x0000000000000f90 x21: 0x000000016bd69780 x22: > 0x000000010415c000 x23: 0x0000000000000003 > x24: 0x000000016bd6a700 x25: 0x000000016bd71898 x26: > 0x000000016bd71a10 x27: 0x000000016bd69780 > x28: 0x000000000000000e fp: 0x000000016bd69180 lr: > 0x0000000104309408 > sp: 0x000000016bd69140 pc: 0x0000000104348780 cpsr: 0x20000000 > far: 0x000000010415c000 esr: 0x92000007 > > > Binary Images: > 0x10408c000 - 0x1040bffff +com.yourcompany.test-adaa (1.0.0 > - 1.0.0) <556217AE-8A54-39B6-B376-192B54077EF2> > /Users/USER/*/test_adaa.app/Contents/MacOS/test_adaa > 0x1042ec000 - 0x104367fff dyld (832.7.3) > <4AB185B3-DC20-3C03-A193-67C0E6C589D7> /usr/lib/dyld > 0x1856e5000 - 0x185b8efff com.apple.CoreFoundation (6.9 - > 1774.101) <EA76C90A-23ED-3791-8FBC-8292916F0B16> > /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation > 0x186e72000 - 0x187497fff com.apple.audio.CoreAudio (5.0 - > 5.0) <2A4CD49F-AB5D-3155-9889-2A388B4505DE> > /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio > 0x1946c1000 - 0x1946c1fff com.apple.CoreServices (1122.11 - > 1122.11) <197C9565-C878-3E83-9172-E45DA7DF75A2> > /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices > 0x197942000 - 0x197942fff com.apple.audio.units.AudioUnit > (1.14 - 1.14) <B33C2926-C5D2-304A-9CF3-74B951088416> > /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit > 0x19917e000 - 0x1991ebfff com.apple.audio.midi.CoreMIDI > (2.0 - 88) <43789324-312A-35F9-9291-DFA2CA6A5FD6> > /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI > > External Modification Summary: > Calls made by other processes targeting this process: > task_for_pid: 0 > thread_create: 0 > thread_set_state: 0 > Calls made by this process: > task_for_pid: 0 > thread_create: 0 > thread_set_state: 0 > Calls made by all processes on this machine: > task_for_pid: 2724467 > thread_create: 0 > thread_set_state: 0 > > VM Region Summary: > ReadOnly portion of Libraries: Total=491.7M resident=0K(0%) > swapped_out_or_unallocated=491.7M(100%) > Writable regions: Total=8896K written=0K(0%) resident=0K(0%) > swapped_out=0K(0%) unallocated=8896K(100%) > > VIRTUAL REGION > REGION TYPE SIZE COUNT (non-coalesced) > =========== ======= ======= > STACK GUARD 56.0M 1 > Stack 8176K 1 > __AUTH 10K 3 > __AUTH_CONST 1111K 3 > __DATA 802K 7 > __DATA_CONST 2143K 5 > __DATA_DIRTY 32K 2 > __LINKEDIT 479.8M 4 > __OBJC_CONST 30K 3 > __TEXT 11.9M 7 > __UNICODE 588K 1 > mapped file 16K 1 > =========== ======= ======= > TOTAL 560.3M 38 > > Model: MacBookPro17,1, BootROM 6723.81.1, proc 8:4:4 processors, 16 GB, > SMC > Graphics: kHW_AppleM1Item, Apple M1, spdisplays_builtin > Memory Module: lp_ddr4 > AirPort: spairport_wireless_card_type_airport_extreme, wl0: Dec 31 2020 > 21:39:03 version 18.20.222.20.7.8.104 FWID 01-1b2645bc > Bluetooth: Version 8.0.3d9, 3 services, 25 devices, 1 incoming serial ports > Network Service: Wi-Fi, AirPort, en0 > USB Device: USB 3.1 Bus > USB Device: USB 3.1 Bus > Thunderbolt Bus: MacBook Pro, Apple Inc. > Thunderbolt Bus: MacBook Pro, Apple Inc. > > On Tue, 16 Feb 2021 at 10:20, Dario Sanfilippo <sanfilippo.da...@gmail.com> > wrote: > >> Hi, Julius. >> >> I have: >> >> dariosanfilippo@Darios-MBP faustlibraries % which qmake >> >> /opt/homebrew/opt/qt/bin/qmake >> >> dariosanfilippo@Darios-MBP faustlibraries % `which qmake` -v >> >> QMake version 3.1 >> >> Using Qt version 5.15.2 in /opt/homebrew/Cellar/qt/5.15.2/lib >> >> and >> >> dariosanfilippo@Darios-MBP faustlibraries % `which clang` -v >> >> Apple clang version 12.0.0 (clang-1200.0.32.29) >> >> Target: arm64-apple-darwin20.3.0 >> >> Thread model: posix >> InstalledDir: /Library/Developer/CommandLineTools/usr/bin >> >> These are the last few lines before the error: >> >> + faust -i -json -a /usr/local/share/faust/ca-qt.cpp -double >> ./test_adaa.dsp -o faust.hLi9nX/test_adaa/test_adaa_tmp.cpp >> >> + '[' auto = auto ']' >> >> + echo '#define PRESETDIR "/var/tmp/"' >> >> + cat faust.hLi9nX/test_adaa/preset.cpp >> faust.hLi9nX/test_adaa/test_adaa_tmp.cpp >> >> + rm faust.hLi9nX/test_adaa/preset.cpp >> faust.hLi9nX/test_adaa/test_adaa_tmp.cpp >> >> + cd faust.hLi9nX/test_adaa >> >> + qmake -project 'QT += widgets printsupport network' CONFIG+=warn_off >> 'QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9' >> INCLUDEPATH+=/Users/dariosanfilippo/Research/Faust_dev/faustlibraries >> 'INCLUDEPATH+=/usr/local/include /opt/local/include' 'QMAKE_CXXFLAGS= >> -std=c++11 >> -Ofast -march=native -mmacosx-version-min=10.9 -Wno-unused-parameter ' >> QMAKE_INFO_PLIST=/usr/local/share/faust/Info.plist 'LIBS+=-L/usr/local/lib >> -L/usr/local/lib -framework CoreAudio -framework AudioUnit -framework >> CoreServices -framework CoreMIDI -framework CoreFoundation ' >> HEADERS+=/usr/local/include/faust/gui/QTUI.h 'RESOURCES+= >> /usr/local/include/faust/gui/Styles/Grey.qrc' '' '' '' '' '' '' '' '' '' >> >> + qmake -spec macx-clang >> >> Project WARNING: Qt has only been tested with version 10.15 of the >> platform SDK, you're using 11.1. >> >> Project WARNING: This is an unsupported configuration. You may experience >> build issues, and by using >> >> Project WARNING: the 11.1 SDK you are opting in to new features that Qt >> has not been prepared for. >> >> Project WARNING: Please downgrade the SDK you use to build your app to >> version 10.15, or configure >> >> Project WARNING: with CONFIG+=sdk_no_version_check when running qmake to >> silence this warning. >> >> + make >> >> clang: error: the clang compiler does not support '-march=native' >> >> make: *** [test_adaa.o] Error 1 >> + exit >> >> Thanks, >> Dario >> >> >> >> On Tue, 16 Feb 2021 at 01:48, Julius Smith <julius.sm...@gmail.com> >> wrote: >> >>> I've seen that before, and -march=native should be ok. >>> >>> Here is what I have: >>> >>> > `which qmake` -v >>> QMake version 3.1 >>> Using Qt version 5.15.2 in /usr/local/Cellar/qt/5.15.2/lib >>> >>> > `which clang` -v >>> Apple clang version 12.0.0 (clang-1200.0.32.27) >>> Target: x86_64-apple-darwin20.3.0 >>> Thread model: posix >>> InstalledDir: >>> /Devel/Xcode12p2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin >>> >>> How about you? Another thing to do is uncomment the "set -x" line in >>> /usr/local/bin/faust2caqt >>> Then you can follow the script progress. >>> I too get those warning messages, but my clang is fine with -march=native >>> >>> - Julius >>> >>> >>> >>> On Mon, Feb 15, 2021 at 11:27 AM Dario Sanfilippo < >>> sanfilippo.da...@gmail.com> wrote: >>> >>>> Thanks for your help, Julius. >>>> >>>> I linked macx-clang-arm64 as I'm on the M1 chip but now it's this other >>>> issues: >>>> >>>> dariosanfilippo@Darios-MBP faustlibraries % faust2caqt -double >>>> test_adaa.dsp >>>> >>>> Project WARNING: Qt has only been tested with version 10.15 of the >>>> platform SDK, you're using 11.1. >>>> >>>> Project WARNING: This is an unsupported configuration. You may >>>> experience build issues, and by using >>>> >>>> Project WARNING: the 11.1 SDK you are opting in to new features that Qt >>>> has not been prepared for. >>>> >>>> Project WARNING: Please downgrade the SDK you use to build your app to >>>> version 10.15, or configure >>>> >>>> Project WARNING: with CONFIG+=sdk_no_version_check when running qmake >>>> to silence this warning. >>>> >>>> clang: error: the clang compiler does not support '-march=native' >>>> >>>> make: *** [test_adaa.o] Error 1 >>>> >>>> Dario >>>> >>>> >>>> On Mon, 15 Feb 2021 at 20:14, Julius Smith <julius.sm...@gmail.com> >>>> wrote: >>>> >>>>> That looks like the problem. I would cd to that directory and type >>>>> >>>>> sudo ln -s macx-clang-x64 macx-clang >>>>> >>>>> assuming you are on an Intel Mac. >>>>> >>>>> - Julius >>>>> >>>>> On Mon, Feb 15, 2021 at 1:25 AM Dario Sanfilippo < >>>>> sanfilippo.da...@gmail.com> wrote: >>>>> >>>>>> Hi, Julius. >>>>>> >>>>>> I have >>>>>> >>>>>> macx-clang-arm64 >>>>>> >>>>>> macx-clang-x64 >>>>>> >>>>>> in >>>>>> >>>>>> /opt/homebrew/Cellar/qt/5.15.2/mkspecs >>>>>> >>>>>> >>>>>> Shouldn't the first line in my .zshrc refer to this folder too? >>>>>> Should there also be a macx-clang or does Faust need to specify >>>>>> macx-clang-arm64 >>>>>> for these machines? >>>>>> >>>>>> Thanks, >>>>>> Dario >>>>>> >>>>>> >>>>>> On Mon, 15 Feb 2021 at 02:20, Julius Smith <julius.sm...@gmail.com> >>>>>> wrote: >>>>>> >>>>>>> Hi Dario, >>>>>>> >>>>>>> Do you have this?: >>>>>>> >>>>>>> > locate macx-clang >>>>>>> /usr/local/Cellar/qt/5.15.2/mkspecs/macx-clang >>>>>>> >>>>>>> If so, maybe there is a config problem >>>>>>> >>>>>>> faust2caqt is working for me on Big Sur. >>>>>>> >>>>>>> - Julius >>>>>>> >>>>>>> On Sun, Feb 14, 2021 at 12:47 PM Dario Sanfilippo < >>>>>>> sanfilippo.da...@gmail.com> wrote: >>>>>>> >>>>>>>> By the way, these are the lines added to my .zshrc file: >>>>>>>> >>>>>>>> export PATH="/opt/homebrew/opt/qt/bin:$PATH" >>>>>>>> >>>>>>>> export LDFLAGS="-L/opt/homebrew/opt/qt/lib" >>>>>>>> >>>>>>>> export CPPFLAGS="-I/opt/homebrew/opt/qt/include" >>>>>>>> >>>>>>>> export PKG_CONFIG_PATH="/opt/homebrew/opt/qt/lib/pkgconfig" >>>>>>>> >>>>>>>> Thanks, >>>>>>>> Dario >>>>>>>> >>>>>>>> >>>>>>>> On Sun, 14 Feb 2021 at 20:23, Dario Sanfilippo < >>>>>>>> sanfilippo.da...@gmail.com> wrote: >>>>>>>> >>>>>>>>> Hi, Alex and all. >>>>>>>>> >>>>>>>>> I'm trying to have Faust running on OSX 11.2.1, M1 chip, but I'm >>>>>>>>> having a few issues. >>>>>>>>> >>>>>>>>> With faust2caqt, I get the following error: >>>>>>>>> >>>>>>>>> Could not find qmake spec 'macx-clang'. >>>>>>>>> >>>>>>>>> Error processing project file: >>>>>>>>> /Users/dariosanfilippo/Research/Faust_dev/faustlibraries/faust.JD9TVA/test_adaa/ >>>>>>>>> test_adaa.pro >>>>>>>>> >>>>>>>>> make: *** No targets specified and no makefile found. Stop. >>>>>>>>> >>>>>>>>> If I run a "which" on qmake and make, I get this: >>>>>>>>> >>>>>>>>> dariosanfilippo@Darios-MBP ~ % which qmake >>>>>>>>> >>>>>>>>> /opt/homebrew/opt/qt/bin/qmake >>>>>>>>> >>>>>>>>> dariosanfilippo@Darios-MBP ~ % which make >>>>>>>>> /usr/bin/make >>>>>>>>> >>>>>>>>> If I run qmake -v I get: >>>>>>>>> >>>>>>>>> QMake version 3.1 >>>>>>>>> >>>>>>>>> Using Qt version 5.15.2 in /opt/homebrew/Cellar/qt/5.15.2/lib >>>>>>>>> >>>>>>>>> I have also added these lines to my .zshrc as suggested by Brew as >>>>>>>>> the formula is keg-only. >>>>>>>>> >>>>>>>>> With faust2csvplot, I get this error: >>>>>>>>> >>>>>>>>> clang: error: the clang compiler does not support '-march=native' >>>>>>>>> >>>>>>>>> If I run "which" on clang, I get this: >>>>>>>>> >>>>>>>>> /usr/bin/clang >>>>>>>>> >>>>>>>>> And then running clang -v: >>>>>>>>> >>>>>>>>> Apple clang version 12.0.0 (clang-1200.0.32.29) >>>>>>>>> >>>>>>>>> Target: arm64-apple-darwin20.3.0 >>>>>>>>> >>>>>>>>> Thread model: posix >>>>>>>>> InstalledDir: /Library/Developer/CommandLineTools/usr/bin >>>>>>>>> >>>>>>>>> Can anybody help with this? >>>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> Dario >>>>>>>>> >>>>>>>>> >>>>>>>>> On Sun, 24 Jan 2021 at 01:03, <s...@ethnographer.ca> wrote: >>>>>>>>> >>>>>>>>>> I’ve used Faust on my M1 Mac (Big Sur 11.1) without too many >>>>>>>>>> problems apart from having to whitelist modules after exporting them. >>>>>>>>>> Haven’t used RME Babyface. >>>>>>>>>> >>>>>>>>>> – Alex >>>>>>>>>> Le 23 janv. 2021 18:48 -0500, Dario Sanfilippo < >>>>>>>>>> sanfilippo.da...@gmail.com>, a écrit : >>>>>>>>>> >>>>>>>>>> Hello, list. I hope that you're all well. >>>>>>>>>> >>>>>>>>>> Do you have experience with Faust and the hardware/software in >>>>>>>>>> the subject? Anything I should worry about in particular? >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Dr Dario Sanfilippo >>>>>>>>>> http://dariosanfilippo.com >>>>>>>>>> _______________________________________________ >>>>>>>>>> Faudiostream-users mailing list >>>>>>>>>> Faudiostream-users@lists.sourceforge.net >>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/faudiostream-users >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Dr Dario Sanfilippo >>>>>>>>> http://dariosanfilippo.com >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Dr Dario Sanfilippo >>>>>>>> http://dariosanfilippo.com >>>>>>>> _______________________________________________ >>>>>>>> Faudiostream-users mailing list >>>>>>>> Faudiostream-users@lists.sourceforge.net >>>>>>>> https://lists.sourceforge.net/lists/listinfo/faudiostream-users >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> "Anybody who knows all about nothing knows everything" -- Leonard >>>>>>> Susskind >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Dr Dario Sanfilippo >>>>>> http://dariosanfilippo.com >>>>>> >>>>> >>>>> >>>>> -- >>>>> "Anybody who knows all about nothing knows everything" -- Leonard >>>>> Susskind >>>>> >>>> >>>> >>>> -- >>>> Dr Dario Sanfilippo >>>> http://dariosanfilippo.com >>>> >>> >>> >>> -- >>> "Anybody who knows all about nothing knows everything" -- Leonard >>> Susskind >>> >> -- "Anybody who knows all about nothing knows everything" -- Leonard Susskind
_______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users