Skip to content

Commit d00e1fd

Browse files
committed
Switch musl build to v68
In practice there's little difference between the compiler-emitted code for v68 vs v65. But since eld lacks official support for architectures older than v68, these linker warnings below are potentially concerning/confusing for users. We'll switch to v68 for this build to match the default used by the compiler and assembler. $ ./clang+llvm-20.1.2-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/hexagon-unknown-linux-musl-clang -o foo foo.c -static -fuse-ld=eld Note: can not open search directory `/local/mnt/workspace/upstream/toolchain_for_hexagon/clang+llvm-20.1.2-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/../target/hexagon/lib/v68' Warning: Support for ISA hexagonv65 is deprecated for input file /local/mnt/workspace/upstream/toolchain_for_hexagon/clang+llvm-20.1.2-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/../target/hexagon-unknown-linux-musl//usr/lib/crt1.o Warning: Support for ISA hexagonv65 is deprecated for input file /local/mnt/workspace/upstream/toolchain_for_hexagon/clang+llvm-20.1.2-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/../target/hexagon-unknown-linux-musl//usr/lib/libc.a(__libc_start_main.lo) Warning: Support for ISA hexagonv65 is deprecated for input file /local/mnt/workspace/upstream/toolchain_for_hexagon/clang+llvm-20.1.2-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/../target/hexagon-unknown-linux-musl//usr/lib/libc.a(exit.lo) Warning: Support for ISA hexagonv65 is deprecated for input file /local/mnt/workspace/upstream/toolchain_for_hexagon/clang+llvm-20.1.2-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/../target/hexagon-unknown-linux-musl//usr/lib/libc.a(defsysinfo.lo) Warning: Support for ISA hexagonv65 is deprecated for input file /local/mnt/workspace/upstream/toolchain_for_hexagon/clang+llvm-20.1.2-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/../target/hexagon-unknown-linux-musl//usr/lib/libc.a(libc.lo) Warning: Support for ISA hexagonv65 is deprecated for input file /local/mnt/workspace/upstream/toolchain_for_hexagon/clang+llvm-20.1.2-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/../target/hexagon-unknown-linux-musl//usr/lib/libc.a(memset.lo) Warning: Support for ISA hexagonv65 is deprecated for input file /local/mnt/workspace/upstream/toolchain_for_hexagon/clang+llvm-20.1.2-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/../target/hexagon-unknown-linux-musl//usr/lib/libc.a(__environ.lo) Warning: Support for ISA hexagonv65 is deprecated for input file /local/mnt/workspace/upstream/toolchain_for_hexagon/clang+llvm-20.1.2-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/../target/hexagon-unknown-linux-musl//usr/lib/libc.a(__init_tls.lo) Warning: Support for ISA hexagonv65 is deprecated for input file /local/mnt/workspace/upstream/toolchain_for_hexagon/clang+llvm-20.1.2-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/../target/hexagon-unknown-linux-musl//usr/lib/libc.a(_Exit.lo) Warning: Too many warnings emitted (use --warn-limit=0 to see all warnings) Signed-off-by: Brian Cain <[email protected]>
1 parent fac061a commit d00e1fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-toolchain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ build_musl_headers() {
163163
CC=${TOOLCHAIN_INSTALL}/x86_64-linux-gnu/bin/hexagon-unknown-linux-musl-clang \
164164
CROSS_COMPILE=hexagon-unknown-linux-musl \
165165
LIBCC=${HEX_TOOLS_TARGET_BASE}/lib/libclang_rt.builtins-hexagon.a \
166-
CROSS_CFLAGS="-G0 -O0 -mv65 -fno-builtin --target=hexagon-unknown-linux-musl" \
166+
CROSS_CFLAGS="-G0 -O0 -mv68 -fno-builtin --target=hexagon-unknown-linux-musl" \
167167
./configure --target=hexagon --prefix=${HEX_TOOLS_TARGET_BASE}
168168
PATH=${TOOLCHAIN_INSTALL}/x86_64-linux-gnu/bin/:$PATH make install-headers
169169

@@ -307,7 +307,7 @@ fi
307307
ccache --show-stats
308308

309309

310-
MUSL_CFLAGS="-G0 -O0 -mv65 -fno-builtin -mlong-calls --target=hexagon-unknown-linux-musl"
310+
MUSL_CFLAGS="-G0 -O0 -mv68 -fno-builtin -mlong-calls --target=hexagon-unknown-linux-musl"
311311

312312
# Workaround, 'C()' macro results in switch over bool:
313313
MUSL_CFLAGS="${MUSL_CFLAGS} -Wno-switch-bool"

0 commit comments

Comments
 (0)