FreeBSD 6.2 - g++-4.1.2 Compilation error

Kernel development, writing drivers, coding, and questions regarding FreeBSD internals.

FreeBSD 6.2 - g++-4.1.2 Compilation error

Postby spartan_2020 » 13 Dec 2010, 23:50


I am getting the following linker error when I try to compile c++ code using g++-4.1.2.
The error is as follows:

Code: Select all
could not read symbols: Memory exhausted
collect2: ld returned 1 exit status

Could anybody let me know what is the cause for this error? I am using FreeBSD 6.2 virtual image with 2gigs of Memory. I tried to change the sysctl variables(vm.kmem_size) too but that didn't work.

Junior Member
Posts: 1
Joined: 13 Dec 2010, 23:41

Postby sizemj » 28 Dec 2010, 20:29

Do you have a swap slice set up? I did a little research and this may do to a swap partition not working or not big enough.
Junior Member
Posts: 9
Joined: 14 Oct 2009, 00:17
Location: Louisville, KY USA

Return to FreeBSD Development

Who is online

Users browsing this forum: No registered users and 1 guest