dmake icon indicating copy to clipboard operation
dmake copied to clipboard

Build on Cygwin 64 failing

Open archenroot opened this issue 8 years ago • 2 comments

Failing build (make phase) on Cygwin64

gcc  -g -O2   -o dmake.exe infer.o make.o stat.o expand.o dmstring.o hash.o dag.o dmake.o path.o imacs.o sysintf.o parse.o getinp.o quit.o state.o dmdump.o macparse.o rulparse.o percent.o function.o  unix/arlib.o unix/dcache.o unix/dirbrk.o unix/rmprq.o unix/ruletab.o unix/runargv.o unix/tempnam.o
path.o: In function `normalize_path':
/cygdrive/c/integration/src/dmake/path.c:320: undefined reference to `cygwin_conv_to_posix_path'
/cygdrive/c/integration/src/dmake/path.c:320:(.text+0x6dd): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `cygwin_conv_to_posix_path'
sysintf.o: In function `Prolog':
/cygdrive/c/integration/src/dmake/sysintf.c:548: undefined reference to `cygwin_conv_to_posix_path'
/cygdrive/c/integration/src/dmake/sysintf.c:548:(.text+0x677): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `cygwin_conv_to_posix_path'
sysintf.o: In function `cygdospath':
/cygdrive/c/integration/src/dmake/sysintf.c:1158: undefined reference to `cygwin_conv_to_win32_path'
/cygdrive/c/integration/src/dmake/sysintf.c:1158:(.text+0x126b): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `cygwin_conv_to_win32_path'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:555: dmake.exe] Error 1
make[2]: Leaving directory '/cygdrive/c/integration/src/dmake'
make[1]: *** [Makefile:626: all-recursive] Error 1
make[1]: Leaving directory '/cygdrive/c/integration/src/dmake'
make: *** [Makefile:397: all] Error 2

I got rid of this by commenting out following:

/* int err = cygwin_conv_to_posix_path(path, cpath);
      * if (err)
	 *Fatal( "error converting \"%s\" - %s\n",
		* path, strerror (errno));
		*/

in path.c and in similar way in other files.

I think these cygwin_* functions are obsolete, aren't they?

archenroot avatar Mar 23 '17 12:03 archenroot

I don't know. Can you find out authoritatively?

mohawk2 avatar Apr 13 '19 03:04 mohawk2

@archenroot Are you in a position to help with #19 at all?

mohawk2 avatar Apr 13 '19 05:04 mohawk2