The mystery appears to have been solved. It seems jengine segfaults when $TMPDIR is longer than 27 characters. Inside a Slurm job it is getting set to something like "/tmp/jobs/$USERNAME/63964409" (so that the Slurm "epilog" can remove any leftover temporary files at the end of the job), and my user name is longer than the support guy's user name.
Does the 27 character limit make sense? Is there any reason not to increase this? On Wed, Jun 7, 2017 at 11:10 PM, Ric Sherlock <tikk...@gmail.com> wrote: > I meant that I got the same result when I ran the commands above. I didn't > check the file itself. > > When I do: > gdb ./jconsole core.xxxx > > run > then J seems to work OK. > > I've attached the libj.so > > On Wed, Jun 7, 2017 at 10:43 PM, bill lam <bbill....@gmail.com> wrote: > >> What is no difference? Can you email me your libj.so to try? >> >> Ср, 07 июн 2017, Ric Tikkanz написал(а): >> > Tried again with -ggdb with no difference >> > >> > On Wed, Jun 7, 2017 at 10:22 PM, Ric Sherlock <tikk...@gmail.com> >> wrote: >> > >> > > Can try again with that. I used it the first time in build_libj but >> gdb >> > > was reporting no symbols, googling around for using gdb I found a >> bunch of >> > > pages suggesting -g. Used that with no change, until I realised I >> needed to >> > > change build_jconsole.sh too. >> > > >> > > On Wed, Jun 7, 2017 at 10:17 PM, bill lam <bbill....@gmail.com> >> wrote: >> > > >> > >> Not sure what had gone wrong. I usually build debug version >> > >> with -ggdb since this work better with gdb. >> > >> >> > >> What was the problem with -ggdb ? >> > >> >> > >> Ср, 07 июн 2017, Ric Tikkanz написал(а): >> > >> > Thanks Bill, >> > >> > I made the change you suggested (but used -g rather than -ggdb) as >> well >> > >> as >> > >> > a similar change in build_jconsole.sh and then ran through the make >> > >> process >> > >> > including install.sh and clean.sh >> > >> > >> > >> > I started a SLURM environment, set $ ulimit -c unlimited >> > >> > I then ran $ gdb ./jconsole >> > >> > which generated a core dump file. >> > >> > >> > >> > I then exited the SLURM environment and ran gdb on the core dump, >> with >> > >> the >> > >> > result below. >> > >> > Looks less than illuminating? Am I missing something? >> > >> > >> > >> > $ gdb ./jconsole core.10302 >> > >> > GNU gdb (GDB) 7.12 >> > >> > Copyright (C) 2016 Free Software Foundation, Inc. >> > >> > License GPLv3+: GNU GPL version 3 or later < >> > >> http://gnu.org/licenses/gpl.html >> > >> > > >> > >> > This is free software: you are free to change and redistribute it. >> > >> > There is NO WARRANTY, to the extent permitted by law. Type "show >> > >> copying" >> > >> > and "show warranty" for details. >> > >> > This GDB was configured as "x86_64-pc-linux-gnu". >> > >> > Type "show configuration" for configuration details. >> > >> > For bug reporting instructions, please see: >> > >> > <http://www.gnu.org/software/gdb/bugs/>. >> > >> > Find the GDB manual and other documentation resources online at: >> > >> > <http://www.gnu.org/software/gdb/documentation/>. >> > >> > For help, type "help". >> > >> > Type "apropos word" to search for commands related to "word"... >> > >> > Reading symbols from ./jconsole...done. >> > >> > >> > >> > warning: core file may not match specified executable file. >> > >> > [New LWP 10302] >> > >> > Core was generated by `gdb ./jconsole'. >> > >> > Program terminated with signal SIGSEGV, Segmentation fault. >> > >> > #0 0x00000000006e2e9b in ?? () >> > >> > (gdb) bt >> > >> > #0 0x00000000006e2e9b in ?? () >> > >> > #1 0x0000000000000001 in ?? () >> > >> > #2 0x00002b0af52248c8 in ?? () >> > >> > #3 0x54552e53555f6e65 in ?? () >> > >> > #4 0x0000000000000040 in ?? () >> > >> > #5 0x0000000000e69520 in ?? () >> > >> > #6 0x00007fff8820d0e0 in ?? () >> > >> > #7 0x00007fff8820d1e0 in ?? () >> > >> > #8 0x0000000000000000 in ?? () >> > >> > >> > >> > >> > >> > On Wed, Jun 7, 2017 at 6:01 PM, bill lam <bbill....@gmail.com> >> wrote: >> > >> > >> > >> > > Assuming you are using gcc, >> > >> > > change a line in build_libj.sh >> > >> > > >> > >> > > common="$OPENMP -fPIC -O1 -fwrapv ... >> > >> > > >> > >> > > to >> > >> > > >> > >> > > common="$OPENMP -fPIC -ggdb -O0 -fwrapv ... >> > >> > > >> > >> > > and invoke ./jconsole as gdb ./jconsole >> > >> > > run and wait for segfault. >> > >> > > >> > >> > > I got no idea what had happened. >> > >> > > >> > >> > > Ср, 07 июн 2017, Ric Tikkanz написал(а): >> > >> > > > Ok so while I can successfully run jconsole and scripts on a >> build >> > >> node >> > >> > > on >> > >> > > > the cluster (all tests pass), whenever I try to run J via SLURM >> > >> workload >> > >> > > > manager <https://slurm.schedmd.com/> using srun or sbatch I >> get a >> > >> > > Segfault >> > >> > > > and a core dump. >> > >> > > > >> > >> > > > I'm working with a Cluster support guy who is able to run >> fine, but >> > >> can >> > >> > > > confirm that if he logs in as me he gets the same error. I've >> > >> copied his >> > >> > > > last message below in case it is helpful to those of you who >> know >> > >> more >> > >> > > > about the internals of the system. >> > >> > > > >> > >> > > > My questions are: >> > >> > > > 1. Is compiling J with debugger support relatively easy and >> if so >> > >> are >> > >> > > > there any instructions? >> > >> > > > 2. Does the stack listing below suggest any potential >> problems >> > >> > > > >> > >> > > > Note I'm compiling the up-to-date master branch ( 05073eb >> > >> 2017-06-05 ) of >> > >> > > > the github repository. >> > >> > > > >> > >> > > > ====== message from support guy ====== >> > >> > > > OK now I can reproduce it when running as you, but I still >> don't >> > >> know >> > >> > > what >> > >> > > > the difference is. It might help to compile it with debugging >> > >> support - >> > >> > > > currently I can get a listing of the stack at the point it dies >> > >> (below) >> > >> > > but >> > >> > > > not any line numbers or values of variables. From the source >> code it >> > >> > > seems >> > >> > > > the deepest part of this (*jtgaf*) is part of jengine's memory >> > >> management >> > >> > > > code, which I guess isn't a surprise given that the symprom is >> a >> > >> > > segfault. >> > >> > > > As you can see, the function names are not very >> self-explanatory. >> > >> > > > >> > >> > > > #0 0x00002b2de75608d6 in jtgaf () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #1 0x00002b2de7560ad1 in jtgafv () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #2 0x00002b2de7560bdd in jtga () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #3 0x00002b2de7655be0 in jtindexofsub () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #4 0x00002b2de7659522 in jtless () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #5 0x00002b2de751b2d9 in jtdfs2 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #6 0x00002b2de75647a7 in jtparsea () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #7 0x00002b2de754cf69 in jtparseas () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #8 0x00002b2de754d592 in jtparsex () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #9 0x00002b2de7548152 in jtxdefn () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #10 0x00002b2de754923b in xn1 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #11 0x00002b2de751b286 in jtdfs1 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #12 0x00002b2de756466d in jtparsea () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #13 0x00002b2de75650e1 in jtparse () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #14 0x00002b2de75674dd in jtimmex () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #15 0x00002b2de771f96e in jtline () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #16 0x00002b2de771fe52 in jtlinf () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #17 0x00002b2de77204db in jtscm00 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #18 0x00002b2de751b286 in jtdfs1 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #19 0x00002b2de756466d in jtparsea () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #20 0x00002b2de754cf69 in jtparseas () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #21 0x00002b2de754d592 in jtparsex () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #22 0x00002b2de7548152 in jtxdefn () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #23 0x00002b2de754923b in xn1 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #24 0x00002b2de751e8e9 in on1 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #25 0x00002b2de751e8e9 in on1 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #26 0x00002b2de751b286 in jtdfs1 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #27 0x00002b2de756fef8 in jtunquote () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #28 0x00002b2de757005b in jtunquote1 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #29 0x00002b2de751b286 in jtdfs1 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #30 0x00002b2de756465e in jtparsea () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #31 0x00002b2de754cf69 in jtparseas () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #32 0x00002b2de754d592 in jtparsex () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #33 0x00002b2de7548152 in jtxdefn () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #34 0x00002b2de754923b in xn1 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #35 0x00002b2de751b286 in jtdfs1 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #36 0x00002b2de756466d in jtparsea () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #37 0x00002b2de75650e1 in jtparse () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #38 0x00002b2de75674dd in jtimmex () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #39 0x00002b2de771f96e in jtline () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #40 0x00002b2de771fe52 in jtlinf () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #41 0x00002b2de77204db in jtscm00 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #42 0x00002b2de751b286 in jtdfs1 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #43 0x00002b2de756466d in jtparsea () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #44 0x00002b2de75650e1 in jtparse () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #45 0x00002b2de75674dd in jtimmex () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #46 0x00002b2de771f96e in jtline () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #47 0x00002b2de771fe52 in jtlinf () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #48 0x00002b2de77204db in jtscm00 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #49 0x00002b2de751b286 in jtdfs1 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #50 0x00002b2de756466d in jtparsea () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #51 0x00002b2de754cf69 in jtparseas () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #52 0x00002b2de754d592 in jtparsex () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #53 0x00002b2de7548152 in jtxdefn () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #54 0x00002b2de754923b in xn1 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #55 0x00002b2de751b286 in jtdfs1 () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #56 0x00002b2de756466d in jtparsea () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #57 0x00002b2de75650e1 in jtparse () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #58 0x00002b2de75674dd in jtimmex () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #59 0x00002b2de755b6f2 in jdo () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #60 0x00002b2de755b840 in JDo () from >> > >> > > > /gpfs1m/projects/nesi00187/tools/j64_806/bin/libj.so >> > >> > > > #61 0x00000000004013c0 in jedo () >> > >> > > > #62 0x0000000000401770 in jefirst () >> > >> > > > #63 0x0000000000401307 in main () >> > >> > > > >> > >> > > > >> > >> > > > On Sun, Jun 4, 2017 at 3:00 AM, Ric Sherlock < >> tikk...@gmail.com> >> > >> wrote: >> > >> > > > >> > >> > > > > Yes it will be more resilient to upgrades too I imagine! >> > >> > > > > >> > >> > > > > On Sun, Jun 4, 2017 at 2:45 AM, bill lam < >> bbill....@gmail.com> >> > >> wrote: >> > >> > > > > >> > >> > > > >> I think link to the major version is sufficient, >> > >> > > > >> >> > >> > > > >> +LINK=" -l:libedit.so.0 -ldl -o jconsole " >> > >> > > > >> >> > >> > > > >> Вс, 04 июн 2017, Ric Tikkanz написал(а): >> > >> > > > >> > Thanks Bill, >> > >> > > > >> > I ended up just editing the make/build_jconsole.sh as >> follows. >> > >> This >> > >> > > > >> seems >> > >> > > > >> > to have done the trick for now so I can make some >> progress! >> > >> > > > >> > >> > >> > > > >> > ... >> > >> > > > >> > linux_j64) >> > >> > > > >> > COMPILE="$common -DREADLINE" >> > >> > > > >> > -LINK=" -ledit -ldl -o jconsole " >> > >> > > > >> > +LINK=" -l:libedit.so.0.0.27 -ldl -o jconsole " >> > >> > > > >> > ;; >> > >> > > > >> > ... >> > >> > > > >> > >> > >> > > > >> > On Sun, Jun 4, 2017 at 12:13 AM, bill lam < >> bbill....@gmail.com >> > >> > >> > >> > > wrote: >> > >> > > > >> > >> > >> > > > >> > > An easy way is not define READLINE in build but then you >> > >> will miss >> > >> > > > >> readline >> > >> > > > >> > > facility. >> > >> > > > >> > > >> > >> > > > >> > > or symlink the file under your home folder and use >> > >> LB_LIBRARY_PATH >> > >> > > > >> > > environment variable. >> > >> > > > >> > > >> > >> > > > >> > > On 3 Jun, 2017 8:04 pm, "Ric Sherlock" < >> tikk...@gmail.com> >> > >> wrote: >> > >> > > > >> > > >> > >> > > > >> > > > That is why I was thinking I should build the system >> on >> > >> the rhel >> > >> > > > >> system? >> > >> > > > >> > > > i.e. to make sure it has the versions that I'm >> linking to? >> > >> > > > >> > > > >> > >> > > > >> > > > I've had a go at this and am having an issue finding >> > >> libedit.so >> > >> > > > >> > > > $ $jmake/build_jconsole.sh j64 >> > >> > > > >> > > > jconsole >> > >> > > > >> > > > -fPIC -O1 -Wextra -Wno-unused-parameter -DREADLINE >> > >> > > > >> > > > -ledit -ldl -o jconsole >> > >> > > > >> > > > cc jconsole.o jeload.o -ledit -ldl -o jconsole >> > >> > > > >> > > > /usr/bin/ld: cannot find -ledit >> > >> > > > >> > > > collect2: ld returned 1 exit status >> > >> > > > >> > > > make: *** [jconsole] Error 1 >> > >> > > > >> > > > cp: cannot stat `jconsole': No such file or directory >> > >> > > > >> > > > >> > >> > > > >> > > > I've found a copy on the system at >> /usr/lib64/libedit.so.0 >> > >> or >> > >> > > > >> > > > /usr/lib64/libedit.so.0.0.27 . If I had sudo access >> I'd >> > >> create >> > >> > > > >> symlink to >> > >> > > > >> > > > /usr/lib64/libedit.so but I don't. What other options >> do I >> > >> have? >> > >> > > > >> > > > >> > >> > > > >> > > > >> > >> > > > >> > > > On Sat, Jun 3, 2017 at 11:45 PM, bill lam < >> > >> bbill....@gmail.com> >> > >> > > > >> wrote: >> > >> > > > >> > > > >> > >> > > > >> > > > > Since you built on ubuntu 16.04, I suspect its >> glibc is >> > >> still >> > >> > > > >> newer >> > >> > > > >> > > than >> > >> > > > >> > > > > that on rhel. >> > >> > > > >> > > > > >> > >> > > > >> > > > > On 3 Jun, 2017 7:29 pm, "Ric Sherlock" < >> > >> tikk...@gmail.com> >> > >> > > wrote: >> > >> > > > >> > > > > >> > >> > > > >> > > > > > Hi Bill, >> > >> > > > >> > > > > > Thanks based on that suggestion I checked out >> master >> > >> which >> > >> > > > >> > > successfully >> > >> > > > >> > > > > > built. Tests running now. >> > >> > > > >> > > > > > >> > >> > > > >> > > > > > So am I right in thinking that my next move is to >> > >> build the >> > >> > > > >> system on >> > >> > > > >> > > > the >> > >> > > > >> > > > > > Red Hat server? >> > >> > > > >> > > > > > >> > >> > > > >> > > > > > On Sat, Jun 3, 2017 at 11:19 PM, bill lam < >> > >> > > bbill....@gmail.com> >> > >> > > > >> > > wrote: >> > >> > > > >> > > > > > >> > >> > > > >> > > > > > > copy the file build_jconsole.sh from j806 head, >> > >> there the >> > >> > > > >> > > > > > > dependency on ncursesw has been killed off. >> > >> > > > >> > > > > > > >> > >> > > > >> > > > > > > Сб, 03 июн 2017, Ric Tikkanz написал(а): >> > >> > > > >> > > > > > > > Hi guys, >> > >> > > > >> > > > > > > > I'm trying to build J from source - the main >> > >> incentive >> > >> > > > >> being to >> > >> > > > >> > > try >> > >> > > > >> > > > > and >> > >> > > > >> > > > > > > get >> > >> > > > >> > > > > > > > it running on a research compute cluster. (see >> > >> post in >> > >> > > beta >> > >> > > > >> > > forum) >> > >> > > > >> > > > > > > > >> > >> > > > >> > > > > > > > I thought I'd start simple by cloning the >> source >> > >> from >> > >> > > > >> github and >> > >> > > > >> > > > > > building >> > >> > > > >> > > > > > > > the j64-805 release branch on my local Ubuntu >> 16.04 >> > >> > > > >> machine, but >> > >> > > > >> > > > came >> > >> > > > >> > > > > > > > across a problem. >> > >> > > > >> > > > > > > > >> > >> > > > >> > > > > > > > ~$ $jmake/build_jconsole.sh j64 >> > >> > > > >> > > > > > > > jconsole >> > >> > > > >> > > > > > > > -fPIC -O1 -Wextra -DREADLINE >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/unix/libedit64.a >> -ldl >> > >> > > > >> -lncursesw -o >> > >> > > > >> > > > > > jconsole >> > >> > > > >> > > > > > > > cc -fPIC -O1 -Wextra -DREADLINE -c -o >> > >> jconsole.o >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/jsrc/jconsole.c >> > >> > > > >> > > > > > > > cc -fPIC -O1 -Wextra -DREADLINE -c -o >> jeload.o >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/jsrc/jeload.c >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/jsrc/jeload.c: In >> > >> function >> > >> > > > >> ‘jepath’: >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/js >> rc/jeload.c:139:3: >> > >> > > warning: >> > >> > > > >> > > ignoring >> > >> > > > >> > > > > > > return >> > >> > > > >> > > > > > > > value of ‘getcwd’, declared with attribute >> > >> > > > >> warn_unused_result >> > >> > > > >> > > > > > > > [-Wunused-result] >> > >> > > > >> > > > > > > > getcwd(path,sizeof(path)); >> > >> > > > >> > > > > > > > ^ >> > >> > > > >> > > > > > > > cc jconsole.o jeload.o >> > >> /home/rishe0/gitdev/jsource/ >> > >> > > > >> > > > > unix/libedit64.a >> > >> > > > >> > > > > > > -ldl >> > >> > > > >> > > > > > > > -lncursesw -o jconsole >> > >> > > > >> > > > > > > > /usr/bin/ld: cannot find -lncursesw >> > >> > > > >> > > > > > > > collect2: error: ld returned 1 exit status >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/make/makefile:5: >> > >> recipe for >> > >> > > > >> target >> > >> > > > >> > > > > > > 'jconsole' >> > >> > > > >> > > > > > > > failed >> > >> > > > >> > > > > > > > make: *** [jconsole] Error 1 >> > >> > > > >> > > > > > > > cp: cannot stat 'jconsole': No such file or >> > >> directory >> > >> > > > >> > > > > > > > >> > >> > > > >> > > > > > > > From the above it appears that ncursesw is not >> > >> found. >> > >> > > This >> > >> > > > >> seems >> > >> > > > >> > > to >> > >> > > > >> > > > > be >> > >> > > > >> > > > > > > > confirmed by: >> > >> > > > >> > > > > > > > ~$ ld -lncursesw --verbose >> > >> > > > >> > > > > > > > ... >> > >> > > > >> > > > > > > > ============================== >> ==================== >> > >> > > > >> > > > > > > > attempt to open //usr/local/lib/x86_64-linux-g >> > >> > > > >> nu/libncursesw.so >> > >> > > > >> > > > > failed >> > >> > > > >> > > > > > > > attempt to open //usr/local/lib/x86_64-linux-g >> > >> > > > >> nu/libncursesw.a >> > >> > > > >> > > > > failed >> > >> > > > >> > > > > > > > attempt to open //lib/x86_64-linux-gnu/libncur >> > >> sesw.so >> > >> > > > >> failed >> > >> > > > >> > > > > > > > attempt to open //lib/x86_64-linux-gnu/libncur >> > >> sesw.a >> > >> > > failed >> > >> > > > >> > > > > > > > attempt to open //usr/lib/x86_64-linux-gnu/ >> > >> > > libncursesw.so >> > >> > > > >> failed >> > >> > > > >> > > > > > > > attempt to open //usr/lib/x86_64-linux-gnu/ >> > >> > > libncursesw.a >> > >> > > > >> failed >> > >> > > > >> > > > > > > > attempt to open //usr/local/lib64/libncursesw. >> so >> > >> failed >> > >> > > > >> > > > > > > > attempt to open //usr/local/lib64/libncursesw. >> a >> > >> failed >> > >> > > > >> > > > > > > > attempt to open //lib64/libncursesw.so failed >> > >> > > > >> > > > > > > > attempt to open //lib64/libncursesw.a failed >> > >> > > > >> > > > > > > > attempt to open //usr/lib64/libncursesw.so >> failed >> > >> > > > >> > > > > > > > attempt to open //usr/lib64/libncursesw.a >> failed >> > >> > > > >> > > > > > > > attempt to open //usr/local/lib/libncursesw.so >> > >> failed >> > >> > > > >> > > > > > > > attempt to open //usr/local/lib/libncursesw.a >> > >> failed >> > >> > > > >> > > > > > > > attempt to open //lib/libncursesw.so failed >> > >> > > > >> > > > > > > > attempt to open //lib/libncursesw.a failed >> > >> > > > >> > > > > > > > attempt to open //usr/lib/libncursesw.so >> failed >> > >> > > > >> > > > > > > > attempt to open //usr/lib/libncursesw.a failed >> > >> > > > >> > > > > > > > attempt to open //usr/x86_64-linux-gnu/lib64/ >> > >> > > libncursesw.so >> > >> > > > >> > > failed >> > >> > > > >> > > > > > > > attempt to open //usr/x86_64-linux-gnu/lib64/ >> > >> > > libncursesw.a >> > >> > > > >> > > failed >> > >> > > > >> > > > > > > > attempt to open //usr/x86_64-linux-gnu/lib/ >> > >> > > libncursesw.so >> > >> > > > >> failed >> > >> > > > >> > > > > > > > attempt to open //usr/x86_64-linux-gnu/lib/ >> > >> > > libncursesw.a >> > >> > > > >> failed >> > >> > > > >> > > > > > > > >> > >> > > > >> > > > > > > > ~$ ls /lib/x86_64-linux-gnu/libncursesw* >> > >> > > > >> > > > > > > > /lib/x86_64-linux-gnu/libncursesw.so.5 >> > >> > > > >> > > > > > > > /lib/x86_64-linux-gnu/libncursesw.so.5.9 >> > >> > > > >> > > > > > > > >> > >> > > > >> > > > > > > > It seems that there is no link to >> libncursesw.so >> > >> on my >> > >> > > > >> system. I >> > >> > > > >> > > > then >> > >> > > > >> > > > > > > tried >> > >> > > > >> > > > > > > > creating a symlink from libncursesw.so to >> > >> > > > >> libncursesw.so.5.9 in >> > >> > > > >> > > > > > > > /lib/x86_64-linux-gnu/ but this didn't fully >> > >> resolve >> > >> > > things >> > >> > > > >> as >> > >> > > > >> > > > shown >> > >> > > > >> > > > > > > below. >> > >> > > > >> > > > > > > > I'm not sure what the output below is telling >> me >> > >> and >> > >> > > what >> > >> > > > >> my next >> > >> > > > >> > > > > move >> > >> > > > >> > > > > > > is. >> > >> > > > >> > > > > > > > Any suggestions? >> > >> > > > >> > > > > > > > >> > >> > > > >> > > > > > > > ~$ $jmake/build_jconsole.sh j64 >> > >> > > > >> > > > > > > > jconsole >> > >> > > > >> > > > > > > > -fPIC -O1 -Wextra -DREADLINE >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/unix/libedit64.a >> -ldl >> > >> > > > >> -lncursesw -o >> > >> > > > >> > > > > > jconsole >> > >> > > > >> > > > > > > > cc -fPIC -O1 -Wextra -DREADLINE -c -o >> > >> jconsole.o >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/jsrc/jconsole.c >> > >> > > > >> > > > > > > > cc -fPIC -O1 -Wextra -DREADLINE -c -o >> jeload.o >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/jsrc/jeload.c >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/jsrc/jeload.c: In >> > >> function >> > >> > > > >> ‘jepath’: >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/js >> rc/jeload.c:139:3: >> > >> > > warning: >> > >> > > > >> > > ignoring >> > >> > > > >> > > > > > > return >> > >> > > > >> > > > > > > > value of ‘getcwd’, declared with attribute >> > >> > > > >> warn_unused_result >> > >> > > > >> > > > > > > > [-Wunused-result] >> > >> > > > >> > > > > > > > getcwd(path,sizeof(path)); >> > >> > > > >> > > > > > > > ^ >> > >> > > > >> > > > > > > > cc jconsole.o jeload.o >> > >> /home/rishe0/gitdev/jsource/ >> > >> > > > >> > > > > unix/libedit64.a >> > >> > > > >> > > > > > > -ldl >> > >> > > > >> > > > > > > > -lncursesw -o jconsole >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/un >> > >> ix/libedit64.a(term.o): >> > >> > > In >> > >> > > > >> > > function >> > >> > > > >> > > > > > > > `term_deletechars': >> > >> > > > >> > > > > > > > term.c:(.text+0x3f2): undefined reference to >> > >> `tgoto' >> > >> > > > >> > > > > > > > term.c:(.text+0x46a): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > term.c:(.text+0x4ac): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/un >> > >> ix/libedit64.a(term.o): >> > >> > > In >> > >> > > > >> > > function >> > >> > > > >> > > > > > > > `term_echotc': >> > >> > > > >> > > > > > > > term.c:(.text+0x74a): undefined reference to >> > >> `tgetstr' >> > >> > > > >> > > > > > > > term.c:(.text+0x8d5): undefined reference to >> > >> `tgoto' >> > >> > > > >> > > > > > > > term.c:(.text+0x8e8): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > term.c:(.text+0x991): undefined reference to >> > >> `tgoto' >> > >> > > > >> > > > > > > > term.c:(.text+0x9cd): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/un >> > >> ix/libedit64.a(term.o): >> > >> > > In >> > >> > > > >> > > function >> > >> > > > >> > > > > > > > `term_clear_screen': >> > >> > > > >> > > > > > > > term.c:(.text+0xe92): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/un >> > >> ix/libedit64.a(term.o): >> > >> > > In >> > >> > > > >> > > function >> > >> > > > >> > > > > > > > `term_insertwrite': >> > >> > > > >> > > > > > > > term.c:(.text+0x108f): undefined reference to >> > >> `tgoto' >> > >> > > > >> > > > > > > > term.c:(.text+0x109f): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > term.c:(.text+0x11ca): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > term.c:(.text+0x11dd): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > term.c:(.text+0x11f0): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > term.c:(.text+0x1235): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/ >> > >> > > unix/libedit64.a(term.o):term. >> > >> > > > >> > > > > > > c:(.text+0x1253): >> > >> > > > >> > > > > > > > more undefined references to `tputs' follow >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/un >> > >> ix/libedit64.a(term.o): >> > >> > > In >> > >> > > > >> > > function >> > >> > > > >> > > > > > > > `term_move_to_char': >> > >> > > > >> > > > > > > > term.c:(.text+0x14de): undefined reference to >> > >> `tgoto' >> > >> > > > >> > > > > > > > term.c:(.text+0x14ef): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > term.c:(.text+0x14ff): undefined reference to >> > >> `tgoto' >> > >> > > > >> > > > > > > > term.c:(.text+0x1515): undefined reference to >> > >> `tgoto' >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/un >> > >> ix/libedit64.a(term.o): >> > >> > > In >> > >> > > > >> > > function >> > >> > > > >> > > > > > > > `term_move_to_line': >> > >> > > > >> > > > > > > > term.c:(.text+0x16d6): undefined reference to >> > >> `tgoto' >> > >> > > > >> > > > > > > > term.c:(.text+0x16e6): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > term.c:(.text+0x1740): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/un >> > >> ix/libedit64.a(term.o): >> > >> > > In >> > >> > > > >> > > function >> > >> > > > >> > > > > > > > `term_set': >> > >> > > > >> > > > > > > > term.c:(.text+0x24bb): undefined reference to >> > >> `tgetent' >> > >> > > > >> > > > > > > > term.c:(.text+0x24d2): undefined reference to >> > >> `tgetflag' >> > >> > > > >> > > > > > > > term.c:(.text+0x24e8): undefined reference to >> > >> `tgetflag' >> > >> > > > >> > > > > > > > term.c:(.text+0x24ff): undefined reference to >> > >> `tgetflag' >> > >> > > > >> > > > > > > > term.c:(.text+0x2516): undefined reference to >> > >> `tgetflag' >> > >> > > > >> > > > > > > > term.c:(.text+0x252c): undefined reference to >> > >> `tgetflag' >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/ >> > >> > > unix/libedit64.a(term.o):term. >> > >> > > > >> > > > > > > c:(.text+0x2542): >> > >> > > > >> > > > > > > > more undefined references to `tgetflag' follow >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/un >> > >> ix/libedit64.a(term.o): >> > >> > > In >> > >> > > > >> > > function >> > >> > > > >> > > > > > > > `term_set': >> > >> > > > >> > > > > > > > term.c:(.text+0x255d): undefined reference to >> > >> `tgetnum' >> > >> > > > >> > > > > > > > term.c:(.text+0x2573): undefined reference to >> > >> `tgetnum' >> > >> > > > >> > > > > > > > term.c:(.text+0x25a2): undefined reference to >> > >> `tgetstr' >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/un >> > >> ix/libedit64.a(term.o): >> > >> > > In >> > >> > > > >> > > function >> > >> > > > >> > > > > > > > `term_deletechars': >> > >> > > > >> > > > > > > > term.c:(.text+0x410): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > term.c:(.text+0x4d7): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/un >> > >> ix/libedit64.a(term.o): >> > >> > > In >> > >> > > > >> > > function >> > >> > > > >> > > > > > > > `term_beep': >> > >> > > > >> > > > > > > > term.c:(.text+0xe03): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/un >> > >> ix/libedit64.a(term.o): >> > >> > > In >> > >> > > > >> > > function >> > >> > > > >> > > > > > > > `term_clear_screen': >> > >> > > > >> > > > > > > > term.c:(.text+0xe7b): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/un >> > >> ix/libedit64.a(term.o): >> > >> > > In >> > >> > > > >> > > function >> > >> > > > >> > > > > > > > `term_clear_EOL': >> > >> > > > >> > > > > > > > term.c:(.text+0xf3b): undefined reference to >> > >> `tputs' >> > >> > > > >> > > > > > > > collect2: error: ld returned 1 exit status >> > >> > > > >> > > > > > > > /home/rishe0/gitdev/jsource/make/makefile:5: >> > >> recipe for >> > >> > > > >> target >> > >> > > > >> > > > > > > 'jconsole' >> > >> > > > >> > > > > > > > failed >> > >> > > > >> > > > > > > > make: *** [jconsole] Error 1 >> > >> > > > >> > > > > > > > cp: cannot stat 'jconsole': No such file or >> > >> directory >> > >> > > > >> > > > > > > > ------------------------------ >> > >> > > > >> ------------------------------ >> > >> > > > >> > > > > ---------- >> > >> > > > >> > > > > > > > For information about J forums see >> > >> > > > >> http://www.jsoftware.com/ >> > >> > > > >> > > > > forums.htm >> > >> > > > >> > > > > > > >> > >> > > > >> > > > > > > -- >> > >> > > > >> > > > > > > regards, >> > >> > > > >> > > > > > > ============================== >> ====================== >> > >> > > > >> > > > > > > GPG key 1024D/4434BAB3 2008-08-24 >> > >> > > > >> > > > > > > gpg --keyserver subkeys.pgp.net --recv-keys >> 4434BAB3 >> > >> > > > >> > > > > > > gpg --keyserver subkeys.pgp.net --armor >> --export >> > >> 4434BAB3 >> > >> > > > >> > > > > > > ------------------------------ >> > >> > > ------------------------------ >> > >> > > > >> > > > ---------- >> > >> > > > >> > > > > > > For information about J forums see >> > >> > > http://www.jsoftware.com/ >> > >> > > > >> > > > forums.htm >> > >> > > > >> > > > > > ------------------------------ >> > >> > > ------------------------------ >> > >> > > > >> > > ---------- >> > >> > > > >> > > > > > For information about J forums see >> > >> > > http://www.jsoftware.com/ >> > >> > > > >> > > forums.htm >> > >> > > > >> > > > > ------------------------------ >> > >> ------------------------------ >> > >> > > > >> ---------- >> > >> > > > >> > > > > For information about J forums see >> > >> > > http://www.jsoftware.com/forum >> > >> > > > >> s.htm >> > >> > > > >> > > > > >> > >> > > > >> > > > ------------------------------ >> > >> ------------------------------ >> > >> > > > >> ---------- >> > >> > > > >> > > > For information about J forums see >> > >> > > http://www.jsoftware.com/forum >> > >> > > > >> s.htm >> > >> > > > >> > > ------------------------------ >> ------------------------------ >> > >> > > > >> ---------- >> > >> > > > >> > > For information about J forums see >> > >> http://www.jsoftware.com/forum >> > >> > > > >> s.htm >> > >> > > > >> > > >> > >> > > > >> > ------------------------------ >> ------------------------------ >> > >> > > ---------- >> > >> > > > >> > For information about J forums see >> http://www.jsoftware.com/ >> > >> > > forums.htm >> > >> > > > >> >> > >> > > > >> -- >> > >> > > > >> regards, >> > >> > > > >> ==================================================== >> > >> > > > >> GPG key 1024D/4434BAB3 2008-08-24 >> > >> > > > >> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 >> > >> > > > >> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 >> > >> > > > >> ------------------------------ >> ------------------------------ >> > >> > > ---------- >> > >> > > > >> For information about J forums see >> http://www.jsoftware.com/ >> > >> > > forums.htm >> > >> > > > >> >> > >> > > > > >> > >> > > > > >> > >> > > > ------------------------------------------------------------ >> > >> ---------- >> > >> > > > For information about J forums see >> http://www.jsoftware.com/forum >> > >> s.htm >> > >> > > >> > >> > > -- >> > >> > > regards, >> > >> > > ==================================================== >> > >> > > GPG key 1024D/4434BAB3 2008-08-24 >> > >> > > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 >> > >> > > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 >> > >> > > ------------------------------------------------------------ >> > >> ---------- >> > >> > > For information about J forums see >> http://www.jsoftware.com/forum >> > >> s.htm >> > >> > > >> > >> > ------------------------------------------------------------ >> ---------- >> > >> > For information about J forums see http://www.jsoftware.com/forum >> s.htm >> > >> >> > >> -- >> > >> regards, >> > >> ==================================================== >> > >> GPG key 1024D/4434BAB3 2008-08-24 >> > >> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 >> > >> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 >> > >> ------------------------------------------------------------ >> ---------- >> > >> For information about J forums see http://www.jsoftware.com/forum >> s.htm >> > >> >> > > >> > > >> > ---------------------------------------------------------------------- >> > For information about J forums see http://www.jsoftware.com/forums.htm >> >> -- >> regards, >> ==================================================== >> GPG key 1024D/4434BAB3 2008-08-24 >> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 >> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm