updating gcc6, I got this one - using cygwin 32bit:
Code:
./toolchain-m68k --prefix=/opt/m68k-amigaos build |
Quote:
Did you install custom headers into your prefix? Did you modify headers in your prefix? cygwin32 build and linux 64 bit is always tested befor pushing (fautomat's job). You either aren't doing a clean before build, or you have some other headers installed in your prefix. |
Quote:
this time nothing changed/fixed in my prefix :/ the damn threads do not work, still crash my system, even using only 2 out of 4 native. it's not only the shell/cygwin, the damn windows gets unusable, hard reset only. export SHELL=CMD does not really help, it seems :guru #0) some of the error messages: Code:
g++: error: spawn: Permission denied |
the trouble maker is one of my GCHQ/NSA bloatware tools aka firewall/anti virus scanner ...
I went into windows safe mode and now the fun starts. configure scripts now acts/run like on steroids, this is ridiculous. 20 minutes and the whole toolchain was build. all went fine, mem.c I can build and the object file now is in the amiga hunk format. very cool :spin in the given example, are the "-Os -fbaserel" options somehow important? since it does build without them aswell. #1) this is somehow related to the above: Code:
slib4.c:41:1: warning: `__saveds__' attribute is only usable with fbaserel [-Wattributes] Code:
m68k-amigaos-g++.exe -noixemul lib/serv_s.o *.o -o plugin.p \ Code:
m68k-amigaos-gcc.exe -noixemul -Os -fbaserel -D__SASC -D_AMIGA -I../include/ -c slib4.c Code:
m68k-amigaos-gcc.exe -noixemul -m68020 -D__SASC -D_AMIGA -I../include/ -c slib4.c Code:
/opt/m68k-amigaos/m68k-amigaos/libnix/lib/libnix/libnix.a(setlocale.o) does not help, and atm, I cannot find the source of the function to build my own. I found an example for localconv, which gives the same error: Code:
$ m68k-amigaos-g++.exe -noixemul lconv-test.cpp #3) phx wrote something about the HUNK_DEBUG in the .stab section. |
Quote:
Quote:
Quote:
Quote:
This is fixed now. Quote:
|
This tool chain is really nice work!!! Still no plans for a stable branch on github?
|
1 Attachment(s)
Quote:
Quote:
Quote:
Quote:
1) goto source folder -> make 2) cd ../ 3) make the _Dosbase reloc error is listed. |
Quote:
Code:
m68k-amigaos-ar -q libnix.a assert/__eprintf.o ctype/_ctype_.o |
broken gcc-build
Hello..
it seems the current repo is broken.. i'm facing this problem although i was able to build the gcc without any problem 6 month ago. my computer is a virtual-box running 32Bit Lubuntu 16.04.3 LTS. The Build.log is attached as zip - i hope this helps somehow? Code:
m68k-amigaos-ranlib libnix.a |
Quote:
Code:
m68k-amigaos-g++: error: lib/serv_s.o: No such file or directory |
Quote:
1) qemloss-WIP.zip --> qemloss-WIP/source/ --> make --> will build serv_s.o using vasm and server.lib using m68k-amigaos-gcc --> will copy result to ../lib Code:
qemloss-WIP.zip --> qemloss-WIP/source/Makefile: slib4.c has the "_Dosbase" stuff. 2) qemloss-WIP.zip --> qemloss-WIP/ --> make --> will compile qemloss files and link with lib/serv_s.o and lib/server.lib to create the final qemloss.p plugin :) |
git checkout error
another error that occurs since last changes yesterday (?)
i removed the whole directory-tree and did a git clone .. and after running the toolchain-script this output is shown: Code:
amigaos-cross-toolchain$ ./toolchain-m68k --prefix=/opt/m68k6x-amigaos --threads 1 build |
Quote:
The problem is that HUNK_DEBUG cannot stand alone. It needs to be attached to a HUNK_CODE, HUNK_DATA or HUNK_BSS segment, like HUNK_RELOC32, HUNK_SYMBOL, etc.. |
Quote:
2. where is a a HUNK_DEBUG that is standalone? 3. who defines that there must be only one HUNK_DEBUG? Consider supporting different debuggers from one object file. |
Quote:
Quote:
I can clearly see: Code:
... Quote:
Quote:
|
Quote:
So there is an argument to change the object file structure. But a linker which cannot handle that kind of content, will not create working executables, since these DEBUG_HUNKs are containg the infos for aliases, constructors etc. p.p - only gcc knows... (BTW: slink does not complain and links - omitting the DEBUG_HUNKS) Thank you for telling me. |
Quote:
Code:
m68k-amigaos-g++.exe -noixemul lib/serv_s.o 3D.o AdjModel.o AdjPrims.o Hash.o Heap.o Matrix.o ProxGrid.o Quadrics.o qemloss.o Decimate.o -o qemloss.p -Llib/ lib/server.lib -lm -lstdc++ -lgcc -lamiga -fbaserel |
hello bebbo
first of all, thanks for your work even though it's x-mas ! :) :xmas do you have any idea, why i am facing the git-errors i mentioned some posts ago ? maybe i'm doing something wrong, but i dont know what. regards, fook42 |
Quote:
What kind of executable should a linker create from such an object? Unlike ELF (.debug*) the hunk-format has no segments which are ignored by the loader. Which means, assuming a linker would emit such an executable, it had to include a segment with only HUNK_DEBUG and RELOC32 in it. When you look at the AmigaOS LoadSeg() code you see that it only recognizes HUNK_CODE/DATA/BSS hunks as the basis for a subsequent relocation hunk. So your plan to make the OS relocate a HUNK_DEBUG won't work. And even if this is not your plan and you want to relocate the DEBUG hunk with your debugger instead, my guess would be that the system will crash, because there is no valid pointer in the loader's segment table when encountering these relocations. Quote:
Otherwise, then I don't understand why it should be a DEBUG hunk at all. When the program needs it, put it into HUNK_DATA. (I have the feeling there are many misunderstandings, but I didn't read anything in this thread before my first post). Quote:
To write something constructive: I need an idea how a working executable has to look for you, then maybe we can think about what an object file needs. |
Quote:
Code:
git pull |
All times are GMT +2. The time now is 14:25. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.