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. Device Manager Error Codes
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-05-2005, 12:52 AM
  2. GL not working ati 7000
    By Mip in forum Linux - Software, Applications & Programming
    Replies: 19
    Last Post: 10-28-2004, 09:29 PM
  3. Questions,sound, aureal, using MDK 9.0
    By SuperRobotic in forum Linux - General Topics
    Replies: 12
    Last Post: 02-10-2003, 01:31 PM
  4. problems compiling fealnx.c
    By jjanela in forum Linux - Software, Applications & Programming
    Replies: 15
    Last Post: 01-04-2003, 09:54 AM
  5. Tid-Bits #6- GRUB error code
    By babbing in forum Linux - General Topics
    Replies: 2
    Last Post: 09-10-2002, 08:44 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
  •