AMD64 Linux

Thomas Kuehne thomas-dloop at kuehne.cn
Sat Aug 19 00:00:16 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Demme schrieb am 2006-08-18:
> Does anyone have GDC working on an AMD64 linux system?

Yes

> I've tried both compiling with GCC manually, and the 0.19 i386 binary on the
> website, but neither work properly.  When I use the i386 binary, compiling
> a simple test program gives me:
> /tmp/ccDMD2fb.s: Assembler messages:
> /tmp/ccDMD2fb.s:10: Error: suffix or operands invalid for `push'
> /tmp/ccDMD2fb.s:86: Error: suffix or operands invalid for `push'
> /tmp/ccDMD2fb.s:93: Error: suffix or operands invalid for `pop'

I don't remember seeing those error messages.

Did you try to add "-m32" to your command line?

- From my adapted gdmd file:
123:my $gcc_version = `$gdc  -m32 -dumpversion`;
128:my $target_machine = `$gdc -m32 -dumpmachine`;
291:    my @cmd = ($gdc, '-m32', '--version', @out);
332:    my @cmd = ($gdc, '-m32', '-I/opt/gdc/gdc-0.19/include/d/3.4.6/i386-unknown-linux/', @out, '-c', @all_sources_hack, $srcf, '-o', $outf );
342:    my @cmd = ($gdc, '-m32', '-L/usr/lib32', @out, @dobjects, @objects, @link_out);

> $ gcc -v
> Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/specs
> Configured
> with: /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.6 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.6 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.6/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.6/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/include/g++-v3 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
> Thread model: posix
> gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)

Reading specs from
/opt/gdc/gdc-0.19/lib/gcc/x86_64-unknown-linux-gnu/3.4.6/specs
Configured with: ./configure --prefix=/opt/gdc/gdc-0.19 --enable-languages=c,d --enable-checking=misc,tree,gc,rtl,rtlflag,fold,gcac
Thread model: posix
gcc version 3.4.6 (Gentoo Hardened 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9) (gdc 0.19, using dmd 0.162)

(You'll have to disable checking if you are going to build GPhobos.)

> $ uname -r
> 2.6.17-gentoo-r3

2.6.16-hardened-r10

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFE5rhELK5blCcjpWoRAstGAJ4iKij6P1BU/CCU6Bw6TFgAZuai0ACgl/Es
O5JqypXbautwa9qEv9+n2C4=
=YAKA
-----END PGP SIGNATURE-----



More information about the D.gnu mailing list