Member Site Forums Rosetta 3 Rosetta 3 – General SCons compilation error (Windows XP, 32bit) Reply To: SCons compilation error (Windows XP, 32bit)

#4206
Anonymous

    Hi Crispy,

    unfortunately, I have been very busy with some other work… but meanwhile managed to go at least half-way through compiling with cygwin.

    Using cygwin, compiling of python/mingw/scons (stable/latest) with the shipped gcc (3.4.4) didn’t work at all to solve the problem.

    Instead, I installed cygwin with all features – including python (2.5.2) and ran the local scons-local script from Rosetta’s external subfolder.
    Unlike the many tries before, my CPU now is busy for quite a while and SCons gives me some messages about its current compilation status:

    ^scons: Reading SConscript files …

    Copy(“user.options”, “user.options.template”)

    Copy(“user.settings”, “user.settings.template”)

    Copy(“/home/user/rosetta_source/src/pilot_apps.src.settings”, “/home/user/rosetta_source/src/pilot_apps.src.settings.template”)

    scons: done reading SConscript files.

    scons: Building targets …

    g++ -o build/src/release/cygwin/1.5/32/x86/gcc/apps/public/AbinitioRelax.o -c -pipe -ffor-scope -W -Wall -pedantic -Wno-long-long -malign-double -march=pentium4 -O3 -ffast-math -funroll-loops -finline-functions -finline-limit=20000 -s -Wno-unused-variable -DNDEBUG -Isrc -Iexternal/include -Isrc/platform/cygwin/32/gcc -Isrc/platform/cygwin/32 -Isrc/platform/cygwin -Iexternal/boost_1_38_0 -I/usr/local/include -I/usr/include src/apps/public/AbinitioRelax.cc

    ”… very many entries here similar to the one above …”

    g++ -o build/src/release/cygwin/1.5/32/x86/gcc/utility.dll -lz -Xlinker –enable-auto-import -shared build/src/release/cygwin/1.5/32/x86/gcc/utility/basic_sys_util.os build/src/release/cygwin/1.5/32/x86/gcc/utility/string_util.os build/src/release/cygwin/1.5/32/x86/gcc/utility/heap.os build/src/release/cygwin/1.5/32/x86/gcc/utility/exit.os build/src/release/cygwin/1.5/32/x86/gcc/utility/LexicographicalIterator.os build/src/release/cygwin/1.5/32/x86/gcc/utility/file/file_sys_util.os build/src/release/cygwin/1.5/32/x86/gcc/utility/file/FileName.os build/src/release/cygwin/1.5/32/x86/gcc/utility/file/gzip_util.os build/src/release/cygwin/1.5/32/x86/gcc/utility/file/PathName.os build/src/release/cygwin/1.5/32/x86/gcc/utility/boinc/boinc_util.os build/src/release/cygwin/1.5/32/x86/gcc/utility/Tag/Tag.os build/src/release/cygwin/1.5/32/x86/gcc/utility/options/keys/OptionKeys.os build/src/release/cygwin/1.5/32/x86/gcc/utility/io/icstream.os build/src/release/cygwin/1.5/32/x86/gcc/utility/io/izstream.os build/src/release/cygwin/1.5/32/x86/gcc/utility/io/ocstream.os build/src/release/cygwin/1.5/32/x86/gcc/utility/io/ozstream.os build/src/release/cygwin/1.5/32/x86/gcc/utility/excn/Exceptions.os build/src/release/cygwin/1.5/32/x86/gcc/utility/pointer/ReferenceCount.os build/src/release/cygwin/1.5/32/x86/gcc/utility/pointer/ReferenceCountMI_.os build/src/release/cygwin/1.5/32/x86/gcc/utility/options/OptionCollection.os build/src/release/cygwin/1.5/32/x86/gcc/utility/options/mpi_stderr.os -Llib -Lexternal/lib -Lbuild/src/release/cygwin/1.5/32/x86/gcc -Lsrc -Lbuild/src/release/cygwin/1.5/32/x86/gcc/lib/cygwin -Lsrc/lib/cygwin -L/usr/local/lib -L/usr/lib -lObjexxFCL -lz

    scons: building terminated because of errors.^

    The error log ends with the following lines:
    ^”… frequent “might be used uninitialized in this function” errors (see below) here …”

    /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:82: warni
    ng: ‘__cur’ might be used uninitialized in this function
    /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:82: warni
    ng: ‘__cur’ might be used uninitialized in this function

    ”… last entries from the log …”

    build/src/release/cygwin/1.5/32/x86/gcc/utility/file/gzip_util.os:gzip_util.cc:(
    .text$_ZN11zlib_stream19basic_zip_streambufIcSt11char_traitsIcESaIcEhSaIhEE11res
    et_stateEv[zlib_stream::basic_zip_streambuf::reset_state()]+0
    x34): undefined reference to `_deflateReset’

    build/src/release/cygwin/1.5/32/x86/gcc/utility/file/gzip_util.os:gzip_util.cc:(
    .text$_ZN11zlib_stream21basic_unzip_streambufIcSt11char_traitsIcESaIcEhSaIhEED1E
    v[zlib_stream::basic_unzip_streambuf::~basic_unzip_streambuf(
    )]+0x55): undefined reference to `_inflateEnd’

    build/src/release/cygwin/1.5/32/x86/gcc/utility/file/gzip_util.os:gzip_util.cc:(
    .text$_ZN11zlib_stream21basic_unzip_streambufIcSt11char_traitsIcESaIcEhSaIhEED0E
    v[zlib_stream::basic_unzip_streambuf::~basic_unzip_streambuf(
    )]+0x55): undefined reference to `_inflateEnd’

    build/src/release/cygwin/1.5/32/x86/gcc/utility/file/gzip_util.os:gzip_util.cc:(
    .text$_ZN11zlib_stream19basic_zip_streambufIcSt11char_traitsIcESaIcEhSaIhEE5flus
    hEi[zlib_stream::basic_zip_streambuf::flush(int)]+0x47): unde
    fined reference to `_crc32′

    build/src/release/cygwin/1.5/32/x86/gcc/utility/file/gzip_util.os:gzip_util.cc:(
    .text$_ZN11zlib_stream19basic_zip_streambufIcSt11char_traitsIcESaIcEhSaIhEE5flus
    hEi[zlib_stream::basic_zip_streambuf::flush(int)]+0x69): unde
    fined reference to `_deflate’

    build/src/release/cygwin/1.5/32/x86/gcc/utility/file/gzip_util.os:gzip_util.cc:(
    .text$_ZN11zlib_stream21basic_unzip_streambufIcSt11char_traitsIcESaIcEhSaIhEEC1E
    RSijjj[zlib_stream::basic_unzip_streambuf::basic_unzip_stream
    buf(std::basic_istream&, unsigned int, unsigned i
    nt, unsigned int)]+0x1c0): undefined reference to `_inflateInit2_’

    build/src/release/cygwin/1.5/32/x86/gcc/utility/file/gzip_util.os:gzip_util.cc:(
    .text$_ZN11zlib_stream21basic_unzip_streambufIcSt11char_traitsIcESaIcEhSaIhEE17u
    nzip_from_streamEPci[zlib_stream::basic_unzip_streambuf::unzi
    p_from_stream(char*, int)]+0x2e): undefined reference to `_inflate’

    build/src/release/cygwin/1.5/32/x86/gcc/utility/file/gzip_util.os:gzip_util.cc:(
    .text$_ZN11zlib_stream21basic_unzip_streambufIcSt11char_traitsIcESaIcEhSaIhEE17u
    nzip_from_streamEPci[zlib_stream::basic_unzip_streambuf::unzi
    p_from_stream(char*, int)]+0x84): undefined reference to `_crc32′

    build/src/release/cygwin/1.5/32/x86/gcc/utility/io/ozstream.os:ozstream.cc:(.tex
    t$_ZN11zlib_stream19basic_zip_streambufIcSt11char_traitsIcESaIcEhSaIhEED1Ev[zlib
    _stream::basic_zip_streambuf::~basic_zip_streambuf()]+0x6e):
    undefined reference to `_deflateEnd’

    build/src/release/cygwin/1.5/32/x86/gcc/utility/io/ozstream.os:ozstream.cc:(.tex
    t$_ZN11zlib_stream19basic_zip_streambufIcSt11char_traitsIcESaIcEhSaIhEED0Ev[zlib
    _stream::basic_zip_streambuf::~basic_zip_streambuf()]+0x6e):
    undefined reference to `_deflateEnd’

    build/src/release/cygwin/1.5/32/x86/gcc/utility/io/ozstream.os:ozstream.cc:(.tex
    t$_ZN11zlib_stream19basic_zip_streambufIcSt11char_traitsIcESaIcEhSaIhEEC1ERSojNS
    _9EStrategyEjjj[zlib_stream::basic_zip_streambuf::basic_zip_s
    treambuf(std::basic_ostream&, unsigned int, zlib_
    stream::EStrategy, unsigned int, unsigned int, unsigned int)]+0x262): undefined
    reference to `_deflateInit2_’

    build/src/release/cygwin/1.5/32/x86/gcc/utility/io/ozstream.os:ozstream.cc:(.tex
    t$_ZN11zlib_stream19basic_zip_streambufIcSt11char_traitsIcESaIcEhSaIhEE13zip_to_
    streamEPci[zlib_stream::basic_zip_streambuf::zip_to_stream(ch
    ar*, int)]+0x3e): undefined reference to `_crc32′

    build/src/release/cygwin/1.5/32/x86/gcc/utility/io/ozstream.os:ozstream.cc:(.tex
    t$_ZN11zlib_stream19basic_zip_streambufIcSt11char_traitsIcESaIcEhSaIhEE13zip_to_
    streamEPci[zlib_stream::basic_zip_streambuf::zip_to_stream(ch
    ar*, int)]+0x5e): undefined reference to `_deflate’

    collect2: ld returned 1 exit status

    scons: *** [build/src/release/cygwin/1.5/32/x86/gcc/utility.dll] Error 1^

    Back to your questions:

    First, the object files now end up in sub-folders of the following address:

    __C:cygwinhomeuserrosetta_sourcebuildsrcreleasecygwin1.532x86gcc__

    This should be correct.

    Second, as far as I can tell, no actual executables (*.exe) or links to those are created – the __bin__ folder is empty.

    Cheers
    Christian