From owner-freebsd-current Mon Jun 25 9: 0:11 2001 Delivered-To: freebsd-current@freebsd.org Received: from kalaid.f2f.com.ua (kalaid.f2f.com.ua [62.149.0.33]) by hub.freebsd.org (Postfix) with ESMTP id 06C7637B405; Mon, 25 Jun 2001 08:59:58 -0700 (PDT) (envelope-from max@vega.com) Received: from mail.uic-in.net (root@[212.35.189.4]) by kalaid.f2f.com.ua (8.11.3/8.11.1) with ESMTP id f5PFmJK03500; Mon, 25 Jun 2001 18:49:07 +0300 (EEST) (envelope-from max@vega.com) Received: from vega.vega.com (das0-l64.uic-in.net [212.35.189.191]) by mail.uic-in.net (8.11.3/8.11.3) with ESMTP id f5PFkms08451; Mon, 25 Jun 2001 18:46:52 +0300 (EEST) (envelope-from max@vega.com) Received: (from max@localhost) by vega.vega.com (8.11.4/8.11.3) id f5PFRkL98728; Mon, 25 Jun 2001 18:27:46 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) From: Maxim Sobolev Message-Id: <200106251527.f5PFRkL98728@vega.vega.com> Subject: GNU ld(1) dumps core To: obrien@FreeBSD.org Date: Mon, 25 Jun 2001 18:26:25 +0300 (EEST) Cc: current@FreeBSD.org X-Mailer: ELM [version 2.5 PL5] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="%--multipart-mixed-boundary-1.98716.993482785--%" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --%--multipart-mixed-boundary-1.98716.993482785--% Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, It seems that there is a bug in the GNU ld(1) in -CURRENT. Currently it can't link SDL library from ports/devel/sdl12 port (confirmed by bento). When I'm replacing /usr/libexec/elf/ld with the corresponding file from my 4.3-STABLE system the problem disappears. Please check what's wrong or pass this report to the toolchain developers. Attached please find relevant log with backtrace. Thank you! -Maxim --%--multipart-mixed-boundary-1.98716.993482785--% Content-Type: application/octet-stream Content-Transfer-Encoding: 7bit Content-Description: ASCII English text, with very long lines, with CRLF, LF line terminators Content-Disposition: attachment; filename="ldlog" Script started on Mon Jun 25 18:10:50 2001 root@big_brother# pwd /mnt/sdl12 root@big_brother# make ===> Building for sdl-1.2.1 Making all in src Making all in main Making all in audio Making all in dsp Making all in dma Making all in esd Making all in video Making all in x11 Making all in svga Making all in aalib Making all in events Making all in joystick Making all in dummy Making all in cdrom Making all in thread Making all in timer Making all in endian Making all in file Making all in hermes /bin/sh ../libtool --mode=link cc -pipe -O -mpreferred-stack-boundary=2 -march=k6 -Wall -DUSE_ASMBLIT -I./hermes -I../src/hermes -DOSS_SUPPORT -DESD_SUPPORT -I/usr/local/include -I/usr/X11R6/include -DENABLE_X11 -DXFREE86_VM -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE -DENABLE_SVGALIB -DENABLE_AALIB -DHAVE_OPENGL -D_REENTRANT -DSDL_USE_PTHREADS -DHAVE_SEMUN -I../include -I../include/SDL -I../src -I../src/freebsd -I../src/main -I../src/audio -I../src/video -I../src/events -I../src/joystick -I../src/cdrom -I../src/thread -I../src/timer -I../src/endian -I../src/file -o libSDL-1.1.la -rpath /usr/local/lib -version-info 3:3:3 SDL.lo SDL_error.lo SDL_fatal.lo SDL_getenv.lo main/libarch.la audio/libaudio.la video/libvideo.la events/libevents.la joystick/libjoystick.la cdrom/libcdrom.la thread/libthread.la timer/libtimer.la endian/libendian.la file/libfile.la hermes/libhermes.la -lm -L/usr/local/lib -lesd -laudiofile -lm -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXxf86dga -lvga! -laa rm -fr .libs/libSDL-1.1.la .libs/libSDL-1.1.* .libs/libSDL-1.1.* cc -shared -Wl,--rpath -Wl,/usr/local/lib SDL.lo SDL_error.lo SDL_fatal.lo SDL_getenv.lo -Wl,--whole-archive main/.libs/libarch.al audio/.libs/libaudio.al video/.libs/libvideo.al events/.libs/libevents.al joystick/.libs/libjoystick.al cdrom/.libs/libcdrom.al thread/.libs/libthread.al timer/.libs/libtimer.al endian/.libs/libendian.al file/.libs/libfile.al hermes/.libs/libhermes.al -Wl,--no-whole-archive -lm -L/usr/local/lib -lesd -laudiofile -lm -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXxf86dga -lvga -laa -Wl,-soname -Wl,libSDL-1.1.so.3 -o .libs/libSDL-1.1.so.3 cc: Internal compiler error: program ld got fatal signal 10 *** Error code 1 Stop in /tmp/mnt/sdl12/work/SDL-1.2.1/src. *** Error code 1 Stop in /tmp/mnt/sdl12/work/SDL-1.2.1/src. *** Error code 1 Stop in /tmp/mnt/sdl12/work/SDL-1.2.1. *** Error code 1 Stop in /mnt/sdl12. *** Error code 1 Stop in /mnt/sdl12. *** Error code 1 Stop in /mnt/sdl12. root@big_brother# gdb /usr/libexec/elf/ld /tmp/core GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"... Core was generated by `ld'. Program terminated with signal 10, Bus error. #0 0x806881b in elf_link_input_bfd (finfo=0xbfbfefdc, input_bfd=0x817c000) at /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elflink.h:5542 5542 isec->symbol->value = isym->st_value; (gdb) bt #0 0x806881b in elf_link_input_bfd (finfo=0xbfbfefdc, input_bfd=0x817c000) at /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elflink.h:5542 #1 0x8066c27 in bfd_elf32_bfd_final_link (abfd=0x80da000, info=0x80cbe00) at /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elflink.h:4571 #2 0x806a715 in _bfd_elf32_gc_common_final_link (abfd=0x80da000, info=0x80cbe00) at /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elflink.h:6901 #3 0x805bb2c in ldwrite () at /usr/src/gnu/usr.bin/binutils/ld/../../../../contrib/binutils/ld/ldwrite.c:536 #4 0x8058d01 in main (argc=48, argv=0xbfbff0b0) at /usr/src/gnu/usr.bin/binutils/ld/../../../../contrib/binutils/ld/ldmain.c:372 #5 0x8048125 in _start () (gdb) print isym->st_value $1 = 0 (gdb) up #1 0x8066c27 in bfd_elf32_bfd_final_link (abfd=0x80da000, info=0x80cbe00) at /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elflink.h:4571 4571 if (! elf_link_input_bfd (&finfo, sub)) (gdb) up #2 0x806a715 in _bfd_elf32_gc_common_final_link (abfd=0x80da000, info=0x80cbe00) at /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elflink.h:6901 6901 return elf_bfd_final_link (abfd, info); (gdb) up #3 0x805bb2c in ldwrite () at /usr/src/gnu/usr.bin/binutils/ld/../../../../contrib/binutils/ld/ldwrite.c:536 536 if (!bfd_final_link (output_bfd, &link_info)) (gdb) up #4 0x8058d01 in main (argc=48, argv=0xbfbff0b0) at /usr/src/gnu/usr.bin/binutils/ld/../../../../contrib/binutils/ld/ldmain.c:372 372 ldwrite (); (gdb) up #5 0x8048125 in _start () (gdb) q root@big_brother# exit Script done on Mon Jun 25 18:11:37 2001 --%--multipart-mixed-boundary-1.98716.993482785--%-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message