make install fails

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

make install fails

leledumbo
I've finally managed to build GST 3.2.4
make: done
make check: done, all passed (except 5 which is not run)
make install (taken from stderr):

gst-package: Invalid argument
gst: couldn't load system file 'Builtins.st': No such file or directory
gst: image bootstrap failed, use option --kernel-directory
make[3]: *** [install-data-hook] Error 1
make[2]: *** [install-data-am] Error 2
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1

previously, I got c:/gst/share/smalltalk/kernel not readable because kernel directory doesn't exist, so I create it manually before ended up above.

stdout also gives something interesting:

make[3]: Entering directory `/e/Sources/smalltalk-3.2.4'
XZIP="/c/fpc/bin/i386-win32/zip"  ./gst-tool.exe gst-package --kernel-dir "./ker
nel" --image gst.im --dist --copy --all-files \
          --destdir "" --target-dir="c:/gst/share/smalltalk" \
          --srcdir "." ./packages.xml
mkdir "E:\Sources\smalltalk-3.2.4\--target-dir=c:"
Object: File error: Invalid argument
SystemExceptions.FileError(Exception)>>pass (ExcHandling.st:385)
optimized [] in UndefinedObject>>executeStatements (scripts\Package.st:1195)
SystemExceptions.FileError(Exception)>>activateHandler: (ExcHandling.st:516)
SystemExceptions.FileError(Exception)>>signal (ExcHandling.st:254)
SystemExceptions.FileError class(Exception class)>>signal: (ExcHandling.st:161)
File class>>checkError: (File.st:84)
File class>>checkError (File.st:74)
File>>createDirectory (File.st:576)
Directory class>>create: (Directory.st:232)
optimized [] in File>>emitMkdir (scripts\Package.st:431)
Command class>>execute: (scripts\Package.st:446)
File>>emitMkdir (scripts\Package.st:431)
optimized [] in File>>emitMkdir (scripts\Package.st:429)
Command class>>execute: (scripts\Package.st:446)
File>>emitMkdir (scripts\Package.st:430)
optimized [] in File>>emitMkdir (scripts\Package.st:429)
Command class>>execute: (scripts\Package.st:446)
File>>emitMkdir (scripts\Package.st:430)
optimized [] in File>>emitMkdir (scripts\Package.st:429)
Command class>>execute: (scripts\Package.st:446)
File>>emitMkdir (scripts\Package.st:430)
optimized [] in File>>emitMkdir (scripts\Package.st:429)
Command class>>execute: (scripts\Package.st:446)
File>>emitMkdir (scripts\Package.st:430)
PkgDist>>runOnPackage: (scripts\Package.st:664)
Kernel.DisabledPackage(Package)>>runCommand: (scripts\Package.st:56)
optimized [] in PackageCommand>>run (scripts\Package.st:597)
[] in PackageFiles(Kernel.PackageGroup)>>do: (PkgLoader.st:118)
Set(HashedCollection)>>do: (HashedColl.st:201)
PackageFiles(Kernel.PackageGroup)>>do: (PkgLoader.st:118)
PkgDist(PackageCommand)>>run (scripts\Package.st:597)
PkgDist>>run (scripts\Package.st:623)
PkgDist(PackageCommand)>>runOnAll: (scripts\Package.st:603)
[] in PkgDist(Command)>>executeOnAll: (scripts\Package.st:529)
BlockClosure>>ensure: (BlkClosure.st:269)
ProcessVariable>>use:during: (ProcEnv.st:74)
CurrentCommand class(DynamicVariable class)>>use:during: (DynVariable.st:55)
PkgDist(Command)>>executeOnAll: (scripts\Package.st:523)
PackageManager>>run (scripts\Package.st:1182)
optimized [] in UndefinedObject>>executeStatements (scripts\Package.st:1189)
BlockClosure>>on:do: (BlkClosure.st:193)
UndefinedObject>>executeStatements (scripts\Package.st:1191)
/bin/mkdir -p c:/gst/var/lib/smalltalk
cd c:/gst/var/lib/smalltalk && \
           "/e/Sources/smalltalk-3.2.4/gst.exe" --no-user-files -iS \
            --kernel-dir "c:/gst/share/smalltalk/kernel" \
            --image "c:/gst/var/lib/smalltalk/gst.im" \
            -f "/e/Sources/smalltalk-3.2.4/scripts/Finish.st" \
            "c:/gst/var/lib/smalltalk"
make[3]: Leaving directory `/e/Sources/smalltalk-3.2.4'
make[2]: Leaving directory `/e/Sources/smalltalk-3.2.4'
make[1]: Leaving directory `/e/Sources/smalltalk-3.2.4'
Reply | Threaded
Open this post in threaded view
|

Re: make install fails

leledumbo
I tried to manually copy the kernel files and re-run, and here's the result:
make.zip
Reply | Threaded
Open this post in threaded view
|

Re: make install fails

leledumbo
Since nobody seems to know why, I would like to know the directory structure of the distribution package. I'll try to manually copy the required files.
Reply | Threaded
Open this post in threaded view
|

Re: make install fails

Paolo Bonzini-2
In reply to this post by leledumbo
On 04/15/2011 07:19 PM, leledumbo wrote:

> I've finally managed to build GST 3.2.4
> make: done
> make check: done, all passed (except 5 which is not run)
> make install (taken from stderr):
>
> gst-package: Invalid argument
> gst: couldn't load system file 'Builtins.st': No such file or directory
> gst: image bootstrap failed, use option --kernel-directory
> make[3]: *** [install-data-hook] Error 1
> make[2]: *** [install-data-am] Error 2
> make[1]: *** [install-am] Error 2
> make: *** [install-recursive] Error 1

Sorry for the delay.

Please always include the full output of configure and make.

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: make install fails

leledumbo
I found the core problem. It comes from this command:

XZIP="/c/fpc/bin/i386-win32/zip"  ./gst-tool.exe gst-package --kernel-dir "./kernel" --image gst.im --dist --copy --all-files --destdir "" --target-dir="c:/gst/share/smalltalk" --srcdir "." ./packages.xml

which is an interpretation of:

$(GST_PACKAGE) --dist --copy --all-files \
          --destdir "$(DESTDIR)" --target-dir="$(pkgdatadir)" \
          --srcdir "$(srcdir)" $(srcdir)/packages.xml

in install-data-hook target of the top level Makefile. That command gives first output:

mkdir "E:\Sources\smalltalk-3.2.4\--target-dir=c:"

which is really strange as it would be invalid directory name. After a few experiments (without looking at the source code) I believe there's something wrong with --target-dir and --destdir handler.

Here's the output of configure and make:
gst.zip
Reply | Threaded
Open this post in threaded view
|

Re: make install fails

Paolo Bonzini-2
On Wed, Apr 20, 2011 at 04:02, leledumbo <[hidden email]> wrote:

> I found the core problem. It comes from this command:
>
> XZIP="/c/fpc/bin/i386-win32/zip"  ./gst-tool.exe gst-package --kernel-dir
> "./kernel" --image gst.im --dist --copy --all-files --destdir ""
> --target-dir="c:/gst/share/smalltalk" --srcdir "." ./packages.xml
>
> which is an interpretation of:
>
> $(GST_PACKAGE) --dist --copy --all-files \
>          --destdir "$(DESTDIR)" --target-dir="$(pkgdatadir)" \
>          --srcdir "$(srcdir)" $(srcdir)/packages.xml
>
> in install-data-hook target of the top level Makefile. That command gives
> first output:
>
> mkdir "E:\Sources\smalltalk-3.2.4\--target-dir=c:"
>
> which is really strange as it would be invalid directory name.

Can you try adding this line:

Eval [Smalltalk arguments printNl]

at the top of scripts/Package.st? It may be that msys is playing games
with the paths.

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: make install fails

leledumbo
Here's that printNl output:

('--kernel-dir' './kernel' '--image' 'gst.im' '--dist' '--copy' '--all-files' '--destdir' '--target-dir=c:/gst/share/smalltalk' '--srcdir' '.' './packages.xml' )

It seems like --destdir is missing its real argument, so it takes --target-dir=c: instead (/gst/share/smalltalk trimmed somehow)