recompiling libgomp on ubuntu 8.04 (Hardy Heron)

Asked by James Phillips

In Ubuntu 8.04, the gcc 4.2.3 version of libgomp will not work with shared libraries, for example:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28482

explains the problem and has a simple gcc patch, apply and rebuild corrects the problem:

http://gcc.gnu.org/bugzilla/attachment.cgi?id=14788&action=view

How do I rebuild libgomp after applying the patch? I have downloaded the gcc sources, patched, configured and rebuilt. The resulting shared library cannot be used - I think I need to configure gcc so it builds the exact same binaries that come with the Ubuntu distribution, but I do not know how to do this. I have been trying for several days, and cannot find out how to fix this on Ubuntu Hardy. What is frustrating is that I have the simple patch above.

     James Phillips
     http://zunzun.com

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gcc-4.2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
James Phillips (zunzun) said :
#1

Running ldconfig after the build wascausing problems, compile and use is OK. Nevermind.

Revision history for this message
James Phillips (zunzun) said :
#2

Getting segmentation faults on SMP servers - but not single-core development laptops, which is why I thought this was solved

Can anyone point me to a link on how to recompile GCC 2.4.3 itself, which includes libgomp, such that identical binaries to those in the Ubuntu 8.04 Hardy Heron distribution are produced? This will allow me to apply the patch linked to earlier.

     James

Revision history for this message
James Phillips (zunzun) said :
#3

I mean GCC 4.2.3, sorry.

Revision history for this message
James Phillips (zunzun) said :
#4

I have the gcc-4.2-source (sudo apt-get install gcc-4.2-source).

I see:

  zunzun@laptop:/usr/src/gcc-4.2$ ls
  debian gcc-20080201.tar.lzma patches rules.source

and know to decompress and untar the gcc-20080201.tar.lzma file.

What do I need to do with the remaining directories and files to make GCC 4.2.3, so I can apply the patch ?

     James

Revision history for this message
Jignesh Borad (jigneshborad) said :
#5

Check the following link. someone has done the recompile and have given some information.

http://ubuntuforums.org/showthread.php?t=772213

Hope this helps.

Can you help with this problem?

Provide an answer of your own, or ask James Phillips for more information if necessary.

To post a message you must log in.