Find the answer to your Linux question:
Results 1 to 4 of 4
Sorry for the multiple posts here but now that I am finally able to edit my CHOST because I'm doing a Stage 1 install I can't figure out what arch ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User George Harrison's Avatar
    Join Date
    Mar 2005
    Location
    Pepperland
    Posts
    445

    A very quick CHOST question


    Sorry for the multiple posts here but now that I am finally able to edit my CHOST because I'm doing a Stage 1 install I can't figure out what arch I have.. I have an Athlon XP 2600, I'm almost positive that this would be an i686 but I have no idea, I would wing it but I don't want to screw anything up.. I already have a bad feeling about my fs's...

    Oh and while I am on the topic of compiling and such, can I use something else in my CFLAGS (based upon my info above) that would speed things up a bit in the compiling time? I've been using the standard -march and -pipe and -O2 and all but I'd like to speed the compiling time and tweak stuff. What could I change my CFLAGS and my MAKEOPTS to, to do this?
    Registered Linux user #393103

  2. #2
    Linux User George Harrison's Avatar
    Join Date
    Mar 2005
    Location
    Pepperland
    Posts
    445
    I'm thinking a "-O3" instead of a 2 would speed things up a bit - I won't do it until I get the "OK" though, I'm not a pro at Gentoo so I don't know how some stuff works.
    Registered Linux user #393103

  3. #3
    Linux Engineer
    Join Date
    Mar 2005
    Posts
    1,431
    About the other options, here's the fragment of mine containing makeopt and such:
    Code:
    CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
    CHOST="i686-pc-linux-gnu"
    CXXFLAGS="${CFLAGS}"
    MAKEOPTS="-j2"
    Also, it seems like your processor is i686, look here (taken from here):
    Architecture Subarchitecture CHOST Setting
    x86 i386 i386-pc-linux-gnu
    x86 i486 i486-pc-linux-gnu
    x86 i586 i586-pc-linux-gnu
    x86 i686 and above (incl. athlon) i686-pc-linux-gnu
    alpha alpha-unknown-linux-gnu
    ppc powerpc-unknown-linux-gnu
    ppc64 powerpc64-unknown-linux-gnu
    sparc sparc-unknown-linux-gnu
    sparc64 sparc-unknown-linux-gnu
    hppa (generic) hppa-unknown-linux-gnu
    hppa pa7000 hppa1.1-unknown-linux-gnu
    hppa pa8000 and above hppa2.0-unknown-linux-gnu
    mips mips-unknown-linux-gnu
    amd64 x86_64-pc-linux-gnu
    EDIT: From what heard, -O3 can make some stuff not compile... For example, at my place openoffice would only compile at "-O0" (zero).

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User George Harrison's Avatar
    Join Date
    Mar 2005
    Location
    Pepperland
    Posts
    445
    OK thanks. I was almost positive about the i686 but then I saw all the warnings on CHOST so I figured that I should play it safe. I guess I'll just use the standard for the CFLAGS, I shouldn't really mess with anything. I don't use the fomit, here's what mine usually looks like:
    Code:
    CFLAGS="-march=athlon-xp -pipe -O2"   
    CXXFLAGS="${CFLAGS}" 
    MAKEOPTS="-j2"
    Hmm.. I'd better stick with the -O2 then, it's never failed me. Once I get a bit better at Gentoo I'll start tweaking it to my exact needs, speed wise. Thanks for the help, hopefully I won't need to make any more posts soon.
    Registered Linux user #393103

Posting Permissions

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