Code Monkey home page Code Monkey logo

Comments (7)

maxim-belkin avatar maxim-belkin commented on September 16, 2024

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.

YingzhouLi avatar YingzhouLi commented on September 16, 2024
cp -pR "$(brew --cache)/libxcb-1.12.tar.bz2" /gtmp/yingzhou/

This command is success without any warning or error.

from homebrew-xorg.

maxim-belkin avatar maxim-belkin commented on September 16, 2024

Can you provide us with the steps to reproduce this bug not on the machine you're trying to use?

from homebrew-xorg.

YingzhouLi avatar YingzhouLi commented on September 16, 2024

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.

 avatar commented on September 16, 2024

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.

maxim-belkin avatar maxim-belkin commented on September 16, 2024

@ViViFYd Your error message is different. Yours says

collect2: error: ld returned 1 exit status

from homebrew-xorg.

maxim-belkin avatar maxim-belkin commented on September 16, 2024

Closing this as "not reproducible".

from homebrew-xorg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.