View Single Post
Old 10 January 2017, 14:01   #16
Marlon_
AmigaDev.com

Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Sundsvall, Sweden
Age: 31
Posts: 600
Quote:
Originally Posted by bebbo View Post
That's the -fbaserel option.

As long you are not using the -fbaserel option you should be able to compile and link Amiga executables now.
Ah, I see!

I don't feel like the whole toolchain has successfully been compiled though,
and I get funky stuff like this when trying to compile the example files that did compile with gcc-2
Code:
amigaos-cross-toolchain/examples$ make
m68k-amigaos-gcc -g -Os -Wall -fomit-frame-pointer    hello-ks13.c   -o hello-ks13
hello-ks13.c: In function ‘main’:
hello-ks13.c:12:40: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
   if ((DOSBase = (struct DosLibrary *) OpenLibrary("dos.library", 34))) {
                                        ^~~~~~~~~~~
hello-ks13.c:17:1: internal compiler error: in default_no_named_section, at varasm.c:6230
 }
 ^
0x8781926 default_no_named_section(char const*, unsigned int, tree_node*)
	/home/marlon/amigaos-cross-toolchain/submodules/gcc-6/gcc/varasm.c:6230
0x878322f switch_to_section(section*)
	/home/marlon/amigaos-cross-toolchain/submodules/gcc-6/gcc/varasm.c:7148
0x8787f13 assemble_start_function(tree_node*, char const*)
	/home/marlon/amigaos-cross-toolchain/submodules/gcc-6/gcc/varasm.c:1761
0x8320d41 rest_of_handle_final
	/home/marlon/amigaos-cross-toolchain/submodules/gcc-6/gcc/final.c:4439
0x8320d41 execute
	/home/marlon/amigaos-cross-toolchain/submodules/gcc-6/gcc/final.c:4516
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
<builtin>: recipe for target 'hello-ks13' failed
make: *** [hello-ks13] Error 1

Last edited by Marlon_; 10 January 2017 at 14:10.
Marlon_ is offline  
 
Page generated in 0.04106 seconds with 11 queries