Web lists-archives.com

Re: [Mingw-users] Internal compiler error with custom specs file




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

On 24/05/17 11:10, John Brown wrote:
> I tried to follow the instructions at 
> http://www.mingw.org/wiki/HOWTO_Use_the_GCC_specs_file
> to let me link to msvcr80 (to get access to _ftelli64).

Seems like overkill.  While _ftelli64() may not be available, in any 
version of MSVCRT.DLL, (at least up to and including Win7), _telli64(), 
_lseeki64(), and _fileno() are; surely for:

  __int64 ofs64 = _ftelli64 (foo);

you can substitute either:

  __int64 ofs64 = _lseeki64 (_fileno (foo), 0LL, SEEK_CUR);

or:

  __int64 ofs64 = _telli64 (_fileno (foo));

> When I run gcc -specs=msvcr80 -o hello hello.c, the result is:
> 
> $ gcc -specs=msvcr80 -o hello hello.c
> gcc.exe: internal compiler error: in execute, at gcc.c:2699
> libbacktrace could not find executable to open
> 
> [...snip...]
> 
> I am running the latest MinGW (gcc 5.3.0).  Am I doing something wrong?

I don't know.  The reference material relates to gcc-3.4.5; I'll need 
to play with it, to determine how relevant it may still be.

- -- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJZJbGEAAoJEMCtNsY0flo/cyAP/AuoNhOcktbPAqQ4Wid7ybl6
TLk2o/Y1ypSpxMnTdcJWSL3HT4q5VW/Db+2oSEds6NeHcSJsNZrJKqHp9KianUcl
tbLMKUoULeeejAWiiLJnIFDOuY7yw3kXX5dto9CsK6XN/FLGx62em/9pZPZUY+Xz
4FIjkbMdbg6SyYSkRmlZTqopEDRSCVkEsHb49IfQxnoGlz5FwX5tUCZqzGecCFqv
QYaITKgkWbeWnL7H8CfQwC0tJ81L3u+S2U2s9pVav9wKIbZX/rrvjBgtoi6KiNQg
VWmgMj+O9x4oBUTjRmEQYeFqWVLWXWIQlhT9K3oKeSWWwJQr0fSNgHcIVtnwJz4X
FFKKyM5E2tPGzHEvCq9+rj/bjABUWXxB+3DwbzIZ0/KeOvIgaO5GM43JXyNzwfvX
qpPolkgXBj6+otrtMcmcZMcTa3q85TGsXcsc3EPoV7rKmXqj7ENt6ckv5I/kiNLg
Zp0i13zkPhSugL2KAKZC6Fu8r7rVNKg5MxDOWa2g8EEshJTyBobF9I4U8BicUy5f
HZpmfOeroKTTmyCc/FByT/XIBPzbOOb4kSudZeZhSSAPbFuvG36CahlhKbl5MHuU
At5QB9XQLRZtrornfqmsINxbTTx9pv9zR1hIZYefyk2JXCASYyZe538UfkY+Y+Ht
GW1wXcrdtazu7lXjeazW
=aaww
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe