hkBst asked me to file a bug with the info, so here goes. cc -g -Wall -O3 -I. -c -o alpha-arch.o alpha-arch.c In file included from alpha-arch.c:20: runtime.h: In function 'CONS': runtime.h:101: warning: cast to pointer from integer of different size runtime.h: In function 'SYMBOL': runtime.h:107: warning: cast to pointer from integer of different size runtime.h: In function 'FDEFN': runtime.h:113: warning: cast to pointer from integer of different size alpha-arch.c: In function 'arch_get_bad_addr': alpha-arch.c:75: warning: comparison between pointer and integer alpha-arch.c:76: warning: comparison between pointer and integer alpha-arch.c:81: warning: return makes pointer from integer without a cast alpha-arch.c:63: warning: unused variable 'badinst' alpha-arch.c: In function 'arch_skip_instruction': alpha-arch.c:90: error: lvalue required as left operand of assignment alpha-arch.c: In function 'arch_handle_fun_end_breakpoint': alpha-arch.c:303: warning: cast from pointer to integer of different size alpha-arch.c: In function 'sigtrap_handler': alpha-arch.c:311: warning: implicit declaration of function 'os_restore_fp_control' alpha-arch.c: In function 'arch_get_fp_control': alpha-arch.c:348: warning: implicit declaration of function 'ieee_get_fp_control' alpha-arch.c: In function 'arch_set_fp_control': alpha-arch.c:354: warning: implicit declaration of function 'ieee_set_fp_control' alpha-arch.c: In function 'arch_install_interrupt_handlers': alpha-arch.c:360: warning: passing argument 2 of 'undoably_install_low_level_interrupt_handler' from incompatible pointer type make: *** [alpha-arch.o] Error 1 make: Leaving directory `/var/tmp/portage/dev-lisp/sbcl-1.0.8/work/sbcl-1.0.8/src/runtime' # emerge --info Portage 2.1.3_rc9 (default-linux/alpha/2007.0/desktop, gcc-4.2.0, glibc-2.6-r0, 2.6.22 alpha) ================================================================= System uname: 2.6.22 alpha EV6 Gentoo Base System release 2.0.0_alpha4 Timestamp of tree: Fri, 27 Jul 2007 16:20:01 +0000 distcc 2.18.3 alpha-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17.50.0.16 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="alpha ~alpha" AUTOCLEAN="yes" CBUILD="alpha-unknown-linux-gnu" CFLAGS="-mieee -pipe -O2 -mcpu=ev6" CHOST="alpha-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-mieee -pipe -O2 -mcpu=ev6" DISTDIR="/usr/portage/distfiles" FEATURES="distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.mirror.solnet.ch http://pandemonium.tiscali.de/pub/gentoo/" LC_ALL="en_US.utf8" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync5.de.gentoo.org/gentoo-portage" USE="X acl alpha alsa apache2 audacious audiofile bash-completion berkdb bitmap-fonts bzip2 cairo calendar cdparanoia cdr cli cracklib crypt cups dbus dio dri dvdr dvdread encode ethereal evo exif fam ffmpeg fftw flac fortran ftp gdbm gif gpm gstreamer gtk hal iconv imlib2 isdnlog jpeg kdeenablefinal libcaca libg++ lua mad matroska midi mikmod mmap mng moznocompose moznoirc moznomail mozsvg mp3 mpeg mudflap ncurses network-cron nls nptl nptlonly offensive ogg openmp oss pam pcre pdf pdflib perl png pnm ppds pppd python qt3 qt3support qt4 quicktime rar readline recode reflection session sharedmem sockets sox spell spl ssl svg szip tcpd tetex theora truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vidix vim vim-pager vlm vorbis xcb xml xorg xosd xpm xv xvid zlib" ALSA_CARDS="ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga glint mga" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Tried both with and without distcc/cross-compiling, same spot, same error for both.
Created attachment 126335 [details] Full build log Attached full build log from distcc-less build.
Created attachment 126341 [details, diff] alpha-arch.diff The stupid line 90 of src/runtime/alpha-arch.c
The patch fixes the first error, but now there's a new one: cc -g -Wall -O3 -I. -c -o alpha-assem.o alpha-assem.S cc -g -Wall -O3 -I. -c -o ldso-stubs.o ldso-stubs.S cc -g -dynamic -v -Wl,-T -Wl,ld-script.alpha-linux -rdynamic -o sbcl alloc.o backtrace.o breakpoint.o coreparse.o dynbind.o funcall.o gc-common.o globals.o interr.o interrupt.o largefile.o monitor.o os-common.o parse.o print.o purify.o pthread-futex.o pthread-lutex.o regnames.o run-program.o runtime.o save.o search.o thread.o time.o util.o validate.o vars.o wrap.o alpha-arch.o linux-os.o alpha-linux-os.o cheneygc.o alpha-assem.o ldso-stubs.o -ldl -lm Using built-in specs. Target: alpha-unknown-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/configure --prefix=/usr --bindir=/usr/alpha-unknown-linux-gnu/gcc-bin/4.2.0 --includedir=/usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/include --datadir=/usr/share/gcc-data/alpha-unknown-linux-gnu/4.2.0 --mandir=/usr/share/gcc-data/alpha-unknown-linux-gnu/4.2.0/man --infodir=/usr/share/gcc-data/alpha-unknown-linux-gnu/4.2.0/info --with-gxx-include-dir=/usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/include/g++-v4 --host=alpha-unknown-linux-gnu --build=alpha-unknown-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.2.0 (Gentoo 4.2.0) /usr/libexec/gcc/alpha-unknown-linux-gnu/4.2.0/collect2 --eh-frame-hdr -m elf64alpha -O1 -export-dynamic -dynamic-linker /lib/ld-linux.so.2 -o sbcl /usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/../../../crt1.o /usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/../../../crti.o /usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/crtbegin.o -L/usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0 -L/usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0 -L/usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/../../../../alpha-unknown-linux-gnu/lib -L/usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/../../.. -T ld-script.alpha-linux alloc.o backtrace.o breakpoint.o coreparse.o dynbind.o funcall.o gc-common.o globals.o interr.o interrupt.o largefile.o monitor.o os-common.o parse.o print.o purify.o pthread-futex.o pthread-lutex.o regnames.o run-program.o runtime.o save.o search.o thread.o time.o util.o validate.o vars.o wrap.o alpha-arch.o linux-os.o alpha-linux-os.o cheneygc.o alpha-assem.o ldso-stubs.o -ldl -lm -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/crtend.o /usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/../../../crtn.o interrupt.o: In function `handle_trap': /var/tmp/portage/dev-lisp/sbcl-1.0.8/work/sbcl-1.0.8/src/runtime/interrupt.c:1349: undefined reference to `arch_handle_single_step_trap' /var/tmp/portage/dev-lisp/sbcl-1.0.8/work/sbcl-1.0.8/src/runtime/interrupt.c:1349: undefined reference to `arch_handle_single_step_trap' /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init': (.text+0x54): undefined reference to `__init_array_start' /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init': (.text+0x58): undefined reference to `__init_array_end' /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init': (.text+0x5c): undefined reference to `__init_array_start' /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init': (.text+0x60): undefined reference to `__init_array_end' collect2: ld returned 1 exit status make: *** [sbcl] Error 1 make: Leaving directory `/var/tmp/portage/dev-lisp/sbcl-1.0.8/work/sbcl-1.0.8/src/runtime'
Created attachment 126360 [details, diff] New alpha-arch.diff Diff goes with the official src/runtime/alpha-arch.c Some hacks, hkBst told me to upload.
Created attachment 126364 [details, diff] alpha-arch-reloaded.diff There was an error in my previous diff.
Created attachment 126366 [details, diff] alpha-arch-reloaded2.diff More typos, sorry
cc -g -dynamic -v -Wl,-T -Wl,ld-script.alpha-linux -rdynamic -o sbcl alloc.o backtrace.o breakpoint.o coreparse.o dynbind.o funcall.o gc-common.o globals.o interr.o interrupt.o largefile.o monitor.o os-common.o parse.o print.o purify.o pthread-futex.o pthread-lutex.o regnames.o run-program.o runtime.o save.o search.o thread.o time.o util.o validate.o vars.o wrap.o alpha-arch.o linux-os.o alpha-linux-os.o cheneygc.o alpha-assem.o ldso-stubs.o -ldl -lm Using built-in specs. Target: alpha-unknown-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/configure --prefix=/usr --bindir=/usr/alpha-unknown-linux-gnu/gcc-bin/4.2.0 --includedir=/usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/include --datadir=/usr/share/gcc-data/alpha-unknown-linux-gnu/4.2.0 --mandir=/usr/share/gcc-data/alpha-unknown-linux-gnu/4.2.0/man --infodir=/usr/share/gcc-data/alpha-unknown-linux-gnu/4.2.0/info --with-gxx-include-dir=/usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/include/g++-v4 --host=alpha-unknown-linux-gnu --build=alpha-unknown-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.2.0 (Gentoo 4.2.0) /usr/libexec/gcc/alpha-unknown-linux-gnu/4.2.0/collect2 --eh-frame-hdr -m elf64alpha -O1 -export-dynamic -dynamic-linker /lib/ld-linux.so.2 -o sbcl /usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/../../../crt1.o /usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/../../../crti.o /usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/crtbegin.o -L/usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0 -L/usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0 -L/usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/../../../../alpha-unknown-linux-gnu/lib -L/usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/../../.. -T ld-script.alpha-linux alloc.o backtrace.o breakpoint.o coreparse.o dynbind.o funcall.o gc-common.o globals.o interr.o interrupt.o largefile.o monitor.o os-common.o parse.o print.o purify.o pthread-futex.o pthread-lutex.o regnames.o run-program.o runtime.o save.o search.o thread.o time.o util.o validate.o vars.o wrap.o alpha-arch.o linux-os.o alpha-linux-os.o cheneygc.o alpha-assem.o ldso-stubs.o -ldl -lm -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/crtend.o /usr/lib/gcc/alpha-unknown-linux-gnu/4.2.0/../../../crtn.o /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init': (.text+0x54): undefined reference to `__init_array_start' /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init': (.text+0x58): undefined reference to `__init_array_end' /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init': (.text+0x5c): undefined reference to `__init_array_start' /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init': (.text+0x60): undefined reference to `__init_array_end' collect2: ld returned 1 exit status make: *** [sbcl] Error 1 make: Leaving directory `/var/tmp/portage/dev-lisp/sbcl-1.0.8/work/sbcl-1.0.8/src/runtime'
Upstream (http://sbcl.sourceforge.net/platform-table.html) says 0.9.12 is the last supported version. If someone gets it to work on alpha, fine. Until that: wontfix since cantfix.
That table merely lists the latest version for which someone bothered to make a binary. Someone just needs to repair the bitrot.