[Bug 37447] New: compiling with -fprofile-generate fails in loader/ due to undefined reference

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Oct 25 01:25:52 CDT 2014


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 at winehq.org
          Reporter: austinenglish at gmail.com
      Distribution: ---

Follow up to bug 18832.

[austin at 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 at localhost loader]$ git describe
wine-1.7.29-57-gfbf2557

[austin at 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.



More information about the wine-bugs mailing list