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

Problem of installing brew gcc@7 and falaise #11

Closed
MHoballah opened this issue Apr 19, 2019 · 13 comments
Closed

Problem of installing brew gcc@7 and falaise #11

MHoballah opened this issue Apr 19, 2019 · 13 comments

Comments

@MHoballah
Copy link

                          Dear Ben,

We had problems installing falaise brew at Lyon when installing gcc@7.
Thanks for the help for the new student Malak Hoballah, cheers

                              Laurent and Malak 

==> Installing gcc@7
==> Downloading https://ftp.gnu.org/gnu/gcc/gcc-7.4.0/gcc-7.4.0.tar.xz
Already downloaded: /pbs/home/m/mhoballa/.cache/Homebrew/downloads/07bf377bb288d33327b5db269277c2fee319dafda4a3c8b7970bfb347858257b--gcc-7.4.0.tar.xz
==> ../configure --with-bugurl=https://github.com/Linuxbrew/homebrew-core/issues --disable-multilib --with-native-system-header-dir=/pbs/home/m/mhoballa/soft_supernemo/snemo-sdk/include --with-specs=%{!st
==> make
Last 15 lines from /pbs/home/m/mhoballa/.cache/Homebrew/Logs/gcc@7/02.make:
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depdir commands
mkdir -p -- .deps
make[2]: Leaving directory /tmp/gcc@7-20190419-34151-bpk1ny/gcc-7.4.0/build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory /tmp/gcc@7-20190419-34151-bpk1ny/gcc-7.4.0/build'
make: *** [all] Error 2

READ THIS: https://github.com/SuperNEMO-DBD/brew/issues
Please do not report this issue to Homebrew/brew or Homebrew/core,
which support macOS only."

These open issues may also help:
Review RPATH in *link section of specs file for gcc-7 SuperNEMO-DBD/homebrew-core#1
/pbs/home/m/mhoballa/soft_supernemo(1)>^C
/pbs/home/m/mhoballa/soft_supernemo(130)>^C
/pbs/home/m/mhoballa/soft_supernemo(130)>^C
/pbs/home/m/mhoballa/soft_supernemo(130)>brew test falaise
Error: Testing requires the latest version of falaise

@drbenmorgan
Copy link
Member

Hi @MHoballah, could you run:

brew gist-logs gcc@7

and post the link here please?

@drbenmorgan
Copy link
Member

Also note that you don't have to install Falaise by hand at CC-IN2P3. Singularity containers are available as documented in the README:

and in the docs from the Annecy tutorial:

@MHoballah
Copy link
Author

Hello,
Here's the link:

https://github.com/settings/tokens/new?scopes=gist,public_repo&description=Homebrew

Thanks in advance,
Malak

@drbenmorgan
Copy link
Member

Thanks, but that's not a gist link. It looks like it's asking you to set up an access token. Did it print:

You can create a new personal access token:
  https://github.com/settings/tokens/new?scopes=gist,public_repo&description=Homebrew
echo 'export HOMEBREW_GITHUB_API_TOKEN=your_token_here' >> ~/.bash_profile

GitHub User: 

Create that token and follow the instructions for adding it to your shell profile, or run:

$ HOMEBREW_GITHUB_API_TOKEN=your_token_here brew gist-logs gcc@7

@MHoballah
Copy link
Author

sorry, this is the link:
https://gist.github.com/d3bc534ae5bda417fe47b17eacdea6e4

@drbenmorgan
Copy link
Member

O.k., can you run

$ brew ls --versions

and post the output please?

@MHoballah
Copy link
Author

sure:

binutils 2.32
bzip2 1.0.6_1
curl 7.64.0
gcc@7 7.4.0
gettext 0.19.8.1_1
glibc 2.23
gmp 6.1.2_2
gpatch 2.7.6
isl 0.20
libbsd 0.8.3
libmpc 1.1.0
linux-headers 4.4.80
m4 1.4.18
mpfr 4.0.1
ncurses 6.1
openssl 1.0.2q_2
pcre2 10.32
pkg-config 0.29.2_1
zlib 1.2.11

@drbenmorgan
Copy link
Member

The problem is likely caused by the presence of glib, and looks like the error isn't fundamentally due to gcc. Could you post the exact sequence of commands you used to try and install falaise please?

@MHoballah
Copy link
Author

I followed the steps in this link:

https://github.com/SuperNEMO-DBD/brew

$ sudo apt-get install ca-certificates curl file g++ git locales make uuid-runtime libx11-dev libxpm-dev libxft-dev libxext-dev libglu1-mesa-dev flex texinfo
$ git clone https://github.com/SuperNEMO-DBD/brew.git snemo-sdk
$ eval $(./snemo-sdk/bin/brew shellenv)
$ brew snemo-doctor
$ brew snemo-bootstrap

but did not go past "brew snemo-bootstrap" due to an error and fails in installations.
The Error:
"
Skipping install of gcc@7 formula. It is already up-to-date.
Using gcc@7
Installing patchelf formula. It is not currently installed.
Error: An exception occurred within a child process:
RuntimeError: The requested Homebrew GCC was not installed. You must:
brew install gcc@7
"
but i cant manage to install gcc@7. It's either exiting due to a time-out, or my connection to cca.in2p3.fr is closed by a remote host.

@drbenmorgan
Copy link
Member

Thanks, I think I see what's happened. What you'll need to do is:

  1. Run brew rm $(brew ls) to remove everything
  2. Run brew snemo-doctor again, and post the output here.
  3. Run brew snemo-bootstrap again.
  4. If it fails, don't do anything else, and post the full output here as this will lead to the formula that failed to install.

@MHoballah
Copy link
Author

"brew snemo-doctor" output:
Please note that these warnings are just used to help the SuperNEMO 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: "config" scripts exist outside your system or Homebrew directories.
./configure scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/pbs/software/centos-7-x86_64/xrootd/4.8.1/bin/xrootd-config
/bin/curl-config
/bin/xml2-config
/bin/euca-generate-environment-config
/bin/pcre-config
/bin/neon-config
/bin/freetype-config
/bin/icu-config
/bin/libpng15-config
/bin/python2.7-config
/bin/krb5-config
/bin/nss-util-config
/bin/libusb-config
/bin/nspr-config
/bin/python2-config
/bin/ncurses5-config
/bin/gdlib-config
/bin/nss-softokn-config
/bin/nss-config
/bin/euscale-delete-launch-config
/bin/apr-1-config
/bin/pkg-config
/bin/euscale-create-launch-config
/bin/python-config
/bin/net-snmp-config
/bin/libpng-config
/bin/libgnutls-config
/bin/log4cpp-config
/bin/gsl-config
/bin/ncursesw5-config
/bin/apu-1-config

Warning: An outdated version (1.8.3.1) of Git was detected in your PATH.
Git 2.7.0 or newer is required for Homebrew.
Please upgrade:
brew install git

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 may encounter build failures with some formulae as
brew is being run in an unsupported configuration
In these cases, please raise an issue at https://github.com/SuperNEMO-DBD/homebrew-core/issues

@drbenmorgan
Copy link
Member

O.k., that looks better. See what happens with the delete/reinstall, and we can try and track down the formula causing the problem.

@drbenmorgan
Copy link
Member

drbenmorgan commented Apr 29, 2019 via email

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