View previous topic :: View next topic |
Author |
Message |
thinair Tux's lil' helper
Joined: 01 Nov 2002 Posts: 144 Location: Suisse
|
Posted: Thu Nov 07, 2002 7:23 pm Post subject: OpenMosix under GCC 3.2 ? Does it work ? |
|
|
Hi,
Just some question about openmosix under gentoo 1.4 (so under GCC 3.2)
Does it work ? (I suppose yes for some people)
So I just try to compile the openmosix-kernel and after boot (kernel boot) it stop after VFS mount (without any errors)
Quote: | So I take a look in openmosix faq and saw that :
Kernel Questions
I'm trying to compile an openMosix-patched kernel. What compiler version should I use?
You should use gcc-2.96 as this is the recommended compiler for 2.4 kernels. This is a Linux kernel requirement, not just an openMosix requirement. However, nothing precludes you from having, on the same system, gcc-2.96 for kernel compiles and gcc-3.x for non-kernel compiles.
Additional notes: There are many kernel-related issues with gcc-3.x compilers. Inlining, optimization and page alignment do strange things to operating systems kernels. The standard Linux kernel is only guaranteed to compile and work properly with versions of gcc prior to 3.x. |
Does anybody know a solution.. and if not does it work for you under GCC 3.2
Thanx
--
thinair |
|
Back to top |
|
|
thegarbageman n00b
Joined: 28 Apr 2002 Posts: 74 Location: Overland Park, KS
|
Posted: Fri Nov 08, 2002 3:40 am Post subject: |
|
|
Works for me. 1.4_rc1, two different x86 CPU types, no problems. |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
|
Back to top |
|
|
thinair Tux's lil' helper
Joined: 01 Nov 2002 Posts: 144 Location: Suisse
|
Posted: Fri Nov 08, 2002 11:10 am Post subject: |
|
|
I will try to re-compile my system base again (emerge -u system --empytree). And see what will happen... when I try to re-compile openmosix...
I didn't find any answer in gcc 3.2 and kernel compile. I have no problem to compile vanilla/gentoo kernel... just openmosix has some problems... but the compilation works fine for all.
When I restart vanilla/gentoo it boot normally and work... When I restart openmosi it stop after VFS mount without any errors.. that's my problem.... and as I saw that openmosix isn't supposed to work well ing gcc 3.x I thought that was the problem...
I will try again... and say if it work or not... |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Fri Nov 08, 2002 1:59 pm Post subject: |
|
|
Maybe it is the case of reducing your CFLAGS. Some programs does not like things like -O3 or -fframe-omit-pointer
thinair wrote: | I will try to re-compile my system base again (emerge -u system --empytree). And see what will happen... when I try to re-compile openmosix...
I didn't find any answer in gcc 3.2 and kernel compile. I have no problem to compile vanilla/gentoo kernel... just openmosix has some problems... but the compilation works fine for all.
When I restart vanilla/gentoo it boot normally and work... When I restart openmosi it stop after VFS mount without any errors.. that's my problem.... and as I saw that openmosix isn't supposed to work well ing gcc 3.x I thought that was the problem...
I will try again... and say if it work or not... |
|
|
Back to top |
|
|
thinair Tux's lil' helper
Joined: 01 Nov 2002 Posts: 144 Location: Suisse
|
Posted: Fri Nov 08, 2002 2:32 pm Post subject: |
|
|
But if it's the case... I wouldn't be able to compile until the end... in this case the compilation don't make any errors... |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Fri Nov 08, 2002 3:34 pm Post subject: |
|
|
Not realy. Sometimes, optimizations may break things during runtime. Arts, for example, have some problems with --fframe-omit-pointer and crashes terribly, but it compiles until the end.
thinair wrote: | But if it's the case... I wouldn't be able to compile until the end... in this case the compilation don't make any errors... |
|
|
Back to top |
|
|
thinair Tux's lil' helper
Joined: 01 Nov 2002 Posts: 144 Location: Suisse
|
Posted: Fri Nov 08, 2002 3:47 pm Post subject: |
|
|
Ok, I will try to find more information about the compilation flag... and try to recompile with less agressive flag...
--
thinair |
|
Back to top |
|
|
thinair Tux's lil' helper
Joined: 01 Nov 2002 Posts: 144 Location: Suisse
|
Posted: Mon Nov 11, 2002 9:52 pm Post subject: |
|
|
Thank your for your help... this is the case... I had changed (just for the compilation of openmosix the flags to -02 and it works well)
CFLAGS="-mcpu=athlon -02 -pipe" (athlon processor)
CXXFLAGS="${CFLAGS}"
openmosix kernel configuration
=> IT WORKS FINE !!!
Thanxs Bloody Bastard...
--
thinair
N.B. before I used
CFLAGS="-mcpu=athlon -03 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
installation of the openmosix-kernel
=> kernel hang on VFS mount |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Mon Nov 11, 2002 10:37 pm Post subject: |
|
|
I also used -O3 -fframe-omit-pointer before, but I had some problems when I migred to GCC 3.2. Now I am using -O2 only, and I did not notice performance problems at all. |
|
Back to top |
|
|
|