-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
I am working on building openBLAS for the x64 architecture on macOS using flang-new. Here is the make command in use:
arch -x86_64 make FC=/Users/m1/Library/Nuitka-Python311/build_tools/clang/bin/flang-new "FCOMMON_OPT=-Wl,-syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" NO_SHARED=1 TARGET=NEHALEM "CFLAGS=-arch x86_64" -j8
The issue is that once the build gets to running the tests, the cblat1 test fails with a Segmentation fault. To get a bit more info, I recompiled that test by hand replacing the -O2 flag with -g. Here are the results in lldb:
╰─➤ lldb cblat1
(lldb) target create "cblat1"
Current executable set to '/Users/m1/OpenBLAS-0.3.29/test/cblat1' (x86_64).
(lldb) r
Process 46323 launched: '/Users/m1/OpenBLAS-0.3.29/test/cblat1' (x86_64)
warning: libobjc.A.dylib is being read from process memory. This indicates that LLDB could not read from the host's in-memory shared cache. This will likely reduce debugging performance.
Complex BLAS Test Program Results
Test of subprogram number 1 CDOTC
Process 46323 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x30)
frame #0: 0x000000010000230f cblat1`cdotc_ + 15
cblat1`cdotc_:
-> 0x10000230f <+15>: movslq (%r9), %rax
0x100002312 <+18>: movslq (%rcx), %r9
0x100002315 <+21>: movl $0x2, %r10d
0x10000231b <+27>: subq %rdi, %r10
Target 0: (cblat1) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x30)
* frame #0: 0x000000010000230f cblat1`cdotc_ + 15
frame #1: 0x0000000100001440 cblat1`check2_ at cblat1.f:535:16
frame #2: 0x0000000100000827 cblat1`_QQmain at cblat1.f:78:13
frame #3: 0x0000000100001f22 cblat1`main at cblat1.f:724:7
frame #4: 0x00000002000ea2cd dyld`start + 1805
Metadata
Metadata
Assignees
Labels
No labels