Compile programs ABI v.0 hosted

nikos · 1272

deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 283
    • Karma: +21/-0
Reply #15 on: December 23, 2020, 06:31:58 PM
Yes, something is wrong. Looks like source codes are not present. What is the content of myrepo/AROS directory?



deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 283
    • Karma: +21/-0
Reply #16 on: December 23, 2020, 06:36:41 PM
And why are you doing this under /var/www/svn/? Do all of these operations under home directory of your user or another directory where your user has write permissions.



nikos

  • Senior Member
  • ****
    • Posts: 294
    • Karma: +8/-2
    • aspireos
Reply #17 on: December 23, 2020, 07:22:30 PM
Thx Deadwood. This is the content I have.

root@niko-Latitude-D520:/home/niko/myrepo/AROS# dir
acinclude.m4     compiler   images      license.html    README.md
ACKNOWLEDGEMENTS  config   INSTALL.md   LICENSE.LGPL    rom
aclocal.m4     configure   LEGAL      make.defaults    scripts
arch        configure.in   LICENSE      Makefile.in    test
boot        external   LICENSE.Author   mmake.config.in  tools
bootstrap     _gdbinit   LICENSE.GPL   mmakefile    workbench
root@niko-Latitude-D520:/home/niko/myrepo/AROS#

This is where I get from root.

https://pastebin.com/bCD6LWxr

From what I understand and to translate it say "the file or folder does not exsist"

Fatal error: can't create /home/niko/myrepo/toolchain-alt-abiv0-i386-build/bin/linux-x86_64/gen/host/tools/MetaMake/mmake.o: Fila eller mappa finnes ikke
« Last Edit: December 23, 2020, 07:30:37 PM by nikos »



deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 283
    • Karma: +21/-0
Reply #18 on: December 23, 2020, 07:30:10 PM
Why are you running this as "root" user? I'd suggest to delete everything and start again as a normal user.

Another question: have you installed all of the required package as the manual says?



nikos

  • Senior Member
  • ****
    • Posts: 294
    • Karma: +8/-2
    • aspireos
Reply #19 on: December 23, 2020, 07:31:53 PM
Why are you running this as "root" user? I'd suggest to delete everything and start again as a normal user.

Another question: have you installed all of the required package as the manual says?

Ok, thx Deadwood. I installed all the packages.

edit: It is building now :)
« Last Edit: December 23, 2020, 07:42:06 PM by nikos »



nikos

  • Senior Member
  • ****
    • Posts: 294
    • Karma: +8/-2
    • aspireos
Reply #20 on: December 23, 2020, 08:59:50 PM
Now it finished with this.

Libraries have been installed in:
   /home/niko/myrepo/toolchain-alt-abiv0-i386/lib/gcc/i386-aros/4.6.4

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /usr/bin/install -c -m 644 /home/niko/myrepo/toolchain-alt-abiv0-i386-build/bin/linux-x86_64/Ports/host/gcc/gcc-4.6.4/libquadmath/libquadmath.info '/home/niko/myrepo/toolchain-alt-abiv0-i386/share/info'
 install-info --info-dir='/home/niko/myrepo/toolchain-alt-abiv0-i386/share/info' '/home/niko/myrepo/toolchain-alt-abiv0-i386/share/info/libquadmath.info'
 /usr/bin/install -c -m 644 /home/niko/myrepo/toolchain-alt-abiv0-i386-build/bin/linux-x86_64/Ports/host/gcc/gcc-4.6.4/libquadmath/quadmath.h /home/niko/myrepo/toolchain-alt-abiv0-i386-build/bin/linux-x86_64/Ports/host/gcc/gcc-4.6.4/libquadmath/quadmath_weak.h '/home/niko/myrepo/toolchain-alt-abiv0-i386/lib/gcc/i386-aros/4.6.4/include'


deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 283
    • Karma: +21/-0
Reply #21 on: December 24, 2020, 12:10:04 AM
Great, now you have a cross compiler. Next run ./rebuil.sh again and select the linux-i386 option which will build you linux hosted.



nikos

  • Senior Member
  • ****
    • Posts: 294
    • Karma: +8/-2
    • aspireos
Reply #22 on: December 24, 2020, 01:11:27 AM
Great, now you have a cross compiler. Next run ./rebuil.sh again and select the linux-i386 option which will build you linux hosted.

That is beautiful :) One step in the right direction.
Could I make a suggestion in the manual.
Something like this:

Linux-i386
Select "1" toolchain-alt-abiv0-i386
run "./rebuild.sh" again after it is build.
Select "2" alt-abiv0-linux-i386 (DEBUG)

Edit: I tried to follow the manual and run it, but the directory was not found.

I looked at the iso created and there are many files in the system that are not build.

niko@niko-Latitude-D520 ~/myrepo/alt-abiv0-pc-i386/distfiles $ dir
aros-pc-i386.iso

Here is some output.

niko@niko-Latitude-D520 ~ $ cd myrepo
niko@niko-Latitude-D520 ~/myrepo $ dir
alt-abiv0-pc-i386  AROS  portssources  rebuild.sh  toolchain-alt-abiv0-i386
niko@niko-Latitude-D520 ~/myrepo $ cd alt-abiv0-pc-i386/
niko@niko-Latitude-D520 ~/myrepo/alt-abiv0-pc-i386 $ dir
arch  bootstrap  config.log   external  mmake.cache   test
bin   compiler    config.status   images     mmake.config   tools
boot  config    distfiles   Makefile  rom      workbench
niko@niko-Latitude-D520 ~/myrepo/alt-abiv0-pc-i386 $ cd bin
niko@niko-Latitude-D520 ~/myrepo/alt-abiv0-pc-i386/bin $ dir
linux-x86_64  pc-i386
niko@niko-Latitude-D520 ~/myrepo/alt-abiv0-pc-i386/bin $ cd linux-x86_64/
niko@niko-Latitude-D520 ~/myrepo/alt-abiv0-pc-i386/bin/linux-x86_64 $ dir
gen  tools
niko@niko-Latitude-D520 ~/myrepo/alt-abiv0-pc-i386/bin/linux-x86_64 $ cd ..
niko@niko-Latitude-D520 ~/myrepo/alt-abiv0-pc-i386/bin $ cd pc-i386/
niko@niko-Latitude-D520 ~/myrepo/alt-abiv0-pc-i386/bin/pc-i386 $ dir
AROS  gen  Ports
niko@niko-Latitude-D520 ~/myrepo/alt-abiv0-pc-i386/bin/pc-i386 $ cd AROS/
niko@niko-Latitude-D520 ~/myrepo/alt-abiv0-pc-i386/bin/pc-i386/AROS $ dir
Arch      C       Development  EFI    L     Locale  S   Tests
AROS.boot  Classes  Devs    Extras  Libs  Prefs   Storage
niko@niko-Latitude-D520 ~/myrepo/alt-abiv0-pc-i386/bin/pc-i386/AROS $ cd Arch/
niko@niko-Latitude-D520 ~/myrepo/alt-abiv0-pc-i386/bin/pc-i386/AROS/Arch $ dir
pc
niko@niko-Latitude-D520 ~/myrepo/alt-abiv0-pc-i386/bin/pc-i386/AROS/Arch $ cd pc
niko@niko-Latitude-D520 ~/myrepo/alt-abiv0-pc-i386/bin/pc-i386/AROS/Arch/pc $ dir
bootstrap.gz  Devs  grub  kernel.gz  Libs
niko@niko-Latitude-D520 ~/myrepo/alt-abiv0-pc-i386/bin/pc-i386/AROS/Arch/pc $

« Last Edit: December 24, 2020, 01:44:01 AM by nikos »



salvo

  • Legendary Member
  • *****
    • Posts: 813
    • Karma: +11/-0
  • Invalid Civil
Reply #23 on: December 24, 2020, 05:15:43 AM
Great, now you have a cross compiler. Next run ./rebuil.sh again and select the linux-i386 option which will build you linux hosted.

I've always had a working cross environment then ;D, deadwood if I want to compile a program what should I give as an option to ./configure in this case using the cross environment

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


deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 283
    • Karma: +21/-0
Reply #24 on: December 24, 2020, 07:06:42 AM
@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)



salvo

  • Legendary Member
  • *****
    • Posts: 813
    • Karma: +11/-0
  • Invalid Civil
Reply #25 on: December 24, 2020, 07:15:36 AM
I'm doing the same procedure too I would like to compile something, i downloaded the opendune code i should have the necessary when i finish compiling the build :)
« Last Edit: December 24, 2020, 07:19:48 AM 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


salvo

  • Legendary Member
  • *****
    • Posts: 813
    • Karma: +11/-0
  • Invalid Civil
Reply #26 on: December 24, 2020, 12:35:52 PM
I have encountered some problems

Compiling  external/openurl/prefs/popport.c
Compiling  external/openurl/prefs/popph.c
Compiling  external/openurl/prefs/ftpeditwin.c
Compiling  external/openurl/prefs/mailereditwin.c
Compiling  external/openurl/prefs/browsereditwin.c
Compiling  external/openurl/prefs/applist.c
Compiling  external/openurl/prefs/win.c
Compiling  external/openurl/prefs/about.c
Compiling  external/openurl/prefs/app.c
Compiling  external/openurl/prefs/vastubs.c
Compiling  external/openurl/prefs/debug.c
Linking    AROS/Prefs/OpenURL...
[MMAKE] Building AROS.external-openurl-cmd
[MMAKE] Nothing known about target linklibs- in project AROS
[MMAKE] Making external-openurl-cmd in external/openurl/cmd
mkdir -p /home/salvo/myrepo/alt-abiv0-linux-i386-d/bin/linux-i386/gen/external/openurl/cmd
Makedepend external/openurl/cmd/OpenURL.c...
Makedepend external/openurl/cmd/SmartReadArgs.c...
Makedepend external/openurl/cmd/debug.c...
Compiling  external/openurl/cmd/OpenURL.c
Compiling  external/openurl/cmd/debug.c
Compiling  external/openurl/cmd/SmartReadArgs.c
Linking    AROS/C/OpenURL...
[MMAKE] Making AROS in
41 /home/salvo/myrepo/alt-abiv0-linux-i386-d/bin/linux-i386/gen/errors

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


deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 283
    • Karma: +21/-0
Reply #27 on: December 24, 2020, 01:08:19 PM
@salvo

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



el-topo

  • Newbie
  • *
    • Posts: 8
    • Karma: +1/-0
Reply #28 on: December 24, 2020, 01:11:38 PM
rebuild.sh could not compile all-gcc for me, I'll file an issue about it.



deadwood

  • AROS Developer
  • Senior Member
  • *****
    • Posts: 283
    • Karma: +21/-0
Reply #29 on: December 24, 2020, 01:14:59 PM
@el-topo

Can you paste the output you got? Most of the problems I've seen are related to missing packages.