Browsing this Thread:
1 Anonymous Users
Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
|
Joined:
2008/2/5 6:58 From Sunny Finland
Group:
Member Posts:
757
![]() |
Hi,
I ditched my Ubuntu and installed Fedora 64 bit release. I compiled and installed gcc-4.1.2 to be used for Aros building. When I try to build Aros with it, linker complaints that smpboot.bin.o is incompatible and it is as it is 64 bit elf(checked it with file), everything else compiled seems to be 32 bit as they should. What is wrong with this? Same thing happened with backtrack 5 distro. Linking /home/dizzy/aros_builds/i386-abi_v0/bin/pc-i386/gen/kobjs/kernel_resource.o /usr/bin/ld: i386:x86-64 architecture of input file `/home/dizzy/aros_builds/i386-abi_v0/bin/pc-i386/gen/rom/kernel/arch/smpboot.bin.o' is incompatible with i386 output make[1]: *** [/home/dizzy/aros_builds/i386-abi_v0/bin/pc-i386/gen/kobjs/kernel_resource.o] Error 1 EDIT: Tried this with ABI_V0 [dizzy@linux aros_builds]$ file /home/dizzy/aros_builds/i386-abi_v0/bin/pc-i386/gen/rom/kernel/arch/smpboot.bin.o /home/dizzy/aros_builds/i386-abi_v0/bin/pc-i386/gen/rom/kernel/arch/smpboot.bin.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
Posted on: 2012/7/27 6:06
Edited by DizzyOfCRN on 2012/7/27 6:47:13
Edited by DizzyOfCRN on 2012/7/27 6:53:30 |
|
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
Joined:
2004/10/30 17:13 From Ireland
Group:
Member Posts:
1865
![]() |
What's your configure command?
BTW, the nightly build machine uses GCC 4.1.2 too (maybe that's why you chose it).
Posted on: 2012/7/27 6:49
|
|
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
|
Joined:
2008/2/5 6:58 From Sunny Finland
Group:
Member Posts:
757
![]() |
I have this script:
---------------------------------- cd /home/dizzy/aros_builds/i386-abi_v0/ rm -rf bin /home/dizzy/aros_svn/branches/ABI_V0/AROS/configure --target=pc-i386 --with-serial-debug=1 --enable-usb30-code --with-portssources=/home/dizzy/aros_cache make ---------------------------------- gcc-4.1.2 is in /opt/gcc4.1.2/bin as "gcc-4.1" with symbolic link "gcc" On my ~/.bashrc I have export PATH="/opt/gcc4.1.2/bin:$PATH" Same with g++ EDIT: Don't know if this is of any help, but the compiler seems to work: [dizzy@linux ~]$ gcc --version gcc (GCC) 4.1.2 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [dizzy@linux ~]$ gcc main.c [dizzy@linux ~]$ file a.out a.out: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not stripped [dizzy@linux ~]$ gcc -m32 main.c [dizzy@linux ~]$ file a.out a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not stripped Both of the compiled files run on this 64 bit release, should they? GCC was built with: --prefix=/opt/gcc4.1.2 --program-suffix=-4.1 --enable-languages=c,c++
Posted on: 2012/7/27 6:54
Edited by DizzyOfCRN on 2012/7/27 7:47:29
Edited by DizzyOfCRN on 2012/7/27 7:51:12 Edited by DizzyOfCRN on 2012/7/27 7:52:44 |
|
|
_________________
Jyrki.J.Koivisto |
||
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
|
Joined:
2012/1/25 8:06 Group:
Member Posts:
19
![]() |
Try with some basic config like --enable-debug=all and see if it compiles. Also it seems that compiler/linker is producing 32bit executable while you nee 64bit. Are you sure you've installed right version. If not just remove gcc and install the default one.
Posted on: 2012/7/27 7:54
|
|
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
|
Joined:
2008/2/5 6:58 From Sunny Finland
Group:
Member Posts:
757
![]() |
Default gcc-4.7 gives me the same error, I have not removed it from the system, all I do when wanting to use it(gcc 4.7) is to comment out the export path line and start a new shell.
I don't think that a more basic configure line will get me any further, but I'll try. EDIT: I tried to build it inside the source tree with just "configure --target=pc-i386", result was the same EDIT: I am trying to build 32 bit Aros on this 64 bit linux
Posted on: 2012/7/27 8:04
|
|
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
Joined:
2004/10/30 17:13 From Ireland
Group:
Member Posts:
1865
![]() |
Have you tried a completely clean build? "rm -rf bin" might not be enough. The fact that your environment is so similar to the main nightly build machine (also running 64-bit Linux) gives me confidence that it should work.
Posted on: 2012/7/27 8:17
|
|
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
|
Joined:
2008/2/5 6:58 From Sunny Finland
Group:
Member Posts:
757
![]() |
I've deleted everything from the build directory and the results are still the same. I can't even build a hosted version as it (gcc-4.1) chokes on boingiconbar
iconbar.c:119: error: initializer element is not constant EDIT: Aros SVN checkout is clean and out of the box as is the Fedora installation (just messed with it a bit...) Building hosted with default gcc-4.7 chokes on afs, Building afs.handler ... gcc: error: unrecognized command line option ‘-noarosc’
Posted on: 2012/7/27 8:21
|
|
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
|
Joined:
2008/2/5 6:58 From Sunny Finland
Group:
Member Posts:
757
![]() |
This all reminds me when I build 64bit Aros on 32bit linux, http://aros-exec.org/modules/newbb/vi ... pe=&topic_id=4694&forum=2
There was also some problems wit bootstrap but I don't have ANY clue what the heck I'm saying... And besides if no one else needs to modify the build tree I'd assume I don't need to alter linker flags
Posted on: 2012/7/27 10:15
|
|
|
_________________
Jyrki.J.Koivisto |
||
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
Joined:
2005/8/17 16:00 From Germany
Group:
Member Posts:
1950
![]() |
IIRC to build AROS with a particular compiler one has to do:
CC=gcc-4.1 ./configure ... That doesn't work under ABIv1 anymore, but for v0 it should still work.
Posted on: 2012/7/27 10:35
|
|
|
_________________
AROS - Make code, not war
|
||
Transfer
|
||
Re: Trying to build Aros pc-i386 on 64bit Linux |
||
|---|---|---|
|
Joined:
2012/1/25 8:06 Group:
Member Posts:
19
![]() |
Shouldn't you use x86_64 as a target cpu? I'm not sure if you really need to specif the target when building hosted linux. At least on x86 you can skip target option.
Posted on: 2012/7/27 10:56
|
|
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





