Hi Alicia,
Stacks is not tested on Apple’s compiler for M1. It needs the OpenMP libraries for multi-threading, which I thought had been added to the Clang compiler that Apple used previously (at least on the Intel chips), but as I said, I haven’t yet looked at what is needed for the new M1 chips. The errors you list below are all openmp directives that the compiler doesn’t understand.
Previously, people who installed Stacks on a Mac typically would install the GCC compiler first and use that (which has openmp support built in). Stacks will build on the default Linux environment as well.
Best,
julian
--
Stacks website: http://catchenlab.life.illinois.edu/stacks/
---
You received this message because you are subscribed to the Google Groups "Stacks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
stacks-users...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/stacks-users/d16373a7-2a9c-4797-8df1-16849abf1c81n%40googlegroups.com.
export PATH=/Applications/stacks-2.61:$PATH
Thanks,
Alicia
g++ -g -O2 -fopenmp -o gstacks src/gstacks.o src/debruijn.o src/SuffixTree.o htslib/libhts.a libcore.a -lz -lgomp
0 0x102c501a0 __assert_rtn + 140
1 0x102ad7a8c mach_o::relocatable::Parser<arm64>::parse(mach_o::relocatable::ParserOptions const&) + 4536
2 0x102aa9d38 mach_o::relocatable::Parser<arm64>::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&) + 148
3 0x102af4180 archive::File<arm64>::makeObjectFileForMember(archive::File<arm64>::Entry const*) const + 1084
4 0x102af3ac8 archive::File<arm64>::File(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, archive::ParserOptions const&) + 856
5 0x102aec02c archive::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, archive::ParserOptions const&) + 388
6 0x102b126d0 ld::tool::InputFiles::makeFile(Options::FileInfo const&, bool) + 2016
7 0x102b15360 ___ZN2ld4tool10InputFilesC2ER7Options_block_invoke + 56
8 0x19a2fc1f4 _dispatch_client_callout2 + 20
9 0x19a30f954 _dispatch_apply_invoke + 224
10 0x19a2fc1b4 _dispatch_client_callout + 20
11 0x19a30da04 _dispatch_root_queue_drain + 680
12 0x19a30e104 _dispatch_worker_thread2 + 164
13 0x19a4bc324 _pthread_wqthread + 228
A linker snapshot was created at:
/tmp/gstacks-2022-09-20-212131.ld-snapshot
ld: Assertion failed: (_file->_atomsArrayCount == computedAtomCount && "more atoms allocated than expected"), function parse, file macho_relocatable_file.cpp, line 2061.
collect2: error: ld returned 1 exit status
make[2]: *** [gstacks] Error 1
make[2]: Target `all-am' not remade because of errors.
make[1]: *** [all-recursive] Error 1
You received this message because you are subscribed to a topic in the Google Groups "Stacks" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/stacks-users/QTPVpWeF5Vo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stacks-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/stacks-users/79e672e2-e028-480e-b2f6-8c982680d5fbn%40googlegroups.com.
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [process_radtags] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Thanks,
Amy