Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using bmake to compile pttbbs master branch #30

Closed
Brli opened this issue Nov 11, 2017 · 9 comments
Closed

Error using bmake to compile pttbbs master branch #30

Brli opened this issue Nov 11, 2017 · 9 comments

Comments

@Brli
Copy link

Brli commented Nov 11, 2017

make BBSHOME=/home/bbs TARGET_OSNAME=Linux all install
===> common
===> common/bbs
bmake[2]: exec(building) failed (No such file or directory)
*** Error code 1

Stop.
bmake[2]: stopped in /home/bbs/pttbbs/common/bbs
*** Error code 1

Stop.
bmake[1]: stopped in /home/bbs/pttbbs/common
*** Error code 1

Stop.
bmake: stopped in /home/bbs/pttbbs

@Brli
Copy link
Author

Brli commented Nov 11, 2017

$ bmake -d Alm

(...)
Examining libcmbbs.a...Wildcard expanding "libcmbbs.a"...suffix is ".a"...Searching for libcmbbs.a ...
   failed.
Found 'libcmbbs.a' as '(not found)'
non-existent...library...out-of-date.
libcmbbs.a:> = log.o
libcmbbs.a:? = log.o
libcmbbs.a:> = log.o money.o
libcmbbs.a:? = log.o money.o
libcmbbs.a:> = log.o money.o names.o
libcmbbs.a:? = log.o money.o names.o
libcmbbs.a:> = log.o money.o names.o path.o
libcmbbs.a:? = log.o money.o names.o path.o
libcmbbs.a:> = log.o money.o names.o path.o time.o
libcmbbs.a:? = log.o money.o names.o path.o time.o
libcmbbs.a:> = log.o money.o names.o path.o time.o string.o
libcmbbs.a:? = log.o money.o names.o path.o time.o string.o
libcmbbs.a:> = log.o money.o names.o path.o time.o string.o fhdr_stamp.o
libcmbbs.a:? = log.o money.o names.o path.o time.o string.o fhdr_stamp.o
libcmbbs.a:> = log.o money.o names.o path.o time.o string.o fhdr_stamp.o cache.o
libcmbbs.a:? = log.o money.o names.o path.o time.o string.o fhdr_stamp.o cache.o
libcmbbs.a:> = log.o money.o names.o path.o time.o string.o fhdr_stamp.o cache.o passwd.o
libcmbbs.a:? = log.o money.o names.o path.o time.o string.o fhdr_stamp.o cache.o passwd.o
libcmbbs.a:> = log.o money.o names.o path.o time.o string.o fhdr_stamp.o cache.o passwd.o filehdr.o
libcmbbs.a:? = log.o money.o names.o path.o time.o string.o fhdr_stamp.o cache.o passwd.o filehdr.o
libcmbbs.a:> = log.o money.o names.o path.o time.o string.o fhdr_stamp.o cache.o passwd.o filehdr.o banip.o
libcmbbs.a:? = log.o money.o names.o path.o time.o string.o fhdr_stamp.o cache.o passwd.o filehdr.o banip.o
building standard cmbbs library
Execute: 'building standard cmbbs library'
Applying[.MAKE.EXPORTED] :O to "_HOST_OSNAME _HOST_OSREL _HOST_MACHINE _HOST_ARCH HOST_MACHINE SYS_OS_MK SRCTOP"
Result[.MAKE.EXPORTED] of :O is "HOST_MACHINE SRCTOP SYS_OS_MK _HOST_ARCH _HOST_MACHINE _HOST_OSNAME _HOST_OSREL"
Applying[.MAKE.EXPORTED] :u to "HOST_MACHINE SRCTOP SYS_OS_MK _HOST_ARCH _HOST_MACHINE _HOST_OSNAME _HOST_OSREL"
Result[.MAKE.EXPORTED] of :u is "HOST_MACHINE SRCTOP SYS_OS_MK _HOST_ARCH _HOST_MACHINE _HOST_OSNAME _HOST_OSREL"
bmake: exec(building) failed (No such file or directory)

*** Failed target:  libcmbbs.a
*** Failed command: building standard cmbbs library
*** Error code 1

Stop.
bmake: stopped in /home/bbs/pttbbs/common/bbs
Global:.ERROR_TARGET = libcmbbs.a
Global:delete .ERROR_CMD (not found)
Applying[MAKE_PRINT_VAR_ON_ERROR] :@ to ""
Modifier pattern: "v"
Modifier pattern: "$v='${$v}'
"
Global:delete v (not found)
Result[MAKE_PRINT_VAR_ON_ERROR] of :@ is ""

@hungte hungte closed this as completed Nov 14, 2017
@Brli
Copy link
Author

Brli commented Nov 14, 2017

pmake is deprecated as bmake takes in the place...

@hungte hungte reopened this Nov 14, 2017
@hungte
Copy link
Contributor

hungte commented Nov 14, 2017

What is your OS, version, and bmake version?

I tried on debian 9.1, FreeBSD 11, all not seeing problems.

@Brli
Copy link
Author

Brli commented Nov 14, 2017

Arch linux
bmake-20171028

@hungte
Copy link
Contributor

hungte commented Nov 14, 2017

seems like on archlinux using 2017 bmake (not sure if it's due to OS or newer bmake), the rules will include a "building standard cmbbs library" which was then interpreted as a command then building becomes the command and failed. not sure why.

@hungte
Copy link
Contributor

hungte commented Nov 14, 2017

One solution is to add META_NOECHO=echo, but I'm not sure if that's the right solution.

@hungte
Copy link
Contributor

hungte commented Nov 14, 2017

Seems like lib*.mk expects system to have meta.sys.mk included, while sys.mk only included meta.sys.mk if ${MK_DIRDEPS_BUILD:Uno} == "yes".

This looks more like a bmake mk file bug to me, so I think for now the best solution is to revert the system bmake (especially its mk files) to versions prior than 2017-07 (the change was introduced at the Jul version).

@Brli
Copy link
Author

Brli commented Nov 14, 2017

Okay...I'll try it l8er

@hungte
Copy link
Contributor

hungte commented Nov 15, 2017

I've sent a mail to author of bmake and he agrees this should be a bmake bug and will be fixed in newer versions, so there's nothing to do in pttbbs side. close issue.

@hungte hungte closed this as completed Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants