Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenMosix under GCC 3.2 ? Does it work ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
thinair
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2002
Posts: 144
Location: Suisse

PostPosted: Thu Nov 07, 2002 7:23 pm    Post subject: OpenMosix under GCC 3.2 ? Does it work ? Reply with quote

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
View user's profile Send private message
thegarbageman
n00b
n00b


Joined: 28 Apr 2002
Posts: 74
Location: Overland Park, KS

PostPosted: Fri Nov 08, 2002 3:40 am    Post subject: Reply with quote

Works for me. 1.4_rc1, two different x86 CPU types, no problems.
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Fri Nov 08, 2002 4:09 am    Post subject: Reply with quote

Your question is gcc 3.2 and kernel compile, I think.
Back to top
View user's profile Send private message
thinair
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2002
Posts: 144
Location: Suisse

PostPosted: Fri Nov 08, 2002 11:10 am    Post subject: Reply with quote

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
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Fri Nov 08, 2002 1:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
thinair
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2002
Posts: 144
Location: Suisse

PostPosted: Fri Nov 08, 2002 2:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Fri Nov 08, 2002 3:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
thinair
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2002
Posts: 144
Location: Suisse

PostPosted: Fri Nov 08, 2002 3:47 pm    Post subject: Reply with quote

Ok, I will try to find more information about the compilation flag... and try to recompile with less agressive flag...

--
thinair
Back to top
View user's profile Send private message
thinair
Tux's lil' helper
Tux's lil' helper


Joined: 01 Nov 2002
Posts: 144
Location: Suisse

PostPosted: Mon Nov 11, 2002 9:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Mon Nov 11, 2002 10:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum