@all
Ok, so far all the linking errors fixed, everything ok, but, for making final binary there is one linking and fresh error remain (like anyone think it will be the same as with other versions:) ).
So, problem (i think) is the size of the final binary, when we use ffmpeg together with latest webkit core. ffmpeg static libraries by itself is about 100mb of size now (latest ones, even just libavcodec.a bigger on 20mb now), as well as all main odysseys static libs are about 80mb of size.
In end, when final linking is about to be done , it fails with such errors:
Quote:
main.cpp:(.text+0x130): relocation truncated to fit: R_PPC_REL24 against symbol `setjmp' defined in .text section in /usr/local/amiga/ppc-amigaos/SDK/newlib/lib/libc.a(stub_setjmp.o)
../Tools/OWBLauncher/CMakeFiles/owb.dir/MorphOS/main.cpp.obj: In function `create_application(char*)':
main.cpp:(.text+0x374): relocation truncated to fit: R_PPC_REL24 against symbol `__getreent' defined in .text section in /usr/local/amiga/ppc-amigaos/SDK/newlib/lib/libc.a(stub___getreent.o)
main.cpp:(.text+0x38c): relocation truncated to fit: R_PPC_REL24 against symbol `fwrite' defined in .text section in /usr/local/amiga/ppc-amigaos/SDK/newlib/lib/libc.a(stub_fwrite.o)
../Tools/OWBLauncher/CMakeFiles/owb.dir/MorphOS/main.cpp.obj: In function `open_libs()':
main.cpp:(.text+0xa5c): relocation truncated to fit: R_PPC_REL24 against symbol `__getreent' defined in .text section in /usr/local/amiga/ppc-amigaos/SDK/newlib/lib/libc.a(stub___getreent.o)
main.cpp:(.text+0xa74): relocation truncated to fit: R_PPC_REL24 against symbol `fwrite' defined in .text section in /usr/local/amiga/ppc-amigaos/SDK/newlib/lib/libc.a(stub_fwrite.o)
main.cpp:(.text+0xaa0): relocation truncated to fit: R_PPC_REL24 against symbol `__getreent' defined in .text section in /usr/local/amiga/ppc-amigaos/SDK/newlib/lib/libc.a(stub___getreent.o)
main.cpp:(.text+0xab8): relocation truncated to fit: R_PPC_REL24 against symbol `fwrite' defined in .text section in /usr/local/amiga/ppc-amigaos/SDK/newlib/lib/libc.a(stub_fwrite.o)
main.cpp:(.text+0xac4): relocation truncated to fit: R_PPC_REL24 against symbol `__getreent' defined in .text section in /usr/local/amiga/ppc-amigaos/SDK/newlib/lib/libc.a(stub___getreent.o)
main.cpp:(.text+0xadc): relocation truncated to fit: R_PPC_REL24 against symbol `fwrite' defined in .text section in /usr/local/amiga/ppc-amigaos/SDK/newlib/lib/libc.a(stub_fwrite.o)
main.cpp:(.text+0xc14): relocation truncated to fit: R_PPC_REL24 against symbol `__getreent' defined in .text section in /usr/local/amiga/ppc-amigaos/SDK/newlib/lib/libc.a(stub___getreent.o)
main.cpp:(.text+0xc2c): additional relocation overflows
And there is more , for almost all usual amiga functions from lib.a, and in all the objects.
All what i can notice while linking happens, is that it all reach moment when binary are 145mb of size (holy shit!), and then on moment when it all should be done, it fail with such errors.
I of course can think that stripping and co will help after all, and binary can be reduced to something more adequate, but, as far as i understand, all those errors happens now because of the size of binary.
All what i found currently is that thread:
http://www.amigans.net/modules/xforum ... t_id=47726#forumpost47726which in end mean "recompiling everything with -mlongcall", but problem that the code gets slightly slower then and so you know what results is.. I already do test if -mlongcall will help on one of objects, and it is, i can recompile everything with it, but it also mean code will be slower.
Any ideas / suggestions ?
Edited by kas1e on 2014/1/24 11:40:42
Edited by kas1e on 2014/1/24 11:43:20
Edited by kas1e on 2014/1/24 11:50:01
Edited by kas1e on 2014/1/24 11:50:32