You are not logged in.

#1 2016-12-10 18:42:43

Rataerix
Member
Registered: 2013-08-08
Posts: 2

[SOLVED] gcc hanging without error message

gcc hangs when I run any command with it, even gcc --help hangs with no output.

core/gcc 6.2.1-1 (base-devel) [installed]
    The GNU Compiler Collection - C and C++ frontends

uname -r
4.8.12-3-ARCH

I've run a `pacman -Syu` with no change.

Thanks

Last edited by Rataerix (2016-12-10 19:14:28)

Offline

#2 2016-12-10 19:00:58

ayekat
Member
Registered: 2011-01-17
Posts: 1,618

Re: [SOLVED] gcc hanging without error message

Please post the output of these commands:

$ which gcc
$ strace gcc

(Note: the second one requires you to have installed the `strace` package)


pkgshackscfgblag

Offline

#3 2016-12-10 19:11:07

Rataerix
Member
Registered: 2013-08-08
Posts: 2

Re: [SOLVED] gcc hanging without error message

which gcc
/usr/lib/hardening-wrapper/bin/gcc

I removed a few items from my PATH which has fixed the issue.

Thanks for your help

Offline

#4 2016-12-10 19:18:21

ayekat
Member
Registered: 2011-01-17
Posts: 1,618

Re: [SOLVED] gcc hanging without error message

Well... you're welcome.

Although, now I'm wondering how /usr/lib/hardening-wrapper (and the contained version of gcc) got onto your machine.
Also, if you had to remove something from your PATH variable, the question is what put it there in the first place.


pkgshackscfgblag

Offline

#5 2016-12-10 20:01:42

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,809
Website

Re: [SOLVED] gcc hanging without error message

I think extra/hardening-wrapper used to be a dependency for one or more commonly used packages, though these days it's not required by anything.

Rataerix, pacman's log would shed some light on the why, if you are interested.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB