pvl

compilation of libs in Debian with string.h problem

Discussion created by pvl on Feb 6, 2010
Latest reply on Feb 8, 2010 by mvermeulen
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?


Outcomes