Author Topic: Problem compiling  (Read 3876 times)

Im_a_G3n1u5

  • New to the forum
  • *
  • Posts: 6
Problem compiling
« on: January 24, 2013, 06:07:54 PM »
I installed the arm-toolchain462 and was able to compile the hello.c file as explained  here: http://magiclantern.wikia.com/wiki/Build_instructions/Unified

Then I downloaded the unified code. While running the make command to compile, I get the following error:

collect2: ld returned 1 exit status
make[1]: *** [magiclantern] Error 1
make[1]: Leaving directory `/opt/magic-lantern/platform/60D.111'
make: *** [60D] Error 2

then I ran the : make V=1 2>&1 | tee /tmp/make.log and here my /tmp/make.log file

make -C /opt/magic-lantern/platform/60D.111
make[1]: Entering directory `/opt/magic-lantern/platform/60D.111'
( echo const char build_version[] = v2.3.NEXT.2013Jan24.60D111
/bin/sh:  ; echo const: command not found
/bin/sh:  ; echo const: command not found
/bin/sh:  ; echo const: command not found
/bin/sh:  ; ) > ../../platform/60D.111/version.c: No such file or directory
~/arm-toolchain462/bin/arm-elf-gcc-4.6.2 -Wp,-MMD,./version.d -Wp,-MT,version.o -nostdlib -fomit-frame-pointer -fno-strict-aliasing -DCONFIG_MAGICLANTERN=1 -DCONFIG_60D=1 -DRESTARTSTART=0x0005f000 -DROMBASEADDR=0xFF010000 -DVERSION=\"v2.3.NEXT.2013Jan24.60D111\" -DCONFIG_DEBUGMSG=0  -Os -Wall -W -mstructure-size-boundary=32 -Wno-unused-parameter -Wno-implicit-function-declaration -Wno-unused-function -Wno-missing-field-initializers -Wno-format -Wdouble-promotion -std=gnu99 -D__ARM__ -I. -I../../src -I../../picoc   -c -o version.o ../../platform/60D.111/version.c
 if [ -f ../../doc/menuindex.txt ]; then cd ../../doc; python2 menuindex.py; else echo "No menuindex.txt not running \"python2 menuindex.py\""; fi
No menuindex.txt not running "python2 menuindex.py"
~/arm-toolchain462/bin/arm-elf-gcc-4.6.2 -Wp,-MMD,./menuindex.d -Wp,-MT,menuindex.o -nostdlib -fomit-frame-pointer -fno-strict-aliasing -DCONFIG_MAGICLANTERN=1 -DCONFIG_60D=1 -DRESTARTSTART=0x0005f000 -DROMBASEADDR=0xFF010000 -DVERSION=\"v2.3.NEXT.2013Jan24.60D111\" -DCONFIG_DEBUGMSG=0  -Os -Wall -W -mstructure-size-boundary=32 -Wno-unused-parameter -Wno-implicit-function-declaration -Wno-unused-function -Wno-missing-field-initializers -Wno-format -Wdouble-promotion -std=gnu99 -D__ARM__ -I. -I../../src -I../../picoc   -c -o menuindex.o ../../src/menuindex.c
~/arm-toolchain462/bin/arm-elf-gcc-4.6.2 -o magiclantern -N   -L../../src/libs/arm-elf-O3 -nostdlib -mthumb-interwork -march=armv5te -T magiclantern.lds entry.o boot-hack.o stubs.o version.o exmem.o bmp.o font-dyn.o config.o menu.o debug.o stdio.o audio-ak.o bitrate.o tweaks.o lens.o property.o propvalues.o gui.o gui-common.o misc.o picstyle.o cfn.o zebra.o shoot.o chdk-gui_draw.o movtweaks.o my_memset.o menuhelp.o menuindex.o af_patterns.o focus.o notify_box.o bootflags.o dialog_test.o vram.o morse.o liveview.o reloc.o aj_port.o fps-engio.o hdr.o lv-img-engio.o state-object.o tasks.o tskmon.o beep.o vsync-lite.o battery.o ph_info_disp.o flexinfo.o ico.o libstdio.a -lm -lgcc -Xlinker -Map=location.map
boot-hack.o: In function `my_init_task':
boot-hack.c:(.text+0x14): relocation truncated to fit: R_ARM_PC24 against symbol `get_current_task' defined in *ABS* section in magiclantern
boot-hack.c:(.text+0x4c): relocation truncated to fit: R_ARM_PC24 against symbol `init_task' defined in *ABS* section in magiclantern
boot-hack.c:(.text+0x100): relocation truncated to fit: R_ARM_PC24 against symbol `msleep' defined in *ABS* section in magiclantern
boot-hack.c:(.text+0x128): relocation truncated to fit: R_ARM_PC24 against symbol `msleep' defined in *ABS* section in magiclantern
boot-hack.c:(.text+0x138): relocation truncated to fit: R_ARM_PC24 against symbol `msleep' defined in *ABS* section in magiclantern
boot-hack.c:(.text+0x174): relocation truncated to fit: R_ARM_PC24 against symbol `msleep' defined in *ABS* section in magiclantern
boot-hack.c:(.text+0x1f0): relocation truncated to fit: R_ARM_PC24 against symbol `task_create' defined in *ABS* section in magiclantern
boot-hack.o: In function `my_assert_handler':
boot-hack.c:(.text+0x23c): relocation truncated to fit: R_ARM_PC24 against symbol `get_current_task' defined in *ABS* section in magiclantern
boot-hack.o: In function `my_big_init_task':
boot-hack.c:(.text+0x2c0): relocation truncated to fit: R_ARM_PC24 against symbol `call' defined in *ABS* section in magiclantern
boot-hack.c:(.text+0x2f0): relocation truncated to fit: R_ARM_PC24 against symbol `msleep' defined in *ABS* section in magiclantern
boot-hack.c:(.text+0x30c): additional relocation overflows omitted from the output
boot-hack.c:(.text+0x374): undefined reference to `_init_funcs_start'
boot-hack.c:(.text+0x378): undefined reference to `_init_funcs_end'
boot-hack.c:(.text+0x38c): undefined reference to `_tasks_end'
boot-hack.c:(.text+0x390): undefined reference to `_tasks_start'
boot-hack.o: In function `my_task_dispatch_hook':
boot-hack.c:(.text+0x3f8): undefined reference to `_task_overrides_end'
boot-hack.c:(.text+0x3fc): undefined reference to `_task_overrides_start'
boot-hack.o: In function `copy_and_restart':
boot-hack.c:(.text+0x514): undefined reference to `_bss_start'
boot-hack.c:(.text+0x518): undefined reference to `_bss_end'
config.o: In function `config_save_file':
config.c:(.text+0x21c): undefined reference to `_config_vars_start'
config.c:(.text+0x220): undefined reference to `_config_vars_end'
config.o: In function `config_parse':
config.c:(.text+0x4f0): undefined reference to `_config_vars_end'
config.c:(.text+0x4f4): undefined reference to `_config_vars_start'
config.o: In function `get_config_vars_start':
config.c:(.text+0x59c): undefined reference to `_config_vars_start'
config.o: In function `get_config_vars_end':
config.c:(.text+0x5a8): undefined reference to `_config_vars_end'
property.o: In function `prop_init':
property.c:(.text+0xc4): undefined reference to `_prop_handlers_start'
property.c:(.text+0xc8): undefined reference to `_prop_handlers_end'
property.o: In function `global_property_handler':
property.c:(.text+0x16c): undefined reference to `_prop_handlers_start'
property.c:(.text+0x170): undefined reference to `_prop_handlers_end'
property.o: In function `prop_get_prop_len':
property.c:(.text+0x1ac): undefined reference to `_prop_handlers_start'
property.c:(.text+0x1b0): undefined reference to `_prop_handlers_end'
collect2: ld returned 1 exit status
make[1]: *** [magiclantern] Error 1
make[1]: Leaving directory `/opt/magic-lantern/platform/60D.111'
make: *** [60D] Error 2






scrax

  • Contributor
  • Hero Member
  • *****
  • Posts: 1543
  • Code monkey
Re: Problem compiling
« Reply #1 on: January 24, 2013, 07:25:53 PM »
Code: [Select]
relocation truncated to fit: R_ARM_PC24 against symbol `get_current_task' defined in *ABS* section in magiclantern-mlong-calls

what system are you using?
I'm using ML2.3 for photography with:
EOS 600DML | EOS 400Dplus | EOS 5D MLbeta5- EF 100mm f/2.8 USM Macro  - EF-S 17-85mm f4-5.6 IS USM - EF 70-200mm f/4 L USM - 580EXII - OsX, PS, LR, RawTherapee, LightZone -no video experience-

Im_a_G3n1u5

  • New to the forum
  • *
  • Posts: 6
Re: Problem compiling
« Reply #2 on: January 24, 2013, 09:34:17 PM »
My OS is CentOS 6.3 /64 bits

Im_a_G3n1u5

  • New to the forum
  • *
  • Posts: 6
Re: Problem compiling
« Reply #3 on: January 24, 2013, 09:35:13 PM »
[root@CentOS media]# uname -a
Linux CentOS 2.6.32-279.19.1.el6.x86_64 #1 SMP Wed Dec 19 07:05:20 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

wolf

  • Senior
  • ****
  • Posts: 263
Re: Problem compiling
« Reply #4 on: January 25, 2013, 03:10:04 AM »
Step 2b. the pre-built toolchain is working for me...

http://www.magiclantern.fm/forum/index.php?topic=991.0

Im_a_G3n1u5

  • New to the forum
  • *
  • Posts: 6
Re: Problem compiling
« Reply #5 on: January 25, 2013, 04:08:17 AM »
Yep, that did the trick  ;D

Googolplexian Thx!!!