Homebrew / brew

🍺 The missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
40.74k stars 9.55k forks source link

C compiler cannot create executables when brew install hello #13872

Closed flexwang2 closed 1 year ago

flexwang2 commented 1 year ago

brew config output

HOMEBREW_VERSION: 3.6.1
ORIGIN: https://github.com/Homebrew/brew
HEAD: 6e2b162c4786e075323f038d46bfb566d91889e7
Last commit: 4 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 1c8335fcdcaaf8b711f5a8bf2a8ee3124a2c1374
Core tap last commit: 61 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /home/ubuntu/.linuxbrew
HOMEBREW_REPOSITORY: /home/ubuntu/.linuxbrew/Homebrew
HOMEBREW_CELLAR: /home/ubuntu/.linuxbrew/Cellar
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.8 => /home/ubuntu/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8_1/bin/ruby
CPU: octa-core 64-bit skylake
Clang: N/A
Git: 2.17.1 => /usr/bin/git
Curl: 7.58.0 => /usr/bin/curl
Kernel: Linux 4.15.0-1044-aws x86_64 GNU/Linux
OS: Ubuntu 18.04.2 LTS (bionic)
Host glibc: 2.27
/usr/bin/gcc: 7.5.0
/usr/bin/ruby: N/A
glibc: 2.35
gcc@11: N/A
xorg: N/A

brew doctor output

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Your Homebrew's prefix is not /home/linuxbrew/.linuxbrew.
Some of Homebrew's bottles (binary packages) can only be used with the default
prefix (/home/linuxbrew/.linuxbrew).
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
unsupported configuration.

Verification

What were you trying to do (and why)?

brew install hello

What happened (include all command output)?

==> Downloading https://ghcr.io/v2/homebrew/core/linux-headers/5.15/manifests/5.15.57-1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/linux-headers/5.15/blobs/sha256:8692682830cbb
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:869268283
######################################################################## 100.0%
Warning: Building glibc from source as the bottle needs:
- HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar (yours is /home/ubuntu/.linuxbrew/Cellar)
- HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew (yours is /home/ubuntu/.linuxbrew)
==> Downloading https://github.com/Homebrew/glibc-bootstrap/releases/download/1.0.0/bootstrap-
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e6
######################################################################## 100.0%
==> Downloading https://github.com/Homebrew/glibc-bootstrap/releases/download/1.0.0/bootstrap-
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e6
######################################################################## 100.0%
==> Downloading https://github.com/Homebrew/glibc-bootstrap/releases/download/1.0.0/bootstrap-
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e6
######################################################################## 100.0%
==> Downloading https://github.com/Homebrew/glibc-bootstrap/releases/download/1.0.0/bootstrap-
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e6
######################################################################## 100.0%
==> Downloading https://github.com/Homebrew/glibc-bootstrap/releases/download/1.0.0/bootstrap-
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e6
######################################################################## 100.0%
==> Downloading https://github.com/Homebrew/glibc-bootstrap/releases/download/1.0.0/bootstrap-
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e6
######################################################################## 100.0%
==> Downloading https://github.com/Homebrew/glibc-bootstrap/releases/download/1.0.0/bootstrap-
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e6
######################################################################## 100.0%
==> Downloading https://ftp.gnu.org/gnu/glibc/glibc-2.35.tar.gz
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gmp/manifests/6.2.1_1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gmp/blobs/sha256:786ae29f0c0b06ea86e42bd9c6ac
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:786ae29f0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/isl/manifests/0.25
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/isl/blobs/sha256:c0244c95ed9cc89b826868de83be
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:c0244c95e
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/mpfr/manifests/4.1.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/mpfr/blobs/sha256:4c5f1cfd038e8fbd640795e34e5
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:4c5f1cfd0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libmpc/manifests/1.2.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libmpc/blobs/sha256:d74eb5f1377d8fa72fad88bac
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:d74eb5f13
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/lz4/manifests/1.9.4
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/lz4/blobs/sha256:1757fefc3840e11c4822e4c2a95a
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:1757fefc3
######################################################################## 100.0%
Warning: Building xz from source as the bottle needs:
- HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar (yours is /home/ubuntu/.linuxbrew/Cellar)
- HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew (yours is /home/ubuntu/.linuxbrew)
==> Downloading https://downloads.sourceforge.net/project/lzmautils/xz-5.2.6.tar.gz
==> Downloading from https://cfhcable.dl.sourceforge.net/project/lzmautils/xz-5.2.6.tar.gz
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/zlib/manifests/1.2.12
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/zlib/blobs/sha256:23b1d8f0500bbccdf5cc466e7ac
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:23b1d8f05
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/zstd/manifests/1.5.2-3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/zstd/blobs/sha256:006b5ab6a4616a8b6f59953cb9e
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:006b5ab6a
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/binutils/manifests/2.39_1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/binutils/blobs/sha256:efa7497e2ea56d9b68ce413
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:efa7497e2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gcc/11/manifests/11.3.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gcc/11/blobs/sha256:64d9c853ddbe63e0361a99356
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:64d9c853d
######################################################################## 100.0%
Warning: Building hello from source as the bottle needs:
- HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar (yours is /home/ubuntu/.linuxbrew/Cellar)
- HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew (yours is /home/ubuntu/.linuxbrew)
==> Downloading https://ftp.gnu.org/gnu/hello/hello-2.12.1.tar.gz
######################################################################## 100.0%
==> Installing dependencies for hello: linux-headers@5.15, glibc, gmp, isl, mpfr, libmpc, lz4, xz, zlib, zstd, binutils and gcc@11
==> Installing hello dependency: linux-headers@5.15
==> Pouring linux-headers@5.15--5.15.57.x86_64_linux.bottle.1.tar.gz
🍺  /home/ubuntu/.linuxbrew/Cellar/linux-headers@5.15/5.15.57: 963 files, 5.7MB
==> Installing hello dependency: glibc
==> ../configure --disable-crypt --disable-debug --disable-dependency-tracking --disable-silent-rules --prefix=/home/ubuntu/.linuxbrew/Cellar/glibc/2.35 --enable-obsolete-rpc --without-gd --
==> make all
==> make install
==> Installing locale data for en_US.UTF-8
==> /home/ubuntu/.linuxbrew/Cellar/glibc/2.35/bin/localedef -i en_US
🍺  /home/ubuntu/.linuxbrew/Cellar/glibc/2.35: 1,401 files, 129.3MB, built in 3 minutes 14 seconds
==> Installing hello dependency: gmp
==> Pouring gmp--6.2.1_1.x86_64_linux.bottle.tar.gz
🍺  /home/ubuntu/.linuxbrew/Cellar/gmp/6.2.1_1: 23 files, 3.9MB
==> Installing hello dependency: isl
==> Pouring isl--0.25.x86_64_linux.bottle.tar.gz
🍺  /home/ubuntu/.linuxbrew/Cellar/isl/0.25: 74 files, 9.2MB
==> Installing hello dependency: mpfr
==> Pouring mpfr--4.1.0.x86_64_linux.bottle.tar.gz
🍺  /home/ubuntu/.linuxbrew/Cellar/mpfr/4.1.0: 31 files, 7.9MB
==> Installing hello dependency: libmpc
==> Pouring libmpc--1.2.1.x86_64_linux.bottle.tar.gz
🍺  /home/ubuntu/.linuxbrew/Cellar/libmpc/1.2.1: 13 files, 550KB
==> Installing hello dependency: lz4
==> Pouring lz4--1.9.4.x86_64_linux.bottle.tar.gz
🍺  /home/ubuntu/.linuxbrew/Cellar/lz4/1.9.4: 22 files, 695.4KB
==> Installing hello dependency: xz
==> ./configure --prefix=/home/ubuntu/.linuxbrew/Cellar/xz/5.2.6
Last 15 lines from /home/ubuntu/.cache/Homebrew/Logs/xz/01.configure:

Initializing Automake:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether ln -s works... yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc-7
checking whether the C compiler works... no
configure: error: in `/tmp/xz-20220914-6304-2qqxsw/xz-5.2.6':
configure: error: C compiler cannot create executables
See `config.log' for more details

READ THIS: https://docs.brew.sh/Troubleshooting

The config log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by XZ Utils configure 5.2.6, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  $ ./configure --disable-debug --disable-dependency-tracking --disable-silent-rules --prefix=/home/ubuntu/.linuxbrew/Cellar/xz/5.2.6

## --------- ##
## Platform. ##
## --------- ##

hostname = ip-10-2-158-47
uname -m = x86_64
uname -r = 4.15.0-1044-aws
uname -s = Linux
uname -v = #46-Ubuntu SMP Thu Jul 4 13:38:28 UTC 2019

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/ubuntu/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/
PATH: /home/ubuntu/.linuxbrew/opt/glibc/bin/
PATH: /usr/bin/
PATH: /bin/
PATH: /usr/sbin/
PATH: /sbin/

## ----------- ##
## Core tests. ##
## ----------- ##

configure:3192: looking for aux files: config.rpath ltmain.sh compile missing install-sh config.guess config.sub
configure:3205:  trying ./build-aux/
configure:3234:   ./build-aux/config.rpath found
configure:3234:   ./build-aux/ltmain.sh found
configure:3234:   ./build-aux/compile found
configure:3234:   ./build-aux/missing found
configure:3216:   ./build-aux/install-sh found
configure:3234:   ./build-aux/config.guess found
configure:3234:   ./build-aux/config.sub found
configure:3364: checking build system type
configure:3379: result: x86_64-pc-linux-gnu
configure:3399: checking host system type
configure:3413: result: x86_64-pc-linux-gnu
configure:3473: checking if debugging code should be compiled
configure:3490: result: no
configure:3530: checking which encoders to build
configure:3622: result: lzma1 lzma2 delta x86 powerpc ia64 arm armthumb sparc
configure:3626: checking which decoders to build
configure:3718: result: lzma1 lzma2 delta x86 powerpc ia64 arm armthumb sparc
configure:4057: checking which match finders to build
configure:4113: result: hc3 hc4 bt2 bt3 bt4
configure:4131: checking which integrity checks to build
configure:4174: result: crc32 crc64 sha256
configure:4206: checking if external SHA-256 should be used
configure:4223: result: no
configure:4232: checking if assembler optimizations should be used
configure:4257: result: x86_64
configure:4288: checking if small size is preferred over speed
configure:4307: result: no
configure:4323: checking if threading support is wanted
configure:4350: result: yes, posix
configure:4383: checking how much RAM to assume if the real amount is unknown
configure:4399: result: 128 MiB
configure:4537: checking if library symbol versioning should be used
configure:4561: result: yes
configure:4577: checking if sandboxing should be used
configure:4589: result: maybe (autodetect)
configure:4647: checking for a shell that conforms to POSIX
configure:4689: result: /bin/bash
configure:4731: checking for a BSD-compatible install
configure:4804: result: /usr/bin/install -c
configure:4815: checking whether build environment is sane
configure:4870: result: yes
configure:5029: checking for a race-free mkdir -p
configure:5073: result: /bin/mkdir -p
configure:5080: checking for gawk
configure:5101: found /usr/bin/gawk
configure:5112: result: gawk
configure:5123: checking whether make sets $(MAKE)
configure:5146: result: yes
configure:5176: checking whether make supports nested variables
configure:5194: result: yes
configure:5330: checking whether ln -s works
configure:5334: result: yes
configure:5355: checking whether make supports the include directive
configure:5370: make -f confmf.GNU && cat confinc.out
this is the am__doit target
configure:5373: $? = 0
configure:5392: result: yes (GNU style)
configure:5468: checking for gcc
configure:5500: result: gcc-7
configure:5853: checking for C compiler version
configure:5862: gcc-7 --version >&5
gcc-7 (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:5873: $? = 0
configure:5862: gcc-7 -v >&5
Using built-in specs.
COLLECT_GCC=gcc-7
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
configure:5873: $? = 0
configure:5862: gcc-7 -V >&5
gcc-7: error: unrecognized command line option '-V'
configure:5873: $? = 1
configure:5862: gcc-7 -qversion >&5
gcc-7: error: unrecognized command line option '-qversion'; did you mean '--version'?
configure:5873: $? = 1
configure:5862: gcc-7 -version >&5
gcc-7: error: unrecognized command line option '-version'
configure:5873: $? = 1
configure:5893: checking whether the C compiler works
configure:5915: gcc-7    conftest.c  >&5
/usr/bin/ld: warning: /home/ubuntu/.linuxbrew/opt/glibc/lib/Scrt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
/usr/bin/ld: warning: /home/ubuntu/.linuxbrew/opt/glibc/lib/Scrt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
/usr/bin/ld: warning: /home/ubuntu/.linuxbrew/opt/glibc/lib/Scrt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
/usr/bin/ld: warning: /home/ubuntu/.linuxbrew/opt/glibc/lib/crti.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
/usr/bin/ld: warning: /home/ubuntu/.linuxbrew/opt/glibc/lib/crti.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
/usr/bin/ld: /home/ubuntu/.linuxbrew/opt/glibc/lib/crti.o: unable to initialize decompress status for section .debug_aranges
/usr/bin/ld: /home/ubuntu/.linuxbrew/opt/glibc/lib/crti.o: unable to initialize decompress status for section .debug_aranges
/usr/bin/ld: warning: /home/ubuntu/.linuxbrew/opt/glibc/lib/crti.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002
/usr/bin/ld: warning: /home/ubuntu/.linuxbrew/opt/glibc/lib/crti.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001
/usr/bin/ld: /home/ubuntu/.linuxbrew/opt/glibc/lib/crti.o: unable to initialize decompress status for section .debug_aranges
/usr/bin/ld: /home/ubuntu/.linuxbrew/opt/glibc/lib/crti.o: unable to initialize decompress status for section .debug_aranges
/home/ubuntu/.linuxbrew/opt/glibc/lib/crti.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
configure:5919: $? = 1
configure:5959: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "XZ Utils"
| #define PACKAGE_TARNAME "xz"
| #define PACKAGE_VERSION "5.2.6"
| #define PACKAGE_STRING "XZ Utils 5.2.6"
| #define PACKAGE_BUGREPORT "lasse.collin@tukaani.org"
| #define PACKAGE_URL "https://tukaani.org/xz/"
| #define NDEBUG 1
| #define HAVE_ENCODER_LZMA1 1
| #define HAVE_ENCODER_LZMA2 1
| #define HAVE_ENCODER_DELTA 1
| #define HAVE_ENCODER_X86 1
| #define HAVE_ENCODER_POWERPC 1
| #define HAVE_ENCODER_IA64 1
| #define HAVE_ENCODER_ARM 1
| #define HAVE_ENCODER_ARMTHUMB 1
| #define HAVE_ENCODER_SPARC 1
| #define HAVE_ENCODERS 1
| #define HAVE_DECODER_LZMA1 1
| #define HAVE_DECODER_LZMA2 1
| #define HAVE_DECODER_DELTA 1
| #define HAVE_DECODER_X86 1
| #define HAVE_DECODER_POWERPC 1
| #define HAVE_DECODER_IA64 1
| #define HAVE_DECODER_ARM 1
| #define HAVE_DECODER_ARMTHUMB 1
| #define HAVE_DECODER_SPARC 1
| #define HAVE_DECODERS 1
| #define HAVE_MF_HC3 1
| #define HAVE_MF_HC4 1
| #define HAVE_MF_BT2 1
| #define HAVE_MF_BT3 1
| #define HAVE_MF_BT4 1
| #define HAVE_CHECK_CRC32 1
| #define HAVE_CHECK_CRC64 1
| #define HAVE_CHECK_SHA256 1
| #define ASSUME_RAM 128
| #define PACKAGE "xz"
| #define VERSION "5.2.6"
| /* end confdefs.h.  */
|
| int
| main (void)
| {
|
|   ;
|   return 0;
| }
configure:5964: error: in `/tmp/xz-20220914-6304-2qqxsw/xz-5.2.6':
configure:5966: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_env_CCASFLAGS_set=
ac_cv_env_CCASFLAGS_value=
ac_cv_env_CCAS_set=
ac_cv_env_CCAS_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc-7
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc-7
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
gl_cv_posix_shell=/bin/bash

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} '\''/tmp/xz-20220914-6304-2qqxsw/xz-5.2.6/build-aux/missing'\'' aclocal-1.16'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE='#'
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_CFLAGS=''
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AS=''
AUTOCONF='${SHELL} '\''/tmp/xz-20220914-6304-2qqxsw/xz-5.2.6/build-aux/missing'\'' autoconf'
AUTOHEADER='${SHELL} '\''/tmp/xz-20220914-6304-2qqxsw/xz-5.2.6/build-aux/missing'\'' autoheader'
AUTOMAKE='${SHELL} '\''/tmp/xz-20220914-6304-2qqxsw/xz-5.2.6/build-aux/missing'\'' automake-1.16'
AWK='gawk'
CAPSICUM_LIB=''
CC='gcc-7'
CCAS=''
CCASDEPMODE=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS=''
CFLAG_VISIBILITY=''
COND_ASM_X86_64_FALSE='#'
COND_ASM_X86_64_TRUE=''
COND_ASM_X86_FALSE=''
COND_ASM_X86_TRUE='#'
COND_CHECK_CRC32_FALSE='#'
COND_CHECK_CRC32_TRUE=''
COND_CHECK_CRC64_FALSE='#'
COND_CHECK_CRC64_TRUE=''
COND_CHECK_SHA256_FALSE='#'
COND_CHECK_SHA256_TRUE=''
COND_DECODER_ARMTHUMB_FALSE='#'
COND_DECODER_ARMTHUMB_TRUE=''
COND_DECODER_ARM_FALSE='#'
COND_DECODER_ARM_TRUE=''
COND_DECODER_DELTA_FALSE='#'
COND_DECODER_DELTA_TRUE=''
COND_DECODER_IA64_FALSE='#'
COND_DECODER_IA64_TRUE=''
COND_DECODER_LZMA1_FALSE='#'
COND_DECODER_LZMA1_TRUE=''
COND_DECODER_LZMA2_FALSE='#'
COND_DECODER_LZMA2_TRUE=''
COND_DECODER_LZ_FALSE='#'
COND_DECODER_LZ_TRUE=''
COND_DECODER_POWERPC_FALSE='#'
COND_DECODER_POWERPC_TRUE=''
COND_DECODER_SIMPLE_FALSE='#'
COND_DECODER_SIMPLE_TRUE=''
COND_DECODER_SPARC_FALSE='#'
COND_DECODER_SPARC_TRUE=''
COND_DECODER_X86_FALSE='#'
COND_DECODER_X86_TRUE=''
COND_DOC_FALSE='#'
COND_DOC_TRUE=''
COND_ENCODER_ARMTHUMB_FALSE='#'
COND_ENCODER_ARMTHUMB_TRUE=''
COND_ENCODER_ARM_FALSE='#'
COND_ENCODER_ARM_TRUE=''
COND_ENCODER_DELTA_FALSE='#'
COND_ENCODER_DELTA_TRUE=''
COND_ENCODER_IA64_FALSE='#'
COND_ENCODER_IA64_TRUE=''
COND_ENCODER_LZMA1_FALSE='#'
COND_ENCODER_LZMA1_TRUE=''
COND_ENCODER_LZMA2_FALSE='#'
COND_ENCODER_LZMA2_TRUE=''
COND_ENCODER_LZ_FALSE='#'
COND_ENCODER_LZ_TRUE=''
COND_ENCODER_POWERPC_FALSE='#'
COND_ENCODER_POWERPC_TRUE=''
COND_ENCODER_SIMPLE_FALSE='#'
COND_ENCODER_SIMPLE_TRUE=''
COND_ENCODER_SPARC_FALSE='#'
COND_ENCODER_SPARC_TRUE=''
COND_ENCODER_X86_FALSE='#'
COND_ENCODER_X86_TRUE=''
COND_FILTER_ARMTHUMB_FALSE='#'
COND_FILTER_ARMTHUMB_TRUE=''
COND_FILTER_ARM_FALSE='#'
COND_FILTER_ARM_TRUE=''
COND_FILTER_DELTA_FALSE='#'
COND_FILTER_DELTA_TRUE=''
COND_FILTER_IA64_FALSE='#'
COND_FILTER_IA64_TRUE=''
COND_FILTER_LZMA1_FALSE='#'
COND_FILTER_LZMA1_TRUE=''
COND_FILTER_LZMA2_FALSE='#'
COND_FILTER_LZMA2_TRUE=''
COND_FILTER_LZ_FALSE='#'
COND_FILTER_LZ_TRUE=''
COND_FILTER_POWERPC_FALSE='#'
COND_FILTER_POWERPC_TRUE=''
COND_FILTER_SIMPLE_FALSE='#'
COND_FILTER_SIMPLE_TRUE=''
COND_FILTER_SPARC_FALSE='#'
COND_FILTER_SPARC_TRUE=''
COND_FILTER_X86_FALSE='#'
COND_FILTER_X86_TRUE=''
COND_GNULIB_FALSE=''
COND_GNULIB_TRUE=''
COND_INTERNAL_SHA256_FALSE=''
COND_INTERNAL_SHA256_TRUE=''
COND_LZMADEC_FALSE='#'
COND_LZMADEC_TRUE=''
COND_LZMAINFO_FALSE='#'
COND_LZMAINFO_TRUE=''
COND_LZMALINKS_FALSE='#'
COND_LZMALINKS_TRUE=''
COND_MAIN_DECODER_FALSE='#'
COND_MAIN_DECODER_TRUE=''
COND_MAIN_ENCODER_FALSE='#'
COND_MAIN_ENCODER_TRUE=''
COND_SCRIPTS_FALSE='#'
COND_SCRIPTS_TRUE=''
COND_SHARED_FALSE=''
COND_SHARED_TRUE=''
COND_SMALL_FALSE=''
COND_SMALL_TRUE='#'
COND_SYMVERS_FALSE='#'
COND_SYMVERS_TRUE=''
COND_THREADS_FALSE=''
COND_THREADS_TRUE=''
COND_W32_FALSE=''
COND_W32_TRUE='#'
COND_XZDEC_FALSE='#'
COND_XZDEC_TRUE=''
COND_XZ_FALSE='#'
COND_XZ_TRUE=''
CPP=''
CPPFLAGS=''
CSCOPE='cscope'
CTAGS='ctags'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ETAGS='etags'
EXEEXT=''
FGREP=''
FILECMD=''
GETOPT_H=''
GETTEXT_MACRO_VERSION=''
GMSGFMT=''
GMSGFMT_015=''
GREP=''
HAVE_VISIBILITY=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTLLIBS=''
INTL_MACOSX_LIBS=''
LD=''
LDFLAGS=''
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_EXEEXT='$(EXEEXT)'
LN_S='ln -s'
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} '\''/tmp/xz-20220914-6304-2qqxsw/xz-5.2.6/build-aux/missing'\'' makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/bin/mkdir -p'
MSGFMT=''
MSGMERGE=''
MSGMERGE_FOR_MSGFMT_OPTION=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='xz'
PACKAGE_BUGREPORT='lasse.collin@tukaani.org'
PACKAGE_NAME='XZ Utils'
PACKAGE_STRING='XZ Utils 5.2.6'
PACKAGE_TARNAME='xz'
PACKAGE_URL='https://tukaani.org/xz/'
PACKAGE_VERSION='5.2.6'
PATH_SEPARATOR=':'
POSIX_SHELL='/bin/bash'
POSUB=''
PREFERABLY_POSIX_SHELL='/bin/bash'
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
RANLIB=''
RC=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
USE_NLS=''
VERSION='5.2.6'
XGETTEXT=''
XGETTEXT_015=''
XGETTEXT_EXTRA_OPTIONS=''
ac_ct_AR=''
ac_ct_CC='gcc-7'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
ax_pthread_config=''
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
enable_path_for_scripts=''
exec_prefix='NONE'
host='x86_64-pc-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /tmp/xz-20220914-6304-2qqxsw/xz-5.2.6/build-aux/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/ubuntu/.linuxbrew/Cellar/xz/5.2.6'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
xz=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "XZ Utils"
#define PACKAGE_TARNAME "xz"
#define PACKAGE_VERSION "5.2.6"
#define PACKAGE_STRING "XZ Utils 5.2.6"
#define PACKAGE_BUGREPORT "lasse.collin@tukaani.org"
#define PACKAGE_URL "https://tukaani.org/xz/"
#define NDEBUG 1
#define HAVE_ENCODER_LZMA1 1
#define HAVE_ENCODER_LZMA2 1
#define HAVE_ENCODER_DELTA 1
#define HAVE_ENCODER_X86 1
#define HAVE_ENCODER_POWERPC 1
#define HAVE_ENCODER_IA64 1
#define HAVE_ENCODER_ARM 1
#define HAVE_ENCODER_ARMTHUMB 1
#define HAVE_ENCODER_SPARC 1
#define HAVE_ENCODERS 1
#define HAVE_DECODER_LZMA1 1
#define HAVE_DECODER_LZMA2 1
#define HAVE_DECODER_DELTA 1
#define HAVE_DECODER_X86 1
#define HAVE_DECODER_POWERPC 1
#define HAVE_DECODER_IA64 1
#define HAVE_DECODER_ARM 1
#define HAVE_DECODER_ARMTHUMB 1
#define HAVE_DECODER_SPARC 1
#define HAVE_DECODERS 1
#define HAVE_MF_HC3 1
#define HAVE_MF_HC4 1
#define HAVE_MF_BT2 1
#define HAVE_MF_BT3 1
#define HAVE_MF_BT4 1
#define HAVE_CHECK_CRC32 1
#define HAVE_CHECK_CRC64 1
#define HAVE_CHECK_SHA256 1
#define ASSUME_RAM 128
#define PACKAGE "xz"
#define VERSION "5.2.6"

configure: exit 77

What did you expect to happen?

The installation succeed

Step-by-step reproduction instructions (by running brew commands)

`brew install hello`
MikeMcQuaid commented 1 year ago
Warning: Your Homebrew's prefix is not /home/linuxbrew/.linuxbrew.
Some of Homebrew's bottles (binary packages) can only be used with the default
prefix (/home/linuxbrew/.linuxbrew).
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
unsupported configuration.
cilence commented 1 year ago

i have the same problem My computer configuration is exactly the same

$ brew install --build-from-source ncurses ==> Downloading https://ftp.gnu.org/gnu/ncurses/ncurses-6.3.tar.gz Already downloaded: /home/wxy/.cache/Homebrew/downloads/6ead41de35c5a527bcc6c589b716a81d7741bb348d72e942ee7b640f960dbb4c--ncurses-6.3.tar.gz /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/language/python.rb:10: warning: Insecure world writable dir /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/shared in PATH, mode 040777 ==> ./configure --prefix=/home/linuxbrew/.linuxbrew/Homebrew/Cellar/ncurses/6.3 --enable-pc-files --with-pkg-config-libdir=/home/linuxbrew/.linuxbrew/Homebrew/Cellar/ncurses/6.3/lib/pkgconfig --enable-sigwinch --enable-symlinks --enable-wide Last 15 lines from /home/wxy/.cache/Homebrew/Logs/ncurses/01.configure: --with-terminfo-dirs=/home/linuxbrew/.linuxbrew/Homebrew/Cellar/ncurses/6.3/share/terminfo:/etc/terminfo:/lib/terminfo:/usr/share/terminfo

checking for ggrep... no checking for grep... grep checking for egrep... grep -E Configuring NCURSES 6.3 ABI 6 (Sun Sep 18 04:47:10 UTC 2022) checking for package version... 6.3 checking for package patch date... 20211021 checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu Configuring for linux-gnu checking for fgrep... grep -F checking for prefix... /home/linuxbrew/.linuxbrew/Homebrew/Cellar/ncurses/6.3 checking for C compiler default output... configure: error: C compiler cannot create executables

zareami10 commented 1 year ago
Warning: Your Homebrew's prefix is not /home/linuxbrew/.linuxbrew.
Some of Homebrew's bottles (binary packages) can only be used with the default
prefix (/home/linuxbrew/.linuxbrew).
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
unsupported configuration.

This is a regression rather than an old issue, as everything used to work just fine, suddenly breaking many people's setups. Being passive aggressive doesn't help.

carlocab commented 1 year ago

That reply isn't being passive aggressive: we just don't provide support for using Homebrew outside the default prefix. Doing this requires building from source, which can break for a plethora of reasons, and we don't have the resources to address these.

We'll review pull requests to fix this, but won't keep issues open for it.

carlocab commented 1 year ago

That said, doing

brew install binutils

will likely help.

MikeMcQuaid commented 1 year ago

This is a regression rather than an old issue, as everything used to work just fine, suddenly breaking many people's setups. Being passive aggressive doesn't help.

I quoted this because the literal message you have pasted here tells you to not open issues.