Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187013 - dev-lisp/sbcl-1.0.8 fails build on alpha
Summary: dev-lisp/sbcl-1.0.8 fails build on alpha
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: Alpha Linux
: High normal
Assignee: Common Lisp Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-29 12:36 UTC by Tobias Klausmann (RETIRED)
Modified: 2008-12-16 00:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Full build log (dev-lisp:sbcl-1.0.8:20070729-122613.log,699.15 KB, text/plain)
2007-07-29 12:37 UTC, Tobias Klausmann (RETIRED)
Details
alpha-arch.diff (alpha-arch.diff,443 bytes, patch)
2007-07-29 14:21 UTC, Panagiotis Christopoulos (RETIRED)
Details | Diff
New alpha-arch.diff (alpha-arch-reloaded.diff,621 bytes, patch)
2007-07-29 16:49 UTC, Panagiotis Christopoulos (RETIRED)
Details | Diff
alpha-arch-reloaded.diff (alpha-arch-reloaded.diff,621 bytes, patch)
2007-07-29 16:58 UTC, Panagiotis Christopoulos (RETIRED)
Details | Diff
alpha-arch-reloaded2.diff (alpha-arch-reloaded.diff,620 bytes, patch)
2007-07-29 17:07 UTC, Panagiotis Christopoulos (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Klausmann (RETIRED) gentoo-dev 2007-07-29 12:36:14 UTC
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.
Comment 1 Tobias Klausmann (RETIRED) gentoo-dev 2007-07-29 12:37:18 UTC
Created attachment 126335 [details]
Full build log

Attached full build log from distcc-less build.
Comment 2 Panagiotis Christopoulos (RETIRED) gentoo-dev 2007-07-29 14:21:05 UTC
Created attachment 126341 [details, diff]
alpha-arch.diff

The stupid line 90 of src/runtime/alpha-arch.c
Comment 3 Tobias Klausmann (RETIRED) gentoo-dev 2007-07-29 15:25:09 UTC
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'
Comment 4 Panagiotis Christopoulos (RETIRED) gentoo-dev 2007-07-29 16:49:42 UTC
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.
Comment 5 Panagiotis Christopoulos (RETIRED) gentoo-dev 2007-07-29 16:58:47 UTC
Created attachment 126364 [details, diff]
alpha-arch-reloaded.diff

There was an error in my previous diff.
Comment 6 Panagiotis Christopoulos (RETIRED) gentoo-dev 2007-07-29 17:07:15 UTC
Created attachment 126366 [details, diff]
alpha-arch-reloaded2.diff

More typos, sorry
Comment 7 Tobias Klausmann (RETIRED) gentoo-dev 2007-07-29 17:21:26 UTC
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'
Comment 8 Tobias Klausmann (RETIRED) gentoo-dev 2008-12-14 19:40:58 UTC
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.
Comment 9 Marijn Schouten (RETIRED) gentoo-dev 2008-12-16 00:48:14 UTC
That table merely lists the latest version for which someone bothered to make a binary. Someone just needs to repair the bitrot.