Browsing this Thread:
1 Anonymous Users
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
|
Joined:
2008/2/5 6:58 From Sunny Finland
Group:
Member Posts:
757
![]() |
My ventures with 64 bit Linux distros didn't take me anywhere so I reverted back to Ubuntu 10.04 LTS
Here's my script for building different GCC versions, don't know if it actually works as Aros build system is still building with it.
build_dir="/home/ubuntu/aros_tools"
Here's the script for actually building Aros (i386 ABI_V0)
build_dir="/home/ubuntu/aros_svn/branches/ABI_V0/aros_builds"
GCC building script needs the version as argument (used 4.1.2) Aros build script for now uses version 4.1.2, didn't bother with the argument there... Just add $1 instead of the version Edit: It seems to have worked, haven't tried to boot the thing though... (did make bootiso afterwards) Also I didn't build the contrib dir, that's next to try. Edit2: It boots with vesa mode but not with Nouveau... Is the problem in binutils? I didn't build those but used the default Ubuntu binutils. Edit3: Got it working, it seems my sorry ass code was the culprit... shame on me! Some notes about the GCC build. Not all configure options may actually be needed when building it (I used the same script as in Fedora) Ubuntu's default GCC stays in use and is the default GCC when compiling anything else, only in the Aros build script is it changed to the older version and when new shell is opened the default one is used again, but the shell where the script is started uses the older GCC (Or not... I haven't actually tested that... It may also not be the case and the problem with nouvea would be the new GCC which would then be used to build the bootiso and not the sorry ass usb code)
Posted on: 2012/9/18 2:14
Edited by DizzyOfCRN on 2012/9/18 3:05:10
Edited by DizzyOfCRN on 2012/9/18 4:39:17 Edited by DizzyOfCRN on 2012/9/18 4:44:33 Edited by DizzyOfCRN on 2012/9/18 4:46:28 Edited by DizzyOfCRN on 2012/9/18 4:47:26 |
|
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
Joined:
2004/3/29 9:54 From Scotland "The Cold"
Group:
Member Posts:
1504
![]() |
Why use an older version of gcc rather than the host systems??
Posted on: 2012/9/18 5:05
|
|
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
|
Joined:
2012/1/16 5:57 Group:
Member Posts:
200
![]() |
Hello,
has this issue been solved? I'm trying to compile AROS x86_64 (20120922 nightly build) and I have this very error (iconbar.c not compiling because of the issue reported by Mazze). Thanks
Posted on: 2012/9/23 2:22
|
|
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
Joined:
2009/10/24 10:31 From Finland
Group:
Member Posts:
275
![]() |
Same here,
New PC and linux is now 64bit -> ABI0 didnt compile anymore. Linux crunchbang 2.6.32-5-amd64 gcc version 4.4.5 ./configure make -j 8 gives: Compiling iconbar.c Compile failed: /home/sami/Aros/Abi0/AROS/bin/linux-x86_64/tools/x86_64-linux-aros-gcc -iquote ./ -iquote /home/sami/Aros/Abi0/AROS/workbench/tools/BoingIconBar -iquote . -Wall -Werror-implicit-function-declaration -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_PERSONAL -O2 -mno-red-zone -fno-omit-frame-pointer -Wno-pointer-sign -fno-strict-aliasing -c iconbar.c -o /home/sami/Aros/Abi0/AROS/bin/linux-x86_64/gen/workbench/tools/BoingIconBar/iconbar.o iconbar.c:119: warning: cast from pointer to integer of different size iconbar.c:119: error: initializer element is not constant iconbar.c:119: error: (near initialization for ‘args[0]’) ./configure --target=pc-i386 make -j 8 and more interesting error: Generating support files for module oss Compiling /home/sami/Aros/Abi0/AROS/bin/pc-i386/gen/arch/all-unix/libs/oss/oss_stubs.c Compiling /home/sami/Aros/Abi0/AROS/bin/pc-i386/gen/arch/all-unix/libs/oss/oss_autoinit.c Assembling oss_astubs.S... Assemble failed: /home/sami/Aros/Abi0/AROS/bin/linux-x86_64/tools/i386-pc-aros-gcc -Wall -x assembler-with-cpp -c -m32 -march=i486 /home/sami/Aros/Abi0/AROS/bin/pc-i386/gen/arch/all-unix/libs/oss/oss_astubs.S -o /home/sami/Aros/Abi0/AROS/bin/pc-i386/gen/arch/all-unix/libs/oss/oss_astubs.o /home/sami/Aros/Abi0/AROS/bin/pc-i386/gen/arch/all-unix/libs/oss/oss_astubs.S: Assembler messages: /home/sami/Aros/Abi0/AROS/bin/pc-i386/gen/arch/all-unix/libs/oss/oss_astubs.S:7: Error: `movabs' is only supported in 64-bit mode /home/sami/Aros/Abi0/AROS/bin/pc-i386/gen/arch/all-unix/libs/oss/oss_astubs.S:7: Error: bad register name `%r11)' /home/sami/Aros/Abi0/AROS/bin/pc-i386/gen/arch/all-unix/libs/oss/oss_astubs.S:7: Error: bad register name `%r11)'
Posted on: 2012/9/23 6:12
|
|
|
_________________
"Programming is an art form that fights back." |
||
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
Joined:
2004/10/30 17:13 From Ireland
Group:
Member Posts:
1888
![]() |
Quote:
I've just fixed this. KERNEL_LDFLAGS wasn't being used in rule_link_binary. For some reason I also had to delete arch/i386-pc/kernel/mmakefile in the build tree to get it to be regenerated. BTW, here are some of the packages I had to install on Ubuntu 11.10 x86_64: g++, libpng12-dev, gcc-multilib, libx11-dev, ia32-libs, libgl1-mesa-dev
Posted on: 2012/9/27 12:33
|
|
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
|
Joined:
2008/2/5 6:58 From Sunny Finland
Group:
Member Posts:
757
![]() |
Thank you very much, I'll try someday in the future to build again with 64 bit Linux.
Posted on: 2012/9/27 12:51
|
|
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
Joined:
2009/10/24 10:31 From Finland
Group:
Member Posts:
275
![]() |
@ncafferkey
Thank you, now pc-i386 compiles, New installed (maybe missing?) packages: libpng12-dev, ia32-libs, g++-multilib compiling takes about 5 minutes 50 seconds, make clean ./configure --target=pc-i386 time make -j 12 bootiso-pc-i386 This is poor AMD bulldozer,probably i7 is lot faster, But I'm quite happy with my new PC ![]()
Posted on: 2012/9/28 9:01
|
|
|
_________________
"Programming is an art form that fights back." |
||
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
|
Joined:
2012/1/16 5:57 Group:
Member Posts:
200
![]() |
Confirmed, now I can successfully complete compilaton.
However I have a (n00b) question: when I compile AROS on a 32bit machine, in the end I have the directory "bin/linux-i386/AROS/boot/" with a compiled AROSBootstrap binary and its configuration files that allow to directly run AROS. I didn't find such files when compiled on x86_64, I have a couple of other files which I assume are bootstrap kernel images. Other than creating the ISO, how do I run AROS on x86_64 hosted? I'm clearly missing something in the startup procedure, can anyone please give me a hint? Thanks!
Posted on: 2012/9/29 1:34
|
|
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
Joined:
2004/10/30 17:13 From Ireland
Group:
Member Posts:
1888
![]() |
@jman
If you compiled with --target=linux-i386, you should have the same boot files.
Posted on: 2012/9/29 10:18
|
|
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
|
Joined:
2012/1/16 5:57 Group:
Member Posts:
200
![]() |
I think I lied when saying that compiling x86_64 is now working for me.
I'm experiencing the following two issues: 1) when compiling with no specific target, it still stops when compiling the iconbar file. 2) when compiling with --target=linux-i386 it stops at file "bin/linux-x86_64/tools/makexkeytable.c" because it is linked to X11 libraries (-lX11). I have installed all devel libs suggested in previous posts (g++, libpng12-dev, gcc-multilib, libx11-dev, ia32-libs, libgl1-mesa-dev, g++-multilib). I tried compiling a trivial test source that includes the same X11 headers and - of course - the error is reproducible. Which header files am I missing? This said compiling the iso file (--target=pc-i386) is working indeed. Any hint? (compile tests on nightly 20120929) Thanks EDIT: after a full reboot, I have to amend point 2). It stops at another stage of compiling:
/home/jman/aros/AROS-20120929-source/bin/linux-x86_64/gen/tools/crosstools/gcc/./gcc/xgcc -B/home/jman/aros/AROS-20120929-source/bin/linux-x86_64/gen/tools/crosstools/gcc/./gcc/ -B/home/jman/aros/AROS-20120929-source/bin/linux-x86_64/tools/crosstools/i386-aros/bin/ -B/home/jman/aros/AROS-20120929-source/bin/linux-x86_64/tools/crosstools/i386-aros/lib/ -isystem /home/jman/aros/AROS-20120929-source/bin/linux-x86_64/tools/crosstools/i386-aros/include -isystem /home/jman/aros/AROS-20120929-source/bin/linux-x86_64/tools/crosstools/i386-aros/sys-include -O2 -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I/home/jman/aros/AROS-20120929-source/bin/linux-x86_64/Ports/gcc/gcc-4.2.4/gcc -I/home/jman/aros/AROS-20120929-source/bin/linux-x86_64/Ports/gcc/gcc-4.2.4/gcc/. -I/home/jman/aros/AROS-20120929-source/bin/linux-x86_64/Ports/gcc/gcc-4.2.4/gcc/../include -I/home/jman/aros/AROS-20120929-source/bin/linux-x86_64/Ports/gcc/gcc-4.2.4/gcc/../libcpp/include -I/home/jman/aros/AROS-20120929-source/bin/linux-x86_64/Ports/gcc/gcc-4.2.4/gcc/../libdecnumber -I../libdecnumber -DL_eprintf -c /home/jman/aros/AROS-20120929-source/bin/linux-x86_64/Ports/gcc/gcc-4.2.4/gcc/libgcc2.c -o libgcc/./_eprintf.o
Posted on: 2012/9/29 15:02
|
|
Transfer
|
||
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.


Transfer







