|
Re: How to build AmigaOS4 cross-compiler (Binutils 2.23.2 & GCC 8.3.0) on CYGWIN |
Posted on: 2020/1/17 19:32
#41 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2013/10/17 16:21 From Hungary
Posts: 650
|
I didn't mean changes in the adtools repository, that's frozen in time, but the official GCC repository. If I was in the wrong directory, then shouldn't
Quote: gild/bin/gild checkout binutils 2.23.2 have failed too? I guess I have no other choice but to start from scratch. edit: I found the problem. The tags in official GCC repo got renamed. There used to be "gcc-8_3_0-release": https://webcache.googleusercontent.com ... &cd=1&hl=en&ct=clnk&gl=hu But now it's "releases/gcc-8.3.0": https://gnu.googlesource.com/gcc/+refs This is why gild no longer works... Now I have to figure out where it stores the name of this tag. edit #2: So here's the solution, this could be added to the original post. Open "adtools/gcc/series" in a text editor, and replace Quote: 8 gcc-8_3_0-release http://ftp.gnu.org/gnu/gcc/gcc-8.3.0/gcc-8.3.0.tar.xz with Quote: 8 releases/gcc-8.3.0 http://ftp.gnu.org/gnu/gcc/gcc-8.3.0/gcc-8.3.0.tar.xz Edited by BSzili on 2020/1/17 21:29:15
Edited by BSzili on 2020/1/17 21:37:11 |
|
_________________
I see the jimmies have been rustled. |
||
|
Re: How to build AmigaOS4 cross-compiler (Binutils 2.23.2 & GCC 8.3.0) on CYGWIN |
Posted on: 2020/1/30 10:31
#42 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3974
|
@kas1e
WARNING: When cross-compiling PKG_CONFIG_LIBDIR must be set to the location of the .pc files for the target Also: error: unrecognized option: --build=x86_64 How to fix those? |
|
_________________
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg |
||
|
Re: How to build AmigaOS4 cross-compiler (Binutils 2.23.2 & GCC 8.3.0) on CYGWIN |
Posted on: 2020/1/30 10:37
#43 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 12:31 From Russia
Posts: 6825
|
@Raziel
When configure want PKG things, then: export PATH=/usr/local/amiga/ppc-amigaos/SDK/local/newlib/bin/:$PATH ./configure --host=ppc-amigaos --target=ppc-amigaos PKG_CONFIG=/bin/pkg-config PKG_CONFIG_LIBDIR=/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/pkgconfig (so we use cross-compiler's pkg-config but our .pc files and skip --build=x86_64 option) |
|
|
Re: How to build AmigaOS4 cross-compiler (Binutils 2.23.2 & GCC 8.3.0) on CYGWIN |
Posted on: 2020/1/30 10:54
#44 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/11/26 21:45 From a dying planet
Posts: 3974
|
@kas1e
Can this be automated? Is there a file i can edit to make the PKG_CONFIG persistent? Unrecognized option PKG_CONFIG= PKG_CONFIG_LIBDIR= |
|
_________________
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg |
||
|
Re: How to build AmigaOS4 cross-compiler (Binutils 2.23.2 & GCC 8.3.0) on CYGWIN |
Posted on: 2020/1/30 11:12
#45 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 12:31 From Russia
Posts: 6825
|
@Raziel
Everything can be automated, i for myself just didn't bother. Try to run ./configure --help | grep PKG to see what options it have. But it strange, you post "WARNING: When cross-compiling PKG_CONFIG_LIBDIR must be set to the location of the .pc files for the target", i usually have that when configure accept PKG_CONFIG_LIBDIR. But then try to set it as environment then, like: export PKG_CONFIG_LIBDIR=/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/pkgconfig |
|
|
Re: How to build AmigaOS4 cross-compiler (Binutils 2.23.2 & GCC 8.3.0) on CYGWIN |
Posted on: 2020/6/17 20:32
#46 |
---|---|---|
Just popping in
![]() ![]() Joined:
2012/7/16 18:57 From Istanbul
Posts: 162
|
@all
I am taking baby steps to compile simple things from Linux.. When I try to cross compile something, I get following error: e.g. CMake Error: The source directory "/amiga/Projects/flac-1.3.3/flac-1.3.3" does not appear to contain CMakeLists.txt. What can be the solution ? |
|
_________________
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex |
||
|
Re: How to build AmigaOS4 cross-compiler (Binutils 2.23.2 & GCC 8.3.0) on CYGWIN |
Posted on: 2020/6/17 20:58
#47 |
---|---|---|
Just popping in
![]() ![]() Joined:
2006/11/27 22:06 From UK
Posts: 183
|
@SinanSam460
Kas1e covered this in the first post. Quote: 2. |
|
|
Re: How to build AmigaOS4 cross-compiler (Binutils 2.23.2 & GCC 8.3.0) on CYGWIN |
Posted on: 2020/6/18 4:35
#48 |
---|---|---|
Just popping in
![]() ![]() Joined:
2012/7/16 18:57 From Istanbul
Posts: 162
|
@derfs
Thanks but I got this error after following the final step. |
|
_________________
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex |
||
|
Re: How to build AmigaOS4 cross-compiler (Binutils 2.23.2 & GCC 8.3.0) on CYGWIN |
Posted on: 2020/6/18 16:15
#49 |
---|---|---|
Just popping in
![]() ![]() Joined:
2006/11/27 22:06 From UK
Posts: 183
|
@SinanSam460
you need to be in the “build” directory when you run cmake. |
|
|
Re: How to build AmigaOS4 cross-compiler (Binutils 2.23.2 & GCC 8.3.0) on CYGWIN |
Posted on: 1/19 10:09
#50 |
---|---|---|
Just popping in
![]() ![]() Joined:
2012/7/16 18:57 From Istanbul
Posts: 162
|
@kas1e
How do we update gcc 10 and latest updates on CygWin64 ? |
|
_________________
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex |
||
|
Re: How to build AmigaOS4 cross-compiler (Binutils 2.23.2 & GCC 8.3.0) on CYGWIN |
Posted on: 1/19 11:01
#51 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/9/11 12:31 From Russia
Posts: 6825
|
@SinanSam460
Quote:
All the same as with gcc8, but the only difference that you clone the gcc10 branch from sodero's repo, and apply gcc 10 patches. I.e. the whole block will be: Quote:
And then doing all the same as usual (change SDK link, etc, etc). |
|
|
Re: How to build AmigaOS4 cross-compiler (Binutils 2.23.2 & GCC 8.3.0) on CYGWIN |
Posted on: 1/19 13:18
#52 |
---|---|---|
Just popping in
![]() ![]() Joined:
2012/7/16 18:57 From Istanbul
Posts: 162
|
@kas1e
Thanks I am getting this error when compiling new gcc /amiga/adtools/gcc/repo/libstdc++-v3/src/c++17/fs_ops.cc:1211:40: error: ‘not_supported’ is not a member of ‘std::errc’ 1211 | ec = std::make_error_code(std::errc::not_supported); | ^~~~~~~~~~~~~ make[10]: *** [Makefile:570: fs_ops.lo] Error 1 make[10]: Leaving directory '/amiga/adtools/native-build/gcc-cross-build-10.1.0/ppc-amigaos/clib2/libstdc++-v3/src/c++17' make[9]: *** [Makefile:731: all-recursive] Error 1 make[9]: Leaving directory '/amiga/adtools/native-build/gcc-cross-build-10.1.0/ppc-amigaos/clib2/libstdc++-v3/src' make[8]: *** [Makefile:563: all-recursive] Error 1 make[8]: Leaving directory '/amiga/adtools/native-build/gcc-cross-build-10.1.0/ppc-amigaos/clib2/libstdc++-v3' make[7]: *** [Makefile:488: all] Error 2 make[7]: Leaving directory '/amiga/adtools/native-build/gcc-cross-build-10.1.0/ppc-amigaos/clib2/libstdc++-v3' make[6]: *** [Makefile:856: multi-do] Error 1 make[6]: Leaving directory '/amiga/adtools/native-build/gcc-cross-build-10.1.0/ppc-amigaos/libstdc++-v3' make[5]: *** [Makefile:824: all-multi] Error 2 make[5]: Leaving directory '/amiga/adtools/native-build/gcc-cross-build-10.1.0/ppc-amigaos/libstdc++-v3' make[4]: *** [Makefile:563: all-recursive] Error 1 make[4]: Leaving directory '/amiga/adtools/native-build/gcc-cross-build-10.1.0/ppc-amigaos/libstdc++-v3' make[3]: *** [Makefile:488: all] Error 2 make[3]: Leaving directory '/amiga/adtools/native-build/gcc-cross-build-10.1.0/ppc-amigaos/libstdc++-v3' make[2]: *** [Makefile:11349: all-target-libstdc++-v3] Error 2 make[2]: Leaving directory '/amiga/adtools/native-build/gcc-cross-build-10.1.0' make[1]: *** [Makefile:960: all] Error 2 make[1]: Leaving directory '/amiga/adtools/native-build/gcc-cross-build-10.1.0' make: *** [makefile:192: gcc-cross-done-10.1.0] Error 2 make: Leaving directory '/amiga/adtools/native-build' |
|
_________________
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex |
||
|
Re: How to build AmigaOS4 cross-compiler (Binutils 2.23.2 & GCC 8.3.0) on CYGWIN |
Posted on: 1/19 16:10
#53 |
---|---|---|
Site Builder
![]() ![]() Joined:
2006/12/2 23:57 From Athens/Dublin
Posts: 765
|
The way I compile it on docker using Ubuntu 20.04 can be found at https://github.com/walkero-gr/AmigaGCConDocker/blob/main/Dockerfile
There you can see the bash commands I use. Have in mind that this supports gcc 8, 9 and 10, which is set on an ENV variable called GCC. Check this out and you might find a missed step on your setup. |
|