Re: [gentoo-user] Clang has gone walkabout

2017-04-10 Thread Andrew Lowe

On 10/04/17 20:58, Simon Thelen wrote:

On 17-04-10 at 20:48, Andrew Lowe wrote:

On 10/04/17 18:57, J. Roeleveld wrote:

On April 10, 2017 12:41:54 PM GMT+02:00, Andrew Lowe  wrote:

On 10/04/17 18:08, Neil Bothwick wrote:

On Mon, 10 Apr 2017 17:13:28 +0800, Andrew Lowe wrote:


Do we have any clang users out there? I've had clang installed
on my machine for ages and a simple "clang test.c" will result in an
executable. I can even nearly build my whole machine using clang, so
its up and running. I've now just updated clang, from a working

3.9.1

to a 4.0.0-r1 and clang has now disappeared. If I type in "clang
--version", I get "command not found". "whereis clang" only gives me
the library dir. Doing "ls -la /usr/bin/cla*" gives me "No such file

or

directory"


Try "qlist clang" so see what is installed, "qlist clang | grep bin/"
should find the executables.

qlist is part of portage-utils, which you probably already have.




Done as requested. There are 41 files found with clang in their name
and they are all on the dir:

/usr/lib/llvm/4/bin/

I'm no whiz bang sys-admin but that doesn't seem right to me. There is

clang and clang++ and a whole lot of stuff sym linked to provide all
the
various permutations and combinations of names in there. But there is
nothing in my path that points to that dir. I'll have to have a look at

the ebuild to see if a symlink or something is not being applied.

Any other thoughts appreciated,

Andrew


Try those and see if they respond correctly.
If yes, add that dir to your PATH.

--
Joost



They work as expected and I can add the dir to the path with no
problems, I'm more concerned about why I have add the path - is the
ebuild screwed up in some way?

What is the portage/ebuild doco like? Is it well documented or are
there gaping holes that lead to frustration - my level of understanding
of coding is 25 years of C/C++ coding on CAD systems & engineering
applications and even though I run a Gentoo box as my default machine,
I've never had the need to get into bash scripting - but might.

Andrew



Try running `env-update && source /etc/profile'. Your path should be
extended by /etc/profile.env which is generated from /etc/env.d/10llvm-9995.



SUCCESS!!

Thanks



Re: [gentoo-user] Clang has gone walkabout

2017-04-10 Thread Simon Thelen
On 17-04-10 at 20:48, Andrew Lowe wrote:
> On 10/04/17 18:57, J. Roeleveld wrote:
> > On April 10, 2017 12:41:54 PM GMT+02:00, Andrew Lowe  
> > wrote:
> >> On 10/04/17 18:08, Neil Bothwick wrote:
> >>> On Mon, 10 Apr 2017 17:13:28 +0800, Andrew Lowe wrote:
> >>>
>   Do we have any clang users out there? I've had clang installed
>  on my machine for ages and a simple "clang test.c" will result in an
>  executable. I can even nearly build my whole machine using clang, so
>  its up and running. I've now just updated clang, from a working
> >> 3.9.1
>  to a 4.0.0-r1 and clang has now disappeared. If I type in "clang
>  --version", I get "command not found". "whereis clang" only gives me
>  the library dir. Doing "ls -la /usr/bin/cla*" gives me "No such file
> >> or
>  directory"
> >>>
> >>> Try "qlist clang" so see what is installed, "qlist clang | grep bin/"
> >>> should find the executables.
> >>>
> >>> qlist is part of portage-utils, which you probably already have.
> >>>
> >>>
> >>
> >>Done as requested. There are 41 files found with clang in their name
> >> and they are all on the dir:
> >>
> >>/usr/lib/llvm/4/bin/
> >>
> >>I'm no whiz bang sys-admin but that doesn't seem right to me. There is
> >>
> >> clang and clang++ and a whole lot of stuff sym linked to provide all
> >> the
> >> various permutations and combinations of names in there. But there is
> >> nothing in my path that points to that dir. I'll have to have a look at
> >>
> >> the ebuild to see if a symlink or something is not being applied.
> >>
> >>Any other thoughts appreciated,
> >>
> >>Andrew
> >
> > Try those and see if they respond correctly.
> > If yes, add that dir to your PATH.
> >
> > --
> > Joost
> >
> 
>   They work as expected and I can add the dir to the path with no 
> problems, I'm more concerned about why I have add the path - is the 
> ebuild screwed up in some way?
> 
>   What is the portage/ebuild doco like? Is it well documented or are 
> there gaping holes that lead to frustration - my level of understanding 
> of coding is 25 years of C/C++ coding on CAD systems & engineering 
> applications and even though I run a Gentoo box as my default machine, 
> I've never had the need to get into bash scripting - but might.
> 
>   Andrew
> 

Try running `env-update && source /etc/profile'. Your path should be
extended by /etc/profile.env which is generated from /etc/env.d/10llvm-9995.

-- 
Simon Thelen



Re: [gentoo-user] Clang has gone walkabout

2017-04-10 Thread Andrew Lowe

On 10/04/17 18:57, J. Roeleveld wrote:

On April 10, 2017 12:41:54 PM GMT+02:00, Andrew Lowe  wrote:

On 10/04/17 18:08, Neil Bothwick wrote:

On Mon, 10 Apr 2017 17:13:28 +0800, Andrew Lowe wrote:


Do we have any clang users out there? I've had clang installed
on my machine for ages and a simple "clang test.c" will result in an
executable. I can even nearly build my whole machine using clang, so
its up and running. I've now just updated clang, from a working

3.9.1

to a 4.0.0-r1 and clang has now disappeared. If I type in "clang
--version", I get "command not found". "whereis clang" only gives me
the library dir. Doing "ls -la /usr/bin/cla*" gives me "No such file

or

directory"


Try "qlist clang" so see what is installed, "qlist clang | grep bin/"
should find the executables.

qlist is part of portage-utils, which you probably already have.




Done as requested. There are 41 files found with clang in their name
and they are all on the dir:

/usr/lib/llvm/4/bin/

I'm no whiz bang sys-admin but that doesn't seem right to me. There is

clang and clang++ and a whole lot of stuff sym linked to provide all
the
various permutations and combinations of names in there. But there is
nothing in my path that points to that dir. I'll have to have a look at

the ebuild to see if a symlink or something is not being applied.

Any other thoughts appreciated,

Andrew


Try those and see if they respond correctly.
If yes, add that dir to your PATH.

--
Joost



	They work as expected and I can add the dir to the path with no 
problems, I'm more concerned about why I have add the path - is the 
ebuild screwed up in some way?


	What is the portage/ebuild doco like? Is it well documented or are 
there gaping holes that lead to frustration - my level of understanding 
of coding is 25 years of C/C++ coding on CAD systems & engineering 
applications and even though I run a Gentoo box as my default machine, 
I've never had the need to get into bash scripting - but might.


Andrew



Re: [gentoo-user] Clang has gone walkabout

2017-04-10 Thread J. Roeleveld
On April 10, 2017 12:41:54 PM GMT+02:00, Andrew Lowe  wrote:
>On 10/04/17 18:08, Neil Bothwick wrote:
>> On Mon, 10 Apr 2017 17:13:28 +0800, Andrew Lowe wrote:
>>
>>> Do we have any clang users out there? I've had clang installed
>>> on my machine for ages and a simple "clang test.c" will result in an
>>> executable. I can even nearly build my whole machine using clang, so
>>> its up and running. I've now just updated clang, from a working
>3.9.1
>>> to a 4.0.0-r1 and clang has now disappeared. If I type in "clang
>>> --version", I get "command not found". "whereis clang" only gives me
>>> the library dir. Doing "ls -la /usr/bin/cla*" gives me "No such file
>or
>>> directory"
>>
>> Try "qlist clang" so see what is installed, "qlist clang | grep bin/"
>> should find the executables.
>>
>> qlist is part of portage-utils, which you probably already have.
>>
>>
>
>   Done as requested. There are 41 files found with clang in their name 
>and they are all on the dir:
>
>   /usr/lib/llvm/4/bin/
>
>   I'm no whiz bang sys-admin but that doesn't seem right to me. There is
>
>clang and clang++ and a whole lot of stuff sym linked to provide all
>the 
>various permutations and combinations of names in there. But there is 
>nothing in my path that points to that dir. I'll have to have a look at
>
>the ebuild to see if a symlink or something is not being applied.
>
>   Any other thoughts appreciated,
>
>   Andrew

Try those and see if they respond correctly.
If yes, add that dir to your PATH.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Clang has gone walkabout

2017-04-10 Thread Andrew Lowe

On 10/04/17 18:08, Neil Bothwick wrote:

On Mon, 10 Apr 2017 17:13:28 +0800, Andrew Lowe wrote:


Do we have any clang users out there? I've had clang installed
on my machine for ages and a simple "clang test.c" will result in an
executable. I can even nearly build my whole machine using clang, so
its up and running. I've now just updated clang, from a working 3.9.1
to a 4.0.0-r1 and clang has now disappeared. If I type in "clang
--version", I get "command not found". "whereis clang" only gives me
the library dir. Doing "ls -la /usr/bin/cla*" gives me "No such file or
directory"


Try "qlist clang" so see what is installed, "qlist clang | grep bin/"
should find the executables.

qlist is part of portage-utils, which you probably already have.




	Done as requested. There are 41 files found with clang in their name 
and they are all on the dir:


/usr/lib/llvm/4/bin/

	I'm no whiz bang sys-admin but that doesn't seem right to me. There is 
clang and clang++ and a whole lot of stuff sym linked to provide all the 
various permutations and combinations of names in there. But there is 
nothing in my path that points to that dir. I'll have to have a look at 
the ebuild to see if a symlink or something is not being applied.


Any other thoughts appreciated,

Andrew





Re: [gentoo-user] Clang has gone walkabout

2017-04-10 Thread Mick
On Monday 10 Apr 2017 11:08:05 Neil Bothwick wrote:
> On Mon, 10 Apr 2017 17:13:28 +0800, Andrew Lowe wrote:
> > Do we have any clang users out there? I've had clang installed
> > 
> > on my machine for ages and a simple "clang test.c" will result in an
> > executable. I can even nearly build my whole machine using clang, so
> > its up and running. I've now just updated clang, from a working 3.9.1
> > to a 4.0.0-r1 and clang has now disappeared. If I type in "clang
> > --version", I get "command not found". "whereis clang" only gives me
> > the library dir. Doing "ls -la /usr/bin/cla*" gives me "No such file or
> > directory"
> 
> Try "qlist clang" so see what is installed, "qlist clang | grep bin/"
> should find the executables.
> 
> qlist is part of portage-utils, which you probably already have.

I seem to recall clang clashing recently with some package, which required the 
clang USE flag to be unset - was it llvm?  I suspect as a result clang is no 
longer installed on my laptop.
-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Clang has gone walkabout

2017-04-10 Thread Neil Bothwick
On Mon, 10 Apr 2017 17:13:28 +0800, Andrew Lowe wrote:

>   Do we have any clang users out there? I've had clang installed
> on my machine for ages and a simple "clang test.c" will result in an 
> executable. I can even nearly build my whole machine using clang, so
> its up and running. I've now just updated clang, from a working 3.9.1
> to a 4.0.0-r1 and clang has now disappeared. If I type in "clang
> --version", I get "command not found". "whereis clang" only gives me
> the library dir. Doing "ls -la /usr/bin/cla*" gives me "No such file or
> directory"

Try "qlist clang" so see what is installed, "qlist clang | grep bin/"
should find the executables.

qlist is part of portage-utils, which you probably already have.


-- 
Neil Bothwick

Celery is not food. It is a member of the plywood family.


pgpK93Ywpt_pS.pgp
Description: OpenPGP digital signature


[gentoo-user] Clang has gone walkabout

2017-04-10 Thread Andrew Lowe

Hi all,
	Do we have any clang users out there? I've had clang installed on my 
machine for ages and a simple "clang test.c" will result in an 
executable. I can even nearly build my whole machine using clang, so its 
up and running. I've now just updated clang, from a working 3.9.1 to a 
4.0.0-r1 and clang has now disappeared. If I type in "clang --version", 
I get "command not found". "whereis clang" only gives me the library 
dir. Doing "ls -la /usr/bin/cla*" gives me "No such file or directory"


	I've run the install several times. I've even uninstalled both clang 
and llvm and then reinstalled and still the same. The only thing that I 
can think of is that whilst doing the original update, for some reason 
my machine crashed during the clang install. This may have screwed 
something up.


	Has anyone managed to do the install/update and have a working latest 
clang?


Thoughts/comments greatly appreciated,

Andrew

p.s. Looking in the /usr/lib64/clang/4.0.0 dir shows plenty of libraries 
in there.