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

cc is not found during AWK bootstrapping on OpenMPTCProuter #141

Open
sskras opened this issue Jun 13, 2024 · 1 comment
Open

cc is not found during AWK bootstrapping on OpenMPTCProuter #141

sskras opened this issue Jun 13, 2024 · 1 comment

Comments

@sskras
Copy link

sskras commented Jun 13, 2024

After working around the #132 issue the boostrapping aborts on OpenMPTCProuter v0.59.1-5.4:

root@OpenMPTCProuter:~/debug/src/github.com/NetBSD/pkgsrc.git# rm -rf work/; time bootstrap/bootstrap
  ...
===> Bootstrapping awk
===> running: /bin/sh /root/debug/src/github.com/NetBSD/pkgsrc.git/work/bin/install-sh -d -o root -g root /root/debug/src/github.com/NetBSD/pkgsrc.git/work/awk
===> running: (cd /root/debug/src/github.com/NetBSD/pkgsrc.git/work/awk && /root/debug/src/github.com/NetBSD/pkgsrc.git/work/bin/bmake  -j1 -f Makefile CC="cc" CFLAGS="")
cc   -c awkgram.tab.c
sh: cc: not found
*** [awkgram.tab.o] Error code 127

bmake: stopped in /root/debug/src/github.com/NetBSD/pkgsrc.git/work/awk
1 error

bmake: stopped in /root/debug/src/github.com/NetBSD/pkgsrc.git/work/awk
===> exited with status 2
aborted.

real    0m12.492s
user    0m8.287s
sys     0m0.901s

Full output from the terminal: 08-cc-is-not-found-during-AWK-bootstrap-on-OpenMPTCProuter.log

@sskras
Copy link
Author

sskras commented Jun 13, 2024

It can be worked around by CC=gcc; export CC.

Why is this needed? Looks like a bug to me.

netbsd-srcmastr pushed a commit that referenced this issue Jun 15, 2024
Upstream changes:
 https://github.com/flavorjones/mini_portile/blob/v2.8.7/CHANGELOG.md

2.8.7 / 2024-05-31

Added

  * When setting the C compiler through the MiniPortile constructor, the
    preferred keyword argument is now :cc_command. The original :gcc_command is
    still supported. (#144 by @flavorjones)
  * Add support for extracting xz-compressed tarballs on OpenBSD. (#141 by
    @postmodern)
  * Add OpenBSD support to the experimental method MakeMakefile#mkmf_config. (#
    141 by @flavorjones)

Changed

  * MiniPortileCMake now detects the C and C++ compiler the same way
    MiniPortile does: by examining environment variables, then using kwargs,
    then looking in RbConfig (in that order). (#144 by @flavorjones)
  * GPG file verification error messages are captured in the raised exception.
    Previously these errors went to stderr. (#145 by @flavorjones)

2.8.6 / 2024-04-14

Added

  * When using CMake on FreeBSD, default to clang's "cc" and "c++" compilers.
    (#139 by @mudge)
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

1 participant