![]() |
![]() |
#241 |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
|
![]() |
![]() |
#242 |
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
if you have enbough programming expertise, you could even be the person to do that. unfortunatelly i dont think i do, but im starting to think about pinging toni again, about what would make sense in this respect given bebbos work.
thing is, probably aros would have to switch to gcc6 for good first, because earlier versions might stop working if another way of dealing with amiga baskend features was introduced. |
![]() |
![]() |
#243 | ||
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,491
|
I think it's not just a matter of programming expertise (which is important!) but also knowledge of compilers stuff (which I largely miss).
I like more low level programming and this is not properly my taste. But can be interesting.. [I would rather rewrite AROS exec/kernel.resource/mmu.library in 68k asm ![]() Quote:
Quote:
Cheers! ross |
||
![]() |
![]() |
#244 |
Registered User
Join Date: Jun 2014
Location: milan / italy
Posts: 174
|
This is what I get with -v and -mcrt=clib2 :
m68k-amigaos-gcc -v -mcrt=clib2 exception_68000.o standalone.o hex.o pkt.o cmd.o stub_arch.o a500_init.o uart.o -T a500.ld -o main -Wl,-Map=main.map Using built-in specs. COLLECT_GCC=m68k-amigaos-gcc COLLECT_LTO_WRAPPER=/opt/m68k-amigaos/libexec/gcc/m68k-amigaos/6.3.1b/lto-wrapper Target: m68k-amigaos Configured with: /root/amigaos-cross-toolchain/submodules/gcc-6/configure --prefix=/opt/m68k-amigaos --infodir=/opt/m68k-amigaos/m68k-amigaos/info --mandir=/opt/m68k-amigaos/share/man --prefix=/opt/m68k-amigaos --prefix=/opt/m68k-amigaos --target=m68k-amigaos --enable-languages=c,c++,objc --enable-version-specific-runtime-libs --disable-libssp --with-headers=/root/amigaos-cross-toolchain/.build-m68k/sources/ixemul-48.2/include Thread model: single gcc version 6.3.1b 20170320 (GCC) COMPILER_PATH=/opt/m68k-amigaos/libexec/gcc/m68k-amigaos/6.3.1b/:/opt/m68k-amigaos/libexec/gcc/m68k-amigaos/6.3.1b/:/opt/m68k-amigaos/libexec/gcc/m68k-amigaos/:/opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/:/opt/m68k-amigaos/lib/gcc/m68k-amigaos/:/opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/../../../../m68k-amigaos/bin/ LIBRARY_PATH=/opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/:/opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/../../../../m68k-amigaos/lib/ COLLECT_GCC_OPTIONS='-v' '-mcrt=clib2' '-T' 'a500.ld' '-o' 'main' '-mcpu=68000' /opt/m68k-amigaos/libexec/gcc/m68k-amigaos/6.3.1b/collect2 -L/opt/m68k-amigaos/m68k-amigaos/clib2/lib -o main /opt/m68k-amigaos/m68k-amigaos/clib2/lib/ncrt0.o -L/opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b -L/opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/../../../../m68k-amigaos/lib exception_68000.o standalone.o hex.o pkt.o cmd.o stub_arch.o a500_init.o uart.o -Map=main.map -lc -lamiga -ldebug -lgcc -lc -T a500.ld /opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/../../../../m68k-amigaos/bin/ld: final link failed: Invalid operation collect2: error: ld returned 1 exit status Makefile:31: recipe for target 'main' failed make: *** [main] Error 1 |
![]() |
![]() |
#245 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
Quote:
AGAIN: updated the zip file ![]() asm source is looking ok now - but still no time to test this... Last edited by bebbo; 26 October 2023 at 13:18. |
|
![]() |
![]() |
#246 | ||||
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
Quote:
Quote:
Quote:
Quote:
|
||||
![]() |
![]() |
#247 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
One thing I've noticed with the toolchain is that it doesn't like to link stuff when using singletons. I've managed to compile MilkyTracker 0.9.86 with the toolchain, but as soon as it is trying to link ppui, it fails:
Code:
DialogResample.o(.text+0x92c): In function `_ZN14DialogResampleC4EP8PPScreenP15DialogResponderi': /home/marlon/tmp/MilkyTracker/milkytracker-0.90.86/src/tracker/../../src/ppui/Singleton.h:44: undefined reference to `PPSingleton<PPUIConfig>::instance' DialogResample.o(.text+0x910):/home/marlon/tmp/MilkyTracker/milkytracker-0.90.86/src/tracker/../../src/ppui/Singleton.h:43: undefined reference to `PPSingleton<PPUIConfig>::instance' DialogResample.o(.text+0x932): In function `_ZN14DialogResampleC4EP8PPScreenP15DialogResponderi': /home/marlon/tmp/MilkyTracker/milkytracker-0.90.86/src/tracker/../../src/ppui/PPUIConfig.h:65: undefined reference to `PPSingleton<PPUIConfig>::instance' EnvelopeEditor.o(.text+0x18): In function `PPSingleton<EnvelopeEditor::ClipBoard>::getInstance()': /home/marlon/tmp/MilkyTracker/milkytracker-0.90.86/src/tracker/../../src/ppui/Singleton.h:44: undefined reference to `PPSingleton<EnvelopeEditor::ClipBoard>::instance' EnvelopeEditor.o(.text+0x2):/home/marlon/tmp/MilkyTracker/milkytracker-0.90.86/src/tracker/../../src/ppui/Singleton.h:43: undefined reference to `PPSingleton<EnvelopeEditor::ClipBoard>::instance' EnvelopeEditor.o(.text+0x20):/home/marlon/tmp/MilkyTracker/milkytracker-0.90.86/src/tracker/../../src/ppui/Singleton.h:47: undefined reference to `PPSingleton<EnvelopeEditor::ClipBoard>::instance' I'm not sure how that could be fixed. My solution right now is to reprogram the software not to use the PPSingleton template. |
![]() |
![]() |
#248 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
Quote:
Would look into it, if I could get that far. |
|
![]() |
![]() |
#249 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
To get it to configure properly I did this:
Code:
SDL_CONFIG=/opt/m68k-amigaos/bin/sdl-config CPPFLAGS="-g -Os -D__AMIGA__ -fpermissive -mcrt=clib2 -m68020 -I/opt/m68k-amigaos/include/SDL -I/opt/m68k-amigaos/include -L/opt/m68k-amigaos/lib -L/opt/m68k-amigaos/m68k-amigaos/lib -fomit-frame-pointer -lSDL -ldebug -ljpeg -lSDLstub -lSDL_image -Xlinker --allow-multiple-definition" CXXFLAGS="-g -Os -D__AMIGA__ -fpermissive -mcrt=clib2 -m68020 -I/opt/m68k-amigaos/include/SDL -I/opt/m68k-amigaos/include -L/opt/m68k-amigaos/lib -L/opt/m68k-amigaos/m68k-amigaos/lib -fomit-frame-pointer -lSDL -ldebug -ljpeg -lSDLstub -lSDL_image -Xlinker --allow-multiple-definition" CFLAGS="-g -Os -D__AMIGA__ -fpermissive -mcrt=clib2 -m68020 -I/opt/m68k-amigaos/include/SDL -I/opt/m68k-amigaos/include -L/opt/m68k-amigaos/lib -L/opt/m68k-amigaos/m68k-amigaos/lib -fomit-frame-pointer -lSDL -ldebug -ljpeg -lSDLstub -lSDL_image -Xlinker --allow-multiple-definition" ./configure --build x86_64 --host m68k-amigaos After you've run that, all you need to do is "make". Eventually some code errors pops up, that requires minor edits which I can't remember at the moment. You'll notice! =) |
![]() |
![]() |
#250 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
Quote:
Guess you compiled and installed a bunch other stuff? |
|
![]() |
![]() |
#251 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
Let me dig it up for you! |
|
![]() |
![]() |
#252 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
|
![]() |
![]() |
#253 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
Quote:
|
|
![]() |
![]() |
#254 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
|
![]() |
![]() |
#255 |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
|
![]() |
![]() |
#256 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,200
|
SDL 1.2 on Aminet, I would imagine... since SDL 2 doesn't have an Amiga version.
|
![]() |
![]() |
#257 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
|
![]() |
![]() |
#258 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
I have managed to compile SDL-1.2.15 for AmigaOS3.x with your toolchain, however I'm not done testing it yet, so I don't know how stable it is.
|
![]() |
![]() |
#259 |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 681
|
Workaround for the missing template class member is adding
Code:
PPUIConfig * PPUIConfig::instance = NULL; EDIT: correct (no warning) Code:
template<> PPUIConfig * PPSingleton<PPUIConfig>::instance = NULL; This creates the missing Code:
.globl __ZN11PPSingletonI10PPUIConfigE8instanceE Last edited by bebbo; 11 May 2017 at 23:05. |
![]() |
![]() |
#260 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
|
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
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 |
|
|