Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[bug] Failed to installed dt
01-10-2018, 05:59 PM
Post: #1
[bug] Failed to installed dt
I failed to install dt on g1b. The portal is g1b-6
http://tab.d-thinker.org/showthread.php?...http://tab.d-thinker.org/showthread.php?tid=10327&pid=6146

Quote:>> Run basic quiz.
[Wed Jan 10 17:54:12 CST 2018] null.sh => null.c In file included from null.c:1:0:
/home/sage/think/library/stdlib/stdio.h:9:20: fatal error: stdlib.h: No such file or directory
#include "stdlib.h"
^
compilation terminated.
compiling null.c failed!
cp: cannot stat ‘null.c.bin’: No such file or directory
FAIL
[Wed Jan 10 17:54:12 CST 2018] newr.sh => In file included from newr.c:1:0:
/home/sage/think/library/stdlib/stdio.h:9:20: fatal error: stdlib.h: No such file or directory
#include "stdlib.h"
^
compilation terminated.
compiling newr.c failed!
cp: cannot stat ‘newr.bin’: No such file or directory
newr.c FAIL
WARNING scheduler: pid file scheduler.pid is missing. It may already have been killed.
WARNING memhome: pid file memhome.pid is missing. It may already have been killed.
The thinker is killed.
You can start a new program now.
make[2]: *** [install] Error 1
make[2]: Leaving directory `/tmp/root_install1_workdir/think/think-ship/d-thinker/dt'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/tmp/root_install1_workdir/think/think-ship'
/thinker/local/shed/installation/g1b/think.tar.gz failed with exit status 2
to install /thinker/local/shed/installation/g1b/think.tar.gz
installx think returned 2
ERROR install_quietly is unable to install think [Wed Jan 10 17:54:13 CST 2018]
Find all posts by this user
Quote this message in a reply
01-10-2018, 06:00 PM
Post: #2
RE: [bug] Failed to installed dt
@zma

Please have a look
Find all posts by this user
Quote this message in a reply
01-10-2018, 06:22 PM
Post: #3
RE: [bug] Failed to installed dt
Some header files are moved to dc dir recently. dcc/dld use old values still.

Fixed the missing implementation http://tab.d-thinker.org/showthread.php?tid=5686 . Updated dt. Should be good now.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-11-2018, 09:22 AM (This post was last modified: 01-11-2018 09:22 AM by xwcwt.)
Post: #4
RE: [bug] Failed to installed dt
Limbo1 says dt install failed. I had placed the updated package after reply on #3:

Quote: siteup limbo1-ph failed with return code 2

siteup starts a new log

Warning - log file is not set... to use /thinker/local/today/users/root/siteup.log for this program

Install modules listed in pls.pcf

Installing 15 packages

Installing with decent_init=

Install packages in /tmp/root_InstPkgs_workdir, logging to /thinker/local/today/users/root/siteup.log

skip site mic because /thinker/etc/soft/site.pcf is absent

installx is unable to install think

install_quietly is unable to install think

make: *** [install] Error 96

UpdateVM completed (2)

Killed by signal 15.

Killed by signal 15.

Makefile:22: recipe for target 'start-tc' failed

make[1]: *** [start-tc] Error 124

make[1]: Leaving directory '/tmp/root_install1_workdir/limbo-ph/limbo-ph'

/thinker/dstore/DStorage/Limbo/Packages/limbo-ph.tar.gz failed with exit status 2

to install /thinker/dstore/DStorage/Limbo/Packages/limbo-ph.tar.gz

installx limbo-ph returned 2

@zma: please kindly take a look.
Find all posts by this user
Quote this message in a reply
01-11-2018, 10:15 AM
Post: #5
RE: [bug] Failed to installed dt
(01-11-2018 09:22 AM)xwcwt Wrote:  Limbo1 says dt install failed. I had placed the updated package after reply on #3:

Quote: siteup limbo1-ph failed with return code 2

siteup starts a new log

Warning - log file is not set... to use /thinker/local/today/users/root/siteup.log for this program

Install modules listed in pls.pcf

Installing 15 packages

Installing with decent_init=

Install packages in /tmp/root_InstPkgs_workdir, logging to /thinker/local/today/users/root/siteup.log

skip site mic because /thinker/etc/soft/site.pcf is absent

installx is unable to install think

install_quietly is unable to install think

make: *** [install] Error 96

UpdateVM completed (2)

Killed by signal 15.

Killed by signal 15.

Makefile:22: recipe for target 'start-tc' failed

make[1]: *** [start-tc] Error 124

make[1]: Leaving directory '/tmp/root_install1_workdir/limbo-ph/limbo-ph'

/thinker/dstore/DStorage/Limbo/Packages/limbo-ph.tar.gz failed with exit status 2

to install /thinker/dstore/DStorage/Limbo/Packages/limbo-ph.tar.gz

installx limbo-ph returned 2

@zma: please kindly take a look.



[Thu Jan 11 06:32:44 CST 2018] null.sh => null.c In file included from null.c:1:0:
/home/sage/think/library/stdlib/stdio.h:9:20: fatal error: stdlib.h: No such file or directory
#include "stdlib.h"
^
compilation terminated.
compiling null.c failed!
cp: cannot stat ‘null.c.bin’: No such file or directory
FAIL



this is confirmed a bug. The set-env.sh is not correct:


export DC_INC=$think_base/library/stdlib
export DC_LIB=$think_base/library/stdlib
Visit this user's website Find all posts by this user
Quote this message in a reply
01-11-2018, 10:57 AM
Post: #6
RE: [bug] Failed to installed dt
(01-11-2018 10:15 AM)zma Wrote:  
(01-11-2018 09:22 AM)xwcwt Wrote:  Limbo1 says dt install failed. I had placed the updated package after reply on #3:

Quote: siteup limbo1-ph failed with return code 2

siteup starts a new log

Warning - log file is not set... to use /thinker/local/today/users/root/siteup.log for this program

Install modules listed in pls.pcf

Installing 15 packages

Installing with decent_init=

Install packages in /tmp/root_InstPkgs_workdir, logging to /thinker/local/today/users/root/siteup.log

skip site mic because /thinker/etc/soft/site.pcf is absent

installx is unable to install think

install_quietly is unable to install think

make: *** [install] Error 96

UpdateVM completed (2)

Killed by signal 15.

Killed by signal 15.

Makefile:22: recipe for target 'start-tc' failed

make[1]: *** [start-tc] Error 124

make[1]: Leaving directory '/tmp/root_install1_workdir/limbo-ph/limbo-ph'

/thinker/dstore/DStorage/Limbo/Packages/limbo-ph.tar.gz failed with exit status 2

to install /thinker/dstore/DStorage/Limbo/Packages/limbo-ph.tar.gz

installx limbo-ph returned 2

@zma: please kindly take a look.



[Thu Jan 11 06:32:44 CST 2018] null.sh => null.c In file included from null.c:1:0:
/home/sage/think/library/stdlib/stdio.h:9:20: fatal error: stdlib.h: No such file or directory
#include "stdlib.h"
^
compilation terminated.
compiling null.c failed!
cp: cannot stat ‘null.c.bin’: No such file or directory
FAIL



this is confirmed a bug. The set-env.sh is not correct:


export DC_INC=$think_base/library/stdlib
export DC_LIB=$think_base/library/stdlib

Fixed in cod://dt a24ded18b7cf290e4b9f5af40cf14cf800c954da .

Tested working in limbo1-3. Pushed to Limbo GCP for later tests.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-11-2018, 01:15 PM
Post: #7
RE: [bug] Failed to installed dt
http://tab.d-thinker.org/showthread.php?...http://tab.d-thinker.org/showthread.php?tid=10327&pid=6155

Failed AddClusterUser didn't stop think-pre to continue its work. I will fix it.
Find all posts by this user
Quote this message in a reply
01-11-2018, 01:18 PM (This post was last modified: 01-11-2018 01:19 PM by rayluk.)
Post: #8
RE: [bug] Failed to installed dt
(01-11-2018 01:15 PM)rayluk Wrote:  http://tab.d-thinker.org/showthread.php?...http://tab.d-thinker.org/showthread.php?tid=10327&pid=6155

Failed AddClusterUser didn't stop think-pre to continue its work. I will fix it.

@zma

I don't have the write permission on dt. Since the patch is small, please help me to add it.

Just change corresponding lines in cod://dt/src/pre/Makefile to following.
Quote: 37 $(acu) --username $(think_user) --password thinker2019 || rr=$$?
38 if (( rr != 18 && rr != 0 )); then
39 exit $$rr
40 fi
Find all posts by this user
Quote this message in a reply
01-11-2018, 01:25 PM (This post was last modified: 01-11-2018 01:30 PM by zma.)
Post: #9
RE: [bug] Failed to installed dt
(01-11-2018 01:18 PM)rayluk Wrote:  
(01-11-2018 01:15 PM)rayluk Wrote:  http://tab.d-thinker.org/showthread.php?...http://tab.d-thinker.org/showthread.php?tid=10327&pid=6155

Failed AddClusterUser didn't stop think-pre to continue its work. I will fix it.

@zma

I don't have the write permission on dt. Since the patch is small, please help me to add it.

Just change corresponding lines in cod://dt/src/pre/Makefile to following.
Quote: 37 $(acu) --username $(think_user) --password thinker2019 || rr=$$?
38 if (( rr != 18 && rr != 0 )); then
39 exit $$rr
40 fi

Some further fix should be made

Code:
diff --git a/src/pre/Makefile b/src/pre/Makefile
index 8f587bb..b97636b 100644
--- a/src/pre/Makefile
+++ b/src/pre/Makefile
@@ -34,9 +34,9 @@ install:
            dexer "userdel $(think_user);"
            dexer 'rm /tmp/dt* /tmp/pmem*'
          fi
-         $(acu) --username $(think_user) --password thinker2019 || rr=$?
-         if (( rr != 18 && rr != 0 )); then
-           exit $rr
+         $(acu) --username $(think_user) --password thinker2019 || rr=$$?
+         if (( $$rr != 18 && $$rr != 0 )); then
+           exit $$rr
          fi
        fi
        # if [[ "$(glad_user)" != "" ]]; then

This is an example of the aspect of bug prone of bash scripts in Makefile. After the first writer, and a bug fix by another engineer even when it is known having bugs, there are still bugs in this simple 4 lines of code.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: