Results 1 to 4 of 4

Thread: LFS mawk compile error

  1. #1

    LFS mawk compile error

    After a brawl with my CFLAGS setting I am off into the world of LFS....or at least I thought.....that was until I tried to compile mawk. It seems to compile fine but it fails at the end when it is testing itself. This is the error I am getting.
    Code:
    testing arrays and flow of control
    mawk_test failed
    make: *** [mawk_test] Error 1
    I believe this is due to the CFLAGS setting as it compiled last night just fine. Here is my CFLAGS setting. I am sure I can tone this down a bit but I would know where to start. I could always just not use optimization but I really wanted to compile LFS with optimization.
    Code:
    CFLAGS="-O3 -fforce-mem -fforce-addr -finline-functions -fkeep-inline-functions -ffast-math -fstrength-reduce -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop -frerun-loop-opt -fexpensive-optimizations -fschedule-insns2 -fcaller-saves -funroll-loops -fmove-all-movables -fomit-frame-pointer -march=i686 -mcpu=i686"
    Any Ideas?? ???

  2. #2
    Guest

    Re: LFS mawk compile error

    cut down on the optimizations... but hell that worked for me

  3. #3

    Re: LFS mawk compile error


    but hell that worked for me
    Thats more or less why I posted this.....I cut them down and it has happily compiled. ;D

  4. #4
    Guest

    Re: LFS mawk compile error

    for optimisations just use "-O3 -march=i686 -mcpu=i686"
    don't use that big ass optimisations string cuz that's more likely to break stuff. A lot of those optimisations are very application-specific and if u force them on an application (by adding them to your CFLAGS) that doesn't really like them things end up bad.

    seriously, do urself a favor and stick to the optimsations i mentioned in this post, but don't use more than that

Similar Threads

  1. gcc-3.3.3 compile error(Gentoo)
    By gmoreno in forum Linux - Software, Applications & Programming
    Replies: 9
    Last Post: 07-18-2004, 01:48 PM
  2. Compile Error in Redhat 9.0
    By inspire_d in forum Linux - General Topics
    Replies: 2
    Last Post: 03-16-2004, 06:39 PM
  3. kernel compile error
    By Compunuts in forum Linux - General Topics
    Replies: 4
    Last Post: 12-24-2003, 03:49 AM
  4. php compile error
    By kemu in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 09-29-2002, 10:56 AM
  5. compile error
    By LiNuts in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 06-01-2002, 11:25 AM

Bookmarks

Posting Permissions

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