Discussion:
Building Make from git without guile fail.
Alexey Pavlov
2013-10-23 07:01:02 UTC
Permalink
Building latest MAKE from git with BAT file fail with

C:\Test\nativesrc\mingw-builds\make32>gcc -mthreads -gdwarf-2 -g3 -o
gnumake.exe variable.o rule.o remote-stub.o commands.o file.o
getloadavg.o default.o signame.o expand.o dir.o main.o getopt1.o
job.o output.o read.o version.o getopt.o arscan.o remake.o misc.o
hash.o strcache.o ar.o function.o vpath.o implicit.o loadapi.o load.o
glob.o fnmatch.o pathstuff.o posixfcn.o w32_misc.o sub_proc.o w32err.o
-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32
-lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32
-Wl,--out-implib=libgnumake-1.dll.a
main.o: In function `main':
C:\Test\nativesrc\mingw-builds\make32/main.c:1293: undefined reference
to `guile_gmake_setup'
collect2.exe: error: ld returned 1 exit status

Full build log in attach.

Regards,
Alexey.
Alexey Pavlov
2013-10-23 10:42:59 UTC
Permalink
Post by Alexey Pavlov
Building latest MAKE from git with BAT file fail with
C:\Test\nativesrc\mingw-builds\make32>gcc -mthreads -gdwarf-2 -g3 -o
gnumake.exe variable.o rule.o remote-stub.o commands.o file.o
getloadavg.o default.o signame.o expand.o dir.o main.o getopt1.o
job.o output.o read.o version.o getopt.o arscan.o remake.o misc.o
hash.o strcache.o ar.o function.o vpath.o implicit.o loadapi.o load.o
glob.o fnmatch.o pathstuff.o posixfcn.o w32_misc.o sub_proc.o w32err.o
-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32
-lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32
-Wl,--out-implib=libgnumake-1.dll.a
C:\Test\nativesrc\mingw-builds\make32/main.c:1293: undefined reference
to `guile_gmake_setup'
collect2.exe: error: ld returned 1 exit status
Full build log in attach.
Regards,
Alexey.
My proposed patch for it in attach.


Regards,
Alexey.
Eli Zaretskii
2013-10-23 16:35:41 UTC
Permalink
Date: Wed, 23 Oct 2013 11:01:02 +0400
=20
Building latest MAKE from git with BAT file fail with
=20
C:\Test\nativesrc\mingw-builds\make32>gcc -mthreads -gdwarf-2 -g3 -=
o
gnumake.exe variable.o rule.o remote-stub.o commands.o file.o
getloadavg.o default.o signame.o expand.o dir.o main.o getopt1.o
job.o output.o read.o version.o getopt.o arscan.o remake.o misc.o
hash.o strcache.o ar.o function.o vpath.o implicit.o loadapi.o load=
.o
glob.o fnmatch.o pathstuff.o posixfcn.o w32_misc.o sub_proc.o w32er=
r.o
-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32
-lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32
-Wl,--out-implib=3Dlibgnumake-1.dll.a
C:\Test\nativesrc\mingw-builds\make32/main.c:1293: undefined refere=
nce
to `guile_gmake_setup'
collect2.exe: error: ld returned 1 exit status
Right. Paul changed the arrangements with compiling guile.c, but
build_w32.bat didn't get the corresponding update.
Full build log in attach.
$ cmd /c 'build_w32.bat gcc'
=20
sed: -e expression #4, char 7: unterminated `s' command
=91=AA=AE=AF=A8=E0=AE=A2=A0=AD=AE =E4=A0=A9=AB=AE=A2: 1.
What is this Sed error about? It doesn't happen to me.
My proposed patch for it in attach.
Thanks, I fixed it slightly differently, and also took care of the
MSVC build. In addition, makeint.h needed a change to avoid this
compiler warning when building without Guile:

C:\Test\nativesrc\mingw-builds\make32>gcc -mthreads -Wall -gdwarf-2=
-g3 -O2 -I. -I./glob -I./w32/include -DWINDOWS32 -DHAVE_CONFIG_H -c=
main.c=20
main.c: In function 'main':
main.c:1293:3: warning: implicit declaration of function 'guile_gma=
ke_setup' [-Wimplicit-function-declaration]
guile_gmake_setup (NILF);
^
=20
Please try the latest git.

Thanks.
Alexey Pavlov
2013-10-23 17:20:06 UTC
Permalink
Post by Eli Zaretskii
Date: Wed, 23 Oct 2013 11:01:02 +0400
From: Alexey Pavlov
Building latest MAKE from git with BAT file fail with
C:\Test\nativesrc\mingw-builds\make32>gcc -mthreads -gdwarf-2 -g3 -o
gnumake.exe variable.o rule.o remote-stub.o commands.o file.o
getloadavg.o default.o signame.o expand.o dir.o main.o getopt1.o
job.o output.o read.o version.o getopt.o arscan.o remake.o misc.o
hash.o strcache.o ar.o function.o vpath.o implicit.o loadapi.o load.o
glob.o fnmatch.o pathstuff.o posixfcn.o w32_misc.o sub_proc.o w32err.o
-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32
-lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32
-Wl,--out-implib=libgnumake-1.dll.a
C:\Test\nativesrc\mingw-builds\make32/main.c:1293: undefined reference
to `guile_gmake_setup'
collect2.exe: error: ld returned 1 exit status
Right. Paul changed the arrangements with compiling guile.c, but
build_w32.bat didn't get the corresponding update.
Full build log in attach.
$ cmd /c 'build_w32.bat gcc'
sed: -e expression #4, char 7: unterminated `s' command
óËÏÐÉÒÏ×ÁÎÏ ÆÁÊÌÏ×: 1.
What is this Sed error about? It doesn't happen to me.
This error in highlighted peace

sed -e "s/;.*//" -e "/^[ \t]*$/d" -e "s/\"/\\\\\"/g" -e *"s/$/
\\/"*gmk-default.scm >> gmk-default.h
Post by Eli Zaretskii
My proposed patch for it in attach.
Thanks, I fixed it slightly differently, and also took care of the
MSVC build. In addition, makeint.h needed a change to avoid this
C:\Test\nativesrc\mingw-builds\make32>gcc -mthreads -Wall -gdwarf-2 -g3
-O2 -I. -I./glob -I./w32/include -DWINDOWS32 -DHAVE_CONFIG_H -c main.c
Post by Eli Zaretskii
main.c:1293:3: warning: implicit declaration of function
'guile_gmake_setup' [-Wimplicit-function-declaration]
Post by Eli Zaretskii
guile_gmake_setup (NILF);
^
Please try the latest git.
Build fine.
Post by Eli Zaretskii
Thanks.
Eli Zaretskii
2013-10-23 18:05:23 UTC
Permalink
Date: Wed, 23 Oct 2013 21:20:06 +0400
=20
Post by Eli Zaretskii
sed: -e expression #4, char 7: unterminated `s' command
=F3=CB=CF=D0=C9=D2=CF=D7=C1=CE=CF =C6=C1=CA=CC=CF=D7: 1.
What is this Sed error about? It doesn't happen to me.
This error in highlighted peace
=20
sed -e "s/;.*//" -e "/^[ \t]*$/d" -e "s/\"/\\\\\"/g" -e "s/$/ \\/" =
gmk-default.scm >> gmk-default.h
^^^^^^^^^^

What's wrong with that part? Which port of Sed are you using? If
it's an MSYS port, perhaps try a native/MinGW port.
Post by Eli Zaretskii
Please try the latest git.
=20
Build fine.
Thanks for testing.
Alexpux
2013-10-23 18:15:16 UTC
Permalink
Post by Eli Zaretskii
Date: Wed, 23 Oct 2013 21:20:06 +0400
Post by Eli Zaretskii
sed: -e expression #4, char 7: unterminated `s' command
Скопировано файлов: 1.
What is this Sed error about? It doesn't happen to me.
This error in highlighted peace
sed -e "s/;.*//" -e "/^[ \t]*$/d" -e "s/\"/\\\\\"/g" -e "s/$/ \\/" gmk-default.scm >> gmk-default.h
^^^^^^^^^^
What's wrong with that part? Which port of Sed are you using? If
it's an MSYS port, perhaps try a native/MinGW port.
I use MSYS2 sed-4.2.2. Try to find solution.
Post by Eli Zaretskii
Post by Eli Zaretskii
Please try the latest git.
Build fine.
Thanks for testing.
Paul Smith
2013-10-24 18:51:33 UTC
Permalink
Post by Eli Zaretskii
Right. Paul changed the arrangements with compiling guile.c, but
build_w32.bat didn't get the corresponding update.
Yeah, that was a particularly lame change on my part. I needed more
sleep or something. Thanks for the pick-up Eli.

Loading...