Opened 4 months ago

Last modified 3 months ago

#57874 assigned defect

bitkeeper @7.3.3: numerous ignored build errors, destroot failure

Reported by: ryandesign (Ryan Schmidt) Owned by: l2dy (Zero King)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: dave@…
Port: bitkeeper

Description

As mentioned on the mailing list, bitkeeper fails to destroot. It also encounters numerous build errors which the build system ignores.

I'm attaching my log file from High Sierra. The build errors I see include:

:info:build Makefile:46: conf.mk: No such file or directory
:info:build fslayer/Makefile:21: fslayer/fslayer.makefile: No such file or directory
:info:build bk get -qS system.h
:info:build make[3]: bk: No such file or directory
:info:build make[3]: [system.h] Error 1 (ignored)
:info:build bk: Cannot find product root.
:info:build here: must be in a nested repository
:info:build make[6]: [populate] Error 1 (ignored)
:info:build cd tcl && ../Lversion-L.sh >library/Lver.tcl
:info:build ../Lversion-L.sh: line 2: bk: command not found
:info:build ../Lversion-L.sh: line 2: bk: command not found
:info:build ../Lversion-L.sh: line 2: bk: command not found
:info:build ../Lversion-L.sh: line 2: bk: command not found
:info:build cd tcl && ../Lversion-C.sh >generic/Lver.h
:info:build ../Lversion-C.sh: line 2: bk: command not found
:info:build ../Lversion-C.sh: line 2: bk: command not found
:info:build ../Lversion-C.sh: line 2: bk: command not found
:info:build ../Lversion-C.sh: line 2: bk: command not found
:info:build bk tclsh ./pod2html.l --title="L Programmer's Reference Guide" \
:info:build 	    --template=template.html -- little.doc > little.html
:info:build /bin/sh: bk: command not found
:info:build make[8]: [little.html] Error 127 (ignored)
:info:build bk get mkapp
:info:build make[6]: bk: No such file or directory
:info:build make[6]: [mkapp] Error 1 (ignored)
:info:build bk: Cannot find package root.
:info:build bk: Cannot find product root.
:info:build mkdir: /build: No such file or directory
:info:build chmod: /build/obj: No such file or directory
:info:build /bin/sh: /build/obj/tcltk-OIAU5Cax5QUV3cV9iG8ztg.tgz: No such file or directory
:info:build chmod: /build/obj/tcltk-OIAU5Cax5QUV3cV9iG8ztg.tgz: No such file or directory
:info:build make[6]: [install] Error 1 (ignored)

The destroot phase finally fails with:

:info:destroot ../../src/bk tclsh ../bin/pod2html.l \
:info:destroot 		--title="BitKeeper Nested Overview" \
:info:destroot 	    --template=../www/template.html -- nested.doc > ../www/nested.html
:info:destroot invalid command name "/*"
:info:destroot     while executing
:info:destroot "/*"
:info:destroot     (file "../bin/pod2html.l" line 2)
:info:destroot make[2]: *** [../www/nested.html] Error 1

It evidently expects pod2html.l to be a tclsh file, but it appears to be a C file.

Attachments (2)

main.log.bz2 (39.7 KB) - added by ryandesign (Ryan Schmidt) 4 months ago.
patch-rename-macosx-macro.diff (3.2 KB) - added by l2dy (Zero King) 3 months ago.

Download all attachments as: .zip

Change History (8)

Changed 4 months ago by ryandesign (Ryan Schmidt)

Attachment: main.log.bz2 added

comment:1 Changed 3 months ago by l2dy (Zero King)

On macOS <= 10.13, it was successfully built on our Buildbot and Travis CI: https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/81864, https://travis-ci.org/macports/macports-ports/builds/475592044. But on macOS 10.14 (not on Travis CI yet), it failed on our Buildbot with the errors you provided: https://build.macports.org/builders/ports-10.14_x86_64-builder/builds/20847.

comment:2 in reply to:  1 ; Changed 3 months ago by ryandesign (Ryan Schmidt)

Replying to l2dy:

On macOS <= 10.13, it was successfully built on our Buildbot and Travis CI:

Hmm, well it failed on 10.13 on my machine, per the attached log.

Changed 3 months ago by l2dy (Zero King)

comment:3 Changed 3 months ago by l2dy (Zero King)

On macOS 10.14, the above patch fixes build errors, but destroot still fails.

[...]
In file included from utils/stackdump.c:21:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/execinfo.h:56:1: error: expected ','
API_AVAILABLE(macosx(10.14), ios(12.0), tvos(12.0), watchos(5.0))
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/os/availability.h:61:106: note: expanded from macro 'API_AVAILABLE'
    #define API_AVAILABLE(...) __API_AVAILABLE_GET_MACRO(__VA_ARGS__,__API_AVAILABLE6, __API_AVAILABLE5, __API_AVAILABLE4, __API_AVAILABLE3, __API_AVAILABLE2, __API_AVAILABLE1, 0)(__VA_ARGS__)
                                                                                                         ^
2 warnings and 4 errors generated.
Version 0, edited 3 months ago by l2dy (Zero King) (next)

comment:4 in reply to:  description Changed 3 months ago by l2dy (Zero King)

Replying to ryandesign:

It evidently expects pod2html.l to be a tclsh file, but it appears to be a C file.

It's actually a Little program.

comment:5 in reply to:  2 ; Changed 3 months ago by l2dy (Zero King)

Replying to ryandesign:

Replying to l2dy:

On macOS <= 10.13, it was successfully built on our Buildbot and Travis CI:

Hmm, well it failed on 10.13 on my machine, per the attached log.

Does your machine happen to have no CLT installed?

comment:6 in reply to:  5 Changed 3 months ago by ryandesign (Ryan Schmidt)

Summary: bitkeeper @7.7.3: numerous ignored build errors, destroot failurebitkeeper @7.3.3: numerous ignored build errors, destroot failure

Replying to l2dy:

Replying to ryandesign:

Hmm, well it failed on 10.13 on my machine, per the attached log.

Does your machine happen to have no CLT installed?

I have the command line tools installed.

Note: See TracTickets for help on using tickets.