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
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