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 8287743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:07:49+00:00 2026-06-08T12:07:49+00:00

[Thank you everyone!., sorry i didn’t see the mismatched kernel, for some reason i

  • 0

[Thank you everyone!., sorry i didn’t see the mismatched kernel, for some reason i was thinking this was my ubuntu server 64 bit]

I compiled a custom gcc tool chain using ct-ng, compilation was successful but i wrote a simple hello world and i see this error

Could someone, please point me what is wrong here and why i get this error?

Error:

src/main$ ./main 
bash: ./main: cannot execute binary file

About OS

uname -a
Linux lnx-server 3.2.0-25-generic-pae #40-Ubuntu SMP Wed May 23 22:11:24 UTC 2012 i686 i686 i386 GNU/Linux

Some additional info on the file

src/main$ file main
main: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not stripped

File permission

-rwxrwxr-x 1 balravin balravin  8276 Jul 27 17:45 main

Command used to compile

src/main$ x86_64-mvl-linux-gnu-gcc -o main main2.c

GCC configuration

> src/main$ x86_64-mvl-linux-gnu-gcc --v Using built-in specs. Target:
> x86_64-mvl-linux-gnu Configured with:
> /home/balravin/tools/platform/x86/src/gnu/gcc/4.2.4/.build/src/gcc-4.2.4/configure
> --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=x86_64-mvl-linux-gnu --prefix=/home/balravin/tools/platform/x86/obj/gnu/gcc/4.2.4/x86_64-mvl-linux-gnu
> --with-sysroot=/home/balravin/tools/platform/x86/obj/gnu/gcc/4.2.4/x86_64-mvl-linux-gnu/x86_64-mvl-linux-gnu/sysroot
> --enable-languages=c,c++ --disable-sjlj-exceptions --enable-__cxa_atexit --enable-libmudflap --enable-libgomp --enable-libssp --enable-threads=posix --enable-target-optspace --with-long-double-128 --disable-nls --disable-multilib --with-local-prefix=/home/balravin/tools/platform/x86/obj/gnu/gcc/4.2.4/x86_64-mvl-linux-gnu/x86_64-mvl-linux-gnu/sysroot
> --enable-c99 --enable-long-long Thread model: posix gcc version 4.2.4

And finally main2.c

#include <stdio.h>
int main() {

    printf("\nHello Work\n");
    return 0;
}
  • 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-08T12:07:50+00:00Added an answer on June 8, 2026 at 12:07 pm

    You’re trying to run a 64-bit executable on a 32-bit OS. Either install a 64-bit OS, or rebuild your compiler to produce 32-bit executables.

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

Sidebar

Related Questions

First, I would to thank everyone for all the help they provide via this
thank you everyone for helping me out with this. i am new to ruby
Sorry if this question seems obvious for everyone, but I am very new to
Thanks everybody. (For some reason I couldn't up vote answers, so everyone wins today
update: I mistyped 2 variables...so embarrassing. thanks everyone for the effort! sorry i find
Right first of I would like to thank everyone for helping me out on
Once again my silliness has struck. I would like to thank everyone who helped
Greetings everyone and thank you for checking out my post. I am trying to
http://min.us/muKpIB16z Is that zsh? Could somebody share the PS1 code to everyone :P? Thank
Thanks everyone for taking the time to read this. I have styled my navigation

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.