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

[elfutils] Build error on x64-osx #22572

Closed
autoantwort opened this issue Jan 17, 2022 · 2 comments
Closed

[elfutils] Build error on x64-osx #22572

autoantwort opened this issue Jan 17, 2022 · 2 comments
Assignees
Labels
category:question This issue is a question

Comments

@autoantwort
Copy link
Contributor

Package: elfutils[core]:x64-osx -> 0.182#2
Host Environment

  • Host: arm64-osx
  • Compiler: AppleClang 13.0.0.13000029
  • vcpkg-tool version: 2999-12-31-unknownhash-debug
    vcpkg-scripts version: 4fff1e9 2022-01-17 (8 minutes ago)

To Reproduce
vcpkg install

Failure logs

-- Using cached /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/downloads/elfutils-25d048684a82f9ba701c6939b7f28c3543bb7991.tar.gz
-- Extracting source /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/downloads/elfutils-25d048684a82f9ba701c6939b7f28c3543bb7991.tar.gz
-- Applying patch configure.ac.patch
-- Using source at /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/elfutils/src/3543bb7991-af5b54f809.clean
-- Found external ninja('1.10.2').
-- Getting CMake variables for x64-osx-dbg
-- Getting CMake variables for x64-osx-rel
-- Generating configure for x64-osx
-- Finished generating configure for x64-osx
-- Configuring x64-osx-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:128 (message):
    Command failed: /bin/bash -c "V=1 ./../src/3543bb7991-af5b54f809.clean/configure --host=x86_64-apple-darwin \"--disable-debuginfod\" \"--enable-libdebuginfod=dummy\" \"--with-zlib\" \"--with-bzlib\" \"--with-lzma\" \"--with-zstd\" \"--enable-maintainer-mode\" \"--disable-silent-rules\" \"--verbose\" \"--disable-shared\" \"--enable-static\" \"--prefix=/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug\" \"--bindir=\\${prefix}/../tools/elfutils/debug/bin\" \"--sbindir=\\${prefix}/../tools/elfutils/debug/sbin\" \"--libdir=\\${prefix}/lib\" \"--includedir=\\${prefix}/../include\" \"--datarootdir=\\${prefix}/share/elfutils\""
    Working Directory: /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/elfutils/x64-osx-dbg
    Error code: 1
    See logs for more information:
      /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/elfutils/config-x64-osx-dbg-out.log
      /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/elfutils/config-x64-osx-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:796 (vcpkg_execute_required_process)
  ports/elfutils/portfile.cmake:16 (vcpkg_configure_make)
  scripts/ports.cmake:145 (include)



/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/elfutils/config-x64-osx-dbg-out.log
configure: No --program-prefix given, using "eu-"
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-apple-darwin-strip... no
checking for strip... strip
checking for a race-free mkdir -p... ./../src/3543bb7991-af5b54f809.clean/config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... (cached) yes
checking build system type... aarch64-apple-darwin21.2.0
checking host system type... x86_64-apple-darwin
checking for x86_64-apple-darwin-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for x86_64-apple-darwin-ranlib... no
checking for ranlib... ranlib
checking for bison... bison -y
checking for flex... flex
checking for lex output file root... lex.yy
checking for lex library... none needed
checking for library containing yywrap... -ll
checking whether yytext is a pointer... yes
checking for x86_64-apple-darwin-ar... no
checking for x86_64-apple-darwin-lib... no
checking for x86_64-apple-darwin-link... no
checking for ar... ar
checking the archiver (ar) interface... ar
checking for x86_64-apple-darwin-readelf... no
checking for readelf... no
checking for x86_64-apple-darwin-nm... no
checking for nm... nm
checking for gcc with GNU99 support... no
/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/elfutils/config-x64-osx-dbg-err.log
configure: WARNING: unrecognized options: --disable-shared, --enable-static
rm: conftest.dSYM: is a directory
configure: error: gcc with GNU99 support required

Additional context

vcpkg.json
{
  "name": "lichtsteuerung",
  "version-string": "2.0.0",
  "dependencies": [
    "elfutils"
  ]
}

@LilyWangLL LilyWangLL added category:port-bug The issue is with a library, which is something the port should already support category:question This issue is a question and removed category:port-bug The issue is with a library, which is something the port should already support labels Jan 17, 2022
@LilyWangLL
Copy link
Contributor

Thanks for posting issue. According to #14771 (comment), elfutils does not support gnu extensions (-std=gnu99). It need a custom toolchain switching to gcc on apple could compile this correctly.

@autoantwort
Copy link
Contributor Author

Thank you for finding this out :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants