|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 12/14 4:28
#121 |
---|---|---|
Just popping in
![]() ![]() Joined:
2017/8/8 20:17 From Canada
Posts: 37
|
Apologies, all, for being silent for a few weeks. This is an insanely busy time for me in all my businesses. None are retail/X-mas affected, per-se!
I'll readily / happily edit my instructions if an inadvertent/unnecessary "sudo" needs to be corrected somewhere. Can someone let me know if/what changes I may need to make to the original post? |
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 12/14 14:30
#122 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2006/11/22 17:57 From Italy, Rome
Posts: 580
|
@stonecracker
post #1 from stonecracker: export PATH=$PATH:~/adtools/bin:/usr/local/amiga/adtools/bin DStastny @ post #6 export PATH=$PATH:~/adtools/bin:/usr/local/amiga/adtools-ppc-uwin-20170623-404/bin (which in my case should be: export PATH=$PATH:~/adtools/bin:/usr/local/amiga/adtools-ppc-uwin64-20170623-404/bin) In my now working installation i have only this in bashrc: export PATH=$PATH:~/adtools/bin:/usr/local/amiga/adtools-ppc-uwin64-20170623-404/bin |
|
_________________
Retired |
||
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 12/14 19:09
#123 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2009/4/28 3:57 From Adelaide, Australia
Posts: 893
|
@AmigaBlitter
With the symlink in place, export PATH=$PATH:~/adtools/bin is probably all you need. Although there's that rare occasion when a configure script can't find something in /SDK/local/newlib/bin even when you use --prefix, so that can be added too. |
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 12/20 6:45
#124 |
---|---|---|
Just popping in
![]() ![]() Joined:
2017/8/8 20:17 From Canada
Posts: 37
|
I _think_ the culprit was an unnecessary "sudo" or maybe a missing chown/chgrp command somewhere that caused some of the simple but irritating permissions problems?
This problem doesn't show up on Cygwin, as Cygwin doesn't have sudo or root users. But UWin, it would/could be a problem. Can someone point me to where the problem might be in my originating post? I'm quickly reviewing that post, and just don't see where the problem might be... |
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 1/7 21:25
#125 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2012/8/14 12:51 From France
Posts: 1477
|
@stonecracker
Thank you for your tutorial. installed on Cygwin64, all seems fine ! |
|
_________________
http://apps.amistore.net/zTools |
||
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 1/11 14:53
#126 |
---|---|---|
Just popping in
![]() ![]() Joined:
2017/8/8 20:17 From Canada
Posts: 37
|
Glad to hear. I _think_ all is working fine with my instructions, as seen in the originating/but heavily edited, original post. UWin, and Cygwin. Unless someone tells me otherwise?
|
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 4/11 12:10
#127 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2006/11/22 17:57 From Italy, Rome
Posts: 580
|
@stonecracker
Hello, i bring up again this thread cause i had a severe Windows 10 failure and lost my uwin installation. i tried already to reinstall everything as before, having all the steps done previously written in a document and proceeded carefully with copy and paste to ensure no errors occoured during the setup phase. Unfortunately, the make commands fails with some errors and i can't complete the installation of the uwin environment. At first i tought that something changed in Windows fall creator update and i figured out that only the lxss environment path has been modified as default. I think that this should not have any impact in the cross compiler setup procedure. I would like to address this problem definitively, so i ask you (again) for help. Thank you. |
|
_________________
Retired |
||
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 4/14 0:06
#128 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2007/1/26 21:48 From New Zealand
Posts: 1905
|
@AmigaBlitter
Stonecracker hasn't logged in in a while. So, you might want to explain where you're getting stuck here. Maybe others can help. Hans |
|
_________________
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. https://keasigmadelta.com/ - more of my work |
||
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 4/16 3:45
#129 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2009/4/28 3:57 From Adelaide, Australia
Posts: 893
|
It looks like the instructions in post #1 jump straight into building gcc before building binutils. AmigaBlitter's screenshots he sent to me show it failed when looking for ppc-amigaos-ar in native-build/root-cross/bin/. I had a look at the Makefile in native-build and the gcc-cross target, and I don't see where binutils is made for that target.
So I suggest going into native-build, and running "make binutils-install". Then building gcc should work afterwards. Not tested, but this is my best guess. Edit: The Makefile from when this thread was first made, used to build binutils for the gcc-cross target, but no longer does. 18 days ago a change was made (893c02b) that meant binutils would no longer be built automatically if using the gcc-cross target. Previously, gcc-cross would call clib2-cross which would call xgcc-done which called binutils-cross. Edit 2: That wasn't right either. See salass00's post below. Edited by MickJT on 2018/4/16 5:14:13
Edited by MickJT on 2018/4/16 5:28:27 Edited by MickJT on 2018/4/16 7:37:30 Edited by MickJT on 2018/4/16 7:56:52 |
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 4/16 7:33
#130 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1575
|
@MickJT
Changing the following two lines in native-build/makefile fixed the problem with wrong path being used for ppc-amigaos-ar for me:
diff --git a/native-build/makefile b/native-build/makefile
Eventually it failed again because it wasn't able to find clib2 files in $(CROSS_PREFIX)/ppc-amigaos/SDK/clib2 so I copied them there manually from native-build/downloads/clib2/ and ran make again, and it finished without errors building the gcc 6.4.0 cross compiler. |
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 4/16 7:52
#131 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2009/4/28 3:57 From Adelaide, Australia
Posts: 893
|
I missed that CLIB2_CROSS_DONE_DEPENDENCY line.
So, the makefile still builds it but doesn't always take into account modified variables. |
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 4/16 12:05
#132 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2006/11/22 17:57 From Italy, Rome
Posts: 580
|
Thank you all for the informations.
Will try to apply asap. |
|
_________________
Retired |
||
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 4/16 13:07
#133 |
---|---|---|
Just can't stay away
![]() ![]() Joined:
2006/11/30 11:30 From Finland
Posts: 1575
|
Making a few more changes to the makefile I was able to build a gcc 8.0.1 cross compiler without any errors.
diff --git a/native-build/makefile b/native-build/makefile
|
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 4/16 14:41
#134 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2009/4/28 3:57 From Adelaide, Australia
Posts: 893
|
Ok. I just went through the steps myself. I'm naming the CROSS_PREFIX directory as adtools-ppc-uwin64-20180416-480 (I used make print-dist-version to find the date/revision). After doing all the gild stuff, I went into native-build and ran:
make gcc-cross CROSS_PREFIX=/usr/local/amiga/adtools-ppc-uwin64-20180416-480 When I got to the error, I simply did: ln -s /usr/local/amiga/adtools-ppc-uwin64-20180416-480 root-cross So that makes a root-cross symlink inside of native-build that points to /usr/local/amiga/adtools-ppc-uwin64-20180416-480 Then I ran the "make" line again, and it continued on fine. Sorry to say salass00, your method is the hard way, even if it is more "proper" :) I'm sure Sebastian Bauer will fix CROSS_PREFIX to work properly again soon anyway (basically the same as what you did). |
|