English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 21 June 2018, 19:43   #861
lantus360
Registered User
 
Join Date: Feb 2013
Location: Olathe, Kansas
Posts: 214
looks like there is a Makefile.clib2 specific makefile in the libSDL12 , i will try that
lantus360 is offline  
Old 21 June 2018, 20:00   #862
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by bebbo View Post
My guess libSDL forgot to #include <inline/dos.h>
I just updated libSDL12
bebbo is offline  
Old 21 June 2018, 20:14   #863
lantus360
Registered User
 
Join Date: Feb 2013
Location: Olathe, Kansas
Posts: 214
Quote:
Originally Posted by bebbo View Post
I just updated libSDL12
thanks! gets me closer but now this

Code:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/bin/ld: /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/lib/libSDL.a(SDL_string.go-00000028.o):(.text+0xc4): undefined reference to `__locale_ctype_ptr'
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/bin/ld: /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/lib/libSDL.a(SDL_string.go-00000028.o):(.text+0x15e): undefined reference to `__locale_ctype_ptr'
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/bin/ld: /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/lib/libSDL.a(SDL_string.go-00000028.o):(.text+0x1f2): undefined reference to `__locale_ctype_ptr'
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/bin/ld: /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/lib/libSDL.a(SDL_string.go-00000028.o):(.text+0x270): undefined reference to `__locale_ctype_ptr'
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/bin/ld: /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/lib/libSDL.a(SDL_string.go-00000028.o):(.text+0x124): undefined reference to `__locale_ctype_ptr'
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/bin/ld: /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/lib/libSDL.a(SDL_string.go-00000028.o):(.text+0x2b8): more undefined references to `__locale_ctype_ptr' follow
lantus360 is offline  
Old 21 June 2018, 20:16   #864
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by lantus360 View Post
thanks! gets me closer but now this

Code:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/bin/ld: /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/lib/libSDL.a(SDL_string.go-00000028.o):(.text+0xc4): undefined reference to `__locale_ctype_ptr'
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/bin/ld: /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/lib/libSDL.a(SDL_string.go-00000028.o):(.text+0x15e): undefined reference to `__locale_ctype_ptr'
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/bin/ld: /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/lib/libSDL.a(SDL_string.go-00000028.o):(.text+0x1f2): undefined reference to `__locale_ctype_ptr'
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/bin/ld: /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/lib/libSDL.a(SDL_string.go-00000028.o):(.text+0x270): undefined reference to `__locale_ctype_ptr'
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/bin/ld: /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/lib/libSDL.a(SDL_string.go-00000028.o):(.text+0x124): undefined reference to `__locale_ctype_ptr'
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/bin/ld: /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/lib/libSDL.a(SDL_string.go-00000028.o):(.text+0x2b8): more undefined references to `__locale_ctype_ptr' follow
... well, libSDL12 is not compiled for clib2, guess clib2 needs some patch
bebbo is offline  
Old 21 June 2018, 20:19   #865
lantus360
Registered User
 
Join Date: Feb 2013
Location: Olathe, Kansas
Posts: 214
Quote:
Originally Posted by bebbo View Post
... well, libSDL12 is not compiled for clib2, guess clib2 needs some patch


edit : got the lib to link just by adding -mcrt=clib2 in the Makefile.bax

thanks for your assistance bebbo!

Last edited by lantus360; 21 June 2018 at 20:27.
lantus360 is offline  
Old 21 June 2018, 20:28   #866
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by lantus360 View Post
edit : got the lib to link just by adding -mcrt=clib2 in the Makefile.bax

thanks for your assistance bebbo!
you're welcome - I also added __locale_ctype_ptr to clib2
bebbo is offline  
Old 21 June 2018, 20:28   #867
lantus360
Registered User
 
Join Date: Feb 2013
Location: Olathe, Kansas
Posts: 214
Quote:
Originally Posted by bebbo View Post
you're welcome - I also added __locale_ctype_ptr to clib2
lantus360 is offline  
Old 24 June 2018, 20:52   #868
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
UPDATE

I just switched amiga-gcc away from amigaos-binutils-2.14, and set this repo to 'archived'.

My new binutils repo is binutils-gdb. Current versions are:
  • binutils 2.30.52
  • gdb 8.1.50

/flame on
bebbo is offline  
Old 24 June 2018, 21:04   #869
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
When are you upgrading to gcc 8?
Marlon_ is offline  
Old 24 June 2018, 21:11   #870
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by Marlon_ View Post
When are you upgrading to gcc 8?
If I'm bored again and my amiga-gcc-8 is stable enough.

---
I lack well-founded knowledge,
my design is pathetic and
my changes are arbitrary.

And yet the Amiga GCC-6 compiler is finished and better than any Amiga C compiler before.
bebbo is offline  
Old 24 June 2018, 21:14   #871
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Quote:
Originally Posted by bebbo View Post
If I'm bored again and gcc-8 is stable enough.

---
I lack well-founded knowledge,
my design is pathetic and
my changes are arbitrary.

And yet the Amiga GCC-6 compiler is finished and better than any Amiga C compiler before.


Yeah, I was just messing with you. However, I noticed the adtools (OS4 toolchain) has moved over to gcc 8 already
Marlon_ is offline  
Old 24 June 2018, 21:16   #872
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by Marlon_ View Post
Yeah, I was just messing with you. However, I noticed the adtools (OS4 toolchain) has moved over to gcc 8 already
... I wanna run OS4 on my 68k!
bebbo is offline  
Old 24 June 2018, 21:32   #873
Samurai_Crow
Total Chaos forever!
 
Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
Thanks, Bebbo! I wouldn't worry about GCC 8... if the latest LLVM/Clang became possible as a result.

If I remember correctly, libJIT was dropped from GCC while the MC-JIT in LLVM is used on many projects including Mesa's software renderer. I could be wrong but I think that by using shared libraries for each pass and using a custom pass manager to close the previous pass' libraries, LLVM could actually be made to work on a massively RAM expanded Classic Amiga!

Thanks especially for your work on Binutils and GDB. They may be useful for both compiler frameworks. LLVM used to use GNU Binutils before the reinvention of the wheel for licensing reasons.

(By the way, take this post with a HUGE grain of salt because LLVM would be as much work to port as the development of the GCC cross toolchain. I'm just giving you a hard time because there's never rest for the weary these days.)
Samurai_Crow is offline  
Old 02 July 2018, 19:30   #874
SteveMoody
Registered User
 
SteveMoody's Avatar
 
Join Date: Jan 2017
Location: South Wales
Age: 51
Posts: 42
If anyone is interested in a standalone windows build i've created one which can be downloaded here: https://github.com/SteveMoody73/amiga-gcc/releases

It's compiled under MSYS2/MinGW rather than Cygwin as i wanted a version i could use nativly with Visual Studio Code.

Warning if you try this, I've only tested this on two computers so far but both seem to be working fine. If you get any problems feel free to report them here or via github.


@bebbo i've had to make some changes to get this to work under MinGW but i've done so in a way that it still seems to build cleanly under linux. If you want i can create a pull request on Github with the changes.
SteveMoody is offline  
Old 02 July 2018, 19:32   #875
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Quote:
Originally Posted by SteveMoody View Post
If you want i can create a pull request on Github with the changes.
Just make a pull request, that's what it's for. If he doesn't like it he could always decline.
Marlon_ is offline  
Old 04 July 2018, 21:05   #876
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,801
Quote:
Originally Posted by SteveMoody View Post
If anyone is interested in a standalone windows build i've created one which can be downloaded here: https://github.com/SteveMoody73/amiga-gcc/releases

It's compiled under MSYS2/MinGW rather than Cygwin as i wanted a version i could use nativly with Visual Studio Code.

Warning if you try this, I've only tested this on two computers so far but both seem to be working fine. If you get any problems feel free to report them here or via github.


@bebbo i've had to make some changes to get this to work under MinGW but i've done so in a way that it still seems to build cleanly under linux. If you want i can create a pull request on Github with the changes.

Once installed with the setup, how do you use it?
is all path set?
kamelito is offline  
Old 24 July 2018, 10:48   #877
Seboss
Registered User
 
Join Date: Feb 2018
Location: Grenoble / France
Posts: 14
Thanks SteveMoody! Thanks to you, I have a working build environment at last

However, I use my Mac a lot more than my Windows box and unfortunately I haven't been able to make a working build on OS X. Would anyone have OS X binaries?
Seboss is offline  
Old 24 July 2018, 11:32   #878
alpine9000
Registered User
 
Join Date: Mar 2016
Location: Australia
Posts: 881
Quote:
Originally Posted by Seboss View Post
Thanks SteveMoody! Thanks to you, I have a working build environment at last

However, I use my Mac a lot more than my Windows box and unfortunately I haven't been able to make a working build on OS X. Would anyone have OS X binaries?
I can help you build on OSX
alpine9000 is offline  
Old 24 July 2018, 17:14   #879
ReadOnlyCat
Code Kitten
 
Join Date: Aug 2015
Location: Montreal/Canadia
Age: 52
Posts: 1,178
Thanks bebbo for your effort!

Quote:
Originally Posted by alpine9000 View Post
I can help you build on OSX
I would also be interested in an OS X build so maybe the instructions to follow for this purpose could be worth publishing in this thread.

Also, does anyone know what to expect as far as the quality of assembly code generation is concerned from that version of GCC?
ReadOnlyCat is offline  
Old 25 July 2018, 02:13   #880
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Quote:
Originally Posted by bebbo View Post
Have a look into mattgodbolt's compiler explorer for amiga gcc:

http://franke.ms/cex/
This link is broken now, have you taken it down?
Marlon_ is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 18:17.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.16249 seconds with 16 queries