Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build on Cygwin 64 failing #18

Open
archenroot opened this issue Mar 23, 2017 · 2 comments
Open

Build on Cygwin 64 failing #18

archenroot opened this issue Mar 23, 2017 · 2 comments

Comments

@archenroot
Copy link

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?

@mohawk2
Copy link
Owner

mohawk2 commented Apr 13, 2019

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

@mohawk2
Copy link
Owner

mohawk2 commented Apr 13, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants