Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to build for macOS 15 / Apple clang 16 #139

Open
fxcoudert opened this issue Sep 4, 2024 · 0 comments
Open

Failure to build for macOS 15 / Apple clang 16 #139

fxcoudert opened this issue Sep 4, 2024 · 0 comments

Comments

@fxcoudert
Copy link

% make -j1
cc -o build/libblastrampoline.o -g -O2 -std=gnu99 -fPIC -DLIBRARY_EXPORTS -D_GNU_SOURCE -DARCH_aarch64 -DF2C_AUTODETECTION -DCOMPLEX_RETSTYLE_AUTODETECTION -DSYMBOL_TRIMMING -c libblastrampoline.c
cc -o build/dl_utils.o -g -O2 -std=gnu99 -fPIC -DLIBRARY_EXPORTS -D_GNU_SOURCE -DARCH_aarch64 -DF2C_AUTODETECTION -DCOMPLEX_RETSTYLE_AUTODETECTION -DSYMBOL_TRIMMING -c dl_utils.c
cc -o build/env_utils.o -g -O2 -std=gnu99 -fPIC -DLIBRARY_EXPORTS -D_GNU_SOURCE -DARCH_aarch64 -DF2C_AUTODETECTION -DCOMPLEX_RETSTYLE_AUTODETECTION -DSYMBOL_TRIMMING -c env_utils.c
cc -o build/config.o -g -O2 -std=gnu99 -fPIC -DLIBRARY_EXPORTS -D_GNU_SOURCE -DARCH_aarch64 -DF2C_AUTODETECTION -DCOMPLEX_RETSTYLE_AUTODETECTION -DSYMBOL_TRIMMING -c config.c
cc -o build/autodetection.o -g -O2 -std=gnu99 -fPIC -DLIBRARY_EXPORTS -D_GNU_SOURCE -DARCH_aarch64 -DF2C_AUTODETECTION -DCOMPLEX_RETSTYLE_AUTODETECTION -DSYMBOL_TRIMMING -c autodetection.c
cc -o build/threading.o -g -O2 -std=gnu99 -fPIC -DLIBRARY_EXPORTS -D_GNU_SOURCE -DARCH_aarch64 -DF2C_AUTODETECTION -DCOMPLEX_RETSTYLE_AUTODETECTION -DSYMBOL_TRIMMING -c threading.c
cc -o build/deepbindless.o -g -O2 -std=gnu99 -fPIC -DLIBRARY_EXPORTS -D_GNU_SOURCE -DARCH_aarch64 -DF2C_AUTODETECTION -DCOMPLEX_RETSTYLE_AUTODETECTION -DSYMBOL_TRIMMING -c deepbindless.c
cc -o build/trampolines/trampolines_aarch64.o -g -O2 -std=gnu99 -fPIC -DLIBRARY_EXPORTS -D_GNU_SOURCE -DARCH_aarch64 -DF2C_AUTODETECTION -DCOMPLEX_RETSTYLE_AUTODETECTION -DSYMBOL_TRIMMING -c trampolines/trampolines_aarch64.S
trampolines/ilp64_doubling.h:4:64: error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs

I'm not sure if the libblastrampoline code is actually invalid, or if it is being misdiagnosed due to llvm/llvm-project#97116


PS: After this error, the console is getting filled with hundreds of thousands of line like this:

.global _LAPACKE_c_nancheck %% .cfi_startproc %% .p2align 2 %% _LAPACKE_c_nancheck: %% mov x17, (0) %% adrp x16, _LAPACKE_c_nancheck_addr@PAGE %% ldr x16, [x16, _LAPACKE_c_nancheck_addr@PAGEOFF] %% br x16 %% .cfi_endproc %% .global _LAPACKE_cbbcsd %% .cfi_startproc %% .p2align 2 %% _LAPACKE_cbbcsd: %% mov x17, (1) %% adrp x16, _LAPACKE_cbbcsd_addr@PAGE %% ldr x16, [x16, _LAPACKE_cbbcsd_addr@PAGEOFF] %% br x16 %% .cfi_endproc %% .global _LAPACKE_cbbcsd_work %% .cfi_startproc %% .p2align 2 %% _LAPACKE_cbbcsd_work: %% mov x17, (2) %% adrp x16, _LAPACKE_cbbcsd_work_addr@PAGE %% ldr x16, [x16, _LAPACKE_cbbcsd_work_addr@PAGEOFF] %% br x16 %% .cfi_endproc %% .global _LAPACKE_cbdsqr %% .cfi_startproc %% .p2align 2 %% _LAPACKE_cbdsqr: %% mov x17, (3) %% adrp x16, _LAPACKE_cbdsqr_addr@PAGE %% ldr x16, [x16, _LAPACKE_cbdsqr_addr@PAGEOFF] %% br x16 %% .cfi_endproc %% .global _LAPACKE_cbdsqr_work %% .cfi_startproc %% .p2align 2 %% _LAPACKE_cbdsqr_work: %% mov x17, (4) %% adrp x16, _LAPACKE_cbdsqr_work_addr@PAGE %% ldr x16, [x16, _LAPACKE_cbdsqr_work_addr@PAGEOFF] %% br x16 %% .cfi_endproc %% .global _LAPACKE_cgb_nancheck %% .cfi_startproc %% .p2align 2 %% _LAPACKE_cgb_nancheck: %% mov x17, (5) %% adrp x16, _LAPACKE_cgb_nancheck_addr@PAGE %% ldr x16, [x16, _LAPACKE_cgb_nancheck_addr@PAGEOFF] %% br x16 %% .cfi_endproc %% .global _LAPACKE_cgb_trans %% .cfi_startproc %% .p2align 2 %% _LAPACKE_cgb_trans: %% mov x17, (6) %% adrp x16, _LAPACKE_cgb_trans_addr@PAGE %% ldr x16, [x16, _LAPACKE_cgb_trans_addr@PAGEOFF] %% br x16 %% .cfi_endproc %% .global _LAPACKE_cgbbrd %% .cfi_startproc %% .p2align 2 %% _LAPACKE_cgbbrd: %% mov x17, (7) %% adrp x16, _LAPACKE_cgbbrd_addr@PAGE %% ldr x16, [x16, _LAPACKE_cgbbrd_addr@PAGEOFF] %% br x16 %% .cfi_endproc %% .global _LAPACKE_cgbbrd_work %% .cfi_startproc %% .p2align 2 %% _LAPACKE_cgbbrd_work: %% mov x17, (8) %% adrp x16, _LAPACKE_cgbbrd_work_addr@PAGE %% ldr x16, [x16, _LAPACKE_cgbbrd_work_addr@PAGEOFF] %% br x16 %% .cfi_endproc %% .global _LAPACKE_cgbcon %% .cfi_startproc %% .p2align 2 %% _LAPACKE_cgbcon: %% mov x17, (9) %% adrp x16, _LAPACKE_cgbcon_addr@PAGE %% ldr x16, [x16, _LAPACKE_cgbcon_addr@PAGEOFF] %% br x16 %% .cfi_endproc %% .global _LAPACKE_cgbcon_work %% .cfi_startproc %% .p2align 2 %% _LAPACKE_cgbcon_work: %% mov x17, (10) %% adrp x16, _LAPACKE_cgbcon_work_addr@PAGE %% ldr x16, [x16, _LAPACKE_cgbcon_work_addr@PAGEOFF] %% br x16 %% .cfi_endproc %% .global _LAPACKE_cgbequ %% .cfi_startproc %% .p2align 2 %% _LAPACKE_cgbequ: %% mov x17, (11) %% adrp x16, _LAPACKE_cgbequ_addr@PAGE %% ldr x16, [x16, _LAPACKE_cgbequ_addr@PAGEOFF] %% br x16 %% .cfi_endproc %% .global _LAPACKE_cgbequ_work %% .cfi_startproc %% .p2align 2 %% _LAPACKE_cgbequ_work: %% mov x17, (12) %% adrp x16, _LAPACKE_cgbequ_work_addr@PAGE %% ldr x16, [x16, _LAPACKE_cgbequ_work_addr@PAGEOFF] %% br x16 %% .cfi_endproc %% .global _LAPACKE_cgbequb %% .cfi_startproc %% .p2align 2 %% _LAPACKE_cgbequb: %% mov x17, (13) %% adrp x16, _LAPACKE_cgbequb_addr@PAGE %% ldr x16, [x16, _LAPACKE_cgbequb_addr@PAGEOFF] %% br x16 %% .cfi_endproc %%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant