tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Running 'make test' on windows?


From: Austin English
Subject: Re: [Tinycc-devel] Running 'make test' on windows?
Date: Wed, 22 Jan 2014 23:21:22 -0600

conftest.exe is built, it fails for 'version' though:
+ CONFTEST=./conftest.exe
+ test -z ''
+ gcc -o ./conftest.exe /c/Users/austin/Documents/tinycc/conftest.c
++ ./conftest.exe bigendian
+ bigendian=no
++ ./conftest.exe version
+ gcc_major=
++ ./conftest.exe minor
+ gcc_minor=8
+ test yes = no

a simple patch fixes it:
diff --git a/configure b/configure
index 8c44e5c..c05315f 100755
--- a/configure
+++ b/configure
@@ -299,8 +299,8 @@ if test -z "$cross_prefix" ; then
     echo "configure: error: '$cc' failed to compile conftest.c."
   else
     bigendian="$($CONFTEST bigendian)"
-    gcc_major="$($CONFTEST version)"
-    gcc_minor="$($CONFTEST minor)"
+    gcc_major="$($CONFTEST v)"
+    gcc_minor="$($CONFTEST m)"
     if test "$mingw32" = "no" ; then
       triplet="$($CONFTEST triplet)"
       if test -f "/usr/lib/$triplet/crti.o" ; then


it could be a gcc/mingw regression. This is gcc-4.8.1 (I haven't tried other versions though).

After that, all tests pass with HEAD (32af4962).

Would you like me to push that to mob?


On Wed, Jan 22, 2014 at 8:40 AM, grischka <address@hidden> wrote:
Austin English wrote:
tcctest.c:6:15: error: operator '>=' has no left operand
 #if GCC_MAJOR >= 3

Check how it comes that conftest(.exe) is not built or gcc_major
is not set from configure, lines 295-304.

--- grischka



_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel



--
-Austin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]