www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - x86-64 Tango

reply "Kris" <foo bar.com> writes:
Tango has historically had a hard time on x86-64 because of issues regarding 
_argptr and the Layout module (string formatting). David Friedman has been 
aware of the issue, and is considering resolutions.

In the meantime, I thought it worthwhile letting people know that David 
Brown has injected a patch to work around the problem (a big thank-you to 
David), and string-formatting is now operational on that platform. The SVN 
version of Tango is patched accordingly ... 
Oct 14 2007
next sibling parent reply doob <doobnet gmail.com> writes:
I'm getting this error when I try to compile tango under linux x86-64 using the
latest svn and dsss

tango/sys/linux/socket.d -oflibDG-tango-sys-linux.a
tango/sys/linux/socket.d:67: static assert  is false
Command /opt/dsss/bin/rebuild returned with code 256, aborting.
Error: Command failed, aborting.


Kris Wrote:

 Tango has historically had a hard time on x86-64 because of issues regarding 
 _argptr and the Layout module (string formatting). David Friedman has been 
 aware of the issue, and is considering resolutions.
 
 In the meantime, I thought it worthwhile letting people know that David 
 Brown has injected a patch to work around the problem (a big thank-you to 
 David), and string-formatting is now operational on that platform. The SVN 
 version of Tango is patched accordingly ... 
 
 
Oct 16 2007
parent reply "Kris" <foo bar.com> writes:
you are setting -version=Posix as usual?


"doob" <doobnet gmail.com> wrote in message 
news:ff2et6$19db$1 digitalmars.com...
 I'm getting this error when I try to compile tango under linux x86-64 
 using the latest svn and dsss

 tango/sys/linux/socket.d -oflibDG-tango-sys-linux.a
 tango/sys/linux/socket.d:67: static assert  is false
 Command /opt/dsss/bin/rebuild returned with code 256, aborting.
 Error: Command failed, aborting.


 Kris Wrote:

 Tango has historically had a hard time on x86-64 because of issues 
 regarding
 _argptr and the Layout module (string formatting). David Friedman has 
 been
 aware of the issue, and is considering resolutions.

 In the meantime, I thought it worthwhile letting people know that David
 Brown has injected a patch to work around the problem (a big thank-you to
 David), and string-formatting is now operational on that platform. The 
 SVN
 version of Tango is patched accordingly ...
Oct 16 2007
parent reply doob <doobnet gmail.com> writes:
I had no idea I should set -version=Posix, but that didn't make any difference. 
Line 57 in tango.sys.linux.socket:

version( X86 )
{
	enum: int
	{
		SOL_SOCKET =  1,
	}
}
else
{
	// Different values on other platforms.
	static assert(0);
}

There is no "version (X86_64)" so it won't compile, doesn't matter if
"-version=Posix" is set or not.

Kris Wrote:

 you are setting -version=Posix as usual?
 
 
 "doob" <doobnet gmail.com> wrote in message 
 news:ff2et6$19db$1 digitalmars.com...
 I'm getting this error when I try to compile tango under linux x86-64 
 using the latest svn and dsss

 tango/sys/linux/socket.d -oflibDG-tango-sys-linux.a
 tango/sys/linux/socket.d:67: static assert  is false
 Command /opt/dsss/bin/rebuild returned with code 256, aborting.
 Error: Command failed, aborting.


 Kris Wrote:

 Tango has historically had a hard time on x86-64 because of issues 
 regarding
 _argptr and the Layout module (string formatting). David Friedman has 
 been
 aware of the issue, and is considering resolutions.

 In the meantime, I thought it worthwhile letting people know that David
 Brown has injected a patch to work around the problem (a big thank-you to
 David), and string-formatting is now operational on that platform. The 
 SVN
 version of Tango is patched accordingly ...
Oct 17 2007
parent reply Lars Ivar Igesund <larsivar igesund.net> writes:
doob wrote:

 I had no idea I should set -version=Posix, but that didn't make any
 difference. Line 57 in tango.sys.linux.socket:
 
 version( X86 )
 {
 enum: int
 {
 SOL_SOCKET =  1,
 }
 }
 else
 {
 // Different values on other platforms.
 static assert(0);
 }
 
 There is no "version (X86_64)" so it won't compile, doesn't matter if
 "-version=Posix" is set or not.
Could you create a patch with the correct values, if they are available to you? -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Oct 17 2007
parent reply Lars Ivar Igesund <larsivar igesund.net> writes:
Lars Ivar Igesund wrote:

 doob wrote:
 
 I had no idea I should set -version=Posix, but that didn't make any
 difference. Line 57 in tango.sys.linux.socket:
 
 version( X86 )
 {
 enum: int
 {
 SOL_SOCKET =  1,
 }
 }
 else
 {
 // Different values on other platforms.
 static assert(0);
 }
 
 There is no "version (X86_64)" so it won't compile, doesn't matter if
 "-version=Posix" is set or not.
Could you create a patch with the correct values, if they are available to you?
And please attach it to a ticket :) -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Oct 17 2007
parent reply doob <doobnet gmail.com> writes:


Lars Ivar Igesund Wrote:

 Lars Ivar Igesund wrote:
 
 doob wrote:
 
 I had no idea I should set -version=Posix, but that didn't make any
 difference. Line 57 in tango.sys.linux.socket:
 
 version( X86 )
 {
 enum: int
 {
 SOL_SOCKET =  1,
 }
 }
 else
 {
 // Different values on other platforms.
 static assert(0);
 }
 
 There is no "version (X86_64)" so it won't compile, doesn't matter if
 "-version=Posix" is set or not.
Could you create a patch with the correct values, if they are available to you?
And please attach it to a ticket :) -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Oct 17 2007
parent Lars Ivar Igesund <larsivar igesund.net> writes:
doob wrote:


Thanks :) -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Oct 17 2007
prev sibling parent reply doob <doobnet gmail.com> writes:
I don't know where the correct values are, I've looked in sys/socket.h 

Lars Ivar Igesund Wrote:

 doob wrote:
 
 I had no idea I should set -version=Posix, but that didn't make any
 difference. Line 57 in tango.sys.linux.socket:
 
 version( X86 )
 {
 enum: int
 {
 SOL_SOCKET =  1,
 }
 }
 else
 {
 // Different values on other platforms.
 static assert(0);
 }
 
 There is no "version (X86_64)" so it won't compile, doesn't matter if
 "-version=Posix" is set or not.
Could you create a patch with the correct values, if they are available to you? -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Oct 17 2007
parent BCS <BCS pathlink.com> writes:
doob wrote:
 I don't know where the correct values are, I've looked in sys/socket.h 
 
 Lars Ivar Igesund Wrote:
 
 
doob wrote:


I had no idea I should set -version=Posix, but that didn't make any
difference. Line 57 in tango.sys.linux.socket:

version( X86 )
{
enum: int
{
SOL_SOCKET =  1,
}
}
else
{
// Different values on other platforms.
static assert(0);
}

There is no "version (X86_64)" so it won't compile, doesn't matter if
"-version=Posix" is set or not.
Could you create a patch with the correct values, if they are available to you? -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
generate a c file with the needed includes and: int i = SOL_SOCKET; run it through cpp (the c preprocessor) and look at the last tine or use printf("%d\n", SOL_SOCKET);
Oct 17 2007