1 Reply Latest reply on Feb 8, 2010 7:11 PM by mvermeulen

    compilation of libs in Debian with string.h problem

    pvl
      error: '__builtin_memchr' was not declared in this scope

      Continue in compilation in 64b Debian 5.0.3 after some problems, I successfully compile x86_open64.4.2.3 by:

       

      make all MACHINE_TYPE=i386

      But next step of compilation exit with errors. Command
      make lib MACHINE_TYPE=i386 BUILD_COMPILER=OSP
      produce in the end:
      ...
      make libinstr.a libinstr_p.a libinstr.so.1 
      C++    /opt/o64src/osprey/targia32_builtonia32/libinstr2/../../instrumentation/libinstr2/dump.cxx
      In file included from ../../common/com/defs.h:86,
                       from ../../common/com/profile_com.h:62,
                       from ../../instrumentation/libinstr2/profile.h:54,
                       from ../../instrumentation/libinstr2/dump.cxx:55:
      /usr/include/string.h: In function 'void* memchr(void*, int, size_t)':
      /usr/include/string.h:83: error: '__builtin_memchr' was not declared in this scope
      /usr/include/string.h: In function 'const void* memchr(const void*, int, size_t)':
      /usr/include/string.h:89: error: '__builtin_memchr' was not declared in this scope
      make[3]: *** [dump.o] Error 1
      make[2]: *** [default] Error 2
      make[1]: *** [default] Error 2
      make[1]: Leaving directory `/opt/o64src/osprey/targia32_builtonia32'
      make: *** [lib] Error 2
      Do you know how to solve it?


        • compilation of libs in Debian with string.h problem
          mvermeulen

          Checking build scripts here, we were able to do this build in two generations.  The first generation builds the libraries with:

          make lib MACHINE_TYPE=i386 BUILD_COMPILER=GNU

          make -C osprey/targx8664_builtonia32 BUILD_COMPILER=GNU

          export TOOLROOT=~/myopen64

          ./install_compiler.sh i386

          The second generation, builds using the first generation:

          make all MACHINE_TYPE=i386

          make lib MACHINE_TYPE=i386 BUILD_COMPILER=OSP

          make -C osprey/targx8664_builtonia32 BUILD_COMPILER=OSP