Page 1 of 1

mingw compiler request

Posted: Thu Nov 07 2024 10:44 am
by donn
Providing a mingw compiler is great, but can you make a distribution without all of the extra gcc programs? I've been using cygwin for 100 years and I'm happy with it. I've deleted all of the non-compiler programs from your distribution, but it would be nice if that was an option.
Thanks.

Re: mingw compiler request

Posted: Thu Nov 07 2024 6:46 pm
by barbara
Just to be clear, you are looking for a distribution which only contains the MinGW compiler and GDB? This is not impossible, however it will require some testing since the compiler has multiple dependencies.

We have added this to our road map.

Barbara

Re: mingw compiler request

Posted: Fri Nov 22 2024 2:42 am
by donn
Yes, that's what I'm asking. Here's a list of files I removed from the bin directory. Thanks!

[.exe
7z.exe
addr2line.exe
ar.exe
autoconf
autoheader
autom4te
automake
automake-1.16
autoreconf
autoscan
autoupdate
b2sum.exe
base32.exe
base64.exe
basename.exe
basenc.exe
bison.exe
bunzip2.exe
bzcat.exe
bzcmp
bzdiff
bzegrep
bzfgrep
bzgrep
bzip2.exe
bzip2recover.exe
bzless
bzmore
captoinfo.exe
chcon.exe
chmod.exe
cksum.exe
clear.exe
cls
cmp.exe
comm.exe
cp.exe
csplit.exe
curl.exe
curl-config
cut.exe
date.exe
diff.exe
diff3.exe
dircolors.exe
dirname.exe
dlltool.exe
dllwrap.exe
echo.exe
egrep
elfedit.exe
env.exe
expand.exe
factor.exe
false.exe
fgrep
fmt.exe
fold.exe
gprof.exe
grep.exe
gunzip
gzexe
gzip.exe
head.exe
hostname.exe
ifnames
infocmp.exe
infotocap.exe
join.exe
libcurl-4.dll
link.exe
logname.exe
lto-dump.exe
lzcat.exe
lzcmp
lzdiff
lzegrep
lzfgrep
lzgrep
lzless
lzma.exe
lzmadec.exe
lzmainfo.exe
lzmore
m4.exe
md5sum.exe
mkdir.exe
mkfifo.exe
mknod.exe
mktemp.exe
mv.exe
nano.exe
ncurses.exe
ncursesw6-config
nl.exe
nm.exe
nohup.exe
nproc.exe
numfmt.exe
objcopy.exe
objdump.exe
od.exe
openssl.exe
paste.exe
pathchk.exe
pr.exe
printenv.exe
printf.exe
ptx.exe
pwd.exe
readelf.exe
readlink.exe
realpath.exe
reset.exe
rm.exe
rmdir.exe
runcon.exe
sdiff.exe
sed.exe
seq.exe
sha1sum.exe
sha224sum.exe
sha256sum.exe
sha384sum.exe
sha512sum.exe
shuf.exe
size.exe
sleep.exe
sort.exe
split.exe
strings.exe
strip.exe
sum.exe
tabs.exe
tac.exe
tee.exe
test.exe
tic.exe
toe.exe
touch.exe
tput.exe
tr.exe
true.exe
truncate.exe
tset.exe
tsort.exe
uname.exe
uncompress
unexpand.exe
uniq.exe
unlink.exe
unlzma.exe
unxz.exe
wc.exe
wget.exe
wget2.exe
wget2_noinstall.exe
windmc.exe
windres.exe
xz.exe
xzcat.exe
xzcmp
xzdec.exe
xzdiff
xzegrep
xzfgrep
xzgrep
xzless
xzmore
yacc
yes.exe
zcat
zcmp
zdiff
zegrep
zfgrep
zforce
zgrep
zless
zmore
znew

Re: mingw compiler request

Posted: Fri Dec 06 2024 12:57 am
by barbara
Several of the files you listed are used by MinGW during the compile and link process. Since you removed some required files MinGW must be finding a program with the same name from your copy of cygwin. Their version and the one we distributed are probably not binary compatible.

Sadly this is the type of issue that may show only at run time of your program and at that point you will have almost no way to debug anything.

If we create a build and leave out the non-compiler utilities, programs like "7z.exe" could be omitted. But "addr2line.exe" would still be included because it is part of the compiler. There is a surprising number of components which come with GCC.

Barbara

Re: mingw compiler request

Posted: Sat Dec 07 2024 9:22 am
by donn
Thanks for the reply. I've been using the compiler without all those files, so I dunno.

Re: mingw compiler request

Posted: Sun Dec 08 2024 9:09 pm
by barbara
You actually can not be using MinGW without access to a certain set of files. As I mentioned, you are most likely compiling with some parts of our distribution of MinGW and some files from cygwin. This could result in binary incompatibilities and is not advisable. This is a problem waiting to happen.

If you want to run some basic testing then change your path and remove cygwin.

Barbara