473,224 Members | 1,504 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,224 software developers and data experts.

Assertion in AMD cross-compiler

Hi All,

Sorry if it is offtopic here, I wasn't able to find any more relevant group...

I'm slowly approaching AMD64 build for our product (as my personal fun project). And after
I ran that Amd64 cross-compiler from DDK 3790 build (proven to be good enough for my
driver stuff) over the sources I've updated shortly I've found this serious assertion
appearing in manyplaces of the code we have:

$ tcc.ver edzunet build5105
cl c:/v/v5-0/build5105/common/src/edzunet.c -MD -Og -nologo -Wp64 -c -I.
-Ic:/v/v5-0/build5105/winx64/h -Ic:/v/v5-0/build5105/nt/h -Ic:/v/v5-0/build5105/common/h
-D MACHINETYP=50
edzunet.c
....
c:\v\v5-0\build5105\common\src\edzunet.c(3159) : <func:#13 "zu90fun"> Compiler error
(assertion): file f:\vs70builds\2232\vc\Compiler\Utc\src\P2\fgopt.c line 3826

c:\v\v5-0\build5105\common\src\edzunet.c(3159) : <func:#13 "zu90fun"> Compiler error
(assertion): file f:\vs70builds\2232\vc\Compiler\Utc\src\P2\fgopt.c line 3826

c:\v\v5-0\build5105\common\src\edzunet.c(4989) : <func:#17 "zu129fun"> Compiler error
(assertion): file f:\vs70builds\2232\vc\Compiler\Utc\src\P2\fgopt.c line 3826

c:\v\v5-0\build5105\common\src\edzunet.c(4989) : <func:#17 "zu129fun"> Compiler error
(assertion): file f:\vs70builds\2232\vc\Compiler\Utc\src\P2\fgopt.c line 3826

c:\v\v5-0\build5105\common\src\edzunet.c(6949) : <func:#27 "ECP_c_stop_write_dmn">
Compiler error (assertion): file f:\vs70builds\2232\vc\Compiler\Utc\src\P2\fgopt.c line 3826

These assertions always follow to the lines with MEMBAR() macro inserted (which I defined
as _mm_mfence alias). For example the 1st most problem:

3155: MEMBAR(); /* NS updates complete before bumping nsversion */
3156: pap->av.ai = nsversion;
3157: nsversion++;
3158: MEMBAR(); /* nsversion must be set before releasing SWITCH */
3159: return;

Is this a known assertion? Where I could grab more updated version than those of DDK I have:

$ cl
Microsoft (R) C/C++ Optimizing Compiler Version 14.00.2207 for AMD64
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]

Thanks in advance,
Timur Safin
Intersystems Russia
Nov 17 '05 #1
1 1859
You are using a pretty old compiler. Are you on Betaplace for the AMD64
PSDK beta? If so, go there to get the latest one. If not, email me and
I'll get you added to the program.

Thanks,

Kang Su Gatlin
Visual C++ Program Manager

--------------------
| Date: Fri, 11 Jun 2004 17:18:29 +0400
| From: Timur Safin <ti***@intersystems.com>
| User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207)
| X-Accept-Language: en-us, en
| MIME-Version: 1.0
| Subject: Assertion in AMD cross-compiler

|
| Hi All,
|
| Sorry if it is offtopic here, I wasn't able to find any more relevant
group...
|
| I'm slowly approaching AMD64 build for our product (as my personal fun
project). And after
| I ran that Amd64 cross-compiler from DDK 3790 build (proven to be good
enough for my
| driver stuff) over the sources I've updated shortly I've found this
serious assertion
| appearing in manyplaces of the code we have:
|
| $ tcc.ver edzunet build5105
| cl c:/v/v5-0/build5105/common/src/edzunet.c -MD -Og -nologo -Wp64 -c -I.
| -Ic:/v/v5-0/build5105/winx64/h -Ic:/v/v5-0/build5105/nt/h
-Ic:/v/v5-0/build5105/common/h
| -D MACHINETYP=50
| edzunet.c
| ...
| c:\v\v5-0\build5105\common\src\edzunet.c(3159) : <func:#13 "zu90fun">
Compiler error
| (assertion): file f:\vs70builds\2232\vc\Compiler\Utc\src\P2\fgopt.c line
3826
|
| c:\v\v5-0\build5105\common\src\edzunet.c(3159) : <func:#13 "zu90fun">
Compiler error
| (assertion): file f:\vs70builds\2232\vc\Compiler\Utc\src\P2\fgopt.c line
3826
|
| c:\v\v5-0\build5105\common\src\edzunet.c(4989) : <func:#17 "zu129fun">
Compiler error
| (assertion): file f:\vs70builds\2232\vc\Compiler\Utc\src\P2\fgopt.c line
3826
|
| c:\v\v5-0\build5105\common\src\edzunet.c(4989) : <func:#17 "zu129fun">
Compiler error
| (assertion): file f:\vs70builds\2232\vc\Compiler\Utc\src\P2\fgopt.c line
3826
|
| c:\v\v5-0\build5105\common\src\edzunet.c(6949) : <func:#27
"ECP_c_stop_write_dmn">
| Compiler error (assertion): file
f:\vs70builds\2232\vc\Compiler\Utc\src\P2\fgopt.c line 3826
|
| These assertions always follow to the lines with MEMBAR() macro inserted
(which I defined
| as _mm_mfence alias). For example the 1st most problem:
|
| 3155: MEMBAR(); /* NS updates complete before bumping nsversion */
| 3156: pap->av.ai = nsversion;
| 3157: nsversion++;
| 3158: MEMBAR(); /* nsversion must be set before releasing SWITCH */
| 3159: return;
|
| Is this a known assertion? Where I could grab more updated version than
those of DDK I have:
|
| $ cl
| Microsoft (R) C/C++ Optimizing Compiler Version 14.00.2207 for AMD64
| Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
|
| usage: cl [ option... ] filename... [ /link linkoption... ]
|
| Thanks in advance,
| Timur Safin
| Intersystems Russia
|

Nov 17 '05 #2

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

Similar topics

21
by: Roy Smith | last post by:
I've got a function which gets passed a call-back function as a parameter. I want to check to make sure the thing passed in is indeed callable. Is: assert '__call__' in dir (param) the...
3
by: Todd Miller | last post by:
Hi, I recently discovered an assertion failure in the Python garbage collection system when scripts using our C extension (numarray) exit. The assertion is activated for Pythons configured using...
0
by: benevilent | last post by:
Hey, I'm getting an assertion error as a result of embedding python. "Modules/gcmodule.c:231: visit_decref: Assertion `gc->gc.gc_refs != 0' failed." I only get this assertion error with...
4
by: Morgan Leppink | last post by:
Hey all - We are running SQL 2000 with ALL available service packs, etc. applied. We just built a brand new database server, which has dual 2Ghz XEONs, 2GB memory, and the following disk...
1
by: Eyal | last post by:
Hi, We have an issue with Debug Assertion showing in Release builds in Managed C++! I have created a small managed C++ project that looks like this: #include "stdafx.h" #using <mscorlib.dll>...
2
by: Craig Klementowski | last post by:
Pardon the cross post, but I'm not sure where exactly to post this question. We have MFC application using many MFC extention DLL's. We started using a new MFC extention DLL that is mixed mode so...
5
by: Ron Louzon | last post by:
I have some C++ code that uses the CSingleLock( CCriticalSection *) constructor. In visual C++ 6.0, this code compiles and runs fine in both Debug and release modes. However, in Visual Studio...
2
by: Penny Balkwill via .NET 247 | last post by:
(Type your message here) I am supporting a system which uses ORACLE Forms, and we are getting an intermittent error: Assertion failed! Program: D:\Dev6i\bin\ifrun60.exe File:...
7
by: inkexit | last post by:
I'm getting assertion errors when I try to import or export a file using this code. Please help. I don't even know what an assertion error is. #include <iostream> #include <iomanip> #include...
4
by: Mullai | last post by:
Hi , My program gives an error message like this Debug Assertion Failed! program:................ File: wincore.cpp Line: 958 Please can anyone help me out in this issue. I have to solve...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.