Coder Social home page Coder Social logo

Comments (15)

rwhogg avatar rwhogg commented on May 24, 2024

Hi @kaji331, can you please do a brew gist-logs gmp and report the output here? Thanks!

from linuxbrew-core.

kaji331 avatar kaji331 commented on May 24, 2024

I am sorry. I am an beginner, so I don't know how to get the report of brew gist-logs...


发件人: Bob W. Hogg [email protected]
发送时间: 2016年5月23日 9:20
收件人: Linuxbrew/homebrew-core
抄送: kaji331; Mention
主题: Re: [Linuxbrew/homebrew-core] brew install gcc, errors in RHEL6 with centos6 repository (#306)

Hi @kaji331https://github.com/kaji331, can you please do a brew gist-logs gcc and report the output here? Thanks!


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHubhttps://github.com//issues/306#issuecomment-220869343

from linuxbrew-core.

rwhogg avatar rwhogg commented on May 24, 2024

I am sorry. I am an beginner, so I don't know how to get the report of brew gist-logs...

No worries!

I just meant to run "brew gist-logs gmp" in your terminal and paste the URL it displays here.

from linuxbrew-core.

kaji331 avatar kaji331 commented on May 24, 2024

@rwhogg https://gist.github.com/4e97978be044a5aeaff07aa5d1fa6247

from linuxbrew-core.

rwhogg avatar rwhogg commented on May 24, 2024

GCC-compiled programs appear to be segfaulting: ./configure: line 5829: 16716 Segmentation fault (core dumped) ./a.out.

Does GCC work at all for you?

Can you try compiling this program in two different ways and see what happens when you run it?

#include <stdio.h>
int main(int argc, char** argv)
{
    printf("Hi");
}

First way: gcc file.c
Second way: gcc -Os -w -pipe -march=native -isystem/home/cancer/.linuxbrew/include file.c

from linuxbrew-core.

kaji331 avatar kaji331 commented on May 24, 2024

@rwhogg Maybe my gcc is ok. Both of two methods showed nothing and generated an a.out file. If I execute a.out, the zsh showed:
Hi%

Thanks for your help 👍

from linuxbrew-core.

rwhogg avatar rwhogg commented on May 24, 2024

No problem. Unfortunately, I don't have any further ideas about how to fix this. My apologies.

from linuxbrew-core.

sjackman avatar sjackman commented on May 24, 2024

patchelf is failing.

==> Pouring gmp-6.1.0.x86_64_linux.bottle.tar.gz
/home/cancer/.linuxbrew/Cellar/patchelf/0.9/bin/patchelf: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Error: Failure while executing: /home/cancer/.linuxbrew/Cellar/patchelf/0.9/bin/patchelf --set-rpath /home/cancer/.linuxbrew/lib 

Please report

which -a patchelf
brew test patchelf
patchelf --version
ldd `which patchelf`
brew reinstall patchelf
which -a patchelf
brew test patchelf
patchelf --version
ldd `which patchelf`

from linuxbrew-core.

jrevillard avatar jrevillard commented on May 24, 2024

I'm expecting the exact same issue when building everything from source on SL6 (I don't have the patchelf issue as I'm forcing installation from source).

Do you have an idea?

Best,
Jerome

from linuxbrew-core.

sjackman avatar sjackman commented on May 24, 2024

@kaji331 patchelf has recently been updated with a statically linked bottle that should resolve your issue. brew update && brew reinstall patchelf && brew install gcc

from linuxbrew-core.

sjackman avatar sjackman commented on May 24, 2024

@jrevillard Please report the error message that you're seeing and brew gist-logs FORMULA where FORMULA is the formula or dependency that failed to install.

from linuxbrew-core.

jrevillard avatar jrevillard commented on May 24, 2024

@sjackman here it is: https://gist.github.com/anonymous/3172b3646e876c0df9aee10751f1a5c4

(as you can see I use my own repo but it's up to date with your today changes)

Best,
Jerome

from linuxbrew-core.

sjackman avatar sjackman commented on May 24, 2024

The relevant error is

configure:5820: /usr/bin/gcc -Os -w -pipe -march=native -isystem/cvmfs/neugrid.egi.eu/software/x86_64/test/linuxbrew/include conftest.c >&5
configure:5823: $? = 0
configure:5828: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
./configure: line 5829: 11740 Segmentation fault      (core dumped) ./a.out

https://gist.github.com/anonymous/3172b3646e876c0df9aee10751f1a5c4#file-config-log-L73-L76

Not a good situation. Is there a reason that you're compiling gmp from source rather than installing the precompiled binary bottle? Try

unset HOMEBREW_BUILD_FROM_SOURCE
brew install gmp

from linuxbrew-core.

sjackman avatar sjackman commented on May 24, 2024

When did this segfault issue first occur? I wonder what changed.

from linuxbrew-core.

jrevillard avatar jrevillard commented on May 24, 2024

I'm compiling everything from source to see if it solve this other issue I just reported here: Linuxbrew/brew#66

I don't know exactly when it started. The last time I tried to compile from source was more than a year ago....

from linuxbrew-core.

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.