forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Attempt to emit 32-bit instruction in /64 mode

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit
View previous topic :: View next topic  
Author Message
Ryan



Joined: 25 Feb 2016
Posts: 110

PostPosted: Thu Nov 23, 2023 11:27 am    Post subject: Attempt to emit 32-bit instruction in /64 mode Reply with quote

Hi all,

I'm porting a 32 bit app to 64 bit and on switching on debug, I get the following error message when building;

*** Attempt to emit 32-bit instruction in /64 mode

This is in a C++ file compiled with SCC. I understand that SCC is not really supported any more but I'd like to track down where the issue is coming from and see if I can work around it.

Paul previously helped port a very similar codebase previously and I do recall there were some of these errors in there. My memory is that they were resolved somehow as we now build that other codebase with debug.

I'm hoping I can dig and resolve these as well.

Thanks in advance

Ryan
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7926
Location: Salford, UK

PostPosted: Thu Nov 23, 2023 1:20 pm    Post subject: Reply with quote

Ryan

We are willing to look at bugs for 64 bit SCC but at the moment we may not always aim to provide a fix.

I will send you a private message.

Paul
Back to top
View user's profile Send private message AIM Address
dgurok



Joined: 26 May 2011
Posts: 66

PostPosted: Fri Dec 01, 2023 4:05 pm    Post subject: Reply with quote

I can also reproduce the problem.

The problem is caused by using some headers. These three headers provide e.g. this error.

Code:
#include <fstream.h>      // <----  *** Attempt to emit 32-bit instruction in /64 mode
// #include <iomanip.h>   // <----  *** Attempt to emit 32-bit instruction in /64 mode
// #include <iostream.h>  // <----  *** Attempt to emit 32-bit instruction in /64 mode

void my_test() {
 return;
}


Code:
 4/0257   inline int ios::setf(int flags, int mask)
   0009   }
*** Attempt to emit 32-bit instruction in /64 mode
    1 ERRORS  [<TEST> SCC/WIN32 Ver 4.60]
*** Compilation failed
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7926
Location: Salford, UK

PostPosted: Fri Dec 01, 2023 6:58 pm    Post subject: Reply with quote

dgurok

Yes thank you. This is a known issue. At the moment alternative functions, to those requiring these, headers must be employed.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group