D.gnu - gdc on sparc with debian-linux problem.
- Ish (30/30) Dec 02 2015 Trying to install gdc on Sparc box with (gcc 4.6.3, see below).
- Johannes Pfau (11/54) Dec 04 2015 I think that GDC version is just very old and it's D1. I'm not sure if
Trying to install gdc on Sparc box with (gcc 4.6.3, see below). $ uname -a 3.2.68-1+deb7u2 sparc64 GNU/Linux $ gcc --version gcc (Debian 4.6.3-14) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gdc-4.4 --version gdc-4.4 (Debian 4.4.7-1) 4.4.7 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gdc-4.4 hello.d cc1d: warning: command line option "-imultilib" is valid for C/C++/Fortran/ObjC/ObjC++ but not for D hello.d:9: Error: undefined identifier writeln, did you mean function writefln? hello.d:9: Error: function expected before (), not __error of type _error_ ./a.out Bus error There is another gdc in repository gdc-v1 too. Any ideas? -ish
Dec 02 2015
Am Wed, 02 Dec 2015 17:04:57 +0000 schrieb Ish <ratta1i cmich.edu>:Trying to install gdc on Sparc box with (gcc 4.6.3, see below). $ uname -a 3.2.68-1+deb7u2 sparc64 GNU/Linux $ gcc --version gcc (Debian 4.6.3-14) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gdc-4.4 --version gdc-4.4 (Debian 4.4.7-1) 4.4.7 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gdc-4.4 hello.d cc1d: warning: command line option "-imultilib" is valid for C/C++/Fortran/ObjC/ObjC++ but not for D hello.d:9: Error: undefined identifier writeln, did you mean function writefln? hello.d:9: Error: function expected before (), not __error of type _error_ ./a.out Bus error There is another gdc in repository gdc-v1 too. Any ideas? -ishI think that GDC version is just very old and it's D1. I'm not sure if recent GDC releases work on SPARC though.cc1d: warning: command line option "-imultilib" is valid for C/C++/Fortran/ObjC/ObjC++ but not for DThis is fixed in newer GDC versions, but this should not cause real problems anyway, it's just a warning.hello.d:9: Error: undefined identifier writeln, did you mean function writefln?Looks like there's no writeln function in D1?./a.out Bus errorThere shouldn't even be a a.out file if that writeln error happened before? TLDR: You probably want a recent D2 compiler but I don't think any of the D2 compilers actually supports SPARC right now.
Dec 04 2015