Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9191095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:36:13+00:00 2026-06-17T20:36:13+00:00

If I build the same source code, link to the same version of the

  • 0

If I build the same source code, link to the same version of the same libraries, with the same tool chain ( same compiler, linker etc , GCC 4.4), with the same version of the same operating system, ( Centos 5 Linux in my case) but on two different machines;

Is it reasonable to assume that binaries produced should be identical?

The context behind this is my code has ‘undefined behaviour’ which ‘works’ on one configuration but not the other, the obvious answer is to fix this, but I would be interested to know if my assumption that binaries produced should be the identical is correct.

I notice a few hundred bytes difference in size, the location of the symbols shown with the ‘nm’ command differ slightly, even though the symbols are the same.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:36:14+00:00Added an answer on June 17, 2026 at 8:36 pm

    Normally I would expect a date and/or meta data to vary slightly even between builds on the same host.

    You also neglected to mention compiler flags, (optimization and #defines from the command line for example).

    I would however initially suspect the files should come out to the same size, which leads us to the conclusion that something is not the same across the two systems. The most likely candidates are system headers (just one root-level feature in the OS install could cause an entirely different view of these files) and any dependent libraries.

    You can check that the headers are the same by preprocessing with g++ -E or similar. You can also follow the library path and confirm that the linked-to files are identical on each system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i need to build the same source tree twice, 1 - with normal cflags
we have different java source code projects. 3 projects are completly identical(fatclient, same dependencies
I'm trying to build binutils 2.21 source code with debugging on. My main aim
I have a Hierarchical project that uses source code from a common system-directory, for
I'm searching if it's possible to build the same Linux Kerneltwice (same sources, same
Is TeeChart .NET built from the same source as TeeChart VCL? I'm just wandering
I want to use the same ant script to do a build in either
Our Team Foundation Server has to build three different versions of the same solution.
By using paho(java) to build my own MQTT client.I would like to do same
I use Visual Assist X, build from 05.01.2009, but the same problem occurred in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.