News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

TDM's GCC 4.2.1 (now with iconv, Obj-C++ and Treelang)

Started by TDragon, July 24, 2007, 05:23:24 AM

Previous topic - Next topic

dwmcqueen


TDragon

Quote from: dwmcqueen on August 06, 2007, 07:44:23 PM
ssize_t is defined a few lines earlier in types.h
Nope, that's _ssize_t (note the leading underscore).
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

dwmcqueen

#32
Here it is defined in a config-win32.h header file (within curl):

#if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || defined(__POCC__)
#elif defined(_WIN64)
#define ssize_t __int64
#else
#define ssize_t int
#endif

I think this define causes the problem - it is included earlier, and sets it to be an int.  Then, in the types.h, it defines it again.

Ramazan Kartal

Hi,

QuoteGCC 4.2.1 TDM-2 is now available! Objective-C++ and Treelang packages have been added, and GCC now uses libiconv for support for non-UTF-8 charsets (see -finput-charset, etc.).

Thanks TDM, now I can compile using "-finput-charset=latin5".

Regards,
Ramazan Kartal

dwmcqueen

MinGW has now released 4.2.1 (partially)

-----------------------
QuoteA GCC 4.2.1 binary release for mingw is available.

You can download it from:
https://sourceforge.net/project/showfiles.php?group_id=2435
under gcc-4

The binaries are archived by language.

There are two versions, differing in the model used for exception unwind
info.
(1) Setjump-longjump (sjlj). Historically,and currently, the
    default model.
(2) Dwarf2 table-based unwinding (dw2). The more efficient model.


*This version is built with Dwarf 2 unwind info enabled. The gcc, g++
and
gfortran drivers in the bin directory have a '-dw2' suffix to indicate
that, You can remove '-dw2; from these files if you like.

If you want sjlj you will find them (soon) in the gcc-4.2.1-sjlj-1
package

The binaries were compiled with --enable-version-specific-runtime-libs.
The runtime libs are in <mingw-root>/lib/gcc/mingw32/gcc-4.2.1-dw2. Do
not move these files. If you really must, don't bother reporting
installation bugs.

Please consider this package as experimental.

To get core C compiler, download:

gcc-core-4.2.1-dw2-1.tar.gz

To add on other languages, download one or more
of these (in addition to core):

gcc-ada-4.2.1-dw2-1.tar.gz
gcc-g++-4.2.1-dw2-1.tar.gz
gcc-gfortran-4.2.1-dw2-1.tar.gz
gcc-objc-4.2.1-dw2-1.tar.gz


Extract the files, maintaining the directory structure, into your root
directory for mingw.

Be aware that some archive extracters do not preserve read-only
attributes of files. If you are installing the Ada component, please
check that the files in the /lib/gcc/mingw32/4.2.1-dw2/adainclude and
adalib
directories are flagged as read-only. This attribute is necessary to
prevent them from being deleted when using gnatclean to clean a project.


* libstdc++ and libgfortran require version 3.13 of mingw-runtime and
w32api version 2.2 or higher.

* This package does _not_ contain binutils, the mingw-runtime
or the w32api. You will need to get these if you do not already
have mingw installed.

* libstdc++ and libgfortran require version 3.13 of mingw-runtime and
w32api version 2.2 or higher.  Yes, I've said it twice now.

* Static and dll libraries of libgcc and libstdc++ are in the release.
By default, linkage is to static libraries.  More details later.

* OpenMP is enabled.  To use it you will need to have  win32-pthreads
package installed. More details later.

This release contains:

1) Source distribution, with mingw-local patches incorporated:
gcc-4.2.1-1-src.tar.gz
(This is the whole shebang. Maybe some day I'll have time to break
  up into language components.)

2) Binaries
gcc-core-4.2.1-dw2-1.tar.gz
gcc-ada-4.2.1-dw2-1.tar.gz
gcc-g++-4.2.1-dw2-1.tar.gz
gcc-gfortran-4.2.1-dw2-1.tar.gz
gcc-objc-4.2.1-dw2-1.tar.gz

3) gcc-4.2.1-build-dw2.sh, which is the script I used to configure
  and build.


4) This file.


Danny
2007-08-07