Hi,
I was following steps in
http://www.equi4.com/kitbuild.html
to build Tclkit for use with
http://fpx.de/fp/Software/Gorilla/
on and OpenBSD 4.0 Desktop on the amd64 architecture ( running OpenBSD
4.0 amd64 port )
make Tcl failed with the following error
=================================
mkdyn:
make tcl ... FAILED:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
make tcl
-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
Look in the file 'out/rest.home.local/mkdyn' for details.
ERROR: child process exited abnormally
Done.
=================================================================================
Could some one please tell me why this happened and suggest a remedy?
More Details are given below.
Thankyou so much :-)
Kind Regards
Siju
=========================================================================
# sh genkit B all
zlib:
make CC=gcc libz.a ... ok
vfs:
sh ../../../src/vfs/configure ... ok
make binaries ... ok
thrive:
sh ../../../src/thrive/configu... ok
make binaries ... ok
mk:
sh ../../../src/mk/unix/config... ok
make Mk4tcl.a ... ok
itcl:
sh ../../../src/itcl/itcl/conf... ok
make binaries ITCL_LIBRARY= ... ok
tk:
sh ../../../src/tk/unix/config... ok
make binaries LD_SEARCH_FLAGS=... ok
kitshlite:
gcc -c -I. -I/var/Software/Tcl... ok
gcc -o kitshlite pwb.o kitInit... ok
strip kitshlite ... ok
ls -l /var/Software/Tclkit/ins... ok
kitlite:
gcc -c -I. -I/var/Software/Tcl... ok
gcc -o kitlite pwb.o kitInit.o... ok
strip kitlite ... ok
ls -l /var/Software/Tclkit/ins... ok
kitsh:
gcc -c -I. -I/var/Software/Tcl... ok
g++ -o kitsh pwb.o kitInit.o r... ok
strip kitsh ... ok
ls -l /var/Software/Tclkit/ins... ok
kit:
gcc -c -I. -I/var/Software/Tcl... ok
g++ -o kit pwb.o kitInit.o rec... ok
strip kit ... ok
ls -l /var/Software/Tclkit/ins... ok
itcldyn:
sh ../../../src/itcl/itcl/conf... ok
make binaries ITCL_LIBRARY= ... ok
make install-binaries ... ok
tkdyn:
sh ../../../src/tk/unix/config... ok
make binaries LD_SEARCH_FLAGS=... ok
make install-binaries ... ok
thrivedyn:
sh ../../../src/thrive/configu... ok
make binaries ... ok
make install-binaries ... ok
mkdyn:
sh ../../../src/mk/unix/config... ok
make tcl ... FAILED:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
make tcl
-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
Look in the file 'out/rest.home.local/mkdyn' for details.
ERROR: child process exited abnormally
Done.
======================================================================
The file that is mentioned above to check for details has the following entries
======================================================================
# cat out/rest.home.local/mkdyn
RUN: sh ../../../src/mk/unix/configure
--prefix=/var/Software/Tclkit/noarch
--exec-prefix=/var/Software/Tclkit/install/rest.home.local
--with-tcl=/var/Software/Tclkit/src/tcl/generic
checking for Python configuration... not enabled
checking for Tcl headers... found /var/Software/Tclkit/src/tcl/generic/tcl.h
checking for Tcl package installation location...
/var/Software/Tclkit/src/tcl/generic/../lib
checking for building with threads... no (default)
checking for building as shared lib... yes (default)
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C++ preprocessor... g++ -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for long... yes
checking size of long... 8
checking for long long... yes
checking for mmap... yes
checking for memmove... yes
checking for bcopy... yes
checking for pthread_mutex_init in -lpthread... yes
configure: creating ./config.status
config.status: creating Makefileconfig.status: creating config.h
RUN: make tcl
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include
-I/var/Software/Tclkit/src/tcl/generic/generic
-I/var/Software/Tclkit/src/tcl/generic
../../../src/mk/unix/../tcl/mk4tcl.cpp
../../../src/mk/tcl/mk4tcl.cpp: In function `int SetCursorFromAny(Tcl_Interp*,
Tcl_Obj*)':
../../../src/mk/tcl/mk4tcl.cpp:1160: warning: cast to pointer from integer of
different size
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include
-I/var/Software/Tclkit/src/tcl/generic/generic
-I/var/Software/Tclkit/src/tcl/generic
../../../src/mk/unix/../tcl/mk4too.cpp
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include -I../../../src/mk/unix/../src -I.
../../../src/mk/unix/../src/column.cpp
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include -I../../../src/mk/unix/../src -I.
../../../src/mk/unix/../src/custom.cpp
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include -I../../../src/mk/unix/../src -I.
../../../src/mk/unix/../src/derived.cpp
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include -I../../../src/mk/unix/../src -I.
../../../src/mk/unix/../src/fileio.cpp
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include -I../../../src/mk/unix/../src -I.
../../../src/mk/unix/../src/field.cpp
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include -I../../../src/mk/unix/../src -I.
../../../src/mk/unix/../src/format.cpp
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include -I../../../src/mk/unix/../src -I.
../../../src/mk/unix/../src/handler.cpp
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include -I../../../src/mk/unix/../src -I.
../../../src/mk/unix/../src/persist.cpp
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include -I../../../src/mk/unix/../src -I.
../../../src/mk/unix/../src/remap.cpp
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include -I../../../src/mk/unix/../src -I.
../../../src/mk/unix/../src/std.cpp
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include -I../../../src/mk/unix/../src -I.
../../../src/mk/unix/../src/store.cpp
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include -I../../../src/mk/unix/../src -I.
../../../src/mk/unix/../src/string.cpp
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include -I../../../src/mk/unix/../src -I.
../../../src/mk/unix/../src/table.cpp
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include -I../../../src/mk/unix/../src -I.
../../../src/mk/unix/../src/univ.cpp
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include -I../../../src/mk/unix/../src -I.
../../../src/mk/unix/../src/view.cpp
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS
-I../../../src/mk/unix/../include -I../../../src/mk/unix/../src -I.
../../../src/mk/unix/../src/viewx.cpp
g++ -shared -o Mk4tcl.so mk4tcl.o mk4too.o column.o custom.o derived.o
fileio.o field.o format.o handler.o persist.o remap.o std.o store.o
string.o table.o univ.o view.o viewx.o -lpthread
/usr/bin/ld:
/usr/lib/gcc-lib/amd64-unknown-openbsd4.0/3.3.5/libgcc.a(unwind-dw2.o):
relocation R_X86_64_32S can not be used when making a shared object;
recompile with -fPIC
/usr/lib/gcc-lib/amd64-unknown-openbsd4.0/3.3.5/libgcc.a: could not
read symbols: Bad value
collect2: ld returned 1 exit status
*** Error code 1
Stop in /var/Software/Tclkit/build/rest.home.local/mkdyn (line 144 of Makefile).
ERROR: child process exited abnormally
while executing
"run make tcl"
("eval" body line 1)
invoked from within
"eval run $X(make) tcl"
("mkdyn" arm line 3)
invoked from within
"switch $target {
tcl {
config tcl$Z(85)/$X(unix) --disable-shared
#run $X(make) genstubs
eval run $X(make) binaries LD_SEARCH_FLAG..."
# ^D
===========================================================================