Compile programs ABI v.0 hosted

nikos · 1297

el-topo

  • Newbie
  • *
    • Posts: 8
    • Karma: +1/-0
Reply #30 on: December 24, 2020, 01:20:39 PM



deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 283
    • Karma: +21/-0
Reply #31 on: December 24, 2020, 01:31:14 PM
Thanks. I've seen those issues before but can't remember what is the solution :/



salvo

  • Legendary Member
  • *****
    • Posts: 825
    • Karma: +12/-1
  • Invalid Civil
Reply #32 on: December 24, 2020, 02:01:05 PM
@salvo

I don't see any error in your output. What problem did you encounter?

I thought I ran into problems during the build process

Tiny Aros on Laptop MSI X-600, Intel Core 2 Duo 1,8 Ghz, 3 Gb Ram, SSD Samsung 860 Evo 240 Gb, Nvidia 8400m GS 15" Vesa, WifI Atheros AR5006EG

http://tinyaros.flazio.com/home


salvo

  • Legendary Member
  • *****
    • Posts: 825
    • Karma: +12/-1
  • Invalid Civil
Reply #33 on: December 24, 2020, 02:08:02 PM
i downloaded the opendune source i put the directory in local but i don't know how to compile there are configure and make scripts

salvo@salvo-AMILO-Pro-Series-V8210:~/myrepo/AROS/local/OpenDUNE-master$ ./configure
checking awk... awk
detecting OS... UNIX
checking build system type... i686-linux-gnu
checking host system type... i686-linux-gnu
checking universal build... no
checking build cc... gcc
checking host cc... gcc
checking strip... disabled
checking builtin depend... yes
checking makedepend... disabled
detecting cpu-type... 32 bits
checking static... no
using debug level... no
disabling asserts
using link time optimization... no
checking OSX sysroot... not OSX, skipping
checking SDL2... not found
checking SDL... found version 1.2.15
checking SDL_image... not found
checking asound... found
checking oss... found
checking pulse... found
checking kai... not found
checking munt... not found
checking GDI video driver... not Windows, skipping
checking assert... disabled
checking sort... sort
checking stripping... skipped
checking distcc... no (only used when forced)
checking ccache... no (only used when forced)
checking revision... no detection
WARNING: there is no means to determine the version.
WARNING: please use a subversion, mercurial, or git checkout of OpenDUNE.
WARNING: USE WITH CAUTION!
installation directory... /
gcc
using CFLAGS_BUILD...  -fno-common -Wall -Wsign-compare -Wundef -Wwrite-strings -Wpointer-arith -W -Wredundant-decls -Wformat=2 -Wformat-security -Wno-format-nonliteral -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -Winit-self -fno-strict-aliasing -Wcast-qual -fno-strict-overflow -Wno-free-nonheap-object -rdynamic -D_FORTIFY_SOURCE=2 -O1 -DNDEBUG
using LDFLAGS_BUILD...  -rdynamic
using CFLAGS... -O2 -fomit-frame-pointer -Wno-variadic-macros  -fno-common -Wall -Wsign-compare -Wundef -Wwrite-strings -Wpointer-arith -W -Wredundant-decls -Wformat=2 -Wformat-security -Wno-format-nonliteral -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -Winit-self -fno-strict-aliasing -Wcast-qual -fno-strict-overflow -Wno-free-nonheap-object -rdynamic -DUNIX -I/home/salvo/myrepo/AROS/local/OpenDUNE-master/include -D_FORTIFY_SOURCE=2 -DWITH_SDL -I/usr/include/SDL  -D_REENTRANT -DWITHOUT_SDLIMAGE -DALSA -D_REENTRANT -DPULSEAUDIO -DNDEBUG
using LDFLAGS...  -L/usr/lib/i386-linux-gnu -lSDL -lasound -lpulse  -rdynamic
Generating Makefile...
Generating objs/Makefile...
« Last Edit: December 24, 2020, 02:16:30 PM by salvo »

Tiny Aros on Laptop MSI X-600, Intel Core 2 Duo 1,8 Ghz, 3 Gb Ram, SSD Samsung 860 Evo 240 Gb, Nvidia 8400m GS 15" Vesa, WifI Atheros AR5006EG

http://tinyaros.flazio.com/home


magorium

  • Member
  • ***
    • Posts: 236
    • Karma: +6/-0
  • Convicted non contributor
Reply #34 on: December 24, 2020, 06:14:21 PM

@deadwood/el-topo:
Thanks. I've seen those issues before but can't remember what is the solution :/
I've ran into the same error messages when compiling on/to my (linux) ramdisk (which i expected, ran out of space). The real error became visible for me when compiling with single core (j 1, instead of j 3).






nikos

  • Senior Member
  • ****
    • Posts: 294
    • Karma: +8/-2
    • aspireos
Reply #35 on: December 24, 2020, 10:04:03 PM
@nikos

Thanks, that a good suggestion for manual. I will add it.

About the build, you are building the native version now (pc-i386), let's first try to build hosted. Your system is probably still missing some packages, we will see that when building hosted.

Please run ./rebuild.sh and selection option (3) alt-abiv0-linux-i386 (DEBUG)

Done :)

I guess you like to see the errors?

https://pastebin.com/28ZR51Ss



deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 283
    • Karma: +21/-0
Reply #36 on: December 24, 2020, 10:15:09 PM
@nikos

I think you pasted the errors file. What i need to see is console output. Just let ./rebuild.sh run and when it stops, copy what is in the console and paste here.



nikos

  • Senior Member
  • ****
    • Posts: 294
    • Karma: +8/-2
    • aspireos
Reply #37 on: December 24, 2020, 10:35:36 PM
@nikos

I think you pasted the errors file. What i need to see is console output. Just let ./rebuild.sh run and when it stops, copy what is in the console and paste here.

That is correct.

Here it is.

/home/niko/toolchain-alt-abiv0-i386/i386-aros-gcc --sysroot /home/niko/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development -L/home/niko/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development/lib -newclib  -o wpa_supplicant config.o notify.o bss.o eap_register.o ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/wpabuf.o wpa_gui_amiga.o ../src/utils/os_amiga.o ../src/utils/eloop_amiga.o config_file.o ../src/rsn_supp/wpa.o ../src/rsn_supp/preauth.o ../src/rsn_supp/pmksa_cache.o ../src/rsn_supp/peerkey.o ../src/rsn_supp/wpa_ie.o ../src/common/wpa_common.o ../src/eapol_supp/eapol_supp_sm.o ../src/eap_peer/eap.o ../src/eap_peer/eap_methods.o ../src/crypto/crypto_internal.o ../src/crypto/tls_none.o  ../src/crypto/aes-internal.o ../src/crypto/aes-internal-dec.o ../src/crypto/aes-unwrap.o ../src/crypto/aes-internal-enc.o ../src/crypto/md5.o ../src/crypto/md5-internal.o ../src/crypto/rc4.o  mlme.o ../src/common/ieee802_11_common.o ../src/eap_common/eap_common.o ../src/crypto/sha1.o ../src/crypto/sha1-internal.o ../src/crypto/sha1-pbkdf2.o  wpa_supplicant.o events.o blacklist.o wpas_glue.o scan.o main_amiga.o ../src/drivers/driver_sana2.o  ../src/drivers/drivers.o ../src/l2_packet/l2_packet_none.o -lmui   
  CC  ../src/common/wpa_ctrl.c
/home/niko/toolchain-alt-abiv0-i386/i386-aros-gcc --sysroot /home/niko/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development -L/home/niko/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development/lib -newclib  -o wpa_passphrase wpa_passphrase.o ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/wpabuf.o ../src/utils/os_amiga.o ../src/crypto/crypto_internal.o ../src/crypto/md5.o ../src/crypto/md5-internal.o ../src/crypto/sha1.o ../src/crypto/sha1-internal.o ../src/crypto/sha1-pbkdf2.o
  CC  wpa_cli.c
/home/niko/toolchain-alt-abiv0-i386/i386-aros-gcc --sysroot /home/niko/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development -L/home/niko/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development/lib -newclib  -o wpa_cli wpa_cli.o ../src/common/wpa_ctrl.o ../src/utils/os_amiga.o
make[2]: warning: -jN forced in submake: disabling jobserver mode.
cp wpa_supplicant /home/niko/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/C/WirelessManager
[MMAKE] Nothing known about target kernel-usb-linux-i386 in project AROS
[MMAKE] Making AROS in
41 /home/niko/alt-abiv0-linux-i386-d/bin/linux-i386/gen/errors


deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 283
    • Karma: +21/-0
Reply #38 on: December 24, 2020, 10:39:31 PM
I don't see any errors to be honest. The build just stops like this?

What happens when you try running AROS hosted created by that build?



nikos

  • Senior Member
  • ****
    • Posts: 294
    • Karma: +8/-2
    • aspireos
Reply #39 on: December 24, 2020, 10:50:45 PM
I don't see any errors to be honest. The build just stops like this?

What happens when you try running AROS hosted created by that build?

Oh my god, it works :D

Question is why did not the option 2 work?


deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 283
    • Karma: +21/-0
Reply #40 on: December 24, 2020, 10:53:28 PM
@nikos

Now that we have linux-hosted build, we can resume native (option 2).

Run ./rebuild.sh and selection option 2. Wait until it finished, then:

Code: [Select]
$ cd alt-abiv0-pc-i386
$ make

and paste the console output



nikos

  • Senior Member
  • ****
    • Posts: 294
    • Karma: +8/-2
    • aspireos
Reply #41 on: December 24, 2020, 11:43:11 PM
@nikos

Now that we have linux-hosted build, we can resume native (option 2).

Run ./rebuild.sh and selection option 2. Wait until it finished, then:

Code: [Select]
$ cd alt-abiv0-pc-i386
$ make

and paste the console output

That is a lot!! but here is the end of it.

make[1]: Nothing to be done for 'workbench-network-stacks-arostcp-s'.
[MMAKE] Building AROS.workbench-network-stacks-arostcp-envpackage
[MMAKE] Making workbench-network-stacks-arostcp-envpackage in workbench/network/stacks/AROSTCP/S
echo  "SYS:System/Network/AROSTCP" >/home/niko/alt-abiv0-pc-i386/bin/pc-i386/AROS/Prefs/Env-Archive/SYS/Packages/AROSTCP
[MMAKE] Building AROS.workbench-network-stacks-arostcp-db
[MMAKE] Making workbench-network-stacks-arostcp-db in workbench/network/stacks/AROSTCP/db
make[1]: Nothing to be done for 'workbench-network-stacks-arostcp-db'.
[MMAKE] Building AROS.workbench-network-stacks-arostcp-bsdsocket
[MMAKE] Nothing known about target linklibs- in project AROS
[MMAKE] Making workbench-network-stacks-arostcp-bsdsocket in workbench/network/stacks/AROSTCP/bsdsocket
make[1]: Nothing to be done for 'workbench-network-stacks-arostcp-bsdsocket'.
[MMAKE] Making workbench-network-stacks-arostcp in workbench/network/stacks/AROSTCP
make[1]: Nothing to be done for 'workbench-network-stacks-arostcp'.
[MMAKE] Building AROS.network-dhcp-client
[MMAKE] Building AROS.network-dhcp-client-quick
[MMAKE] Building AROS.network-dhcp-libdhcp
[MMAKE] Making network-dhcp-libdhcp in workbench/network/stacks/AROSTCP/dhcp/common
make[1]: Nothing to be done for 'network-dhcp-libdhcp'.
[MMAKE] Building AROS.network-dhcp-libdst
[MMAKE] Making network-dhcp-libdst in workbench/network/stacks/AROSTCP/dhcp/dst
make[1]: Nothing to be done for 'network-dhcp-libdst'.
[MMAKE] Building AROS.network-dhcp-libomapip
[MMAKE] Making network-dhcp-libomapip in workbench/network/stacks/AROSTCP/dhcp/omapip
make[1]: Nothing to be done for 'network-dhcp-libomapip'.
[MMAKE] Building AROS.network-dhcp-libminires
[MMAKE] Making network-dhcp-libminires in workbench/network/stacks/AROSTCP/dhcp/minires
make[1]: Nothing to be done for 'network-dhcp-libminires'.
[MMAKE] Making network-dhcp-client-quick in workbench/network/stacks/AROSTCP/dhcp/client
make[1]: Nothing to be done for 'network-dhcp-client-quick'.
[MMAKE] Nothing known about target linklibs-dhcp in project AROS
[MMAKE] Nothing known about target linklibs-minires in project AROS
[MMAKE] Nothing known about target linklibs-omapip in project AROS
[MMAKE] Nothing known about target linklibs-dst in project AROS
[MMAKE] Making network-dhcp-client in workbench/network/stacks/AROSTCP/dhcp/client
make[1]: Nothing to be done for 'network-dhcp-client'.
[MMAKE] Building AROS.workbench-network-smbfs
[MMAKE] Building AROS.workbench-network-smbfs-client
[MMAKE] Nothing known about target aros-tcpip in project AROS
[MMAKE] Nothing known about target workbench-network-smbfs-setup in project AROS
[MMAKE] Building AROS.workbench-network-smbfs-client-includes
[MMAKE] Building AROS.workbench-network-smbfs-client-makefile
[MMAKE] Making workbench-network-smbfs-client-makefile in workbench/network/smbfs/source_code
make[1]: Nothing to be done for 'workbench-network-smbfs-client-makefile'.
[MMAKE] Building AROS.workbench-network-smbfs-client-includes-dirs
[MMAKE] Making workbench-network-smbfs-client-includes-dirs in workbench/network/smbfs/source_code
make[1]: Nothing to be done for 'workbench-network-smbfs-client-includes-dirs'.
[MMAKE] Building AROS.workbench-network-smbfs-client-fd
[MMAKE] Making workbench-network-smbfs-client-fd in workbench/network/smbfs/source_code
make[1]: Nothing to be done for 'workbench-network-smbfs-client-fd'.
[MMAKE] Making workbench-network-smbfs-client-includes in workbench/network/smbfs/source_code
make[1]: Nothing to be done for 'workbench-network-smbfs-client-includes'.
[MMAKE] Nothing known about target linklibs- in project AROS
[MMAKE] Making workbench-network-smbfs-client in workbench/network/smbfs/source_code
make[1]: Nothing to be done for 'workbench-network-smbfs-client'.
[MMAKE] Nothing known about target workbench-network-smbfs-docs in project AROS
[MMAKE] Building AROS.workbench-network-common
[MMAKE] Building AROS.workbench-network-common-c
[MMAKE] Nothing known about target network-includes in project AROS
[MMAKE] Nothing known about target linklibs- in project AROS
[MMAKE] Making workbench-network-common-c in workbench/network/common/C
make[1]: Nothing to be done for 'workbench-network-common-c'.
[MMAKE] Building AROS.workbench-network-wirelessmanager
[MMAKE] Building AROS.workbench-network-wirelessmanager-target
[MMAKE] Nothing known about target setup in project AROS
[MMAKE] Building AROS.workbench-network-wirelessmanager-quick
[MMAKE] Building AROS.workbench-network-wirelessmanager-configure
[MMAKE] Making workbench-network-wirelessmanager-configure in workbench/network/WirelessManager/wpa_supplicant
make[1]: Nothing to be done for 'workbench-network-wirelessmanager-configure'.
[MMAKE] Building AROS.workbench-network-wirelessmanager-build_and_install-quick
[MMAKE] Making workbench-network-wirelessmanager-build_and_install-quick in workbench/network/WirelessManager/wpa_supplicant
make[1]: Nothing to be done for 'workbench-network-wirelessmanager-build_and_install-quick'.
[MMAKE] Nothing known about target kernel-usb-pc-i386 in project AROS
[MMAKE] Making AROS in


deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 283
    • Karma: +21/-0
Reply #42 on: December 25, 2020, 12:22:30 AM
Now

Code: [Select]
$ make bootiso



nikos

  • Senior Member
  • ****
    • Posts: 294
    • Karma: +8/-2
    • aspireos
Reply #43 on: December 25, 2020, 06:26:03 PM
Now

Code: [Select]
$ make bootiso

Yes, that worked :)

/home/niko/alt-abiv0-pc-i386/distfiles

All the files are in the ISO :)

Seams my build system is set up correct now?


deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 283
    • Karma: +21/-0
Reply #44 on: December 25, 2020, 06:51:25 PM
Yes, good.

Now, your compiler is located in toolchain-alt-abiv0-i386 directory and named i386-aros-gcc. Includes are in alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development/include and libraries are in alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development.lib.

This is how then can be passed to the compiler:

/home/niko/toolchain-alt-abiv0-i386/i386-aros-gcc --sysroot /home/niko/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development -L/home/niko/alt-abiv0-linux-i386-d/bin/linux-i386/AROS/Development/lib