Welcome, Guest. Please login or register.

Author Topic: We need an iBrowse replacement for 68k!!!  (Read 75579 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #29 on: February 02, 2013, 04:58:45 PM »
no i use amidevcpp, there was always similar issues in the past, long ago i admit. but ive blamed it on me. sure i can just install pure cygwin. the question is, isnt it better/safer to switch to anything else anyway? jason (aros68k) has once proposed me ubuntu under virtual machine, but i dont want all that bloat that comes with it, only the neccessary dev stuff.
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #30 on: February 02, 2013, 07:43:03 PM »
another step ahead.
i have installed a fresh independent cygwin on my main machine. so now i can check out binutils. but then i cant patch tem entirely:

Code: [Select]


...
A    sources/binutils-2.19.1/install-sh
A    sources/binutils-2.19.1/ylwrap
 U   sources/binutils-2.19.1
Ausgecheckt, Revision 480.
cp -r /home/wawa/toolchains/m68k-unknown-amigaos/sources/binutils-2.19.1 /home/
awa/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils
for p in `ls /home/wawa/toolchains/m68k-unknown-amigaos/recipes/patches/binutil
/*.p` ; do patch -d /home/wawa/toolchains/m68k-unknown-amigaos/builddir/srcdir/
inutils -p0 <$p ; done
patching file gas/app.c
Hunk #1 FAILED at 1279.
1 out of 1 hunk FAILED -- saving rejects to file gas/app.c.rej
Makefile:148: recipe for target `/home/wawa/toolchains/m68k-unknown-amigaos/bui
ddir/build-steps/binutils-srcdir.d' failed
make: *** [/home/wawa/toolchains/m68k-unknown-amigaos/builddir/build-steps/binu
ils-srcdir.d] Error 1
make: Leaving directory `/home/wawa/toolchains/m68k-unknown-amigaos'

perhaps something wrong with the patch util.
« Last Edit: February 02, 2013, 07:45:53 PM by wawrzon »
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #31 on: February 02, 2013, 09:01:01 PM »
likely. now id need to force make over the whole thing, as it exits seeing target dirs existant, and there is no clean option.
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #32 on: February 03, 2013, 10:10:10 PM »
switched to ubuntu on virtual machine for compiling odyssey, so im trying to build netsurf toolchain there too. now im getting so far that it actually starts to compile. now im stuck at:

Code: [Select]

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd -I. -I. -I/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd -I/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -m32 -c /home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c -o amigaos.o
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c: In function 'amiga_handle_cdb_hunk':
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:930:22: error: 'struct bfd_section' has no member named '_cooked_size'
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:930:54: error: 'struct bfd_section' has no member named '_raw_size'
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c: In function 'amiga_write_object_contents':
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:1298:31: error: 'struct bfd_section' has no member named '_raw_size'
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:1298:50: error: 'struct bfd_section' has no member named '_cooked_size'
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:1322:15: error: 'struct bfd_section' has no member named '_raw_size'
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:1339:11: error: 'struct bfd_section' has no member named '_raw_size'
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:1382:12: error: 'struct bfd_section' has no member named '_raw_size'
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:1382:29: error: 'struct bfd_section' has no member named '_cooked_size'
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:1383:9: error: 'struct bfd_section' has no member named '_cooked_size'
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:1391:7: error: 'struct bfd_section' has no member named '_raw_size'
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:1391:26: error: 'struct bfd_section' has no member named '_cooked_size'
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c: In function 'amiga_write_archive_contents':
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:1574:60: error: 'bfd' has no member named 'next'
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c: In function 'amiga_write_section_contents':
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:1733:52: error: 'struct bfd_section' has no member named '_raw_size'
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c: In function 'amiga_set_section_contents':
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:2707:65: error: 'struct bfd_section' has no member named '_raw_size'
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c: At top level:
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:3179:1: error: 'amiga_bfd_copy_private_header_data' undeclared here (not in a function)
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:3182:1: error: 'amiga_canonicalize_symtab' undeclared here (not in a function)
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:3182:1: error: 'amiga_bfd_is_target_special_symbol' undeclared here (not in a function)
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:3182:1: error: 'amiga_find_inliner_info' undeclared here (not in a function)
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:3183:1: error: 'amiga_bfd_reloc_name_lookup' undeclared here (not in a function)
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:3184:3: error: initialization from incompatible pointer type [-Werror]
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:3184:3: error: (near initialization for 'amiga_vec._bfd_set_section_contents') [-Werror]
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:3185:3: error: initialization from incompatible pointer type [-Werror]
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:3185:3: error: (near initialization for 'amiga_vec._bfd_sizeof_headers') [-Werror]
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:3185:1: error: 'amiga_bfd_is_group_section' undeclared here (not in a function)
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:3185:1: error: 'amiga_section_already_linked' undeclared here (not in a function)
/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/bfd/amigaos.c:2400:1: error: 'amiga_get_symtab' defined but not used [-Werror=unused-function]
cc1: all warnings being treated as errors
make[5]: *** [amigaos.lo] Error 1
make[5]: Leaving directory `/home/huhu/toolchains/m68k-unknown-amigaos/builddir/binutils/bfd'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/huhu/toolchains/m68k-unknown-amigaos/builddir/binutils/bfd'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/huhu/toolchains/m68k-unknown-amigaos/builddir/binutils/bfd'
make[2]: *** [all-bfd] Error 2
make[2]: Leaving directory `/home/huhu/toolchains/m68k-unknown-amigaos/builddir/binutils'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/huhu/toolchains/m68k-unknown-amigaos/builddir/binutils'
make: *** [/home/huhu/toolchains/m68k-unknown-amigaos/builddir/build-steps/binutils.d] Error 2
make: Leaving directory `/home/huhu/toolchains/m68k-unknown-amigaos'
huhu@huhu:~/toolchains$
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #33 on: February 04, 2013, 09:34:28 AM »
these are actual errors, not warnings, so far i see from their content, so it will not builld anyway.
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #34 on: February 04, 2013, 05:07:40 PM »
Quote from: ChaosLord;725314
sucky makefiles with no CLEAN option


exactly what the make for netsurf toolchain happens to be.

@thread:
can we quit this derivel and stay on topic, please?
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #35 on: February 04, 2013, 05:14:18 PM »
Quote from: chris;725307
You probably need to figure out what the bfd_section structure actually has in it.  It might be a simple case of tweaking the variable names.


you want me to mess with the toolchain build? hell, yeah, let the thing explode in my face. perhaps the make should just be modified to include the last version of everything..

i must say building aros seems much more dependable at the moment, only broken because hidds are being messed with. but the 68k toolchain built all alone as it seems. now awaiting instructions from deadwood to attempt to build odyssey..
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #36 on: February 04, 2013, 07:35:16 PM »
Quote from: fishy_fiz;725337
Bummer, I was hoping to be able to download a source archive. I wont use git, so I guess I'll have to let someone else build it. Thanks anyway.

i dont understand whats wrong with git. if i was able to check out the sources in an instant both under cygwin, but also under ubuntu, then everybody is. one needs a linux derivate compiling environment anyway.
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #37 on: February 04, 2013, 07:57:23 PM »
Quote from: chris;725332
No; it's binutils which appears to be failing to build.  It's that you need to look at.

maybe it was something the patch was correcting, some diff between 2.14 and 2.19.1..

could someone indeed add a "clean" option to the makefile? when i restart make at this point i constantly get:
mv: cannot move `gcc-4.5.1' to `/home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/gcc/gcc-4.5.1': Directory not empty

and i have to mess with dirs by hand..
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #38 on: February 04, 2013, 08:59:25 PM »
Quote

just delete the entire builddir directory, and it will unpack and patch all over again.

yeah, figured that out, but im completely inexperienced with linux, and fear to mess something really hard. i ive done just a second ago. grrr.
Quote

However as all amiga compilers i have downloaded in the last 10 years used really old binutils, I guess you really need 2.14, no idea how to get that from svn though.

im trying to use 2.19.1 one originally mentioned here. its all patched to amiga, likely nothing else will work. and the amiga exclusive files even in os4 tree seem even to origiate from 68k. 1998 or so...
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #39 on: February 04, 2013, 09:39:43 PM »
most annoying is finding out the correct syntax for all that makefile comandes like svn and stuff.
if i had it all locally and had not to connect to repos all would go faster of course.
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #40 on: February 05, 2013, 02:43:51 PM »
Quote from: apj;725376
compiling this was pain in the ass,
when something went wrong it started from the begining.
you can use make -i to ignore errors and see how far you will go

mine "before-merge-with-binutils-2.18" :
https://www.dropbox.com/s/drxurxl43n774ge/binutils.7z

whole build:
https://www.dropbox.com/s/65y3n9gxlzn207i/cross.7z


thanks will have another stab at it today. will see your makefile for comparison.
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #41 on: February 06, 2013, 06:35:11 PM »
artur, can you send me the makefile for comparison?
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #42 on: February 07, 2013, 11:57:39 AM »
thanks. looks like you ve left all untouched. okay so just copied binutils to sources dir as binutils-2.14
still after the makefile copied it to /builddir/srcdir/binutils/ complains about denied permission.


Code: [Select]

cp -r /home/huhu/toolchains/m68k-unknown-amigaos/sources/binutils-2.14 /home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils
for p in `ls /home/huhu/toolchains/m68k-unknown-amigaos/recipes/patches/binutils/*.p` ; do patch -d /home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils -p0 <$p ; done
patching file gas/app.c
touch /home/huhu/toolchains/m68k-unknown-amigaos/builddir/build-steps/binutils-srcdir.d
mkdir -p /home/huhu/toolchains/m68k-unknown-amigaos/builddir/binutils
cd /home/huhu/toolchains/m68k-unknown-amigaos/builddir/binutils && CFLAGS=&quot;-m32&quot; LDFLAGS=&quot;-m32&quot; /home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/configure --prefix=/opt/netsurf/m68k-unknown-amigaos/cross --target=m68k-unknown-amigaos --disable-nls
/bin/sh: 1: /home/huhu/toolchains/m68k-unknown-amigaos/builddir/srcdir/binutils/configure: Permission denied
make: *** [/home/huhu/toolchains/m68k-unknown-amigaos/builddir/build-steps/binutils.d] Error 126
make: Leaving directory `/home/huhu/toolchains/m68k-unknown-amigaos'
huhu@huhu:~/toolchains$
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #43 on: February 07, 2013, 03:11:24 PM »
thanks, suspected something like that. coming a little further now.
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #44 from previous page: February 11, 2013, 07:38:47 PM »
got bored with building toolchain and went straight to compiling the libs on another machine under cygwin using precompiled arturs backend available above. i hope chris will fix toolchain makefiles for himself one day so that we have unified reference.

now compiling the libsparseutils i see:
src/charset/aliases.c: In function `parserutils_charset_alias_match':
src/charset/aliases.c:53: Warnung: Index hat Typ »char«

apparently the sourcefile needs a cast? ive built it for now without -werror. but i guess its better to report back and have it fixed upstream.

a question though, i cannot find any possibility to convince the make to output the detailed information what exactly has been invoked with the full path, to be sure the correct compiler backend and tools are used. no --debug option seems to grant this, neither VERBOSE=1.. what to do? (btw libcss seem to have compiled just fine, im a little puzzled why this is all that easy all the sudden)
« Last Edit: February 11, 2013, 07:51:05 PM by wawrzon »