www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 109] New: Error compiling 4.8.2 on Cygwin

Date: Sat, 29 Mar 2014 01:18:08 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

http://bugzilla.gdcproject.org/show_bug.cgi?id=3D109

            Bug ID: 109
           Summary: Error compiling 4.8.2 on Cygwin
    Classification: Unclassified
           Product: GDC
           Version: 4.8.x
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: james.darnley gmail.com

While trying to compile gdc 4.8.2 on Cygwin following the generic install
instrcutions at http://wiki.dlang.org/GDC/Installation/Generic I encountered
the following errors.  The gcc source I used is the one provided when you t=
ell
cygwin's setup.exe to give you the source for it's gcc-core package version
4.8.2-2

../../gcc-4.8.2/gcc/d/dfrontend/filename.c: In static member function =E2=
=80=98static
int FileName::ensurePathExists(const char*)=E2=80=99:
../../gcc-4.8.2/gcc/d/dfrontend/filename.c:597:43: error: =E2=80=98sep=E2=
=80=99 was not
declared in this scope
             if (path[strlen(path) - 1] !=3D sep)
                                           ^
../../gcc-4.8.2/gcc/d/dfrontend/filename.c:606:21: error: =E2=80=98r=E2=80=
=99 was not declared
in this scope
                 if (r)
                     ^
../../gcc-4.8.2/gcc/d/dfrontend/filename.c:611:25: error: =E2=80=98errno=E2=
=80=99 was not
declared in this scope
                     if (errno !=3D EEXIST)
                         ^
../../gcc-4.8.2/gcc/d/dfrontend/filename.c:611:34: error: =E2=80=98EEXIST=
=E2=80=99 was not
declared in this scope
                     if (errno !=3D EEXIST)
                                  ^
When looking at the source file there appears to be an impossible #if condi=
tion
of:
#if _WIN32
...
#elif POSIX
...
#endif

I am no expert when it comes system related compiling but I would have thou=
ght
that these should just be #else statements or perhaps an some #if including
__CYGWIN__

--=20
You are receiving this mail because:
You are watching all bug changes.
Mar 28 2014