28 April 2018, 10:57 | #821 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
|
28 April 2018, 12:12 | #822 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
|
|
28 April 2018, 12:23 | #823 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
|
28 April 2018, 12:29 | #824 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
actually no. I had to edit ..
https://github.com/bebbo/amigaos-cross-toolchain but not https://github.com/bebbo/amiga-gcc it worked ok . |
28 April 2018, 12:29 | #825 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
actually no. I had to edit ..
https://github.com/bebbo/amigaos-cross-toolchain but not https://github.com/bebbo/amiga-gcc it worked ok . |
28 April 2018, 12:51 | #826 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
|
It tries to do that:
cd projects/ira && cc -o /home/alex/t/amiga-gcc/build/ira/ira -Os ira.c ira_2.c supp.c and gets linker errors, which sounds reasonable cause there a lot more *.c files in there than the three that tries to make an executable out of. |
28 April 2018, 12:57 | #827 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
|
If I cd in projects/ira and type make it builds.
So, make -n from amiga-gcc folder: Code:
mkdir -p build/ira cd projects/ira && cc -o /home/alex/t/amiga-gcc/build/ira/ira -Os ira.c ira_2.c supp.c mkdir -p /opt/amiga/gcc6/bin/ install build/ira/ira /opt/amiga/gcc6/bin/ echo "built /opt/amiga/gcc6/bin/ira" echo "done" >build/ira/_done Code:
gcc -c -O2 -std=c99 -o obj/amiga_hunks.o amiga_hunks.c gcc -c -O2 -std=c99 -o obj/atari.o atari.c gcc -c -O2 -std=c99 -o obj/binary.o binary.c gcc -c -O2 -std=c99 -o obj/config.o config.c gcc -c -O2 -std=c99 -o obj/constants.o constants.c gcc -c -O2 -std=c99 -o obj/elf.o elf.c gcc -c -O2 -std=c99 -o obj/init.o init.c gcc -c -O2 -std=c99 -o obj/ira.o ira.c gcc -c -O2 -std=c99 -o obj/ira_2.o ira_2.c gcc -c -O2 -std=c99 -o obj/megadrive.o megadrive.c gcc -c -O2 -std=c99 -o obj/opcode.o opcode.c gcc -c -O2 -std=c99 -o obj/supp.o supp.c gcc -o ira obj/amiga_hunks.o obj/atari.o obj/binary.o obj/config.o obj/constants.o obj/elf.o obj/init.o obj/ira.o obj/ira_2.o obj/megadrive.o obj/opcode.o obj/supp.o |
01 May 2018, 18:41 | #828 |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
DANGER * ACHTUNG * ATTENTION * ATTENZIONE * ATENCIÓN * ????????*
I'll soon release an update to amiga-gcc which also affects some include/lib folders in the prefix. Changes:
Using libnix will still yield small programs, newlib (default) programs are fat due to some overhead (e.g. reentrant errno, functions etc.). clib2 seems to work too. You have been warned |
03 May 2018, 05:23 | #829 | |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
Quote:
This is very cool, thanks for that https://hub.docker.com/r/sebastianbe...amigaos-bebbo/ |
|
03 May 2018, 07:35 | #830 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
|
|
03 May 2018, 10:35 | #831 |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,008
|
|
03 May 2018, 13:07 | #832 |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
|
03 May 2018, 13:29 | #833 |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,008
|
If you do that, is there a possiblity that I could add my WarpOS only sources? Not that it is high standard code, but at least it is working somewhat.
|
04 May 2018, 03:22 | #834 |
Posts: n/a
|
Hi Bebbo, this work is awesome. I'm very thankful you've taken the time.
I'm trying to link against the socket library, and I am obviously missing something:- Code:
m68k-amigaos-gcc -c -noixemul -m68020 -O3 -Wall -fomit-frame-pointer hello.c m68k-amigaos-gcc -noixemul -m68020 -O3 -Wall -fomit-frame-pointer -lnix hello.o -o hello hello.o(.text+0x1a4): undefined reference to `socket' hello.o(.text+0x1c2): undefined reference to `inet_addr' hello.o(.text+0x1dc): undefined reference to `connect' hello.o(.text+0x26c): undefined reference to `recv' hello.o(.text+0x214): undefined reference to `send' collect2: error: ld returned 1 exit status Makefile:11: recipe for target 'hello' failed make: *** [hello] Error 1 |
04 May 2018, 08:39 | #835 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
|
|
04 May 2018, 19:10 | #836 |
Posts: n/a
|
|
04 May 2018, 22:17 | #837 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
Code:
m68k-amigaos-gcc -noixemul -Os *.c -o x -lsocket |
|
05 May 2018, 03:53 | #838 |
Registered User
Join Date: Dec 2017
Location: Austin, TX
Age: 41
Posts: 409
|
I just ported my mixed C/asm softsynth from VBCC to GCC. The executable size dropped from 50K down to 20K and worked first time. I had to work around three bugs in VBCC for this project.
With GCC it was also trivial to add automatic header dependency tracking to my makefile. Nice! |
12 May 2018, 23:45 | #839 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
|
|
29 May 2018, 18:08 | #840 |
Registered User
Join Date: Feb 2013
Location: Olathe, Kansas
Posts: 214
|
just updated to the latest from git
im getting these link errors Code:
./bin/organ.o(.text+0x96):./bin/organ.o: undefined reference to `__memset64' ./bin/RSPiX/Src/CYAN/Unix/uDialog.o(.text+0x2be):./bin/RSPiX/Src/CYAN/Unix/uDialog.o: undefined reference to `__sF' Code:
m68k-amigaos-g++ -o <all my .o files> -L"C:\cygwin\opt\amiga\m68k-amigaos\clib2\lib" -L"C:\cygwin\opt\amiga\m68k-amigaos\libnix\lib" -lc -lamiga -lm i tried a define memset64 as memset in a header file but it didnt resolve it. any ideas? Im building with g++ with -O2 -noixemul thanks |
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 |
|
|