JDK 8 Linking error on Fedora 16

David Bosschaert david.bosschaert at gmail.com
Fri Feb 24 13:12:12 UTC 2012


On 23 February 2012 19:31, David Bosschaert <david.bosschaert at gmail.com> wrote:
> On 23 February 2012 16:26, Andrew Haley <aph at redhat.com> wrote:
>> On 02/23/2012 04:23 PM, David Bosschaert wrote:
>>> Could it be related to this message?
>>>   Linking vm...
>>>   /usr/bin/ld: cannot find -lstdc++
>>>   collect2: ld returned 1 exit status
>>> which is a bit odd given that I have the latest libstdc++ installed...
>>
>> Yes, that's it.  The problem is probably that it's trying to link
>> statically with libstdc++ and you have no static version of that
>> library.
>>
>> Andrew.
>>
>
> Turns out that I had to install the static version separately, the
> following did the trick:
>  yum install libstdc++-static
>
> Thanks Andrew for this!
>
> David

I've documented all the steps to build OpenJDK 8 on Fedora 16 here:
http://coderthoughts.blogspot.com/2012/02/building-project-penrose-or-openjdk-8.html

Feel free to include this in the build page
http://hg.openjdk.java.net/jdk8/build/raw-file/tip/README-builds.html
whenever that gets brought to life.

Cheers,

David



More information about the build-dev mailing list