[Bug 37447] New: compiling with -fprofile-generate fails in loader/ due to undefined reference
https://bugs.winehq.org/show_bug.cgi?id=37447 Bug ID: 37447 Summary: compiling with -fprofile-generate fails in loader/ due to undefined reference Product: Wine Version: 1.7.29 Hardware: x86 OS: Linux Status: NEW Keywords: download, source Severity: normal Priority: P2 Component: loader Assignee: wine-bugs(a)winehq.org Reporter: austinenglish(a)gmail.com Distribution: --- Follow up to bug 18832. [austin(a)localhost loader]$ gcc -v Using built-in specs. COLLECT_GCC=/usr/bin/gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.9.1/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.9.1-20140930/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.9.1-20140930/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 4.9.1 20140930 (Red Hat 4.9.1-11) (GCC) [austin(a)localhost loader]$ git describe wine-1.7.29-57-gfbf2557 [austin(a)localhost loader]$ make ccache gcc -m32 -o wine-preloader -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o ../libs/port/libwine_port.a --coverage /usr/lib/gcc/x86_64-redhat-linux/4.9.1/32/libgcov.a(_gcov.o): In function `gcov_write_block': (.text+0x27): undefined reference to `fwrite' /usr/lib/gcc/x86_64-redhat-linux/4.9.1/32/libgcov.a(_gcov.o): In function `gcov_write_words': (.text+0xb5): undefined reference to `abort' /usr/lib/gcc/x86_64-redhat-linux/4.9.1/32/libgcov.a(_gcov.o): In function `gcov_read_words': (.text+0x119): undefined reference to `fread' /usr/lib/gcc/x86_64-redhat-linux/4.9.1/32/libgcov.a(_gcov.o): In function `gcov_read_words': (.text+0x161): undefined reference to `abort' /usr/lib/gcc/x86_64-redhat-linux/4.9.1/32/libgcov.a(_gcov.o): In function `free_fn_data': ... to reproduce: ./configure CFLAGS="--coverage" LDFLAGS="--coverage" make -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37447 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv(a)dawncrow.de --- Comment #1 from André H. <nerv(a)dawncrow.de> --- the preloader get's compiled with -nostartfiles -nodefaultlibs, so coverage can't work. I'd say WONTFIX/INVALID/UPSTREAM -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37447 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #2 from Austin English <austinenglish(a)gmail.com> --- (In reply to André H. from comment #1)
the preloader get's compiled with -nostartfiles -nodefaultlibs, so coverage can't work. I'd say WONTFIX/INVALID/UPSTREAM
Ah, okay, thanks. I've added a note to http://wiki.winehq.org/CodeCoverage -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=37447 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #3 from Austin English <austinenglish(a)gmail.com> --- Closing. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org