Find the answer to your Linux question:
Results 1 to 2 of 2
hi am trying to cross compile a simple qemu emilator on Intel machine in Ubuntu OS but i came accross such warning "Please set TARGET to the Gnu target identifier ...
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Posts
    23

    Set a target

    hi
    am trying to cross compile a simple qemu emilator on Intel machine in Ubuntu OS
    but i came accross such warning
    "Please set TARGET to the Gnu target identifier (e.g. pentium-linux)"
    but i ain't got an idea of how to set a target. am not that good in Linux using.
    can someone give me a clue of how to handle it?

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Quote Originally Posted by Nkunzis View Post
    hi
    am trying to cross compile a simple qemu emilator on Intel machine in Ubuntu OS
    but i came accross such warning
    "Please set TARGET to the Gnu target identifier (e.g. pentium-linux)"
    but i ain't got an idea of how to set a target. am not that good in Linux using.
    can someone give me a clue of how to handle it?
    You can usually do this on the Makefile by setting CHOST. CFLAGS also count. Look into the the gcc man page for comprehensive info on the -march parameter.

    Some people also do this:

    Code:
    CC=${CHOST}-gcc
    CXX=${CHOST}-g++
    So, the right compiler is called.

    I can't help much with cross compiling anyway, because I've only done that a few times. But if you google for cross compiling in Gentoo or LFS, you might have some useful results.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...