[Nasm-bugs] [Bug 3392359] New: Compiling nasm in the latest Cygwin fails

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Tue Jul 12 09:08:19 PDT 2016


http://bugzilla.nasm.us/show_bug.cgi?id=3392359

            Bug ID: 3392359
           Summary: Compiling nasm in the latest Cygwin fails
           Product: NASM
           Version: 2.12.xx
          Hardware: All
                OS: All
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: rianquinn at gmail.com
                CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us

If you compile NASM in the latest Cygwin, you get:

realpath.c: In function ‘nasm_realpath’:
realpath.c:60:16: error: implicit declaration of function
‘canonicalize_file_name’ [-Werror=implicit-function-declaration]
     char *rp = canonicalize_file_name(rel_path);
                ^
realpath.c:60:16: warning: initialization makes pointer from integer without a
cast [-Wint-conversion]
cc1: some warnings being treated as errors
Makefile:61: recipe for target 'realpath.o' failed
make: *** [realpath.o] Error 1

Adding:

export CFLAGS="-U__STRICT_ANSI__"

prior to configuring solves the issue. If you look at cygwin/stdlib.h, you will
notice that canonicalize_file_name cannot be used if __STRICT_ANSI__ is defined
which appears to be the case when compiling on Cygwin

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list