bugGforth - Bugs: bug #55675, Cannot build from git commit...

 
 

bug #55675: Cannot build from git commit d505b1be

Submitter:  Reuben Thomas <rrt>
Submitted:  Fri 08 Feb 2019 01:03:51 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  paysan
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 08 Feb 2019 05:42:37 PM UTC, comment #5: 

I still cannot build from git. I get a different error each time, perhaps because you use make -j (so do I by default, but I removed my custom MAKEFLAGS from the environment before trying to build gforth!).

For example I get:

libtool: link: gcc -Wl,--export-dynamic -pthread .libs/liblibmain.o -o .libs/libgforth-itc  /home/rrt/Desktop/gforth/engine/.libs/libgforth-itc.so -pthread  -Wl,-rpath -Wl,/home/rrt/.local/lib/x86_64-linux-gnu
make[1]: Leaving directory '/home/rrt/Desktop/gforth/engine'
ln -s -f engine/libgforth-itc libgforth-itc
chcon -t unconfined_execmem_exec_t libgforth-itc || true
chcon: can't apply partial context to unlabelled file 'libgforth-itc'



Reuben Thomas <rrt>
Fri 08 Feb 2019 02:10:51 PM UTC, comment #4: 

Commit 06428c53 fixes this bug — it checks if a parent directory of a mkdir-parent path can be seen as directory (file-status with appended '/' works), and then refrains from deleting that link.

So I close that bug (fixed), and thanks for reporting.

Bernd Paysan <paysan>
Group administrator
Fri 08 Feb 2019 01:22:19 PM UTC, comment #3: 

So finally, I tried building in a directory whose parent doesn't include a symlink, and it seems to work. So there seems to be a bug pertaining to the building of libcc-named.

Reuben Thomas <rrt>
Fri 08 Feb 2019 01:17:25 PM UTC, comment #2: 

I tried building from the most recent source snapshot, and the build errored as follows (after ./configure && make):

make checkone check-nofast ENGINE="./libgforth --no-dynamic" >/dev/null 2>&1
Makefile:947: recipe for target 'checklibg' failed
make[1]: * [checklibg] Error 2
make[1]: Leaving directory '/home/rrt/.local/var/Downloads/gforth-0.7.9_20190207'
Makefile:939: recipe for target 'check' failed
make: * [check] Error 2

Similarly to before, my Downloads directory is a symlink, and it had been replaced by a directory containing just library files.

Reuben Thomas <rrt>
Fri 08 Feb 2019 01:12:51 PM UTC, comment #1: 

There seems to be something odd going on with the build. I check out git repositories under ~/.local/var/repo/, which is symlinked to ~/repo.

After attempting to build gforth, I did:

gforth$ cd ..
repo$ ls
gforth/
repo$ pwd
/home/rrt/repo

So gforth's build appeared to have killed everything else in my repo directory! Fortunately, this was not in fact true, it had in fact replaced the symlink from ~/repo to ~/.local/var/repo with a directory ~/repo.

But surely it should not be fiddling with my filing system above the checkout directory?!

I tried to work out what is going on: the contents of the new directory are just library files:

gforth$ tree .
.
└── lib
    └── gforth
        └── 0.7.9_20190207
            └── amd64
                └── libcc-named
                    ├── cstr.c
                    ├── cstr.lo
                    ├── cstr.o
                    ├── libc.c
                    ├── libc.lo
                    ├── libc.o
                    ├── libgfcstr.la
                    └── libgflibc.la

5 directories, 8 files

Reuben Thomas <rrt>
Fri 08 Feb 2019 01:03:51 PM UTC, original submission:  

I tried to build from git master HEAD as of this writing, on Ubuntu 18.04 amd64.

First, the URL for git is out of date in INSTALL.md. I used the checkout command given on Savannah instead.

Then, I got the following error from ./BUILD-FROM-SCRATCH:

make checkone check-nofast ENGINE="./libgforth-itc" >/dev/null 2>&1
Makefile:948: recipe for target 'checklibg' failed
make[1]: * [checklibg] Error 2
make[1]: * Waiting for unfinished jobs....
Makefile:951: recipe for target 'checklibgi' failed
make[1]: * [checklibgi] Error 2

Any ideas?

It would be nice to see a new release, as there's been a lot of work in the last few years from which users can't benefit without building it from git (which seems to be tricky!).

Reuben Thomas <rrt>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by paysan (Posted a comment)
  • -email is unavailable- added by rrt (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-02-08 paysan StatusNone Fixed
        Assigned toNone paysan
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code