Compile Error, but no error listed..

Help
Jim B.
2010-05-20
2013-03-12
  • Jim B.
    Jim B.
    2010-05-20

    I'm getting this error

    make: ***  Error 1

    But there is no error listed.

    This code compiles

      
    //if (BOGUS_CONFIG == 0) {
        
        DC_OK_OUT_L = 0; // now we can let the rest of the board power up....
      
        monitor_power();
        
        delay(20000); // one more for good measure...
    //}
    /code]
    But if I take the comments out
    [code]
      if (BOGUS_CONFIG == 0) {
        
        DC_OK_OUT_L = 0; // now we can let the rest of the board power up....
      
        monitor_power();
        
        delay(20000); // one more for good measure...
    }
    [/code]
    Then I get the error with no explanation.  All that is created is the .adb and .asm file.
    Where do I go from here.
    Here is the all the text that is output..
    [code]../tools/sdcc/bin/sdcc -DEBB6300 -DENG_VER -DOCT_PASS1 -I. -I../tools/sdcc/share/sdcc/include  --xram-size 1792  --model-large --debug     ebb6300_mcu.c crtxinit.rel -o ebb6300_mcu_eng.ihx
    octeon_eeprom_types.h:95: warning 126: unreachable code
    octeon_eeprom_types.h:95: warning 126: unreachable code
    octeon_eeprom_types.h:95: warning 126: unreachable code
    i2cdriver.c:121: warning 126: unreachable code
    ebb6300_mcu.c:2801: warning 85: in function poll_isp_reset unreferenced local variable : 't'
    ebb6300_mcu.c:2801: warning 85: in function poll_isp_reset unreferenced local variable : 'xx'
    make: *** [ebb6300_mcu_eng.ihx] Error 1
    [/code]
    I get the same warnings in the working case as well.
    Thanks,
    Jim
    
     
  • Jim B.
    Jim B.
    2010-05-20

    I turned on the -V flag and I get this

    ebb6300_mcu.c:2801: warning 85: in function poll_isp_reset unreferenced local variable : 'xx'
    + "../tools/sdcc/bin/asx8051" -plosgffc "ebb6300_mcu_eng.asm"
    + "../tools/sdcc/bin/asx8051" -plosgffc "ebb6300_mcu_eng.asm" returned errorcode -1
    make: ***  Error 1

    So it seems like the assembler is puking.  If I do it by hand

    ../tools/sdcc/bin/asx8051 -plosgffc ebb6300_mcu_eng.asm

    it completes.

    I'm not an expert here so I don't know how to procede.

     
  • Jim B.
    Jim B.
    2010-05-20

    Never mind…  I switched machines and it compiles fine.  Maybe the first machine is running out of memory or something..

    Well there's a couple hours of my life I'll never get back!