Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Building RBuilder 14 with Delphi XE2 64-bit. Bad object file format.

edited December 2011 in General
Hello everybody,

I am trying to rebuild the RBuilder packages with the Delphi XE2 64-bit
compiler. I gathered all of them into a project group, configured output
paths and tried to compile the first one.

...\Source\rbRTL1416.dpk

The Win32 compilation went well, but compilation for the Win64 platform
failed. I am getting the following errors

Checking project dependencies...
Building rbRTL1416.dproj (Debug, Win64)
brcc32 command line for "rbRTL1416.vrc"
c:\program files (x86)\embarcadero\rad studio\9.0\bin\cgrc.exe -c65001
"rbRTL1416.vrc" -forbRTL1416.res
...
[DCC Error] ppZLib.pas(564): E2045 Bad object file format:
'C:\Users\Ender\Documents\RAD
Studio\Projects\PP\lib_com\RBuilder\trunk\Source\deflate.obj'
[DCC Error] ppZLib.pas(212): E2065 Unsatisfied forward or external
declaration: '_tr_init'
[DCC Error] ppZLib.pas(213): E2065 Unsatisfied forward or external
declaration: '_tr_tally'
[DCC Error] ppZLib.pas(214): E2065 Unsatisfied forward or external
declaration: '_tr_flush_block'
[DCC Error] ppZLib.pas(215): E2065 Unsatisfied forward or external
declaration: '_tr_align'
[DCC Error] ppZLib.pas(216): E2065 Unsatisfied forward or external
declaration: '_tr_stored_block'
[DCC Error] ppZLib.pas(217): E2065 Unsatisfied forward or external
declaration: 'adler32'
[DCC Error] ppZLib.pas(218): E2065 Unsatisfied forward or external
declaration: 'inflate_blocks_new'
[DCC Error] ppZLib.pas(219): E2065 Unsatisfied forward or external
declaration: 'inflate_blocks'
[DCC Error] ppZLib.pas(220): E2065 Unsatisfied forward or external
declaration: 'inflate_blocks_reset'
[DCC Error] ppZLib.pas(221): E2065 Unsatisfied forward or external
declaration: 'inflate_blocks_free'
[DCC Error] ppZLib.pas(222): E2065 Unsatisfied forward or external
declaration: 'inflate_set_dictionary'
[DCC Error] ppZLib.pas(223): E2065 Unsatisfied forward or external
declaration: 'inflate_trees_bits'
[DCC Error] ppZLib.pas(224): E2065 Unsatisfied forward or external
declaration: 'inflate_trees_dynamic'
[DCC Error] ppZLib.pas(225): E2065 Unsatisfied forward or external
declaration: 'inflate_trees_fixed'
[DCC Error] ppZLib.pas(226): E2065 Unsatisfied forward or external
declaration: 'inflate_trees_free'
[DCC Error] ppZLib.pas(227): E2065 Unsatisfied forward or external
declaration: 'inflate_codes_new'
[DCC Error] ppZLib.pas(228): E2065 Unsatisfied forward or external
declaration: 'inflate_codes'
[DCC Error] ppZLib.pas(229): E2065 Unsatisfied forward or external
declaration: 'inflate_codes_free'
[DCC Error] ppZLib.pas(230): E2065 Unsatisfied forward or external
declaration: '_inflate_mask'
[DCC Error] ppZLib.pas(231): E2065 Unsatisfied forward or external
declaration: 'inflate_flush'
[DCC Error] ppZLib.pas(232): E2065 Unsatisfied forward or external
declaration: 'inflate_fast'
[DCC Error] ppZLib.pas(248): E2065 Unsatisfied forward or external
declaration: 'deflateInit_'
[DCC Error] ppZLib.pas(249): E2065 Unsatisfied forward or external
declaration: 'deflate'
[DCC Error] ppZLib.pas(250): E2065 Unsatisfied forward or external
declaration: 'deflateEnd'
[DCC Error] ppZLib.pas(254): E2065 Unsatisfied forward or external
declaration: 'inflateInit_'
[DCC Error] ppZLib.pas(255): E2065 Unsatisfied forward or external
declaration: 'inflate'
[DCC Error] ppZLib.pas(256): E2065 Unsatisfied forward or external
declaration: 'inflateEnd'
[DCC Error] ppZLib.pas(257): E2065 Unsatisfied forward or external
declaration: 'inflateReset'
[DCC Fatal Error] rbRTL1416.dpk(65): F2063 Could not compile used unit
'ppZLib.pas'
Failed
Elapsed time: 00:00:03.4

I investigated the installation process a bit. I see that it does not
compile the RBuilder sources during installation. We have a build machine
that extracts all the project sources including third party libraries from
the internal SVN repository and then builds our projects. So, how can I
rebuild the packages? The ability to build for 64-bit platform is essential
for us.

Comments

  • edited December 2011
    Hi Andrew,

    Try commenting out the ppZLib.pas file from the "contains" clause of the
    rbRTL1416.dpk file and rebuild. There is no need for this file in newer
    versions of Delphi and it will not compile with 64 bit.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2011
    Thank for the suggestion. It works.

This discussion has been closed.