Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
22 user(s) are online (15 user(s) are browsing Forum)

Members: 0
Guests: 22

more...

Browsing this Thread:   1 Anonymous Users



« 1 2 (3) 4 »


Re: Trying to build Aros pc-i386 on 64bit Linux

Joined:
2008/2/5 6:58
From Sunny Finland
Group:
Member
Posts: 884
Offline
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"
mkdir -p $build_dir
cd $build_dir

wget 
-nc ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-$1/gcc-$1.tar.bz2
tar xvjf gcc-$1.tar.bz2

if [ -"$build_dir]; then
    rm 
-rf $build_dir/build
fi

mkdir 
-p $build_dir/build
cd build
../gcc-$1/configure 
    
--prefix=/usr/bin/gcc-$
    
--program-suffix=-$
    
--enable-languages=c,c++ 
    --
enable-shared --enable-threads=posix --disable-checking 
    
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions

make
sudo make install

cd 
/usr/bin/gcc-$1/bin
sudo ln 
-s gcc-$1 gcc
sudo ln 
-s g++-$1 g++


Here's the script for actually building Aros (i386 ABI_V0)

build_dir="/home/ubuntu/aros_svn/branches/ABI_V0/aros_builds"

if [ -"$build_dir]; then
    rm 
-rf $build_dir
fi

mkdir $build_dir
cd $build_dir

export PATH
=/usr/bin/gcc-4.1.2/bin:$PATH

/home/ubuntu/aros_svn/branches/ABI_V0/AROS/configure --target=pc-i386 --with-serial-debug=--enable-usb30-code --with-portssources=/home/ubuntu/aros_cache

make


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 the post to other applications Transfer


Re: Trying to build Aros pc-i386 on 64bit Linux

Joined:
2004/3/29 9:54
From Scotland "The Cold"
Group:
Member
Posts: 1769
Offline
Why use an older version of gcc rather than the host systems??





Posted on: 2012/9/18 5:05
_________________
Click to see original Image in a new window
Transfer the post to other applications Transfer


Re: Trying to build Aros pc-i386 on 64bit Linux

Joined:
2012/1/16 5:57
Group:
Member
Posts: 260
Offline
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 the post to other applications Transfer


Re: Trying to build Aros pc-i386 on 64bit Linux

Joined:
2009/10/24 10:31
From Finland
Group:
Member
Posts: 275
Offline
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 the post to other applications Transfer


Re: Trying to build Aros pc-i386 on 64bit Linux

Joined:
2004/10/30 17:13
From Ireland
Group:
Member
Posts: 2137
Offline
Quote:

DizzyOfCRN wrote:
Build fails again when the smpboot.bin.o is linked as it is for some reason ELF64...


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 the post to other applications Transfer


Re: Trying to build Aros pc-i386 on 64bit Linux

Joined:
2008/2/5 6:58
From Sunny Finland
Group:
Member
Posts: 884
Offline
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 the post to other applications Transfer


Re: Trying to build Aros pc-i386 on 64bit Linux

Joined:
2009/10/24 10:31
From Finland
Group:
Member
Posts: 275
Offline
@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 the post to other applications Transfer


Re: Trying to build Aros pc-i386 on 64bit Linux

Joined:
2012/1/16 5:57
Group:
Member
Posts: 260
Offline
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 the post to other applications Transfer


Re: Trying to build Aros pc-i386 on 64bit Linux

Joined:
2004/10/30 17:13
From Ireland
Group:
Member
Posts: 2137
Offline
@jman

If you compiled with --target=linux-i386, you should have the same boot files.

Posted on: 2012/9/29 10:18
Transfer the post to other applications Transfer


Re: Trying to build Aros pc-i386 on 64bit Linux

Joined:
2012/1/16 5:57
Group:
Member
Posts: 260
Offline
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 --O2  -DIN_GCC -DCROSS_COMPILE   --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  -/home/jman/aros/AROS-20120929-source/bin/linux-x86_64/Ports/gcc/gcc-4.2.4/gcc/libgcc2.-o libgcc/./_eprintf.o
/tmp/ccLD3Epx.sAssembler messages:
/
tmp/ccLD3Epx.s:18Errorinvalid instruction suffix for `push'
/tmp/ccLD3Epx.s:25: Error: invalid instruction suffix for 
`push'
/tmp/ccLD3Epx.s:26: Error: invalid instruction suffix for `push'
/tmp/ccLD3Epx.s:27Errorinvalid instruction suffix for `push'
/tmp/ccLD3Epx.s:28: Error: invalid instruction suffix for 
`push'
/tmp/ccLD3Epx.s:29: Error: invalid instruction suffix for `push'
/tmp/ccLD3Epx.s:32Errorinvalid instruction suffix for `pop'
/tmp/ccLD3Epx.s:33: Error: invalid instruction suffix for 
`push'
/tmp/ccLD3Epx.s:40: Error: invalid instruction suffix for `pop'
/tmp/ccLD3Epx.s:41Errorinvalid instruction suffix for `push'
make[4]: *** [libgcc/./_eprintf.o] Error 1
make[3]: *** [libgcc.a] Error 2
make[2]: *** [all-gcc] Error 2
make[1]: *** [tools-crosstools-gcc] Error 2
make --no-print-directory TOP=/home/jman/aros/AROS-20120929-source SRCDIR=/home/jman/aros/AROS-20120929-source CURDIR=tools/crosstools TARGET=tools-crosstools-gcc --file=mmakefile tools-crosstools-gcc failed: 512
Error: Error while running make in tools/crosstools: No such file or directory
make: *** [all] Error 10


Posted on: 2012/9/29 15:02
Transfer the post to other applications Transfer



« 1 2 (3) 4 »



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.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
3765
2 nikolaos
nikolaos
3470
3 magorium
magorium
3124
4 phoenixkonsole
phoenixkonsole
3072
5 deadwood
deadwood
2371
6 ncafferkey
ncafferkey
2137
7 mazze
mazze
2070
8 clusteruk
clusteruk
2051
9 damocles
damocles
1771
10 Kalamatee
Kalamatee
1769
© 2004-2014 AROS Exec