Lack of 64bit support breaks -run

John Demme me at teqdruid.com
Tue May 23 12:44:33 PDT 2006


Looks like that doesn't work b/c DMD takes the CC env variable and runs it
as a command, so you have to use gcc32 as Thomas suggested.  Does gcc32
exist on all systems?

~John Demme

Russ Lewis wrote:

> Doesn't seem to work.  I get this:
> 
> CC="gcc -m32" dmd -run ~/bin/global_uniq.d < parser.h
> gcc -m32: No such file or directory
> --- errorlevel 255
> [russ at russ project]$
> 
> Thomas Kuehne wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> 
>> Russ Lewis schrieb am 2006-05-22:
>> 
>>>Since dmd can't link properly on AMD64 linux, I can't use -run.
>>>
>>>It has occurred to me that one (simple) solution to this would be to add
>>>an argument to dmd which it would pass to gcc, so that I could pass
>>>-m32.  I tried using -L, but that passes the argument
>>>-Xlinker -m32
>>>to gcc rather than what I'm attempting to pass, which is simply
>>>-m32
>> 
>> 
>> work around:
>> 
>> CC="gcc -m32" dmd -run source.d
>> 
>> Thomas
>> 
>> 
>> -----BEGIN PGP SIGNATURE-----
>> 
>> iD8DBQFEciwD3w+/yD4P9tIRAiBzAKCjsiYfysCdSB5nIJ6U4v4k/E0q2gCfTCeM
>> EyxfeV58iN9vRoKdKPlAp1Y=
>> =m3PI
>> -----END PGP SIGNATURE-----




More information about the Digitalmars-d-bugs mailing list