Re: [toolchain] gcc5-devel question

2016-03-01 Thread William A. Mahaffey III

On 03/01/16 15:33, Gerald Pfeifer wrote:

On Tue, 1 Mar 2016, William A. Mahaffey III wrote:

When I run gcc5 from the CLI or under make as a regular user, it reports no
Graphite support compiled in. When I update the gcc5-devel port, it reports
Graphite enabled:


[root@devbox, gcc5-devel, 10:24:47am] 504 % make showconfig
===> The following configuration options are available for
gcc5-devel-5.3.1.s20160223:
  BOOTSTRAP=on: Build using a full bootstrap
  GRAPHITE=on: Support for Graphite loop optimizations
  JAVA=on: Java platform support
===> Use 'make config' to modify these settings
[root@devbox, gcc5-devel, 10:24:51am] 505 %

This appears odd.

Just to make sure, in both cases it's the gcc5-devel port / package?

Or might one be gcc5, and the other gcc5-devel?  That should not make
a difference (cf. `diff gcc5/Makefile gcc5-devel/Makefile`), but might
if there are local changes on your system somewhere.


Best of my knowlege, yes. That's why I included some of the other info 
in my OP. When I did the pkg upgrade, the /usr/local/bin/gcc5 upgraded 
to something dated Feb 27. When I build the port (make install), I get 
some error trying to install it, but it builds OK & leaves everything in 
a deep 'staging' directory. The binaries are different.


pkg output:

[root@devbox, /etc, 4:00:55pm] 512 % grep gcc5 LIST.installed.txt
gcc5-devel-5.3.1.s20160223 GNU Compiler Collection 5
[root@devbox, /etc, 4:01:04pm] 513 % pkg info | grep -i gcc5
gcc5-devel-5.3.1.s20160223 GNU Compiler Collection 5
[root@devbox, /etc, 4:01:14pm] 514 % uname -a
FreeBSD devbox 9.3-RELEASE-p33 FreeBSD 9.3-RELEASE-p33 #0: Wed Jan 13 
17:55:39 UTC 2016 
r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64

[root@devbox, /etc, 4:01:19pm] 515 %


Checking the actual files (as regular user, from earlier today):

[wam@devbox, pre, 10:34:26am] 576 % !566
find /usr/local/bin/ -name gcc\* -exec ls -CFltr {} +
-r-xr-xr-x  3 root  wheel  643768 Nov 30 21:34 /usr/local/bin/gcc48*
-r-xr-xr-x  2 root  wheel   24880 Nov 30 21:34 /usr/local/bin/gcc-ranlib48*
-r-xr-xr-x  2 root  wheel   24880 Nov 30 21:34 /usr/local/bin/gcc-nm48*
-r-xr-xr-x  2 root  wheel   24920 Nov 30 21:34 /usr/local/bin/gcc-ar48*
lrwxr-xr-x  1 root  wheel  20 Nov 30 21:35 /usr/local/bin/gcc@ -> 
/usr/local/bin/gcc48

-r-xr-xr-x  3 root  wheel  846360 Feb 20 05:07 /usr/local/bin/gcc49*
-r-xr-xr-x  2 root  wheel   25464 Feb 20 05:07 /usr/local/bin/gcc-ranlib49*
-r-xr-xr-x  2 root  wheel   25464 Feb 20 05:07 /usr/local/bin/gcc-nm49*
-r-xr-xr-x  2 root  wheel   25464 Feb 20 05:07 /usr/local/bin/gcc-ar49*
-r-xr-xr-x  3 root  wheel  895144 Feb 27 23:00 /usr/local/bin/gcc5*
-r-xr-xr-x  2 root  wheel   25912 Feb 27 23:00 /usr/local/bin/gcc-ranlib5*
-r-xr-xr-x  2 root  wheel   25912 Feb 27 23:00 /usr/local/bin/gcc-nm5*
-r-xr-xr-x  2 root  wheel   25944 Feb 27 23:00 /usr/local/bin/gcc-ar5*
[wam@devbox, pre, 10:34:33am] 577 % ( ll 
/usr/ports/lang/gcc5-devel/work/stage/usr/local/bin/gcc* )
-r-xr-xr-x  2 root  wheel   25944 Mar  1 10:27 
/usr/ports/lang/gcc5-devel/work/stage/usr/local/bin/gcc-ar5*
-r-xr-xr-x  2 root  wheel   25912 Mar  1 10:27 
/usr/ports/lang/gcc5-devel/work/stage/usr/local/bin/gcc-nm5*
-r-xr-xr-x  2 root  wheel   25912 Mar  1 10:27 
/usr/ports/lang/gcc5-devel/work/stage/usr/local/bin/gcc-ranlib5*
-r-xr-xr-x  3 root  wheel  895144 Mar  1 10:27 
/usr/ports/lang/gcc5-devel/work/stage/usr/local/bin/gcc5*
[wam@devbox, pre, 10:34:48am] 578 % diff /usr/local/bin/gcc5 
/usr/ports/lang/gcc5-devel/work/stage/usr/local/bin/gcc5
Files /usr/local/bin/gcc5 and 
/usr/ports/lang/gcc5-devel/work/stage/usr/local/bin/gcc5 differ

[wam@devbox, pre, 10:35:03am] 579 %





Is it intentional that the port & pkg have different support options
(specifically Graphite) ?

Nope.  Unless you changed it locally. ;-)

Gerald



Where is that info stored ? When I do a 'ls -ltr' on the port directory, 
the Makefile shows up as dated Feb 27:


[root@devbox, gcc5-devel, 4:05:55pm] 517 % ( lltr )
total 1060
-rw-r--r--  1 root  wheel   239 Aug 23  2014 pkg-descr
-rw-r--r--  1 root  wheel  2869 Sep 26 06:09 pkg-plist
-rw-r--r--  1 root  wheel   140 Feb 27 16:23 distinfo
-rw-r--r--  1 root  wheel  5342 Feb 27 16:23 Makefile
drwxr-xr-x  2 root  wheel 6 Mar  1 09:29 files/
drwxr-xr-x  5 root  wheel17 Mar  1 10:27 work/
-rw-r--r--  1 root  wheel  12157916 Mar  1 10:27 LIST
[root@devbox, gcc5-devel, 4:05:56pm] 517 %


I thought that would trump anything else, no ?


--

William A. Mahaffey III

 --

"The M1 Garand is without doubt the finest implement of war
 ever devised by man."
   -- Gen. George S. Patton Jr.

___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to 

Re: [toolchain] gcc5-devel question

2016-03-01 Thread Gerald Pfeifer
On Tue, 1 Mar 2016, William A. Mahaffey III wrote:
> When I run gcc5 from the CLI or under make as a regular user, it reports no
> Graphite support compiled in. When I update the gcc5-devel port, it reports
> Graphite enabled:
> 
> 
> [root@devbox, gcc5-devel, 10:24:47am] 504 % make showconfig
> ===> The following configuration options are available for
> gcc5-devel-5.3.1.s20160223:
>  BOOTSTRAP=on: Build using a full bootstrap
>  GRAPHITE=on: Support for Graphite loop optimizations
>  JAVA=on: Java platform support
> ===> Use 'make config' to modify these settings
> [root@devbox, gcc5-devel, 10:24:51am] 505 %

This appears odd.  

Just to make sure, in both cases it's the gcc5-devel port / package?  

Or might one be gcc5, and the other gcc5-devel?  That should not make
a difference (cf. `diff gcc5/Makefile gcc5-devel/Makefile`), but might
if there are local changes on your system somewhere.

> Is it intentional that the port & pkg have different support options
> (specifically Graphite) ?

Nope.  Unless you changed it locally. ;-)

Gerald
___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"


gcc5-devel question

2016-03-01 Thread William A. Mahaffey III



I did a full pkg upgrade on my FreeBSD 9.3R developement box this A.M. 
This upgraded gcc5-devel, as it should have. My system gcc5 seems to 
come from the pkg:



[root@devbox, /etc, 10:22:49am] 494 % pkg query '%Fp' gcc5-devel | grep 
'local/bin/gcc'

/usr/local/bin/gcc-ar5
/usr/local/bin/gcc-nm5
/usr/local/bin/gcc-ranlib5
/usr/local/bin/gcc5
[root@devbox, /etc, 10:22:54am] 495 % ll -tr /usr/local/bin/gcc*
-r-xr-xr-x  3 root  wheel  643768 Nov 30 21:34 /usr/local/bin/gcc48*
-r-xr-xr-x  2 root  wheel   24880 Nov 30 21:34 /usr/local/bin/gcc-ranlib48*
-r-xr-xr-x  2 root  wheel   24880 Nov 30 21:34 /usr/local/bin/gcc-nm48*
-r-xr-xr-x  2 root  wheel   24920 Nov 30 21:34 /usr/local/bin/gcc-ar48*
lrwxr-xr-x  1 root  wheel  20 Nov 30 21:35 /usr/local/bin/gcc@ -> 
/usr/local/bin/gcc48

-r-xr-xr-x  3 root  wheel  846360 Feb 20 05:07 /usr/local/bin/gcc49*
-r-xr-xr-x  2 root  wheel   25464 Feb 20 05:07 /usr/local/bin/gcc-ranlib49*
-r-xr-xr-x  2 root  wheel   25464 Feb 20 05:07 /usr/local/bin/gcc-nm49*
-r-xr-xr-x  2 root  wheel   25464 Feb 20 05:07 /usr/local/bin/gcc-ar49*
-r-xr-xr-x  3 root  wheel  895144 Feb 27 23:00 /usr/local/bin/gcc5*
-r-xr-xr-x  2 root  wheel   25912 Feb 27 23:00 /usr/local/bin/gcc-ranlib5*
-r-xr-xr-x  2 root  wheel   25912 Feb 27 23:00 /usr/local/bin/gcc-nm5*
-r-xr-xr-x  2 root  wheel   25944 Feb 27 23:00 /usr/local/bin/gcc-ar5*
[root@devbox, /etc, 10:22:56am] 496 % which gcc5
/usr/local/bin/gcc5
[root@devbox, /etc, 10:23:49am] 497 %


When I run gcc5 from the CLI or under make as a regular user, it reports 
no Graphite support compiled in. When I update the gcc5-devel port, it 
reports Graphite enabled:



[root@devbox, gcc5-devel, 10:24:47am] 504 % make showconfig
===> The following configuration options are available for 
gcc5-devel-5.3.1.s20160223:

 BOOTSTRAP=on: Build using a full bootstrap
 GRAPHITE=on: Support for Graphite loop optimizations
 JAVA=on: Java platform support
===> Use 'make config' to modify these settings
[root@devbox, gcc5-devel, 10:24:51am] 505 %


Is it intentional that the port & pkg have different support options 
(specifically Graphite) ?



--

William A. Mahaffey III

 --

"The M1 Garand is without doubt the finest implement of war
 ever devised by man."
   -- Gen. George S. Patton Jr.

___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"


Re: [toolchain] gcc5-devel question

2015-12-23 Thread Gerald Pfeifer
Hi William,

On Thu, 10 Dec 2015, William A. Mahaffey III wrote:
> However, pkg did reinstall gcc5-devel-5.2.1.s20151124 due to changed 
> options. I cd'ed to /usr/ports/lang/gcc5-devel & poked around a bit. I 
> saw no files or directories dated today, the latest was dated Dec 02, 
> the last time I upgraded & did a 'make install'. I did a find in 
> /usr/ports & /usr/ports/lang/gcc5-devel was all there was. Did the 
> compiler indeed get reinstalled ? If so, where :-) ?

the location should not have changed, nor should have any packaging
(additional files, say).

> Also, when I did a 'make showconfig', it showed graphite support ready 
> to go (*yipp*, kudos), but no executable that I could locate on 
> short notice. Do I still need to compile it up, or is there an 
> executable ready to go somewhere not-so-obvious to me :-) ?

Graphite support means additional optimizations GCC can perform (if
you specify the respective options).

You need to build the lang/gcc* ports that support Graphite with the
respective option (GRAPHITE) enabled.  It is off by default, and thus
not part of packages.

> When I last compiled it up last week, I did a 'make install 
> FORCE_PKG_REGISTER=1' which overwrote /usr/local/bin/gcc5 (not a huge 
> issue, but still ), how do I tell it to install the executable under 
> a different name ? BTW, I am *NOT* particularly familiar w/ the 'GNU 
> way', so pardon me if this is a bit noobish :-/  TIA & have a good 
> one.

I am not aware of the FreeBSD packaging system supporting the renaming
of individual files within a package.  You could try to install into a
different location and then tweak things there, I guess.

Gerald
___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"


Re: [toolchain] gcc5-devel question

2015-12-23 Thread William A. Mahaffey III

On 12/23/15 05:56, Gerald Pfeifer wrote:

Hi William,

On Thu, 10 Dec 2015, William A. Mahaffey III wrote:

However, pkg did reinstall gcc5-devel-5.2.1.s20151124 due to changed
options. I cd'ed to /usr/ports/lang/gcc5-devel & poked around a bit. I
saw no files or directories dated today, the latest was dated Dec 02,
the last time I upgraded & did a 'make install'. I did a find in
/usr/ports & /usr/ports/lang/gcc5-devel was all there was. Did the
compiler indeed get reinstalled ? If so, where :-) ?

the location should not have changed, nor should have any packaging
(additional files, say).



1st, thanks for your reply. This question was/is stupidly worded :-). 
What I was/am asking is whether the pkg-installed version of this 
compiler is compiled for Graphite support OOTB. The answer appears to be 
'no'. I just pkg-upgraded to the newest version & it is now called 5.3.1:


[29/33] Upgrading gcc5-devel from 5.2.1.s20151124 to 5.3.1.s20151208...
[29/33] Extracting gcc5-devel-5.3.1.s20151208: .. done

However, when queried from the command line, it doesn't mention 'libisl' 
(req'd for Graphite support) & when I try to compile code using Graphite 
optimization (-floop-parallelize-all for me) it fails w/ an error 
message saying Graphite support not available:


f951: sorry, unimplemented: Graphite loop optimizations cannot be used 
(ISL is not available)(-fgraphite, -fgraphite-identity, -floop-block, 
-floop-interchange, -floo
p-strip-mine, -floop-parallelize-all, -floop-unroll-and-jam, and 
-ftree-loop-linear)


libisl is indeed available, pkg installed & ready to go. When I upgraded 
ports (portsnap fetch update) this A.M., nothing got upgraded, 
everything still dated 12/09 or earlier (when I last rebuilt it to turn 
on Graphite support, which apparently worked AOK) except for the log 
files from my compile. The port showed/shows Graphite enabled by default 
(I think). So, another question is whether the pkg & port have different 
build configurations ?






Also, when I did a 'make showconfig', it showed graphite support ready
to go (*yipp*, kudos), but no executable that I could locate on
short notice. Do I still need to compile it up, or is there an
executable ready to go somewhere not-so-obvious to me :-) ?

Graphite support means additional optimizations GCC can perform (if
you specify the respective options).

You need to build the lang/gcc* ports that support Graphite with the
respective option (GRAPHITE) enabled.  It is off by default, and thus
not part of packages.


When I last compiled it up last week, I did a 'make install
FORCE_PKG_REGISTER=1' which overwrote /usr/local/bin/gcc5 (not a huge
issue, but still ), how do I tell it to install the executable under
a different name ? BTW, I am *NOT* particularly familiar w/ the 'GNU
way', so pardon me if this is a bit noobish :-/  TIA & have a good
one.

I am not aware of the FreeBSD packaging system supporting the renaming
of individual files within a package.  You could try to install into a
different location and then tweak things there, I guess.

Gerald




--

William A. Mahaffey III

 --

"The M1 Garand is without doubt the finest implement of war
 ever devised by man."
   -- Gen. George S. Patton Jr.

___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"


gcc5-devel question

2015-12-10 Thread William A. Mahaffey III



I just did a 'pkg upgrade -y' when I noticed upgraded LibGL available. I 
was hoping it might include static versions of libGL/GLU/GLw, but no 
such luck. However, pkg did reinstall gcc5-devel-5.2.1.s20151124 due to 
changed options. I cd'ed to /usr/ports/lang/gcc5-devel & poked around a 
bit. I saw no files or directories dated today, the latest was dated Dec 
02, the last time I upgraded & did a 'make install'. I did a find in 
/usr/ports & /usr/ports/lang/gcc5-devel was all there was. Did the 
compiler indeed get reinstalled ? If so, where :-) ?


Also, when I did a 'make showconfig', it showed graphite support ready 
to go (*yipp*, kudos), but no executable that I could locate on 
short notice. Do I still need to compile it up, or is there an 
executable ready to go somewhere not-so-obvious to me :-) ?


When I last compiled it up last week, I did a 'make install 
FORCE_PKG_REGISTER=1' which overwrote /usr/local/bin/gcc5 (not a huge 
issue, but still ), how do I tell it to install the executable under 
a different name ? BTW, I am *NOT* particularly familiar w/ the 'GNU 
way', so pardon me if this is a bit noobish :-/  TIA & have a good one.



--

William A. Mahaffey III

 --

"The M1 Garand is without doubt the finest implement of war
 ever devised by man."
   -- Gen. George S. Patton Jr.

___
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"