Assertion in AMD cross-compiler

T

Timur Safin

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
 
K

Kang Su Gatlin [MS]

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 <[email protected]>
| 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
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top