17 November 2017, 15:33 | #501 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
|
17 November 2017, 23:18 | #502 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
|
|
19 November 2017, 01:45 | #504 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 652
|
With the latest code, -fbaserel32 does not cause internal compiler errors anymore (-O[x] still does).
Now I'm facing a different problem. During the linker phase I get a lot of below error messages. All these symbols are supposed to come from .o files produced by vasm via options PFLAGS=-phxass -Faout -ldots -m68030 -m68882 -I$(SDK_ROOT)/ndk/include. Does anyone have a suggestion on how to deal with this? Not sure how to tackle this. Is this the assembler producing incompatible symbols or is it some missing gcc linker option? Any help is appreciated. Thanks Code:
m68k-amigaos-gcc -O0 -fbaserel32 -mcrt=clib2 -m68030 -m68881 -Wimplicit -Wno-strict-prototypes -Wno-int-conversion -I /home/matze/amigatoolchain/gcc-6.2/m68k-amigaos/m68k-amigaos/ndk/include -DVERBOSE -D__BIG_ENDIAN__ -DNORMALUNIX -Diabs=abs doomdef.o doomstat.o dstrings.o amiga_sound.o amiga_system.o amiga_net.o amiga_plane.o amiga_segs.o amiga_data.o amiga_wad.o amiga_sight.o amiga_things.o amiga_median.o c2p_8_020.o c2p_6_020.o c2p_8_030.o c2p_8_040.o c2p_6_040.o c2p8_040_amlaukka.o amiga_video.o amiga_draw.o amiga_mmu.o dehacked.o tables.o f_finale.o f_wipe.o d_main.o d_net.o d_items.o g_game.o m_menu.o m_misc.o m_bbox.o amiga_fixed.o m_swap.o m_cheat.o m_random.o am_map.o p_ceilng.o p_doors.o p_enemy.o p_floor.o p_inter.o p_lights.o p_map.o p_maputl.o p_plats.o p_pspr.o p_setup.o p_sight.o p_spec.o p_switch.o p_mobj.o p_telept.o p_tick.o p_saveg.o p_user.o r_bsp.o r_data.o r_draw.o r_main.o r_plane.o r_segs.o r_sky.o r_things.o w_wad.o wi_stuff.o v_video.o st_lib.o st_stuff.o hu_stuff.o hu_lib.o s_sound.o z_zone.o info.o sounds.o m_argv.o amiga_sega.o amiga_main.o \ -lnet -o ADoom amiga_plane.o(.text+0x6):amiga_plane.o: relocation truncated to fit: BASE16 spanstart amiga_plane.o(.text+0x15a):amiga_plane.o: relocation truncated to fit: BASE16 skyflatnum amiga_plane.o(.text+0x162):amiga_plane.o: relocation truncated to fit: BASE16 flattranslation amiga_plane.o(.text+0x166):amiga_plane.o: relocation truncated to fit: BASE16 firstflat amiga_plane.o(.text+0x176):amiga_plane.o: relocation truncated to fit: BASE16 ds_source amiga_plane.o(.text+0x17c):amiga_plane.o: relocation truncated to fit: BASE16 viewz amiga_plane.o(.text+0x184):amiga_plane.o: relocation truncated to fit: BASE16 planeheight Last edited by DH; 19 November 2017 at 13:48. Reason: Deleted direct signature |
19 November 2017, 09:44 | #505 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
Whenever a 32bit reloc is inserted into a 16 bit reloc position an overflow occurs. |
|
20 November 2017, 08:50 | #506 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 652
|
These object files were produced by vasm. I don't know how to force it to produce 32bit relative symbols. Interestingly, though, some of the symbols seem to be 32bit.
Code:
matze@ubuntu-VirtualBox:~/adoom_src$ m68k-amigaos-objdump amiga_draw.o -r amiga_draw.o: file format a.out-amiga RELOCATION RECORDS FOR [.text]: OFFSET TYPE VALUE 0000000a BASE16 _SCREENWIDTH 00000058 BASE16 _SCREENWIDTH 00000080 BASE16 _SCREENWIDTH 0000009c BASE16 _SCREENWIDTH 000000d4 BASE16 _SCREENWIDTH 000000f0 BASE16 _SysBase 00000102 BASE16 _dc_yh 00000106 BASE16 _dc_yl 00000110 BASE16 _dc_x 00000114 BASE16 _ylookup2 00000120 BASE16 _dc_colormap 00000124 BASE16 _dc_source 00000128 BASE16 _dc_iscale 0000012c BASE16 _centery 00000134 BASE16 _dc_texturemid 000001c6 BASE16 _ds_y 000001ca BASE16 _ds_x1 000001ce BASE16 _ylookup2 000001da BASE16 _ds_x2 000001de BASE16 _ds_source 000001e4 BASE16 _ds_colormap 000001ec BASE16 _ds_xfrac 000001f0 BASE16 _ds_yfrac 000001f4 BASE16 _ds_xstep 000001f8 BASE16 _ds_ystep 000002ea BASE16 _dc_yh 000002ee BASE16 _dc_yl 000002f8 BASE16 _dc_x 000002fc BASE16 _ylookup2 00000308 BASE16 _dc_translation 0000030c BASE16 _dc_colormap 00000310 BASE16 _dc_source 00000314 BASE16 _dc_iscale 00000318 BASE16 _centery 00000320 BASE16 _dc_texturemid 000003c2 BASE16 _viewheight 000003c8 BASE16 _dc_yh 000003d4 BASE16 _dc_yl 000003e2 BASE16 _dc_x 000003e6 BASE16 _ylookup2 000003f2 BASE16 _colormaps 000003fc BASE16 _fuzzoffset 00000400 BASE16 _fuzzpos 00000404 BASE16 _SCREENHEIGHT 0000040a BASE16 _SCREENHEIGHT 00000484 BASE16 _fuzzoffset 00000488 32 _fuzzpos 0000049a BASE16 _viewheight 000004a0 BASE16 _dc_yh 000004ac BASE16 _dc_yl 000004ba BASE16 _ylookup2 000004c2 BASE16 _dc_x 000004c6 BASE16 _colormaps 000004d0 BASE16 _fuzzoffset 000004d4 BASE16 _fuzzpos 000004d8 BASE16 _SCREENHEIGHT 000004de BASE16 _SCREENHEIGHT 00000548 BASE16 _fuzzoffset 0000054c 32 _fuzzpos 0000055e BASE16 _dc_yh 00000562 BASE16 _dc_yl 0000056c BASE16 _ylookup2 00000574 BASE16 _dc_x 00000578 BASE16 _dc_translation 0000057c BASE16 _dc_colormap 00000580 BASE16 _dc_source 00000584 BASE16 _dc_iscale 00000588 BASE16 _centery 00000590 BASE16 _dc_texturemid 00000622 BASE16 _dc_yh 00000626 BASE16 _dc_yl 00000630 BASE16 _ylookup2 0000063c BASE16 _dc_x 00000644 BASE16 _dc_colormap 0000064a BASE16 _dc_source 0000064e BASE16 _dc_iscale 00000652 BASE16 _centery 0000065a BASE16 _dc_texturemid 0000065e BASE16 _SCREENWIDTH 000006f2 BASE16 _dc_yh 000006f6 BASE16 _dc_yl 00000700 BASE16 _ylookup2 00000708 BASE16 _dc_x 0000070c BASE16 _dc_colormap 00000710 BASE16 _dc_source 00000714 BASE16 _dc_iscale 00000718 BASE16 _centery 00000720 BASE16 _dc_texturemid 000007a2 32 _ds_y 000007a8 32 _ds_x1 000007ae 32 _ylookup2 000007ba 32 _ds_source 000007c0 32 _ds_colormap 000007c6 32 _ds_x2 000007d0 32 _ds_xfrac 000007d6 32 _ds_yfrac 000007dc 32 _ds_xstep 000007e2 32 _ds_ystep 00000946 BASE16 _ds_y 0000094a BASE16 _ds_x1 0000094e BASE16 _ylookup2 00000958 BASE16 _ds_source 0000095c BASE16 _ds_colormap 00000960 BASE16 _ds_x2 00000968 BASE16 _ds_xfrac 0000096c BASE16 _ds_yfrac 00000970 BASE16 _ds_xstep 00000974 BASE16 _ds_ystep 00000aae BASE16 _dc_x 00000ab4 BASE16 _mfloorclip 00000abc BASE16 _mceilingclip 00000ac6 BASE16 _dc_texturemid 00000aca BASE16 _spryscale 00000ace BASE16 _colfunc 00000ae6 BASE16 _sprtopscreen 00000b10 BASE16 _dc_yl 00000b14 BASE16 _dc_yh 00000b1c BASE16 _dc_source 00000b20 BASE16 _dc_source 00000b24 BASE16 _dc_texturemid 00000b2e BASE16 _dc_texturemid 00000b42 BASE16 _dc_texturemid 00000b8a 32 _I_MarkRect 00000b92 BASE16 _screens 00000b9c BASE16 _SCREENWIDTH 00000bca BASE16 _SCREENWIDTH 00000bd8 BASE16 _SCREENWIDTH |
20 November 2017, 10:10 | #507 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
for -fbaserel32 you need objects with BASE32 relocs. I can't help you with vasm, since I'm not using it - I'm still using O.M.A., but I'm sure other folks here can help. |
|
29 November 2017, 02:22 | #508 |
Indie Game Dev
|
Im using this on a ubuntu 16.04 server and my .c files all compile with no warnings. But at link time i get a "can not find crt0.o" error. I looked everywhere for the text crt0 but dont see it anywhere. no ncurses/termcap/terminfo either
If i run "files" on the .o files i see they are proper a.out 68010 code. Any ideas why it thinks it needs crt0.o and how to remove it? |
29 November 2017, 08:11 | #509 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
or use -noixemul (my favorit) or -mcrt=clib2 to compile and link against libs which are provided by this tool chain. |
|
29 November 2017, 09:37 | #510 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
the correct link is this, while not sure which version to prefer:
Ixemul V47.3 - ixemul-sdk.lha, ixemul or libnix. V48.1.1 ixemul 48.3-3 sdk ixemul-63.1-m68k.lha but I did not install those. as bebbo said, it is mandatory for the gcc6.x toolchain to use one of the following options: -noixemul, -mcrt=clib2 or -mcrt=nix13 - this was said the other day. Last edited by emufan; 29 November 2017 at 10:03. |
29 November 2017, 17:44 | #511 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
...well, I tried once to build the ixemul package from scratch and it ended up as pita. |
|
29 November 2017, 19:08 | #512 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Quote:
at the moment AmiDevCpp's gcc 3.4.0 has better compatibility to those old things i try to build. #1) what is the logical location of the include and lib folders from the packs above: this one: /opt/m68k-amigaos/m68k-amigaos/ ? Last edited by emufan; 29 November 2017 at 22:20. |
|
30 November 2017, 17:39 | #513 |
Indie Game Dev
|
I got the build woRking without errors, but when I try and run it on my amiga i just get a error about no tool for the app. How do I tell AmigaOS that a file is a executable?
|
30 November 2017, 17:49 | #514 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Quote:
protect example.exe ADD RWED or protect example.exe RWED ADD |
|
30 November 2017, 17:59 | #516 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Selecting the icon and the key combination Right-Amiga + I opens up a window where you can set it to executable as well.
|
30 November 2017, 18:04 | #517 |
Indie Game Dev
|
|
30 November 2017, 18:04 | #518 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
|
30 November 2017, 18:16 | #519 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
|
01 December 2017, 23:47 | #520 |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New GCC based dev toolchain for AmigaOS 3.x | cla | Coders. Releases | 8 | 24 December 2017 10:18 |
Issue with photon/xxxx WinUAE Toolchain | arpz | Coders. Asm / Hardware | 2 | 26 September 2015 22:33 |
New 68k gcc toolchain | arti | Coders. C/C++ | 17 | 31 July 2015 03:59 |
Hannibal's WinUAE Demo Toolchain 5 | Bobic | Amiga scene | 1 | 23 July 2015 21:04 |
From gcc to vbcc. | Cowcat | Coders. General | 9 | 06 June 2014 14:45 |
|
|