-
Notifications
You must be signed in to change notification settings - Fork 16
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
patch about windows build #23
Comments
Thanks for finding these problems. I'll put fixes for them similar to yours above in the new release (which should be out in a day or so), except that I think I won't change the default for R_MAT_MULT_WITH_BLAS_BY_DEFAULT. Here's a diff of my current version:
|
Above patch is now in the new release of 2014-02-23. |
on windows makefile still need modify ,you patch have problem,define sort and comm add LC_COLLATE=C behind them not slove it,must like following --- a/src/gnuwin32/Makefile
+++ b/src/gnuwin32/Makefile
@@ -144,26 +144,33 @@ fixed/fixdesc:
dllversion.o: ../include/Rversion.h
+ifeq "$(WIN)" "64"
R.dll: $(OBJS) $(OBJS-EXTRA) $(MAINLIBS) $(EXTRALIBS) dllversion.o
@$(ECHO) EXPORTS > R.def
- @$(NM) $^ | $(SED) -n $(SYMPAT) | $(SORT) | uniq > R0.def
-ifeq "$(WIN)" "64"
- @$(SED) -e's/@.*//' Rdll.hide | $(SORT) > R1.def
+ @$(NM) $^ | $(SED) -n $(SYMPAT) | LC_COLLATE=C $(SORT) | uniq > R0.def
+ @$(SED) -e's/@.*//' Rdll.hide | LC_COLLATE=C $(SORT) > R1.def
+ @LC_COLLATE=C comm -23 R0.def R1.def >> R.def
+ $(DLL) -shared $(DLLFLAGS) $($*-DLLFLAGS) -o $@ R.def $^ $($*-DLLLIBS) $(DLLLIBS)
+ @$(RM) R.def R0.def R1.def
else
- @$(SORT) <Rdll.hide >R1.def
-endif
- @$(COMM) -23 R0.def R1.def >> R.def
+R.dll: $(OBJS) $(OBJS-EXTRA) $(MAINLIBS) $(EXTRALIBS) dllversion.o
+ @$(ECHO) EXPORTS > R.def
+ @$(NM) $^ | $(SED) -n $(SYMPAT) | LC_COLLATE=C $(SORT) | uniq > R0.def
+ @LC_COLLATE=C $(SORT) Rdll.hide > R1.def
+ @LC_COLLATE=C comm -23 R0.def R1.def >> R.def
$(DLL) -shared $(DLLFLAGS) $($*-DLLFLAGS) -o $@ R.def $^ $($*-DLLLIBS) $(DLLLIBS)
@$(RM) R.def R0.def R1.def
+endif
R.exp: $(OBJS) $(OBJS-EXTRA) $(MAINLIBS) $(EXTRALIBS) dllversion.o
@$(ECHO) LIBRARY R.dll > R.exp
@$(ECHO) EXPORTS >> R.exp
- @$(NM) $^ | $(SED) -n $(SYMPAT) | $(SORT) | uniq > R0.def
- @$(COMM) -23 R0.def Rdll.hide >> R.exp
+ @$(NM) $^ | $(SED) -n $(SYMPAT) | LC_COLLATE=C $(SORT) | uniq > R0.def
+ @LC_COLLATE=C comm -23 R0.def Rdll.hide >> R.exp
@$(RM) R0.def
+
Rdll: makeMakedeps libRblas.dll.a ../../$(BINDIR)/R.dll
../../$(BINDIR)/R.dll: FORCE
diff --git a/src/gnuwin32/MkRules.rules b/src/gnuwin32/MkRules.rules
index 0b94546..989975b 100644
--- a/src/gnuwin32/MkRules.rules
+++ b/src/gnuwin32/MkRules.rules
@@ -69,8 +69,8 @@ RESCOMP=$(BINPREF)windres $(RC_ARCH)
# as set by make
RM=rm -f
SED=sed
-SORT=LC_COLLATE=C sort
-COMM=LC_COLLATE=C comm
+SORT=sort
+COMM=comm
|
Thanks. I think I tried to be too clever in setting the COLLATE stuff. I plan to try Windows building myself soon, so I can catch these things. Radford On 9 July 2014 06:37, Yu Gong notifications@github.com wrote:
|
great,on windows i recommened Msys2 and mingw-build, better than rtools |
hello radford , following patch need apply to build pqR on windows .
The text was updated successfully, but these errors were encountered: