|
Hi everybody,
as I mentioned in my first question I am trying to use BrickOS. But I am not
using the Bricx Command Center or something special for the LEGO RCX to compile
it, I am using the HEW (Renases tool for the H8/300L microcontroller which is
included in the LEGO RCXs) and the free compiler Kpit GNUH8 [ELF] Toolchain. I
am doing this, because I have some other files which need this compiler. If I
didn't use this compiler I would need to write a lot of assembler code again and
would spend a lot of time (which I don't have).
During the compiling phase there are no errors appearing, but during the linker
phase there appear several "undefined reference" errors (see them below). I
searched the whole brickOS-folder by text-search, but I didn't find any of the
references (that means that those definitions of the references are not included
to BrickOS). Does the Bricx Command Center include some assembler files or does
the BrickOS need some more assembler files which are not included in the packet?
Does BrickOS use some predefined assembler files on the RCXs? Or where can I get
the assembler code of the definitions of those references?
Below you can see the undefined reference errors:
Phase Linker starting
h8300-elf-ld.exe: warning: cannot find entry symbol _start; defaulting to
00000100
..\battery.o(.text+0xa): In function `get_battery_mv':
..\brickos-0.2.6.10.6\kernel/battery.c:53: undefined reference to `_AD_D'
..\conio.o(.text+0x35b): In function `cputw':
..\brickos-0.2.6.10.6\kernel/conio.c:378: undefined reference to `_cputc_hex'
..\conio.o(.text+0x3d5): In function `cputs':
..\brickos-0.2.6.10.6\kernel/conio.c:402: undefined reference to `_cputc'
..\critsec.o(.text+0xd7): In function `enter_critical_section':
..\brickos-0.2.6.10.6\kernel/critsec.c:98: undefined reference to `_wait_event'
..\dkey.o(.text+0x12): In function `dkey_check':
: undefined reference to `_PORT4'
..\dkey.o(.text+0x1e): In function `dkey_check':
: undefined reference to `_PORT7'
..\dkey.o(.text+0x101): In function `getchar':
..\brickos-0.2.6.10.6\kernel/dkey.c:125: undefined reference to `_wait_event'
..\dkey.o(.text+0x111):..\brickos-0.2.6.10.6\kernel/dkey.c:129: undefined
reference to `_wait_event'
..\dmotor.o(.text+0x25): In function `dm_shutdown':
..\brickos-0.2.6.10.6\kernel/dmotor.c:144: undefined reference to
`_motor_a_speed'
..\dmotor.o(.text+0x2b):..\brickos-0.2.6.10.6\kernel/dmotor.c:145: undefined
reference to `_motor_b_speed'
..\dmotor.o(.text+0x31):..\brickos-0.2.6.10.6\kernel/dmotor.c:146: undefined
reference to `_motor_c_speed'
..\dmotor.o(.text+0x38):..\brickos-0.2.6.10.6\kernel/dmotor.c:148: undefined
reference to `_motor_controller'
..\dmotor.o(.text.hi+0x45): In function `motor_a_dir':
..\brickos-0.2.6.10.6\kernel/dmotor.c:157: undefined reference to
`_motor_controller'
..\dsensor.o(.text+0x18): In function `ds_rotation_set':
..\brickos-0.2.6.10.6\kernel/dsensor.c:130: undefined reference to `_AD_A'
..\dsensor.o(.text+0x28):..\brickos-0.2.6.10.6\kernel/dsensor.c:130: undefined
reference to `_AD_C'
..\dsensor.o(.text+0x38):..\brickos-0.2.6.10.6\kernel/dsensor.c:131: undefined
reference to `_AD_A'
..\dsensor.o(.text+0xd2): In function `ds_rotation_handler':
..\brickos-0.2.6.10.6\kernel/dsensor.c:150: undefined reference to `_AD_A'
..\dsensor.o(.text+0x1ff): In function `.LFE26':
..\brickos-0.2.6.10.6\kernel/dsensor.c:217: undefined reference to `_PORT6'
..\dsensor.o(.text+0x22b): In function `ds_norot':
..\brickos-0.2.6.10.6\kernel/dsensor.c:217: undefined reference to `_PORT6'
..\dsensor.o(.text+0x23b): In function `settle':
..\brickos-0.2.6.10.6\kernel/dsensor.c:217: undefined reference to `_AD_CSR'
..\dsensor.o(.text+0x241):..\brickos-0.2.6.10.6\kernel/dsensor.c:217: undefined
reference to `_AD_CSR'
..\dsensor.o(.text+0x243):..\brickos-0.2.6.10.6\kernel/dsensor.c:217: undefined
reference to `_AD_CSR'
..\dsensor.o(.text+0x24e): In function `ds_init':
..\brickos-0.2.6.10.6\kernel/dsensor.c:582: undefined reference to
`_rom_port6_ddr'
..\dsensor.o(.text+0x254):..\brickos-0.2.6.10.6\kernel/dsensor.c:582: undefined
reference to `_rom_port6_ddr'
..\dsensor.o(.text+0x258):..\brickos-0.2.6.10.6\kernel/dsensor.c:583: undefined
reference to `_rom_port6_ddr'
..\dsensor.o(.text+0x25c):..\brickos-0.2.6.10.6\kernel/dsensor.c:583: undefined
reference to `_PORT6_DDR'
..\dsensor.o(.text+0x276):..\brickos-0.2.6.10.6\kernel/dsensor.c:596: undefined
reference to `_ad_vector'
..\dsensor.o(.text+0x27c):..\brickos-0.2.6.10.6\kernel/dsensor.c:597: undefined
reference to `_AD_CR'
..\dsensor.o(.text+0x282):..\brickos-0.2.6.10.6\kernel/dsensor.c:597: undefined
reference to `_AD_CR'
..\dsensor.o(.text+0x288):..\brickos-0.2.6.10.6\kernel/dsensor.c:598: undefined
reference to `_AD_CSR'
..\dsensor.o(.text+0x29e): In function `ds_shutdown':
..\brickos-0.2.6.10.6\kernel/dsensor.c:614: undefined reference to `_AD_CSR'
..\dsensor.o(.text+0x2a2):..\brickos-0.2.6.10.6\kernel/dsensor.c:615: undefined
reference to `_PORT6'
..\dsensor.o(.text+0x2a8):..\brickos-0.2.6.10.6\kernel/dsensor.c:615: undefined
reference to `_PORT6'
..\dsensor.o(.text+0x2ac):..\brickos-0.2.6.10.6\kernel/dsensor.c:616: undefined
reference to `_rom_port6_ddr'
..\dsensor.o(.text+0x2b2):..\brickos-0.2.6.10.6\kernel/dsensor.c:616: undefined
reference to `_rom_port6_ddr'
..\dsensor.o(.text+0x2b6):..\brickos-0.2.6.10.6\kernel/dsensor.c:617: undefined
reference to `_rom_port6_ddr'
..\dsensor.o(.text+0x2ba):..\brickos-0.2.6.10.6\kernel/dsensor.c:617: undefined
reference to `_PORT6_DDR'
..\dsound.o(.text+0x152): In function `play_freq':
..\brickos-0.2.6.10.6\kernel/dsound.c:92: undefined reference to `_T0_CR'
..\dsound.o(.text+0x158):..\brickos-0.2.6.10.6\kernel/dsound.c:93: undefined
reference to `_T0_CNT'
..\dsound.o(.text+0x164):..\brickos-0.2.6.10.6\kernel/dsound.c:100: undefined
reference to `_STCR'
..\dsound.o(.text+0x16a):..\brickos-0.2.6.10.6\kernel/dsound.c:100: undefined
reference to `_STCR'
..\dsound.o(.text+0x170):..\brickos-0.2.6.10.6\kernel/dsound.c:102: undefined
reference to `_STCR'
..\dsound.o(.text+0x176):..\brickos-0.2.6.10.6\kernel/dsound.c:102: undefined
reference to `_STCR'
..\dsound.o(.text+0x17e):..\brickos-0.2.6.10.6\kernel/dsound.c:105: undefined
reference to `_T0_CORA'
..\dsound.o(.text+0x18a):..\brickos-0.2.6.10.6\kernel/dsound.c:106: undefined
reference to `_T0_CR'
..\dsound.o(.text+0x19c): In function `play_pause':
..\brickos-0.2.6.10.6\kernel/dsound.c:111: undefined reference to `_T0_CR'
..\dsound.o(.text+0x1be): In function `dsound_init':
..\brickos-0.2.6.10.6\kernel/dsound.c:165: undefined reference to `_T0_CSR'
..\kmain.o(.text+0x7e): In function `kmain':
..\brickos-0.2.6.10.6\kernel/kmain.c:154: undefined reference to `___etext_hi'
..\kmain.o(.text+0x82):..\brickos-0.2.6.10.6\kernel/kmain.c:154: undefined
reference to `___text_hi'
..\kmain.o(.text+0x88):..\brickos-0.2.6.10.6\kernel/kmain.c:154: undefined
reference to `_(bool, short, short)'
..\kmain.o(.text+0x8c):..\brickos-0.2.6.10.6\kernel/kmain.c:154: undefined
reference to `___text_hi'
..\kmain.o(.text+0x94):..\brickos-0.2.6.10.6\kernel/kmain.c:156: undefined
reference to `_rom_reset_vector'
..\kmain.o(.text+0x98):..\brickos-0.2.6.10.6\kernel/kmain.c:156: undefined
reference to `_reset_vector'
..\kmain.o(.text+0x9e):..\brickos-0.2.6.10.6\kernel/kmain.c:159: undefined
reference to `_motor_controller'
..\kmain.o(.text+0xa2):..\brickos-0.2.6.10.6\kernel/kmain.c:161: undefined
reference to `___bss_end'
..\kmain.o(.text+0xa6):..\brickos-0.2.6.10.6\kernel/kmain.c:161: undefined
reference to `_(bool, short, short)'
..\kmain.o(.text+0xae):..\brickos-0.2.6.10.6\kernel/kmain.c:161: undefined
reference to `_(bool, short, short)'
..\kmain.o(.text+0xb9):..\brickos-0.2.6.10.6\kernel/kmain.c:168: undefined
reference to `_power_init'
..\kmain.o(.text+0xdd):..\brickos-0.2.6.10.6\kernel/kmain.c:193: undefined
reference to `_tm_init'
..\kmain.o(.text+0xe5):..\brickos-0.2.6.10.6\kernel/kmain.c:199: undefined
reference to `_show_on'
..\kmain.o(.text+0x10b):..\brickos-0.2.6.10.6\kernel/kmain.c:225: undefined
reference to `_tm_start'
..\kmain.o(.text+0x10f):..\brickos-0.2.6.10.6\kernel/kmain.c:230: undefined
reference to `_show_off'
..\kmain.o(.text+0x167):..\brickos-0.2.6.10.6\kernel/kmain.c:260: undefined
reference to `_rom_reset'
..\kmain.o(.text+0x16b):..\brickos-0.2.6.10.6\kernel/kmain.c:262: undefined
reference to `_lcd_clear'
..\kmain.o(.text+0x173):..\brickos-0.2.6.10.6\kernel/kmain.c:265: undefined
reference to `_power_off'
..\lcd.o(.text+0x9): In function `_lcd_number':
: undefined reference to `lcd_number'
..\lcd.o(.text+0x88): In function `i2c_read_ack':
..\brickos-0.2.6.10.6\kernel/lcd.c:156: undefined reference to `_rom_port6_ddr'
..\lcd.o(.text+0x8e):..\brickos-0.2.6.10.6\kernel/lcd.c:156: undefined reference
to `_rom_port6_ddr'
..\lcd.o(.text+0x92):..\brickos-0.2.6.10.6\kernel/lcd.c:157: undefined reference
to `_rom_port6_ddr'
..\lcd.o(.text+0x96):..\brickos-0.2.6.10.6\kernel/lcd.c:157: undefined reference
to `_PORT6_DDR'
..\lcd.o(.text+0xa2):..\brickos-0.2.6.10.6\kernel/lcd.c:162: undefined reference
to `_rom_port6_ddr'
..\lcd.o(.text+0xa8):..\brickos-0.2.6.10.6\kernel/lcd.c:162: undefined reference
to `_rom_port6_ddr'
..\lcd.o(.text+0xac):..\brickos-0.2.6.10.6\kernel/lcd.c:163: undefined reference
to `_rom_port6_ddr'
..\lcd.o(.text+0xb0):..\brickos-0.2.6.10.6\kernel/lcd.c:163: undefined reference
to `_PORT6_DDR'
..\lcd.o(.text+0x164): In function `lcd_refresh_next_byte_core':
..\brickos-0.2.6.10.6\kernel/lcd.c:239: undefined reference to `_display_memory'
..\lcd.o(.text+0x17a):..\brickos-0.2.6.10.6\kernel/lcd.c:242: undefined
reference to `_display_memory'
..\lcd.o(.text+0x192):..\brickos-0.2.6.10.6\kernel/lcd.c:244: undefined
reference to `_display_memory'
..\lcd.o(.text+0x1ca): In function `lcd_refresh':
..\brickos-0.2.6.10.6\kernel/lcd.c:260: undefined reference to `_display_memory'
..\lcd.o(.text+0x22e): In function `lcd_init':
..\brickos-0.2.6.10.6\kernel/lcd.c:298: undefined reference to `_rom_port6_ddr'
..\lcd.o(.text+0x234):..\brickos-0.2.6.10.6\kernel/lcd.c:298: undefined
reference to `_rom_port6_ddr'
..\lcd.o(.text+0x238):..\brickos-0.2.6.10.6\kernel/lcd.c:299: undefined
reference to `_rom_port6_ddr'
..\lcd.o(.text+0x23c):..\brickos-0.2.6.10.6\kernel/lcd.c:299: undefined
reference to `_PORT6_DDR'
..\lcd.o(.text+0x244):..\brickos-0.2.6.10.6\kernel/lcd.c:301: undefined
reference to `_rom_port6_ddr'
..\lcd.o(.text+0x24a):..\brickos-0.2.6.10.6\kernel/lcd.c:301: undefined
reference to `_rom_port6_ddr'
..\lcd.o(.text+0x24e):..\brickos-0.2.6.10.6\kernel/lcd.c:302: undefined
reference to `_rom_port6_ddr'
..\lcd.o(.text+0x252):..\brickos-0.2.6.10.6\kernel/lcd.c:302: undefined
reference to `_PORT6_DDR'
..\lnp-logical.o(.text+0x7c): In function `rx_core':
..\brickos-0.2.6.10.6\kernel/lnp-logical.c:124: undefined reference to `_S_RDR'
..\lnp-logical.o(.text+0x8c):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:128:
undefined reference to `_S_RDR'
..\lnp-logical.o(.text+0xba):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:140:
undefined reference to `_S_SR'
..\lnp-logical.o(.text+0xc0):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:140:
undefined reference to `_S_SR'
..\lnp-logical.o(.text+0x152): In function `rxerror_core':
..\brickos-0.2.6.10.6\kernel/lnp-logical.c:161: undefined reference to `_S_SR'
..\lnp-logical.o(.text+0x158):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:161:
undefined reference to `_S_SR'
..\lnp-logical.o(.text+0x180): In function `txend_core':
..\brickos-0.2.6.10.6\kernel/lnp-logical.c:174: undefined reference to `_S_CR'
..\lnp-logical.o(.text+0x186):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:174:
undefined reference to `_S_CR'
..\lnp-logical.o(.text+0x18c):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:175:
undefined reference to `_S_SR'
..\lnp-logical.o(.text+0x192):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:175:
undefined reference to `_S_SR'
..\lnp-logical.o(.text+0x1cc): In function `tx_core':
..\brickos-0.2.6.10.6\kernel/lnp-logical.c:190: undefined reference to `_S_TDR'
..\lnp-logical.o(.text+0x1d2):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:191:
undefined reference to `_S_SR'
..\lnp-logical.o(.text+0x1d8):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:191:
undefined reference to `_S_SR'
..\lnp-logical.o(.text+0x1e0):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:195:
undefined reference to `_S_CR'
..\lnp-logical.o(.text+0x1e6):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:195:
undefined reference to `_S_CR'
..\lnp-logical.o(.text+0x1f4): In function `lnp_logical_shutdown':
..\brickos-0.2.6.10.6\kernel/lnp-logical.c:201: undefined reference to `_S_CR'
..\lnp-logical.o(.text+0x1f7):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:202:
undefined reference to `_carrier_shutdown'
..\lnp-logical.o(.text+0x1fd):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:203:
undefined reference to `_lnp_logical_range'
..\lnp-logical.o(.text+0x217):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:209:
undefined reference to `_sem_destroy'
..\lnp-logical.o(.text+0x231): In function `lnp_logical_init':
..\brickos-0.2.6.10.6\kernel/lnp-logical.c:222: undefined reference to
`_sem_init'
..\lnp-logical.o(.text+0x238):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:228:
undefined reference to `_S_MR'
..\lnp-logical.o(.text+0x23e):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:229:
undefined reference to `_S_BRR'
..\lnp-logical.o(.text+0x244):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:230:
undefined reference to `_S_SR'
..\lnp-logical.o(.text+0x248):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:234:
undefined reference to `_rom_port4_ddr'
..\lnp-logical.o(.text+0x24e):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:234:
undefined reference to `_rom_port4_ddr'
..\lnp-logical.o(.text+0x252):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:235:
undefined reference to `_rom_port4_ddr'
..\lnp-logical.o(.text+0x256):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:235:
undefined reference to `_PORT4_DDR'
..\lnp-logical.o(.text+0x259):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:236:
undefined reference to `_carrier_init'
..\lnp-logical.o(.text+0x260):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:237:
undefined reference to `_rom_port5_ddr'
..\lnp-logical.o(.text+0x264):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:238:
undefined reference to `_rom_port5_ddr'
..\lnp-logical.o(.text+0x268):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:238:
undefined reference to `_PORT5_DDR'
..\lnp-logical.o(.text+0x270):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:242:
undefined reference to `_eri_vector'
..\lnp-logical.o(.text+0x278):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:243:
undefined reference to `_rxi_vector'
..\lnp-logical.o(.text+0x280):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:244:
undefined reference to `_txi_vector'
..\lnp-logical.o(.text+0x288):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:245:
undefined reference to `_tei_vector'
..\lnp-logical.o(.text+0x28e):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:249:
undefined reference to `_S_CR'
..\lnp-logical.o(.text+0x3a7): In function `lnp_logical_write':
..\brickos-0.2.6.10.6\kernel/lnp-logical.c:278: undefined reference to
`_wait_event'
..\lnp-logical.o(.text+0x3dc):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:286:
undefined reference to `_S_SR'
..\lnp-logical.o(.text+0x3e2):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:286:
undefined reference to `_S_SR'
..\lnp-logical.o(.text+0x3e6):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:287:
undefined reference to `_S_CR'
..\lnp-logical.o(.text+0x3ec):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:287:
undefined reference to `_S_CR'
..\lnp-logical.o(.text+0x3f5):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:289:
undefined reference to `_wait_event'
..\lnp-logical.o(.text+0x451):..\brickos-0.2.6.10.6\kernel/lnp-logical.c:304:
undefined reference to `_sem_post'
..\lnp.o(.text+0x353): In function `lnp_integrity_byte':
..\brickos-0.2.6.10.6\kernel/lnp.c:277: undefined reference to
`_lnp_logical_range_is_far'
..\lnp.o(.text+0x749): In function `lnp_init':
..\brickos-0.2.6.10.6\kernel/lnp.c:507: undefined reference to `_clear_msg'
..\mm.o(.text+0x38): In function `mm_try_join':
..\brickos-0.2.6.10.6\kernel/mm.c:74: undefined reference to `_mm_start'
..\mm.o(.text+0x92): In function `mm_defrag':
..\brickos-0.2.6.10.6\kernel/mm.c:85: undefined reference to `_mm_start'
..\mm.o(.text+0xa6):..\brickos-0.2.6.10.6\kernel/mm.c:89: undefined reference to
`_mm_start'
..\mm.o(.text+0x116): In function `mm_update_first_free':
..\brickos-0.2.6.10.6\kernel/mm.c:106: undefined reference to `_mm_start'
..\mm.o(.text+0x150): In function `mm_init':
..\brickos-0.2.6.10.6\kernel/mm.c:119: undefined reference to `_mm_start'
..\mm.o(.text+0x158):..\brickos-0.2.6.10.6\kernel/mm.c:123: more undefined
references to `_mm_start' follow
..\program.o(.text+0x117): In function `program_run':
..\brickos-0.2.6.10.6\kernel/program.c:133: undefined reference to `_execi'
..\program.o(.text+0x18f): In function `packet_producer':
..\brickos-0.2.6.10.6\kernel/program.c:157: undefined reference to `_sem_post'
..\program.o(.text+0x243): In function `packet_consumer':
..\brickos-0.2.6.10.6\kernel/program.c:190: undefined reference to
`_lnp_logical_range'
..\program.o(.text+0x263):..\brickos-0.2.6.10.6\kernel/program.c:195: undefined
reference to `_lnp_logical_range'
..\program.o(.text+0x2a7):..\brickos-0.2.6.10.6\kernel/program.c:206: undefined
reference to `_lnp_set_hostaddr'
..\program.o(.text+0x61d): In function `program_stop':
..\brickos-0.2.6.10.6\kernel/program.c:320: undefined reference to
`_shutdown_tasks'
..\program.o(.text+0x64f):..\brickos-0.2.6.10.6\kernel/program.c:325: undefined
reference to `_msleep'
..\program.o(.text+0x679):..\brickos-0.2.6.10.6\kernel/program.c:335: undefined
reference to `_killall'
..\program.o(.text+0x695):..\brickos-0.2.6.10.6\kernel/program.c:359: undefined
reference to `_lr_set_handler'
..\program.o(.text+0x737): In function `key_handler':
..\brickos-0.2.6.10.6\kernel/program.c:384: undefined reference to
`_shutdown_tasks'
..\program.o(.text+0x775):..\brickos-0.2.6.10.6\kernel/program.c:390: undefined
reference to `_msleep'
..\program.o(.text+0x78b):..\brickos-0.2.6.10.6\kernel/program.c:393: undefined
reference to `_killall'
..\program.o(.text+0x98b):..\brickos-0.2.6.10.6\kernel/program.c:465: undefined
reference to `_cputc_0'
..\program.o(.text+0xa71):..\brickos-0.2.6.10.6\kernel/program.c:488: undefined
reference to `_wait_event'
..\program.o(.text+0xc55): In function `lrkey_handler':
..\brickos-0.2.6.10.6\kernel/program.c:539: undefined reference to
`_cputc_hex_0'
..\program.o(.text+0xe75): In function `program_init':
..\brickos-0.2.6.10.6\kernel/program.c:640: undefined reference to `_sem_init'
..\program.o(.text+0xe8d):..\brickos-0.2.6.10.6\kernel/program.c:641: undefined
reference to `_execi'
..\program.o(.text+0xea9):..\brickos-0.2.6.10.6\kernel/program.c:642: undefined
reference to `_execi'
..\program.o(.text+0xeb9):..\brickos-0.2.6.10.6\kernel/program.c:647: undefined
reference to `_lr_set_handler'
..\program.o(.text+0xec3):..\brickos-0.2.6.10.6\kernel/program.c:650: undefined
reference to `_lnp_addressing_set_handler'
..\program.o(.text+0xed9): In function `program_shutdown':
..\brickos-0.2.6.10.6\kernel/program.c:658: undefined reference to
`_lnp_addressing_set_handler'
..\program.o(.text+0xee1):..\brickos-0.2.6.10.6\kernel/program.c:659: undefined
reference to `_sem_destroy'
..\remote.o(.text+0x1b5): In function `lr_thread':
..\brickos-0.2.6.10.6\kernel/remote.c:122: undefined reference to `_wait_event'
..\remote.o(.text+0x1ed): In function `lr_init':
..\brickos-0.2.6.10.6\kernel/remote.c:137: undefined reference to
`_lnp_remote_set_handler'
..\remote.o(.text+0x233): In function `lr_startup':
..\brickos-0.2.6.10.6\kernel/remote.c:152: undefined reference to `_execi'
..\remote.o(.text+0x24f): In function `lr_shutdown':
..\brickos-0.2.6.10.6\kernel/remote.c:162: undefined reference to
`_lnp_remote_set_handler'
..\remote.o(.text+0x255):..\brickos-0.2.6.10.6\kernel/remote.c:163: undefined
reference to `_lr_set_handler'
..\semaphore.o(.text+0x8f): In function `sem_wait':
..\brickos-0.2.6.10.6\kernel/semaphore.c:70: undefined reference to
`_wait_event'
..\semaphore.o(.text+0x1cf): In function `sem_timedwait':
..\brickos-0.2.6.10.6\kernel/semaphore.c:106: undefined reference to
`_wait_event'
..\systime.o(.text+0xbc): In function `systime_shutdown':
..\brickos-0.2.6.10.6\kernel/systime.c:272: undefined reference to `_T_IER'
..\systime.o(.text+0xc2):..\brickos-0.2.6.10.6\kernel/systime.c:272: undefined
reference to `_T_IER'
..\systime.o(.text+0xc6):..\brickos-0.2.6.10.6\kernel/systime.c:273: undefined
reference to `_WDT_CSR'
..\systime.o(.text+0xcc):..\brickos-0.2.6.10.6\kernel/systime.c:273: undefined
reference to `_WDT_CSR'
..\systime.o(.text+0xf6): In function `systime_init':
..\brickos-0.2.6.10.6\kernel/systime.c:288: undefined reference to
`_rom_dummy_handler'
..\systime.o(.text+0x104):..\brickos-0.2.6.10.6\kernel/systime.c:300: undefined
reference to `_T_CSR'
..\systime.o(.text+0x10a):..\brickos-0.2.6.10.6\kernel/systime.c:301: undefined
reference to `_T_CR'
..\systime.o(.text+0x10e):..\brickos-0.2.6.10.6\kernel/systime.c:302: undefined
reference to `_T_OCR'
..\systime.o(.text+0x114):..\brickos-0.2.6.10.6\kernel/systime.c:302: undefined
reference to `_T_OCR'
..\systime.o(.text+0x11c):..\brickos-0.2.6.10.6\kernel/systime.c:303: undefined
reference to `_T_OCRA'
..\systime.o(.text+0x120):..\brickos-0.2.6.10.6\kernel/systime.c:305: undefined
reference to `_T_OCR'
..\systime.o(.text+0x126):..\brickos-0.2.6.10.6\kernel/systime.c:305: undefined
reference to `_T_OCR'
..\systime.o(.text+0x12e):..\brickos-0.2.6.10.6\kernel/systime.c:306: undefined
reference to `_T_OCRB'
..\systime.o(.text+0x136):..\brickos-0.2.6.10.6\kernel/systime.c:309: undefined
reference to `_ocia_vector'
..\systime.o(.text+0x13e):..\brickos-0.2.6.10.6\kernel/systime.c:313: undefined
reference to `_ocib_vector'
..\systime.o(.text+0x142):..\brickos-0.2.6.10.6\kernel/systime.c:314: undefined
reference to `_T_IER'
..\systime.o(.text+0x148):..\brickos-0.2.6.10.6\kernel/systime.c:314: undefined
reference to `_T_IER'
..\systime.o(.text+0x150):..\brickos-0.2.6.10.6\kernel/systime.c:316: undefined
reference to `_nmi_vector'
..\systime.o(.text+0x158):..\brickos-0.2.6.10.6\kernel/systime.c:317: undefined
reference to `_WDT_CSR'
..\systime.o(.text+0x160):..\brickos-0.2.6.10.6\kernel/systime.c:318: undefined
reference to `_WDT_CSR'
..\tm.o(.text+0x141): In function `msleep':
..\brickos-0.2.6.10.6\kernel/tm.c:299: undefined reference to `_MSECS_TO_TICKS'
..\tm.o(.text+0x159):..\brickos-0.2.6.10.6\kernel/tm.c:299: undefined reference
to `_wait_event'
..\tm.o(.text+0x167):..\brickos-0.2.6.10.6\kernel/tm.c:300: undefined reference
to `_MSECS_TO_TICKS'
..\tm.o(.text+0x205): In function `tm_man_task':
..\brickos-0.2.6.10.6\kernel/tm.c:362: undefined reference to `_lcd_show'
..\tm.o(.text+0x2ec): In function `tm_init':
..\brickos-0.2.6.10.6\kernel/tm.c:414: undefined reference to `_tm_idle_task'
..\tm.o(.text+0x2ef):..\brickos-0.2.6.10.6\kernel/tm.c:414: undefined reference
to `_execi'
..\tm.o(.text+0x32b):..\brickos-0.2.6.10.6\kernel/tm.c:418: undefined reference
to `_execi'
..\tm.o(.text+0x351):..\brickos-0.2.6.10.6\kernel/tm.c:421: undefined reference
to `_execi'
..\tm.o(.text+0x375): In function `tm_start':
..\brickos-0.2.6.10.6\kernel/tm.c:433: undefined reference to `_disable_irqs'
..\tm.o(.text+0x381):..\brickos-0.2.6.10.6\kernel/tm.c:436: undefined reference
to `_yield'
..\tm.o(.text+0x385):..\brickos-0.2.6.10.6\kernel/tm.c:438: undefined reference
to `_enable_irqs'
..\tm.o(.text+0x434): In function `execi':
..\brickos-0.2.6.10.6\kernel/tm.c:480: undefined reference to `_mm_start'
..\tm.o(.text+0x4dc):..\brickos-0.2.6.10.6\kernel/tm.c:505: undefined reference
to `_rom_ocia_return'
..\tm.o(.text+0x6f1): In function `exit':
..\brickos-0.2.6.10.6\kernel/tm.c:574: undefined reference to `_enable_irqs'
..\tm.o(.text+0x715):..\brickos-0.2.6.10.6\kernel/tm.c:580: undefined reference
to `_yield'
..\tm.o(.text+0x765): In function `wait_event':
..\brickos-0.2.6.10.6\kernel/tm.c:593: undefined reference to `_yield'
..\tm.o(.text+0xc3a): In function `tm_scheduler':
..\brickos-0.2.6.10.6\kernel/tm.c:209: undefined reference to
`_rom_dummy_handler'
..\vis.o(.text+0x1c): In function `vis_core':
..\brickos-0.2.6.10.6\kernel/vis.c:59: undefined reference to `_AD_C_H'
..\vis.o(.text+0x2a):..\brickos-0.2.6.10.6\kernel/vis.c:62: undefined reference
to `_AD_B_H'
..\vis.o(.text+0x38):..\brickos-0.2.6.10.6\kernel/vis.c:65: undefined reference
to `_AD_A_H'
..\vis.o(.text+0x67):..\brickos-0.2.6.10.6\kernel/vis.c:72: undefined reference
to `_cputc_hex_0'
..\vis.o(.text+0x71):..\brickos-0.2.6.10.6\kernel/vis.c:74: undefined reference
to `_cputc_0'
Phase Linker finished
Thank you.
Rudolf
|
|
Message has 1 Reply: | | Re: compiling problmes 2
|
| (...) Could the unresolved referenced be from the code you are adding to brickOS? From the looks of it, some of the unresoveds are probably defined in a header file (all caps is a hint). Maybe they were implied in the GCC compiler, but I doubt it. (...) (20 years ago, 25-Sep-04, to lugnet.robotics.rcx.legos)
|
7 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|