xdev68k icon indicating copy to clipboard operation
xdev68k copied to clipboard

as error: unrecognised option --64 installing m68k toolchain

Open AetherPrior opened this issue 1 year ago • 0 comments

I'm trying to install the m68k toolchain on my linux machine. I encounter errors during the stage1 build of the GCC compiler: After executing ./build_m68k-toolchain.sh I get the following error:

make[1]: Entering directory '/home/asura/Documents/68k/xdev68k/build_gcc/build/gcc-10.2.0_stage1/gcc'
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="" \
/bin/sh ../../../src/gcc-10.2.0/gcc/mkconfig.sh config.h
TARGET_CPU_DEFAULT="m68000" \
HEADERS="options.h insn-constants.h config/m68k/m68k.h config/m68k/m68k-none.h config/m68k/m68kelf.h config/dbxelf.h config/elfos.h config/newlib-stdint.h config/m68k/m68kemb.h config/m68k/m68020-elf.h config/initfini-array.h defaults.h" DEFINES="LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4 MOTOROLA=1" \
/bin/sh ../../../src/gcc-10.2.0/gcc/mkconfig.sh tm.h
TARGET_CPU_DEFAULT="" \
HEADERS="config/m68k/m68k-protos.h tm-preds.h" DEFINES="" \
/bin/sh ../../../src/gcc-10.2.0/gcc/mkconfig.sh tm_p.h
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="" \
/bin/sh ../../../src/gcc-10.2.0/gcc/mkconfig.sh bconfig.h
g++ -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H  -DGENERATOR_FILE -fno-PIE -I. -Ibuild -I../../../src/gcc-10.2.0/gcc -I../../../src/gcc-10.2.0/gcc/build -I../../../src/gcc-10.2.0/gcc/../include  -I../../../src/gcc-10.2.0/gcc/../libcpp/include  \
-DBASEVER="\"10.2.0\"" -DDATESTAMP="\"\"" \
-DREVISION="\"\"" \
-DDEVPHASE="\"\"" -DPKGVERSION="\"(GCC) \"" \
-DBUGURL="\"<https://gcc.gnu.org/bugs/>\"" -o build/version.o ../../../src/gcc-10.2.0/gcc/version.c
LC_ALL=C ; export LC_ALL ; \
gawk -f ../../../src/gcc-10.2.0/gcc/opt-gather.awk ../../../src/gcc-10.2.0/gcc/ada/gcc-interface/lang.opt ../../../src/gcc-10.2.0/gcc/brig/lang.opt ../../../src/gcc-10.2.0/gcc/d/lang.opt ../../../src/gcc-10.2.0/gcc/fortran/lang.opt ../../../src/gcc-10.2.0/gcc/go/lang.opt ../../../src/gcc-10.2.0/gcc/lto/lang.opt ../../../src/gcc-10.2.0/gcc/c-family/c.opt ../../../src/gcc-10.2.0/gcc/common.opt ../../../src/gcc-10.2.0/gcc/params.opt ../../../src/gcc-10.2.0/gcc/analyzer/analyzer.opt ../../../src/gcc-10.2.0/gcc/config/m68k/m68k-tables.opt ../../../src/gcc-10.2.0/gcc/config/m68k/m68k.opt > tmp-optionlist
/home/asura/Documents/68k/xdev68k/m68k-toolchain/m68k-elf/bin/as: unrecognized option '--64'
make[1]: *** [Makefile:2730: build/version.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/bin/sh ../../../src/gcc-10.2.0/gcc/../move-if-change tmp-optionlist optionlist
echo timestamp > s-options
make[1]: Leaving directory '/home/asura/Documents/68k/xdev68k/build_gcc/build/gcc-10.2.0_stage1/gcc'
make: *** [Makefile:4385: all-gcc] Error 2

Not too sure why the --64 option must be called for this assembler. Here are the details to my OS.

-------------- 
OS: Arch Linux x86_64 
Host: OMEN Laptop 15-en1xxx 
Kernel: 6.7.3-arch1-1 
Uptime: 4 hours, 21 mins 
Packages: 1512 (pacman) 
Shell: zsh 5.9 
Resolution: 2560x1440 
DE: Plasma 5.27.10 
WM: KWin 
WM Theme: Fluent 
Theme: Breeze Light [Plasma], Breeze [GTK2/3] 
Icons: Win11-dark [Plasma], Win11-dark [GTK2/3] 
Terminal: konsole 
CPU: AMD Ryzen 7 5800H with Radeon Graphics (16) @ 4.463GHz 
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series 
GPU: NVIDIA GeForce RTX 3070 Mobile / Max-Q 
Memory: 10424MiB / 15334MiB 

AetherPrior avatar Feb 10 '24 04:02 AetherPrior