Loading ...
Sorry, an error occurred while loading the content.

Error compiling glibc 2.2.4 with gcc 3.0.3

Expand Messages
  • Kiran Kumar Chava
    Hi all, I tried to compile glibc 2.2.4 with gcc 3.0.3: For the default configuration it compiled well. But when I added the flags for coverage(-fprofile-arcs
    Message 1 of 1 , Jun 12, 2003
    • 0 Attachment
      Hi all,

      I tried to compile glibc 2.2.4 with gcc 3.0.3:
      For the default configuration it compiled well. But when I added the
      flags for coverage(-fprofile-arcs -ftest-coverage) it gave the following
      error
      multiple definition of `__bb_init_func'
      The output is below:
      What could be the problem.
      Is this due to mis match between versions of gcc and glibc I am using?
      or some thing else.
      How can I compile successfully with these flags.

      Thanks in advance
      Kiran Kumar Chava

      $ make CFLAGS="-fprofile-arcs -ftest-coverage"


      gcc -shared -Wl,-O1
      -Wl,-dynamic-linker=/usr/local/lib/ld-linux-ia64.so.2
      -B/home/kiranc/build/csu/
      -Wl,--version-script=/home/kiranc/build/libc.map
      -Wl,-soname=libc.so.6.1 -nostdlib -nostartfiles -e __libc_main -u
      __register_frame -L/home/kiranc/build -L/home/kiranc/build/math
      -L/home/kiranc/build/elf -L/home/kiranc/build/dlfcn
      -L/home/kiranc/build/nss -L/home/kiranc/build/nis
      -L/home/kiranc/build/rt -L/home/kiranc/build/resolv
      -L/home/kiranc/build/crypt
      -Wl,-rpath-link=/home/kiranc/build:/home/kiranc/build/math:/home/kiranc/build/elf:/home/kiranc/build/dlfcn:/home/kiranc/build/nss:/home/kiranc/build/nis:/home/kiranc/build/rt:/home/kiranc/build/resolv:/home/kiranc/build/crypt -o /home/kiranc/build/libc.so -T /home/kiranc/build/libc.so.lds /home/kiranc/build/csu/abi-note.o /home/kiranc/build/elf/soinit.os /home/kiranc/build/libc_pic.os /home/kiranc/build/elf/sofini.os /home/kiranc/build/elf/interp.os /home/kiranc/build/elf/ld.so -lgcc
      /usr/local/lib/gcc-lib/ia64-unknown-linux/3.0.3/libgcc.a(_bb.o): In
      function `__bb_exit_func':
      _bb.o(.text+0x520): multiple definition of `__bb_exit_func'
      /home/kiranc/build/libc_pic.os(.text+0x4bb140): first defined here
      /usr/bin/ld: Warning: size of symbol `__bb_exit_func' changed from 1472
      to 3888 in _bb.o
      /usr/local/lib/gcc-lib/ia64-unknown-linux/3.0.3/libgcc.a(_bb.o): In
      function `__bb_init_func':
      _bb.o(.text+0x1450): multiple definition of `__bb_init_func'
      /home/kiranc/build/libc_pic.os(.text+0x4bade0): first defined here
      /usr/bin/ld: Warning: size of symbol `__bb_init_func' changed from 784
      to 160 in _bb.o
      collect2: ld returned 1 exit status
      make[1]: *** [/home/kiranc/build/libc.so] Error 1
      make[1]: Leaving directory
      `/part1/kiranc_back/kiranc/libhplx_abi1/linux_abi/src'
      make: *** [all] Error 2
    Your message has been successfully submitted and would be delivered to recipients shortly.