Comments (7)
Thanks for the report. Looks like the problem is not with Linuxbrew but rather with your NFS and cp-pR
is not working right, see here.
Could you please report what you see when you execute the command below?
cp -pR "$(brew --cache)/libxcb-1.12.tar.bz2" /gtmp/yingzhou/
from homebrew-xorg.
cp -pR "$(brew --cache)/libxcb-1.12.tar.bz2" /gtmp/yingzhou/
This command is success without any warning or error.
from homebrew-xorg.
Can you provide us with the steps to reproduce this bug not on the machine you're trying to use?
from homebrew-xorg.
Sorry, I do not have access to another Linux computer at this stage.
I have tried another solution but failed with the same error. The solution I have tried is to set both the cache and temp folder of linuxbrew to the same folder as the .linuxbrew
, i.e.,
export HOMEBREW_TEMP=/gtmp/yingzhou/.temp
export HOMEBREW_CACHE=/gtmp/yingzhou/.temp
where .linuxbrew
is /gtmp/yingzhou/.linuxbrew
.
However, the similar error message appears,
==> Installing libxcb from linuxbrew/xorg
==> Downloading https://xcb.freedesktop.org/dist/libxcb-1.12.tar.bz2
######################################################################## 100.0%
==> Downloading https://cgit.freedesktop.org/xcb/libxcb/patch/?id=8740a288ca4684
######################################################################## 100.0%
==> Patching
==> Applying id=8740a288ca468433141341347aa115b9544891d3
patching file src/c_client.py
==> ./configure --prefix=/gtmp/yingzhou/.linuxbrew/Cellar/libxcb/1.12 --sysconfd
==> make
==> make check
==> make install
Last 15 lines from /home/postdoc/yingzhou/.cache/Homebrew/Logs/libxcb/04.make:
make[3]: Leaving directory `/gtmp/yingzhou/.temp/libxcb-20171002-18246-u80zxz/libxcb-1.12/tests'
make[2]: Leaving directory `/gtmp/yingzhou/.temp/libxcb-20171002-18246-u80zxz/libxcb-1.12/tests'
make[1]: Leaving directory `/gtmp/yingzhou/.temp/libxcb-20171002-18246-u80zxz/libxcb-1.12/tests'
Making install in doc
make[1]: Entering directory `/gtmp/yingzhou/.temp/libxcb-20171002-18246-u80zxz/libxcb-1.12/doc'
make[2]: Entering directory `/gtmp/yingzhou/.temp/libxcb-20171002-18246-u80zxz/libxcb-1.12/doc'
make[2]: Nothing to be done for `install-exec-am'.
/bin/sh /gtmp/yingzhou/.temp/libxcb-20171002-18246-u80zxz/libxcb-1.12/build-aux/install-sh -d '/gtmp/yingzhou/.linuxbrew/Cellar/libxcb/1.12/share/doc/libxcb'
cp -pR ./tutorial '/gtmp/yingzhou/.linuxbrew/Cellar/libxcb/1.12/share/doc/libxcb/'
cp: preserving permissions for ‘/gtmp/yingzhou/.linuxbrew/Cellar/libxcb/1.12/share/doc/libxcb/tutorial’: Invalid argument
make[2]: *** [install-data-local] Error 1
make[2]: Leaving directory `/gtmp/yingzhou/.temp/libxcb-20171002-18246-u80zxz/libxcb-1.12/doc'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/gtmp/yingzhou/.temp/libxcb-20171002-18246-u80zxz/libxcb-1.12/doc'
make: *** [install-recursive] Error 1
from homebrew-xorg.
I'm getting the same problem on an instance of RHEL 7 installed on an AWS EC2 server:
[ec2-user@ip-172-31-0-212 ~]$ brew install gedit
==> Installing dependencies for gedit: linuxbrew/xorg/libxcb, linuxbrew/xorg/libx11, linuxbrew/xorg/libxext, linuxbrew/xorg/libfs, linuxbrew/xorg/libice, linuxbrew/xorg/libsm, linuxbrew/xorg/libxscrnsaver, linuxbrew/xorg/libxt, linuxbrew/xorg/libxmu, libxml2, gettext, linuxbrew/xorg/libxpm, linuxbrew/xorg/libxaw, linuxbrew/xorg/libxaw3d, linuxbrew/xorg/libxfixes, linuxbrew/xorg/libxcomposite, linuxbrew/xorg/libxrender, linuxbrew/xorg/libxcursor, linuxbrew/xorg/libxdamage, linuxbrew/xorg/font-util, linuxbrew/xorg/libfontenc, libpng, freetype, linuxbrew/xorg/libxfont, autoconf, automake, gperf, libtool, fontconfig, linuxbrew/xorg/libxft, linuxbrew/xorg/libxi, linuxbrew/xorg/libxinerama, linuxbrew/xorg/libxrandr, linuxbrew/xorg/libxres, linuxbrew/xorg/libxtst, linuxbrew/xorg/libxv, linuxbrew/xorg/libxvmc, linuxbrew/xorg/libxxf86dga, linuxbrew/xorg/libxxf86vm, linuxbrew/xorg/libdmx, linuxbrew/xorg/libpciaccess, linuxbrew/xorg/libxkbfile, linuxbrew/xorg/libxshmfence, linuxbrew/xorg/xdpyinfo, linuxbrew/xorg/xorg, intltool, itstool, libffi, pcre, util-linux, glib, pixman, cairo, bison, help2man, flex, gobject-introspection, atk, jpeg, libtiff, shared-mime-info, gdk-pixbuf, graphite2, icu4c, harfbuzz, pango, cunit, linuxbrew/xorg/libdrm, coreutils, docbook, docbook-xsl, libxslt, libcap, systemd, linuxbrew/xorg/libsha1, gcc, libedit, cmake, llvm, libelf, linuxbrew/xorg/libomxil-bellagio, linuxbrew/xorg/wayland, linuxbrew/xorg/wayland-protocols, valgrind, linuxbrew/xorg/libva, linuxbrew/xorg/libvdpau, linuxbrew/xorg/mesa, libepoxy, hicolor-icon-theme, gsettings-desktop-schemas, gnu-getopt, xmlto, dbus, at-spi2-core, at-spi2-atk, gtk+3, boost, source-highlight, gtk-doc, aspell, enchant, python3, iso-codes, webp, gd, graphviz, vala, gspell, libpeas, gtksourceview3, libssh2, rust, libcroco, librsvg, adwaita-icon-theme
==> Installing gedit dependency: linuxbrew/xorg/libxcb
==> Downloading https://xcb.freedesktop.org/dist/libxcb-1.12.tar.bz2
Already downloaded: /home/ec2-user/.cache/Homebrew/libxcb-1.12.tar.bz2
==> Downloading https://cgit.freedesktop.org/xcb/libxcb/patch/?id=8740a288ca468433141341347aa115b9544891d3
Already downloaded: /home/ec2-user/.cache/Homebrew/libxcb--patch-aa3bdbf37c951d6b42b6aeb3c182b87065761027b3180b6f381088fdd13809b4
==> Patching
==> Applying id=8740a288ca468433141341347aa115b9544891d3
patching file src/c_client.py
==> ./configure --prefix=/home/ec2-user/.linuxbrew/Cellar/libxcb/1.12 --sysconfdir=/home/ec2-user/.linuxbrew/etc --localstatedir=/home/ec2-user/.linuxbrew/var --enable-xevie --enable-xinput --enable-xprint --disable-silent-rules --ena
==> make
==> make check
Last 15 lines from /home/ec2-user/.cache/Homebrew/Logs/libxcb/03.make:
libtool: link: gcc-4.8 -std=gnu99 -Wall -Werror -pthread -I/home/ec2-user/.linuxbrew/Cellar/check/0.12.0/include -I../src -g -O2 -o .libs/check_all check_all.o check_public.o -L/home/ec2-user/.linuxbrew/Cellar/check/0.12.0/lib -lcheck ../src/.libs/libxcb.so -pthread -Wl,-rpath -Wl,/home/ec2-user/.linuxbrew/Cellar/libxcb/1.12/lib
//home/ec2-user/.linuxbrew/lib/librt.so.1: undefined reference to `__libc_pread@GLIBC_PRIVATE'
//home/ec2-user/.linuxbrew/lib/librt.so.1: undefined reference to `__recv@GLIBC_PRIVATE'
//home/ec2-user/.linuxbrew/lib/librt.so.1: undefined reference to `__pthread_barrier_wait@GLIBC_PRIVATE'
//home/ec2-user/.linuxbrew/lib/librt.so.1: undefined reference to `__pthread_barrier_init@GLIBC_PRIVATE'
//home/ec2-user/.linuxbrew/lib/librt.so.1: undefined reference to `__shm_directory@GLIBC_PRIVATE'
//home/ec2-user/.linuxbrew/lib/librt.so.1: undefined reference to `__socket@GLIBC_PRIVATE'
collect2: error: ld returned 1 exit status
make[3]: *** [check_all] Error 1
make[3]: Leaving directory `/tmp/libxcb-20180117-16918-7k33qf/libxcb-1.12/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/tmp/libxcb-20180117-16918-7k33qf/libxcb-1.12/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/tmp/libxcb-20180117-16918-7k33qf/libxcb-1.12/tests'
make: *** [check-recursive] Error 1
READ THIS: https://github.com/Linuxbrew/brew/blob/master/docs/Troubleshooting.md#troubleshooting
Please do not report this issue to Homebrew/brew or Homebrew/core, which support macOS only.
These open issues may also help:
libxcb: build failure https://github.com/Linuxbrew/homebrew-xorg/issues/330
[ec2-user@ip-172-31-0-212 ~]$
from homebrew-xorg.
@ViViFYd Your error message is different. Yours says
collect2: error: ld returned 1 exit status
from homebrew-xorg.
Closing this as "not reproducible".
from homebrew-xorg.
Related Issues (20)
- MESA: libEGL.so conflicts with libglvnd HOT 1
- MESA: "Error: Operation already in progress for mesa.formula" HOT 8
- Repeated 'xorgproto'-related warnings triggered by core brew commands (doctor, leaves, etc) HOT 48
- libx11 Xtranscl.c includes missing sys/stropts.h HOT 9
- libxt: fatal error: glib.h: No such file or directory HOT 33
- Update packages #2 HOT 2
- cannot install libX11 clang: error: no input files (xcode 10 issue?) HOT 1
- Install linuxbrew/xorg/libdrm failed for Cairo tests HOT 42
- Cant build/install libx11 HOT 9
- Making formulae linuxbrew/core-ready HOT 1
- No package 'xf86miscproto' found HOT 6
- build stopped: subcommand failed HOT 2
- Rebuild bottles after first xorg migration to core HOT 1
- brew command return warning messages about xorg packages HOT 5
- Problems installing Deno in Netlify HOT 4
- configure: error: Secure RPC requested, but required functions not found HOT 3
- Migrate to maxim-belkin HOT 1
- The tap no longer works with Homebrew (3.4.2) HOT 8
- Bottle unbottled formulae
- GitHub Actions issues HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-xorg.