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

Bootstrap fails on FreeBSD #148

Open
yonas opened this issue Sep 5, 2024 · 4 comments
Open

Bootstrap fails on FreeBSD #148

yonas opened this issue Sep 5, 2024 · 4 comments

Comments

@yonas
Copy link

yonas commented Sep 5, 2024

$ ./bootstrap --unprivileged
...
===> Installing dependencies for cwrappers-20220403
===> Overriding tools for cwrappers-20220403
===> Extracting for cwrappers-20220403
/bin/cp -R /home/yonas/git/pkgsrc/pkgtools/cwrappers/files/bin /home/yonas/git/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/cwrappers-20220403
/usr/bin/touch /home/yonas/git/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/cwrappers-20220403/transform-gcc.c
/bin/rm -f /home/yonas/git/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat/config.guess /home/yonas/git/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat/config.sub
/bin/ln -fs /home/yonas/git/pkgsrc/mk/gnu-config/config.guess /home/yonas/git/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat/config.guess
/bin/ln -fs /home/yonas/git/pkgsrc/mk/gnu-config/config.sub /home/yonas/git/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat/config.sub
===> Patching for cwrappers-20220403
===> Creating toolchain wrappers for cwrappers-20220403
===> Configuring for cwrappers-20220403
=> Configuring and building libnbcompat
checking build system type... x86_64-unknown-freebsd14.1
checking host system type... x86_64-unknown-freebsd14
checking for x86_64-unknown-freebsd14-gcc... clang
checking whether the C compiler works... no
configure: error: in `/home/yonas/git/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat':
configure: error: C compiler cannot create executables
See `config.log' for more details
*** Error code 77

Stop.
bmake[1]: stopped making "install" in /home/yonas/git/pkgsrc/pkgtools/cwrappers
*** Error code 1

Stop.
bmake: stopped making "install" in /home/yonas/git/pkgsrc/pkgtools/cwrappers
===> exited with status 1
aborted.

The log for libnbcompat: https://pastebin.mozilla.org/TAAfh5rZ

@bsiegert
Copy link
Contributor

bsiegert commented Sep 5, 2024

Unfortunately, the log in the pastebin is for a different invocation. You need to look for config.log in /home/yonas/git/pkgsrc/pkgtools/cwrappers/work/libnbcompat. Could you post that one please?

It might be due to a newer compiler that doesn't allow implicit function declarations. Try adding -Wno-implicit-function-declarations to your CFLAGS.

@yonas
Copy link
Author

yonas commented Sep 5, 2024

@bsiegert Here's the log with -Wno-implicit-function-declarations: https://paste.mozilla.org/xVmiBSSg

@yonas
Copy link
Author

yonas commented Sep 5, 2024

eval: clang: not found. I'll make a sym link and re-run.

@yonas
Copy link
Author

yonas commented Sep 5, 2024

Got further by installing gcc. Ran into this error:

===> running: /bin/sh /home/yonas/git/pkgsrc/bootstrap/work/bin/install-sh -c -o yonas -g yonas -m 755 /home/yonas/git/pkgsrc/bootstrap/work/pkg_install/add/pkg_add /home/yonas/git/pkgsrc/bootstrap/work/sbin/pkg_add
===> running: /bin/sh /home/yonas/git/pkgsrc/bootstrap/work/bin/install-sh -c -o yonas -g yonas -m 755 /home/yonas/git/pkgsrc/bootstrap/work/pkg_install/admin/pkg_admin /home/yonas/git/pkgsrc/bootstrap/work/sbin/pkg_admin
===> running: /bin/sh /home/yonas/git/pkgsrc/bootstrap/work/bin/install-sh -c -o yonas -g yonas -m 755 /home/yonas/git/pkgsrc/bootstrap/work/pkg_install/create/pkg_create /home/yonas/git/pkgsrc/bootstrap/work/sbin/pkg_create
===> running: /bin/sh /home/yonas/git/pkgsrc/bootstrap/work/bin/install-sh -c -o yonas -g yonas -m 755 /home/yonas/git/pkgsrc/bootstrap/work/pkg_install/info/pkg_info /home/yonas/git/pkgsrc/bootstrap/work/sbin/pkg_info
===> running: (cd /home/yonas/git/pkgsrc/pkgtools/cwrappers && /home/yonas/git/pkgsrc/bootstrap/work/bin/bmake  MAKE_JOBS=1 PKG_COMPRESSION=none PKGSRC_KEEP_BIN_PKGS=no MAKECONF=/home/yonas/git/pkgsrc/bootstrap/work/mk.conf install)
===> Installing dependencies for cwrappers-20220403
=> Build dependency gcc6>=6.5.0nb9: NOT found
=> Verifying reinstall for ../../lang/gcc6
=> Bootstrap dependency digest>=20211023: NOT found
=> Verifying reinstall for ../../pkgtools/digest
===> Installing dependencies for digest-20220214
=> Tool dependency cwrappers>=20150314: NOT found
=> Verifying reinstall for ../../pkgtools/cwrappers
ERROR: This package has set PKG_FAIL_REASON:
ERROR: Circular dependency detected
*** Error code 1

Stop.
bmake[3]: stopped making "reinstall" in /home/yonas/git/pkgsrc/pkgtools/cwrappers
*** Error code 1

Stop.
bmake[2]: stopped making "reinstall" in /home/yonas/git/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake[1]: stopped making "reinstall" in /home/yonas/git/pkgsrc/lang/gcc6
*** Error code 1

Stop.
bmake: stopped making "install" in /home/yonas/git/pkgsrc/pkgtools/cwrappers
===> exited with status 1
aborted.

netbsd-srcmastr pushed a commit that referenced this issue Sep 19, 2024
This is a point release intended to clear up a couple of CVEs and
apply point fixes that have been accumulating since 5.2.1

There are a few unresolved (but minor) memory leaks related to design
issues in the API that still need to be resolved. Expect those fixes
in the next release.

Code Fixes
----------

* Fixes for CVE-2023-48161, CVE-2022-28506,

* Address SF issue #138 Documentation for obsolete utilities still installed

* Address SF issue #139: Typo in "LZW image data" page ("110_2 = 4_10")

* Address SF issue #140: Typo in "LZW image data" page ("LWZ")

* Address SF issue #141: Typo in "Bits and bytes" page ("filed")

* Note as already fixed SF issue #143: cannot compile under mingw

* Address SF issue #144: giflib-5.2.1 cannot be build on windows and other platforms using c89

* Address SF issue #145: Remove manual pages installation for binaries that are not installed too

* Address SF issue #146: [PATCH] Limit installed man pages to binaries, move giflib to section 7

* Address SF issue #147 [PATCH] Fixes to doc/whatsinagif/ content

* Address SF issue #148: heap Out of Bound Read in gif2rgb.c:298 DumpScreen2RGB

* Declared no-info on SF issue #150: There is a denial of service vulnerability in GIFLIB 5.2.1

* Declared Won't-fix on SF issue 149: Out of source builds no longer possible

* Address SF issue #151: A heap-buffer-overflow in gif2rgb.c:294:45

* Address SF issue #152: Fix some typos on the html documentation and man pages

* Address SF issue #153: Fix segmentation faults due to non correct checking for args

* Address SF issue #154: Recover the giffilter manual page

* Address SF issue #155: Add gifsponge docs

* Address SF issue #157: An OutofMemory-Exception or Memory Leak in gif2rgb

* Address SF issue #158: There is a null pointer problem in gif2rgb

* Address SF issue #159 A heap-buffer-overflow in GIFLIB5.2.1 DumpScreen2RGB() in gif2rgb.c:298:45

* Address SF issue #163: detected memory leaks in openbsd_reallocarray giflib/openbsd-reallocarray.c

* Address SF issue #164: detected memory leaks in GifMakeMapObject giflib/gifalloc.c

* Address SF issue #166: a read zero page leads segment fault in getarg.c and memory leaks in gif2rgb.c and gifmalloc.c

* Address SF issue #167: Heap-Buffer Overflow during Image Saving in DumpScreen2RGB Function at Line 321 of gif2rgb.c
netbsd-srcmastr pushed a commit that referenced this issue Nov 6, 2024
# nloptr 2.1.1

This is a patch release to work around a bug in the CRAN checks. Specifically,
one of the unit tests for the `isres()` algorithm was failing on some CRAN
builds because convergence is stochastic with slightly different results even
with the same fixed seed prior to calling the function.

# nloptr 2.1.0
This release deprecates the default behavior of the inequality equations in any
wrapper function which uses them. Currently, they are calibrated to be >= 0.
This version allows for the equations to be consistent with the main `nloptr`
function, which requires <= 0. In a future release, the default behavior will
switch to assuming the calibration is <= 0, and eventually, the >= 0 behavior
will be removed. It also includes a large number of safety and efficiency
changes, and an expansion of the unit tests to 100% coverage for all files but
one. The major changes include:

* Reversed the direction of the inequality equations `hin` and `hinjac` in the
wrapper functions which use them, bringing them into compliance with the main
`nloptr` call. This addresses
[Issue #148](astamm/nloptr#148);
* Cleaned the Hock-Schittkowski problem no. 100, Hartmann 6-dimensional, and
Powell exponential examples. This addresses
[Issue #152](astamm/nloptr#152) and
[Issue #156](astamm/nloptr#156);
* Updated roxygen version;
* Updated maintainer email;
* Deal with NA returns from `parallel::detectCores()` (contributed by @jeroen in
PR #150);
* Setup rhub v2 checks;
* Update cmake installation instructions on Mac with brew (#146);
* Allow use of equality constraints with COBYLA (#135);
* Replaced the unit testing framework of `testthat` with `tinytest` (See
[Issue #136](astamm/nloptr#136));
* Brought coverage of `is.nloptr` to 100%. The only file not completely covered
by unit tests is `nloptr.c`. The uncovered calls are error messages which get
trapped by tests in R before the call gets to C;
* Linted package for code correctness and consistency;
* Updated vignette, DESCRIPTION, and NEWS;
* Updated package website to use bootstrap 5;
* Expanded unit tests: coverage now over 97% with no file below 90%;
* Removed forcing `C++11`;
* Added safety checks to C code;
* Added many safety and efficiency enhancements to R code;
* Most R code style made self-consistent;
* Updated documentation and messages for accuracy and mathematical formatting
* Updated Github actions;
* Some bugfixes (e.g. in `isres` or the warning in `nl.grad`).
netbsd-srcmastr pushed a commit that referenced this issue Dec 10, 2024
# thematic 0.1.6

* Add basic positron IDE support. (#152)
* Update for now deprecated `systemfonts::match_font()`. (#153)

# thematic 0.1.5

* Accommodate for breaking changes in ggplot2 v3.5.0. (#148)
* `{thematic}` now works with recent versions of the `{vdiffr}` package. (#149)
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