Bernhard Gschaider
2007-May-10 20:05 UTC
[CentOS] Problems running programs compiled unter Centos 5 on Centos 4 machines
I know this is quite a handwaving, stupid question, but I don't know where else to ask it and maybe somebody here can at least point me into the right direction, because I'm stuck. I have a program package that were using here (OpenFOAM for those who know it). My problem is that when I compile and link this package on CentOS 5, it won't run on CentOS 4.x-machines but stops with a floating-point-exception. The funny thing is that my experiments with strace and gdb indicate that the problems occur during the loading of an .so (that does not belong to the package). I was able to remove that so from the build, the program then failed with similar symptoms at another library. Has anyone here seen similar behaviour and what would be a possible solution? (to compile under 5 in such a way that it runs on 4) My problem is, that moving all machines to CentOS 5 is not possible, because our cluster-solution (Rocks) is based on 4. Any hints (how trivial they may appear to you) are most welcome.
Scott Silva
2007-May-10 20:15 UTC
[CentOS] Re: Problems running programs compiled unter Centos 5 on Centos 4 machines
Bernhard Gschaider spake the following on 5/10/2007 1:05 PM:> I know this is quite a handwaving, stupid question, but I don't know > where else to ask it and maybe somebody here can at least point me > into the right direction, because I'm stuck. > > I have a program package that were using here (OpenFOAM for those who > know it). My problem is that when I compile and link this package on > CentOS 5, it won't run on CentOS 4.x-machines but stops with a > floating-point-exception. The funny thing is that my experiments with > strace and gdb indicate that the problems occur during the loading of > an .so (that does not belong to the package). I was able to remove > that so from the build, the program then failed with similar symptoms > at another library. > > Has anyone here seen similar behaviour and what would be a possible > solution? (to compile under 5 in such a way that it runs on 4) > > My problem is, that moving all machines to CentOS 5 is not possible, > because our cluster-solution (Rocks) is based on 4. > > Any hints (how trivial they may appear to you) are most welcome.Compile on 4? -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't!!!!
Jim Perrin
2007-May-10 20:21 UTC
[CentOS] Problems running programs compiled unter Centos 5 on Centos 4 machines
On 5/10/07, Bernhard Gschaider <bgschaid_lists at ice-sf.at> wrote:> > I know this is quite a handwaving, stupid question, but I don't know > where else to ask it and maybe somebody here can at least point me > into the right direction, because I'm stuck. > > I have a program package that were using here (OpenFOAM for those who > know it). My problem is that when I compile and link this package on > CentOS 5, it won't run on CentOS 4.x-machines but stops with a > floating-point-exception. The funny thing is that my experiments with > strace and gdb indicate that the problems occur during the loading of > an .so (that does not belong to the package). I was able to remove > that so from the build, the program then failed with similar symptoms > at another library.You can't do this as the libraries, glibc, and gcc versions are all different between centos4 and centos5.> Has anyone here seen similar behaviour and what would be a possible > solution? (to compile under 5 in such a way that it runs on 4)You can only do this if you're building in a chrooted environment with the c4 libs. You'd have to use a tool like mock to do this.> Any hints (how trivial they may appear to you) are most welcome.Doing things like this are getting easier, but I wouldn't call them 'trivial' just yet. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell
Possibly Parallel Threads
- XFS-filesystem corrupted by defragmentation Was: Performance problems with XFS on Centos 5.4
- Preventing hour-long fsck on ext3-filesystem
- Problem with evolution while upgrading to CentOS 5.2
- virt-manager crashes Host during installation of guest
- Problem with nvidia-drv-x11 when upgrading to CentOS 5.2