Bug#637182: llvm-gcc-4.5: undefined reference to `memset' error when compiling Wine with optimization (regression)

Austin English austinenglish at gmail.com
Tue Aug 9 09:17:22 UTC 2011


Package: llvm-gcc-4.5
Version: 2.9-2
Severity: normal
Tags: upstream

Wine compiles fine with llvm-gcc-4.2.1 (see http://bugs.winehq.org/show_bug.cgi?id=28030), but with llvm-gcc-4.5, it fails to build at loader/preloader.c, when linking:

austin at debian:~/wine-git/loader$ make
llvm-gcc -o wine-preloader -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o ../libs/port/libwine_port.a
preloader.o: In function `set_process_name':
/home/austin/wine-git/loader//preloader.c:455: undefined reference to `memset'
preloader.o: In function `map_so_lib':
/home/austin/wine-git/loader//preloader.c:455: undefined reference to `memset'
collect2: ld returned 1 exit status
make: *** [wine-preloader] Error 1

disabling optimizations allows Wine to compile fine (and it runs, unlike in 4.2).

The bug appears when linking, not sure how to get a reduced testcase for that, please advise if needed.

Wine version is 1.3.26.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.39-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages llvm-gcc-4.5 depends on:
ii  dragonegg                     2.9-2      GCC plugin that uses LLVM for opti
ii  g++-4.5                       4.5.3-3    The GNU C++ compiler
ii  gcc-4.5                       4.5.3-3    The GNU C compiler

llvm-gcc-4.5 recommends no packages.

llvm-gcc-4.5 suggests no packages.

-- no debconf information





More information about the Pkg-llvm-team mailing list