473,394 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

non-virtual thunk is?

Can you explain what a non-virtual thunk is? I have been getting
this error when trying to link libraries that I have built with
optimization.


--
Regards
Mayank Jain
Niksun
9818390836
www.mayankjain.110mb.com

Jul 3 '07 #1
5 13284
On Tue, 03 Jul 2007 17:40:54 +0000, co***************@gmail.com wrote:
Can you explain what a non-virtual thunk is? I have been getting
this error when trying to link libraries that I have built with
optimization.

DéjÃ* vu.

http://lists.apple.com/archives/unix.../msg00108.html

--
Obnoxious User
Jul 3 '07 #2
On Jul 3, 1:40 pm, "contactmayankj...@gmail.com"
<contactmayankj...@gmail.comwrote:
Can you explain what a non-virtual thunk is? I have been getting
this error when trying to link libraries that I have built with
optimization.
By any chance, does this happen specifically when you change -Os to -
O3 when building
the libraries? Just a shot in the dark...

Jul 3 '07 #3
On Jul 4, 12:42 am, jjds...@yahoo.com wrote:
On Jul 3, 1:40 pm, "contactmayankj...@gmail.com"<contactmayankj...@gm ail.comwrote:
Can you explain what a non-virtual thunk is? I have been getting
this error when trying to link libraries that I have built with
optimization.

By any chance, does this happen specifically when you change -Os to -
O3 when building
the libraries? Just a shot in the dark...
Hi

Thanks a lot for the try

When I was building on 64-bit machine I got the error "Non virtual
thunk".
So we added an optimization flag "-O2" to our makefiles, compiled all
the libraries as well as the code again and we got rid of this error.
But JI got a new error of "virtual memory exhausted: Cannot allocate
memory".
Then we added "-O1" flag after "-O2" (-O2 -O1) flag in the makefiles,
rebuild everything and we were able to build out code as well as the
package.

Now the binaries that I have build are running fine but when I try to
debug these binaries with gdb , the gdb gives the error
warning: Unable to get location for thread creation breakpoint:
generic

error [New LWP 100106] Cannot find thread, Thread ID=1, generic error

Regards
Mayank Jain
Niksun
9818390836
www.mayankjain.110mb.com

Jul 5 '07 #4
On 2007-07-05 14:23, co***************@gmail.com wrote:
On Jul 4, 12:42 am, jjds...@yahoo.com wrote:
>On Jul 3, 1:40 pm, "contactmayankj...@gmail.com"<contactmayankj...@gm ail.comwrote:
Can you explain what a non-virtual thunk is? I have been getting
this error when trying to link libraries that I have built with
optimization.

By any chance, does this happen specifically when you change -Os to -
O3 when building
the libraries? Just a shot in the dark...

Hi

Thanks a lot for the try

When I was building on 64-bit machine I got the error "Non virtual
thunk".
So we added an optimization flag "-O2" to our makefiles, compiled all
the libraries as well as the code again and we got rid of this error.
But JI got a new error of "virtual memory exhausted: Cannot allocate
memory".
Then we added "-O1" flag after "-O2" (-O2 -O1) flag in the makefiles,
rebuild everything and we were able to build out code as well as the
package.
We are moving a bit off topic here, more help should be sought in groups
for the GNU toolchain (gcc and gdb).

I seem to recall that gcc goes with the last option when there are
conflicts, so you can skip the -O2.
Now the binaries that I have build are running fine but when I try to
debug these binaries with gdb , the gdb gives the error
warning: Unable to get location for thread creation breakpoint:
generic

error [New LWP 100106] Cannot find thread, Thread ID=1, generic error
Have you compiled in debug symbols, useed the latest version of gdb and
gcc? My experience is that optimisations and debugging often don't play
well together, so try turning of optimisations when debugging.

--
Erik Wikström
Jul 5 '07 #5
On Jul 5, 9:17 pm, Erik Wikström <Erik-wikst...@telia.comwrote:
On 2007-07-05 14:23, contactmayankj...@gmail.com wrote:
On Jul 4, 12:42 am, jjds...@yahoo.com wrote:
On Jul 3, 1:40 pm, "contactmayankj...@gmail.com"<contactmayankj...@gm ail.comwrote:
Can you explain what a non-virtual thunk is? I have been getting
this error when trying to link libraries that I have built with
optimization.
By any chance, does this happen specifically when you change -Os to -
O3 when building
the libraries? Just a shot in the dark...
Hi
Thanks a lot for the try
When I was building on 64-bit machine I got the error "Non virtual
thunk".
So we added an optimization flag "-O2" to our makefiles, compiled all
the libraries as well as the code again and we got rid of this error.
But JI got a new error of "virtual memory exhausted: Cannot allocate
memory".
Then we added "-O1" flag after "-O2" (-O2 -O1) flag in the makefiles,
rebuild everything and we were able to build out code as well as the
package.

We are moving a bit off topic here, more help should be sought in groups
for the GNU toolchain (gcc and gdb).

I seem to recall that gcc goes with the last option when there are
conflicts, so you can skip the -O2.
Now the binaries that I have build are running fine but when I try to
debug these binaries with gdb , the gdb gives the error
warning: Unable to get location for thread creation breakpoint:
generic
error [New LWP 100106] Cannot find thread, Thread ID=1, generic error

Have you compiled in debug symbols, useed the latest version of gdb and
gcc? My experience is that optimisations and debugging often don't play
well together, so try turning of optimisations when debugging.

--
Erik Wikström
Thanks a lot
I am using the latest version of GCC and GDB and this issue happened
when I am porting my code on 64 bit machine. When I turn off the
optimization flag it is giving the error of non virtual thunk as I
explained earlier.
I agree with you that its not safe and recommended to use both
optimization and debugging flag at the same time. But as I am not able
to compile my code without optimization flag. Can you suggest any
solution to this problem.

Regards

Mayank Jain
9818390836
www.mayankjain.110mb.com

Jul 7 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: lothar | last post by:
re: 4.2.1 Regular Expression Syntax http://docs.python.org/lib/re-syntax.html *?, +?, ?? Adding "?" after the qualifier makes it perform the match in non-greedy or minimal fashion; as few...
5
by: klaus triendl | last post by:
hi, recently i discovered a memory leak in our code; after some investigation i could reduce it to the following problem: return objects of functions are handled as temporary objects, hence...
3
by: Mario | last post by:
Hello, I couldn't find a solution to the following problem (tried google and dejanews), maybe I'm using the wrong keywords? Is there a way to open a file (a linux fifo pipe actually) in...
25
by: Yves Glodt | last post by:
Hello, if I do this: for row in sqlsth: ________pkcolumns.append(row.strip()) ________etc without a prior:
22
by: Steve - DND | last post by:
We're currently doing some tests to determine the performance of static vs non-static functions, and we're coming up with some odd(in our opinion) results. We used a very simple setup. One class...
14
by: Patrick Kowalzick | last post by:
Dear all, I have an existing piece of code with a struct with some PODs. struct A { int x; int y; };
2
by: Ian825 | last post by:
I need help writing a function for a program that is based upon the various operations of a matrix and I keep getting a "non-aggregate type" error. My guess is that I need to dereference my...
0
by: amitvps | last post by:
Secure Socket Layer is very important and useful for any web application but it brings some problems too with itself. Handling navigation between secure and non-secure pages is one of the cumbersome...
399
by: =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= | last post by:
PEP 1 specifies that PEP authors need to collect feedback from the community. As the author of PEP 3131, I'd like to encourage comments to the PEP included below, either here (comp.lang.python), or...
12
by: puzzlecracker | last post by:
is it even possible or/and there is a better alternative to accept input in a nonblocking manner?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.