Menu

Compile failed

Help
Anonymous
2012-02-22
2013-05-28
  • Anonymous

    Anonymous - 2012-02-22

    Here is my configure/make output, it fails.

    running g++-4.6 on i686-linux-gnu

    ./configure 
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking for g++... g++
    checking for C++ compiler default output file name... a.out
    checking whether the C++ compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables... 
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking for gcc... gcc
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking how to run the C preprocessor... gcc -E
    checking for makedepend... /usr/bin/makedepend
    checking for bison++... no
    checking for flex++... /usr/bin/flex++
    checking for m4... /usr/bin/m4
    checking for gcc... /usr/bin/gcc
    checking if using GNU ld ... yes 
    checking if host is Windows ... no 
    checking if host is Cygwin ... no 
    checking if host is OS X ... no 
    checking if host is OS X 10.2 ... no 
    checking for main in -lstdc++... yes
    checking for egrep... grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking expat.h usability... yes
    checking expat.h presence... yes
    checking for expat.h... yes
    checking for XML_ExpatVersion in -lexpat... yes
    checking gc.h usability... yes
    checking gc.h presence... yes
    checking for gc.h... yes
    checking for GC_malloc in -lgc... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for dlopen in -ldl... yes
    checking how to run the C++ preprocessor... g++ -E
    checking cppunit/TestSuite.h usability... yes
    checking cppunit/TestSuite.h presence... yes
    checking for cppunit/TestSuite.h... yes
    checking for _ZN7CppUnit8TestCase3runEv in -lcppunit... no
    checking for lib/libcppunit.a... no
    checking for libcppunit.a... /usr/lib/libcppunit.a
    configure: WARNING: Found libcppunit.a; linking to lib/
    checking whether byte ordering is bigendian... no
    checking for char... yes
    checking size of char... 1
    checking for short... yes
    checking size of short... 2
    checking for int... yes
    checking size of int... 4
    checking for long... yes
    checking size of long... 4
    checking for long long... yes
    checking size of long long... 8
    checking for float... yes
    checking size of float... 4
    checking for double... yes
    checking size of double... 8
    checking for int *... yes
    checking size of int *... 4
    checking whether gcc needs -traditional... no
    checking for .run-sml... no
    checking for sml-toolkit.x86-linux... no
    checking for sml-toolkit.sparc-solaris... no
    checking for ungenerate... no
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating util/Makefile
    config.status: creating loader/Makefile
    config.status: creating db/Makefile
    config.status: creating frontend/Makefile
    config.status: creating transform/Makefile
    config.status: creating frontend/mltk.sh
    config.status: creating include/config.h
    mdupont@space-station:~/experiments/decompiler/boomerang$ make
    make -C loader
    make[1]: Entering directory `/home/mdupont/experiments/decompiler/boomerang/loader'
    g++ -g -O2 -Wall -c  -fno-strict-aliasing -I../include -o ElfBinaryFile.o ElfBinaryFile.cpp
    ElfBinaryFile.cpp: In member function 'bool ElfBinaryFile::ValueByName(const char*, SymValue*, bool)':
    ElfBinaryFile.cpp:509:24: warning: variable 'numChain' set but not used [-Wunused-but-set-variable]
    ElfBinaryFile.cpp: In member function 'virtual bool ElfBinaryFile::IsRelocationAt(ADDRESS)':
    ElfBinaryFile.cpp:1193:31: warning: variable 'destHostOrigin' set but not used [-Wunused-but-set-variable]
    g++ -g -O2 -Wall -c  -DBUILDING_LIBBINARYFILE -I../include -o BinaryFile.o BinaryFile.cpp
    g++ -g -O2 -Wall -c   -I../include -o SymTab.o SymTab.cpp
    g++ -g -O2 -Wall -o ../lib/libBinaryFile.so -shared BinaryFile.o SymTab.o  
    g++ -g -O2 -Wall -o ../lib/libElfBinaryFile.so -shared ElfBinaryFile.o SymTab.o  -lBinaryFile -Wl,-rpath -Wl,"lib" -L../lib 
    g++ -g -O2 -Wall -c  -fno-strict-aliasing -I../include -o Win32BinaryFile.o Win32BinaryFile.cpp
    Win32BinaryFile.cpp: In member function 'virtual bool Win32BinaryFile::RealLoad(const char*)':
    Win32BinaryFile.cpp:419:27: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    Win32BinaryFile.cpp:425:39: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    Win32BinaryFile.cpp:437:45: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    Win32BinaryFile.cpp:476:59: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    gcc -g -O2 -Wall -I../include  -c -o microX86dis.o  microX86dis.c
    g++ -g -O2 -Wall -o ../lib/libWin32BinaryFile.so -shared Win32BinaryFile.o SymTab.o microX86dis.o -lBinaryFile -Wl,-rpath -Wl,"lib" -L../lib 
    g++ -g -O2 -Wall -c   -I../include -o ExeBinaryFile.o ExeBinaryFile.cpp
    ExeBinaryFile.cpp: In member function 'virtual bool ExeBinaryFile::RealLoad(const char*)':
    ExeBinaryFile.cpp:124:25: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    g++ -g -O2 -Wall -o ../lib/libExeBinaryFile.so -shared ExeBinaryFile.o SymTab.o  -lBinaryFile -Wl,-rpath -Wl,"lib" -L../lib 
    g++ -g -O2 -Wall -c   -I../include -o HpSomBinaryFile.o HpSomBinaryFile.cpp
    In file included from /usr/include/string.h:642:0,
                     from /usr/include/c++/4.6/cstring:44,
                     from HpSomBinaryFile.cpp:30:
    In function 'void* memset(void*, int, size_t)',
        inlined from 'virtual bool HpSomBinaryFile::RealLoad(const char*)' at HpSomBinaryFile.cpp:137:30:
    /usr/include/i386-linux-gnu/bits/string3.h:82:32: warning: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default]
    g++ -g -O2 -Wall -o ../lib/libHpSomBinaryFile.so -shared HpSomBinaryFile.o SymTab.o  -lBinaryFile -Wl,-rpath -Wl,"lib" -L../lib 
    HpSomBinaryFile.o: In function `memset':
    /usr/include/i386-linux-gnu/bits/string3.h:82: warning: memset used with constant zero length parameter; this could be due to transposed parameters
    g++ -g -O2 -Wall -c   -I../include -o PalmBinaryFile.o PalmBinaryFile.cpp
    In file included from /usr/include/string.h:642:0,
                     from /usr/include/c++/4.6/cstring:44,
                     from PalmBinaryFile.cpp:24:
    In function 'void* memset(void*, int, size_t)',
        inlined from 'virtual bool PalmBinaryFile::RealLoad(const char*)' at PalmBinaryFile.cpp:77:30:
    /usr/include/i386-linux-gnu/bits/string3.h:82:32: warning: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default]
    g++ -g -O2 -Wall -o ../lib/libPalmBinaryFile.so -shared PalmBinaryFile.o SymTab.o  -lBinaryFile -Wl,-rpath -Wl,"lib" -L../lib 
    PalmBinaryFile.o: In function `memset':
    /usr/include/i386-linux-gnu/bits/string3.h:82: warning: memset used with constant zero length parameter; this could be due to transposed parameters
    g++ -g -O2 -Wall -c  -fno-strict-aliasing -I../include -o DOS4GWBinaryFile.o DOS4GWBinaryFile.cpp
    DOS4GWBinaryFile.cpp: In member function 'virtual ADDRESS DOS4GWBinaryFile::GetMainEntryPoint()':
    DOS4GWBinaryFile.cpp:88:17: warning: variable 'lastOrdCall' set but not used [-Wunused-but-set-variable]
    DOS4GWBinaryFile.cpp: In member function 'virtual bool DOS4GWBinaryFile::RealLoad(const char*)':
    DOS4GWBinaryFile.cpp:152:27: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    DOS4GWBinaryFile.cpp:158:45: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    DOS4GWBinaryFile.cpp:167:82: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    DOS4GWBinaryFile.cpp:223:95: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    DOS4GWBinaryFile.cpp:321:60: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    DOS4GWBinaryFile.cpp:331:44: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    DOS4GWBinaryFile.cpp:340:28: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    DOS4GWBinaryFile.cpp:342:28: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    DOS4GWBinaryFile.cpp:345:28: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    DOS4GWBinaryFile.cpp:347:28: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    g++ -g -O2 -Wall -o ../lib/libDOS4GWBinaryFile.so -shared DOS4GWBinaryFile.o SymTab.o microX86dis.o -lBinaryFile -Wl,-rpath -Wl,"lib" -L../lib 
    g++ -g -O2 -Wall -c   -I../include -o IntelCoffFile.o IntelCoffFile.cpp
    In file included from IntelCoffFile.cpp:1:0:
    IntelCoffFile.h:11:9: error: 'ushort' does not name a type
    IntelCoffFile.h:12:9: error: 'ushort' does not name a type
    IntelCoffFile.h:13:9: error: 'ulong' does not name a type
    IntelCoffFile.h:14:9: error: 'ulong' does not name a type
    IntelCoffFile.h:15:9: error: 'ulong' does not name a type
    IntelCoffFile.h:16:9: error: 'ushort' does not name a type
    IntelCoffFile.h:17:9: error: 'ushort' does not name a type
    IntelCoffFile.cpp: In member function 'virtual bool IntelCoffFile::RealLoad(const char*)':
    IntelCoffFile.cpp:105:16: error: 'struct coff_header' has no member named 'coff_opthead_size'
    IntelCoffFile.cpp:107:67: error: 'struct coff_header' has no member named 'coff_opthead_size'
    IntelCoffFile.cpp:108:42: error: 'struct coff_header' has no member named 'coff_opthead_size'
    IntelCoffFile.cpp:112:88: error: 'struct coff_header' has no member named 'coff_sections'
    IntelCoffFile.cpp:116:55: error: 'struct coff_header' has no member named 'coff_sections'
    IntelCoffFile.cpp:116:112: error: 'struct coff_header' has no member named 'coff_sections'
    IntelCoffFile.cpp:121:46: error: 'struct coff_header' has no member named 'coff_sections'
    IntelCoffFile.cpp:154:54: error: 'struct coff_header' has no member named 'coff_sections'
    IntelCoffFile.cpp:172:46: error: 'struct coff_header' has no member named 'coff_sections'
    IntelCoffFile.cpp:174:62: error: 'struct coff_header' has no member named 'coff_sections'
    IntelCoffFile.cpp:191:41: error: 'struct coff_header' has no member named 'coff_symtab_ofs'
    IntelCoffFile.cpp:191:82: error: 'struct coff_header' has no member named 'coff_symtab_ofs'
    IntelCoffFile.cpp:193:71: error: 'struct coff_header' has no member named 'coff_num_syment'
    IntelCoffFile.cpp:196:41: error: 'struct coff_header' has no member named 'coff_num_syment'
    IntelCoffFile.cpp:196:121: error: 'struct coff_header' has no member named 'coff_num_syment'
    IntelCoffFile.cpp:208:46: error: 'struct coff_header' has no member named 'coff_num_syment'
    IntelCoffFile.cpp:221:92: error: 'struct coff_header' has no member named 'coff_sections'
    IntelCoffFile.cpp:264:46: error: 'struct coff_header' has no member named 'coff_sections'
    IntelCoffFile.cpp:201:30: warning: ignoring return value of 'ssize_t read(int, void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
    make[1]: *** [IntelCoffFile.o] Error 1
    make[1]: Leaving directory `/home/mdupont/experiments/decompiler/boomerang/loader'
    make: *** [loaders] Error 2
    

    mdupont@space-station:~/experiments/decompiler/boomerang$ g++ -v
    Using built-in specs.
    COLLECT_GCC=/usr/bin/g++-4.6.real
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6.1/lto-wrapper
    Target: i686-linux-gnu
    Configured with: ../src/configure -v -with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' -with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs -enable-languages=c,c++,fortran,objc,obj-c++,go -prefix=/usr -program-suffix=-4.6 -enable-shared -enable-linker-build-id -with-system-zlib -libexecdir=/usr/lib -without-included-gettext -enable-threads=posix -with-gxx-include-dir=/usr/include/c++/4.6 -libdir=/usr/lib -enable-nls -with-sysroot=/ -enable-clocale=gnu -enable-libstdcxx-debug -enable-libstdcxx-time=yes -enable-plugin -enable-objc-gc -enable-targets=all -disable-werror -with-arch-32=i686 -with-tune=generic -enable-checking=release -build=i686-linux-gnu -host=i686-linux-gnu -target=i686-linux-gnu
    Thread model: posix
    gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

     
  • Daniel

    Daniel - 2012-03-05

    same probleme. did anyone knows how to solve it?

     
  • Artur Kuptel

    Artur Kuptel - 2012-03-05

    Try adding :
    "
    #include <stdint.h>

    typedef uint16_t ushort;
    typedef uint32_t ulong;
    "
    at the beginning of that file ?