public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] gcc but no cc
@ 2013-11-19  7:48 Adam Carter
  2013-11-19  8:52 ` Alan McKinnon
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Carter @ 2013-11-19  7:48 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org

[-- Attachment #1: Type: text/plain, Size: 803 bytes --]

The install for gcc 4.8.2 flaked out a bit (libgcc_s.so.1 went missing,
during the file installation phase, and therefore bash invocations failed
with missing library errors and i later found that libstdc++.so.6 was also
missing). I have since extracted those files from gcc-4.8.2.tbz2 (because
FEATURES="buildsyspkg"), and gcc-config has run cleanly, but i now notice i
dont have cc. Is it a link/symlink? If so what's the details?

Also given this is the second time i've had a gcc installation killing
libraries, I quite like the idea of having a static bash. Since there's no
"static" use flag, i'm thinking package.env will have
app-shells/bash static.conf

and env/static.conf will be;
CFLAGS="${CFLAGS} -static"

Is there a significant downside to that approach for a machine with plenty
of RAM?

[-- Attachment #2: Type: text/html, Size: 1263 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] gcc but no cc
  2013-11-19  7:48 [gentoo-user] gcc but no cc Adam Carter
@ 2013-11-19  8:52 ` Alan McKinnon
  2013-11-19  9:21   ` Adam Carter
  0 siblings, 1 reply; 4+ messages in thread
From: Alan McKinnon @ 2013-11-19  8:52 UTC (permalink / raw
  To: gentoo-user

On 19/11/2013 09:48, Adam Carter wrote:
> The install for gcc 4.8.2 flaked out a bit (libgcc_s.so.1 went missing,
> during the file installation phase, and therefore bash invocations
> failed with missing library errors and i later found that libstdc++.so.6
> was also missing). I have since extracted those files from
> gcc-4.8.2.tbz2 (because FEATURES="buildsyspkg"), and gcc-config has run
> cleanly, but i now notice i dont have cc. Is it a link/symlink? If so
> what's the details?


It's an identical file to gcc, but not a hard link:

alanm@khamul ~ $ ls -al /usr/bin/cc
-rwxr-xr-x 1 root root 10424 Nov 16 00:43 /usr/bin/cc

alanm@khamul ~ $ ls -al /usr/bin/gcc
-rwxr-xr-x 1 root root 10424 Nov 16 00:43 /usr/bin/gcc

alanm@khamul ~ $ diff /usr/bin/cc /usr/bin/gcc

alanm@khamul ~ $ ls -ali /usr/bin/cc
531047 -rwxr-xr-x 1 root root 10424 Nov 16 00:43 /usr/bin/cc

alanm@khamul ~ $ ls -ali /usr/bin/gcc
530815 -rwxr-xr-x 1 root root 10424 Nov 16 00:43 /usr/bin/gcc




-- 
Alan McKinnon
alan.mckinnon@gmail.com



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] gcc but no cc
  2013-11-19  8:52 ` Alan McKinnon
@ 2013-11-19  9:21   ` Adam Carter
  2013-11-19  9:47     ` Alan McKinnon
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Carter @ 2013-11-19  9:21 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org

[-- Attachment #1: Type: text/plain, Size: 1493 bytes --]

It's an identical file to gcc, but not a hard link:

>
> alanm@khamul ~ $ ls -al /usr/bin/cc
> -rwxr-xr-x 1 root root 10424 Nov 16 00:43 /usr/bin/cc
>
> alanm@khamul ~ $ ls -al /usr/bin/gcc
> -rwxr-xr-x 1 root root 10424 Nov 16 00:43 /usr/bin/gcc
>
> alanm@khamul ~ $ diff /usr/bin/cc /usr/bin/gcc
>
> alanm@khamul ~ $ ls -ali /usr/bin/cc
> 531047 -rwxr-xr-x 1 root root 10424 Nov 16 00:43 /usr/bin/cc
>
> alanm@khamul ~ $ ls -ali /usr/bin/gcc
> 530815 -rwxr-xr-x 1 root root 10424 Nov 16 00:43 /usr/bin/gcc
>
>
>
Thanks Alan.

adam@proxy ~ $ which cc
which: no cc in
(/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2:/usr/lib64/subversion/bin:/usr/games/bin:/opt/vmware/bin)
adam@proxy ~ $ ls -l /usr/bin/cc
-rw-r--r-- 1 root root 10352 Nov 14 18:41 /usr/bin/cc

So, chmod +x to fix.

gcc was getting found in /usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2/gcc
adam@proxy ~ $ ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2/gcc
lrwxrwxrwx 1 root root 23 Nov 14 18:41
/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2/gcc -> x86_64-pc-linux-gnu-gcc*
adam@proxy ~ $ ls -l
/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2/x86_64-pc-linux-gnu-gcc
-rwxr-xr-x 1 root root 767584 Nov 14 18:41
/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2/x86_64-pc-linux-gnu-gcc*
adam@proxy ~ $ ls -l /usr/bin/gcc
-rwxr-xr-x 1 root root 10352 Nov 14 18:41 /usr/bin/gcc*

so i chmoded that too so the /usr/bin one is found.

FWIW bash wont build statically, but will build with -static-libgcc
-static-libstdc++

[-- Attachment #2: Type: text/html, Size: 2028 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] gcc but no cc
  2013-11-19  9:21   ` Adam Carter
@ 2013-11-19  9:47     ` Alan McKinnon
  0 siblings, 0 replies; 4+ messages in thread
From: Alan McKinnon @ 2013-11-19  9:47 UTC (permalink / raw
  To: gentoo-user

On 19/11/2013 11:21, Adam Carter wrote:
> It's an identical file to gcc, but not a hard link:
> 
> 
>     alanm@khamul ~ $ ls -al /usr/bin/cc
>     -rwxr-xr-x 1 root root 10424 Nov 16 00:43 /usr/bin/cc
> 
>     alanm@khamul ~ $ ls -al /usr/bin/gcc
>     -rwxr-xr-x 1 root root 10424 Nov 16 00:43 /usr/bin/gcc
> 
>     alanm@khamul ~ $ diff /usr/bin/cc /usr/bin/gcc
> 
>     alanm@khamul ~ $ ls -ali /usr/bin/cc
>     531047 -rwxr-xr-x 1 root root 10424 Nov 16 00:43 /usr/bin/cc
> 
>     alanm@khamul ~ $ ls -ali /usr/bin/gcc
>     530815 -rwxr-xr-x 1 root root 10424 Nov 16 00:43 /usr/bin/gcc
> 
> 
> 
> Thanks Alan.
> 
> adam@proxy ~ $ which cc
> which: no cc in
> (/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2:/usr/lib64/subversion/bin:/usr/games/bin:/opt/vmware/bin)
> adam@proxy ~ $ ls -l /usr/bin/cc
> -rw-r--r-- 1 root root 10352 Nov 14 18:41 /usr/bin/cc
> 
> So, chmod +x to fix.
> 
> gcc was getting found in /usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2/gcc
> adam@proxy ~ $ ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2/gcc
> lrwxrwxrwx 1 root root 23 Nov 14 18:41
> /usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2/gcc -> x86_64-pc-linux-gnu-gcc*
> adam@proxy ~ $ ls -l
> /usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2/x86_64-pc-linux-gnu-gcc
> -rwxr-xr-x 1 root root 767584 Nov 14 18:41
> /usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2/x86_64-pc-linux-gnu-gcc*
> adam@proxy ~ $ ls -l /usr/bin/gcc
> -rwxr-xr-x 1 root root 10352 Nov 14 18:41 /usr/bin/gcc*
> 
> so i chmoded that too so the /usr/bin one is found.
> 
> FWIW bash wont build statically, but will build with -static-libgcc
> -static-libstdc++
> 



Sounds like the package built correctly but bailed out in the install
phase before the chmod and mv



-- 
Alan McKinnon
alan.mckinnon@gmail.com



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-19  9:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19  7:48 [gentoo-user] gcc but no cc Adam Carter
2013-11-19  8:52 ` Alan McKinnon
2013-11-19  9:21   ` Adam Carter
2013-11-19  9:47     ` Alan McKinnon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox