Welcome! Log In Create A New Profile

Advanced

Repetier firmware compile errors

Posted by rrr7 
Repetier firmware compile errors
April 24, 2012 04:04PM
Repetier,
I really like how much you have commented the code, it makes is much easier to follow, thanks alot. But now after setting up the firmware v0.61 for my RAMPS 1.4 settings and compiling using Arduino v0022 on Fedora 16 64 bit and get the following errors which may be more PROGMEM statements that you comented about, could you help please? By the way, only my electronics are done, no heating elements or structure yet, so testing will be limited for now.
Thanks again,

ui.cpp:21:33: error: variable 'encoder_table' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
In file included from ui.h:388:0,
from ui.cpp:22:
uiconfig.h:438:1: error: variable 'ui_page1_1txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:438:1: error: variable 'ui_page1_2txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:438:1: error: variable 'ui_page1_3txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:438:1: error: variable 'ui_page1_4txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:438:1: error: variable 'ui_page1_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:442:1: error: variable 'ui_page2_1txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:442:1: error: variable 'ui_page2_2txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:442:1: error: variable 'ui_page2_3txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:442:1: error: variable 'ui_page2_4txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:442:1: error: variable 'ui_page2_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:482:1: error: variable 'ui_menu_error_1txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:482:1: error: variable 'ui_menu_error_2txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:482:1: error: variable 'ui_menu_error_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:487:1: error: variable 'ui_menu_xpos_1txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:487:1: error: variable 'ui_menu_xpos_2txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:487:1: error: variable 'ui_menu_xpos_3txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:487:1: error: variable 'ui_menu_xpos_4txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:487:1: error: variable 'ui_menu_xpos_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:488:1: error: variable 'ui_menu_ypos_1txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:488:1: error: variable 'ui_menu_ypos_2txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:488:1: error: variable 'ui_menu_ypos_3txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:488:1: error: variable 'ui_menu_ypos_4txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:488:1: error: variable 'ui_menu_ypos_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:489:1: error: variable 'ui_menu_zpos_1txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:489:1: error: variable 'ui_menu_zpos_2txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:489:1: error: variable 'ui_menu_zpos_3txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:489:1: error: variable 'ui_menu_zpos_4txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:489:1: error: variable 'ui_menu_zpos_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:490:1: error: variable 'ui_menu_xpos_fast_1txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:490:1: error: variable 'ui_menu_xpos_fast_2txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:490:1: error: variable 'ui_menu_xpos_fast_3txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:490:1: error: variable 'ui_menu_xpos_fast_4txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:490:1: error: variable 'ui_menu_xpos_fast_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:491:1: error: variable 'ui_menu_ypos_fast_1txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:491:1: error: variable 'ui_menu_ypos_fast_2txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:491:1: error: variable 'ui_menu_ypos_fast_3txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:491:1: error: variable 'ui_menu_ypos_fast_4txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:491:1: error: variable 'ui_menu_ypos_fast_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:492:1: error: variable 'ui_menu_zpos_fast_1txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:492:1: error: variable 'ui_menu_zpos_fast_2txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:492:1: error: variable 'ui_menu_zpos_fast_3txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:492:1: error: variable 'ui_menu_zpos_fast_4txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:492:1: error: variable 'ui_menu_zpos_fast_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:501:1: error: variable 'ui_menu_epos_1txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:501:1: error: variable 'ui_menu_epos_2txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:501:1: error: variable 'ui_menu_epos_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:508:1: error: variable 'ui_menu_back_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:516:1: error: variable 'ui_menu_home_all_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:517:1: error: variable 'ui_menu_home_x_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:518:1: error: variable 'ui_menu_home_y_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:519:1: error: variable 'ui_menu_home_z_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:520:1: error: variable 'ui_menu_go_xpos_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:521:1: error: variable 'ui_menu_go_ypos_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:522:1: error: variable 'ui_menu_go_zpos_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:523:1: error: variable 'ui_menu_go_epos_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:524:1: error: variable 'ui_menu_go_xfast_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:525:1: error: variable 'ui_menu_go_yfast_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:526:1: error: variable 'ui_menu_go_zfast_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:529:1: error: variable 'ui_menu_positions_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:533:1: error: variable 'ui_menu_ext_temp0_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:534:1: error: variable 'ui_menu_ext_temp1_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:535:1: error: variable 'ui_menu_bed_temp_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:536:1: error: variable 'ui_menu_ext_sel0_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:537:1: error: variable 'ui_menu_ext_sel1_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:538:1: error: variable 'ui_menu_ext_off0_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:539:1: error: variable 'ui_menu_ext_off1_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:540:1: error: variable 'ui_menu_ext_origin_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:558:1: error: variable 'ui_menu_extruder_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:563:1: error: variable 'ui_menu_quick_preheat_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:564:1: error: variable 'ui_menu_quick_cooldown_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:565:1: error: variable 'ui_menu_quick_origin_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:566:1: error: variable 'ui_menu_quick_stopstepper_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:568:1: error: variable 'ui_menu_quick_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:573:1: error: variable 'ui_menu_fan_off_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:574:1: error: variable 'ui_menu_fan_25_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:575:1: error: variable 'ui_menu_fan_50_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:576:1: error: variable 'ui_menu_fan_75_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:577:1: error: variable 'ui_menu_fan_full_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:579:1: error: variable 'ui_menu_fan_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:580:1: error: variable 'ui_menu_fan_sub_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:612:1: error: variable 'ui_menu_debug_echo_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:613:1: error: variable 'ui_menu_debug_info_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:614:1: error: variable 'ui_menu_debug_error_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:615:1: error: variable 'ui_menu_debug_dryrun_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:618:1: error: variable 'ui_menu_debugging_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:622:1: error: variable 'ui_menu_ops_off_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:623:1: error: variable 'ui_menu_ops_classic_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:624:1: error: variable 'ui_menu_ops_fast_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:625:1: error: variable 'ui_menu_ops_retract_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:626:1: error: variable 'ui_menu_ops_backslash_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:627:1: error: variable 'ui_menu_ops_mindist_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:628:1: error: variable 'ui_menu_ops_moveafter_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:630:1: error: variable 'ui_menu_ops_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:631:1: error: variable 'ui_menu_ops_sub_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:638:1: error: variable 'ui_menu_accel_printx_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:639:1: error: variable 'ui_menu_accel_printy_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:640:1: error: variable 'ui_menu_accel_printz_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:641:1: error: variable 'ui_menu_accel_travelx_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:642:1: error: variable 'ui_menu_accel_travely_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:643:1: error: variable 'ui_menu_accel_travelz_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:644:1: error: variable 'ui_menu_accel_jerk_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:645:1: error: variable 'ui_menu_accel_zjerk_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:647:1: error: variable 'ui_menu_accel_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:650:1: error: variable 'ui_menu_feedrate_maxx_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:651:1: error: variable 'ui_menu_feedrate_maxy_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:652:1: error: variable 'ui_menu_feedrate_maxz_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:653:1: error: variable 'ui_menu_feedrate_homex_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:654:1: error: variable 'ui_menu_feedrate_homey_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:655:1: error: variable 'ui_menu_feedrate_homez_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:657:1: error: variable 'ui_menu_feedrate_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:661:1: error: variable 'ui_menu_stepper2_1txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:661:1: error: variable 'ui_menu_stepper2_2txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:661:1: error: variable 'ui_menu_stepper2_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:662:1: error: variable 'ui_menu_maxinactive2_1txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:662:1: error: variable 'ui_menu_maxinactive2_2txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:662:1: error: variable 'ui_menu_maxinactive2_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:663:1: error: variable 'ui_menu_general_baud_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:664:1: error: variable 'ui_menu_general_stepper_inactive_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:665:1: error: variable 'ui_menu_general_max_inactive_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:667:1: error: variable 'ui_menu_general_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:671:1: error: variable 'ui_menu_cext_steps_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:672:1: error: variable 'ui_menu_cext_start_feedrate_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:673:1: error: variable 'ui_menu_cext_max_feedrate_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:674:1: error: variable 'ui_menu_cext_acceleration_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:675:1: error: variable 'ui_menu_cext_watch_period_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:676:1: error: variable 'ui_menu_cext_advancek_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:678:1: error: variable 'ui_menu_cext_manager_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:679:1: error: variable 'ui_menu_cext_pgain_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:680:1: error: variable 'ui_menu_cext_igain_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:681:1: error: variable 'ui_menu_cext_dgain_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:682:1: error: variable 'ui_menu_cext_dmin_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:683:1: error: variable 'ui_menu_cext_dmax_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:684:1: error: variable 'ui_menu_cext_pmax_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:701:1: error: variable 'ui_menu_cextr_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:704:1: error: variable 'ui_menu_conf_general_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:705:1: error: variable 'ui_menu_conf_accel_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:706:1: error: variable 'ui_menu_conf_feed_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:707:1: error: variable 'ui_menu_conf_extr_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:709:1: error: variable 'ui_menu_conf_to_eeprom_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:710:1: error: variable 'ui_menu_conf_from_eeprom_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:713:1: error: variable 'ui_menu_eeprom_saved_1txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:713:1: error: variable 'ui_menu_eeprom_saved_2txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:713:1: error: variable 'ui_menu_eeprom_saved_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:714:1: error: variable 'ui_menu_eeprom_loaded_1txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:714:1: error: variable 'ui_menu_eeprom_loaded_2txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:714:1: error: variable 'ui_menu_eeprom_loaded_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:720:1: error: variable 'ui_menu_configuration_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:722:1: error: variable 'ui_menu_main1_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:723:1: error: variable 'ui_menu_main2_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:724:1: error: variable 'ui_menu_main3_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:725:1: error: variable 'ui_menu_main4_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:726:1: error: variable 'ui_menu_main5_txt' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
uiconfig.h:728:1: error: variable 'ui_menu_main_entries' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
ui.cpp:36:26: error: variable 'encoder_table' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

Edited 2 time(s). Last edit at 04/24/2012 10:39PM by rrr7.
Re: Repetier firmware compile errors
April 25, 2012 03:04AM
I see the linux gcc avr compiler problem is back with the new code. The new linux gcc avr compiler complains if no const is added at the right place and it looks like I missed that. I try to install the linux compiler tonight and try to find the proper answer. If you have windows, you can already compile it there. But please use the latest version. 0.61 had some ui bugs already solved. I will post when the new version for linux is ready.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Re: Repetier firmware compile errors
April 25, 2012 12:10PM
It was really hard to produce the error. With debian squeeze and wheezy the toolchain is still too old for the error you got. After updating to the experimental toolchain I could produce the errors with avr-gcc 4.7.0. The parts in my firmware now work with that version and libavr 1.8.0.

The bad news is that testing with Mega2560 I saw that arduino itself doesn't support the new lib. I had to make two changes to get it working.

Fix 1: I got messages about using poisoned MACRO usage.

You need to find the io....h file where the macros get poisoned. For the Mega 2560 it was

/usr/lib/avr/include/avr/iomxx0_1.h

Search for
/* Deprecated items */
#if !defined(__AVR_LIBC_DEPRECATED_ENABLE__)

and change it into

/* Deprecated items */
#if false && !defined(__AVR_LIBC_DEPRECATED_ENABLE__)

Fix 2: prog_char is not defined any more. It can be replaced by char PROGMEM
I needed to fix it in Print.cpp line 44, so it looks now like
  const char PROGMEM *p = (const char PROGMEM *)ifsh;

If you use an other board you might experience similar problems, but the solutions should be similar.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Re: Repetier firmware compile errors
April 26, 2012 10:48PM
Repetier,
Thank you for your efforts, unfortunately I can't get that fix to work for me. Unless my searches were incorrect, in my installation version iomxx0_1.h and Print.cpp files do not contain those lines of code. sad smiley I may try to compile on a windows machine in the mean time as you suggest, but I am not in a big hurry just yet with my build. Let me know if you need any more info or testing to resolve it in Linux. I hope it doesn't take up too much of your time though, as I can see you are busy with all this software development.
Regards,
Rich-
Re: Repetier firmware compile errors
April 27, 2012 02:39AM
There is nothing more on my side to do unless I get some more informations. I think the compile errors in my firmware are now gone?

What version of Arduino/avr-gcc/avr-libc/Board are you using? What are the errors left?

As I said, these were the fixes in Arduino and libc I needed to make. Depending on your configuration other changes may be needed.

From experience I can say a windows installation is much easier. The main reason is, that Windows version is delivered with bundled avr-gcc compiler, so there is no fragmentation of possible combinations and the included libraries/board driver were all tested with this gcc/libc version.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Re: Repetier firmware compile errors
April 28, 2012 12:51AM
Unless I misunderstand, I think this is what you were asking for-
My versions appear to be as follows:
your firmware v0.61
Arduino v0022
avr-gcc-4.6.1
avr-libc-1.7.1
Board: Arduino Mega AVR ATmega1280-16AU USB
I am still somewhat a beginner with Arduino, so let me know if you needed something else.
My errors are still the same as the code you suggested to change, I could not locate in my files to make the changes. Maybe my file versions being different are the reason. Do I need to install a different Arduino version or something?
My Windows laptop that had Arduino loaded on just decided to no longer recognize its hard drive today, so that did not help any. I have a netbook that I could try to load Arduino on next.
Re: Repetier firmware compile errors
April 28, 2012 03:00AM
You forget one very important point. I fixed parts of the firmware to get rid of the compile errors. So if you have really version 0.61 you didn't download the latest version including the fixes I made for you.
With your avr-libc version the chances are high that this should suffice. The additional fixes I mentioned are only in Arduino 1.0 and avr-libc 1.8 which is why you didn't find them. So keep them and you have less trouble. If you still have some errors post them. With the new version I expect the old one go away.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Re: Repetier firmware compile errors
May 09, 2012 11:17AM
my bad, sorry for not picking up most recent firmware version 062.

yes, that fixed my compile errors. thank you very much! firmware uploaded successfully.

Edited 1 time(s). Last edit at 05/09/2012 11:33AM by rrr7.
Sorry, only registered users may post in this forum.

Click here to login