Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Dec 2015 10:57:50 -0553.75
From:      "William A. Mahaffey III" <wam@hiwaay.net>
To:        FreeBSD toolchain mailing list !!!! <freebsd-toolchain@freebsd.org>
Subject:   ongoing link issues
Message-ID:  <56685C44.10802@hiwaay.net>

next in thread | raw e-mail | index | archive | help


I am still trying to statically link my inhouse code. I switched to 
using g++5 in the link line:

     .
     .
     .

chmod: /usr/local/bin/PreBFCGL.opteron.TEST.static: No such file or 
directory
*** [/usr/local/bin/PreBFCGL.opteron.TEST.static] Error code 1 (ignored)
ar xv 
/home/wam/V8/Cnx/test/junk/cart/unstaggered/bfc/pre/../lib/R4/opteron/libmaiPre.a 
Main.o
x - Main.o
g++5 -o /usr/local/bin/PreBFCGL.opteron.TEST.static 
-Wl,-s,--allow-multiple-definition,-rpath=/usr/local/lib/gcc5 Main.o 
-L/home/wam/V8/Cnx/test/junk/cart/unstaggered
/bfc/pre/../lib/R4/opteron -L/home/wam/lib/R4 -L/usr/lib64/openmotif 
-Wl,--start-group -lmaiPre -lPre -lPrecxx -lutils -lftndmp -lftnO2pre 
-lftnO2 -lBC_Phi -license
-Wl,--end-group -lMemIO -lMotif -lStdHash -lmpi -ltet -lgomp -lMrm -lXm 
-lXt -lGL -lGLU -lGLw -lX11 -ljpeg -lpng -lz -lm -static-libgcc 
-static-libstdc++ -Bstatic -lg
fortran -static-libgfortran && \rm -f Main.o
chmod -fv go+rx,a-w /usr/local/bin/PreBFCGL.opteron.TEST.static
/usr/local/bin/PreBFCGL.opteron.TEST.static
Done with /usr/local/bin/PreBFCGL.opteron.TEST.static.

     .
     .
     .

Compile-box specifics:


[wam@devbox, pre, 10:55:11am] 4252 % uname -a
FreeBSD devbox 9.3-RELEASE-p30 FreeBSD 9.3-RELEASE-p30 #0: Mon Nov 2 
10:11:50 UTC 2015 
root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
[wam@devbox, pre, 10:55:23am] 4253 %


Now I see:[wam@kabini1, ~, 10:48:52am] 916 % ll -tr LIST 
/usr/local/bin/[B,P]* /usr/local/bin/*WAM* /usr/local/bin/*et*en* ; ps 
-Taux ; uname -a ; /sbin/hwclock -r ; date
lrwxr-xr-x  1 root  wheel        20 Aug 27  2014 
/usr/local/bin/PreBFCGL.TEST@ -> PreBFCGL.TEST.static
lrwxr-xr-x  1 root  wheel        23 Aug 27  2014 
/usr/local/bin/PreBFCGL.TEST.R8@ -> PreBFCGL.TEST.static.R8
-r-xr-xr-x  1 root  wheel     15071 Mar 18  2015 /usr/local/bin/POST*
-rw-------  1 wam   users       437 Jul 11 23:13 LIST
-r-xr-xr-x  1 wam   wheel  11197960 Aug  7 05:40 
/usr/local/bin/PreBFCGL.SSE4.1.TEST.static*
-r-xr-xr-x  1 wam   wheel  11211944 Aug  7 05:40 
/usr/local/bin/PreBFCGL.SSE4.1.TEST.static.R8*
-r-xr-xr-x  1 root  wheel       420 Aug 20 13:15 
/usr/local/bin/rarian-sk-get-extended-content-list*
-r-xr-xr-x  1 root  wheel       400 Aug 20 13:15 
/usr/local/bin/rarian-sk-get-content-list*
lrwxr-xr-x  1 root  wheel        35 Aug 20 13:15 
/usr/local/bin/scrollkeeper-get-extended-content-list@ -> 
rarian-sk-get-extended-content-list
lrwxr-xr-x  1 root  wheel        26 Aug 20 13:15 
/usr/local/bin/scrollkeeper-get-content-list@ -> rarian-sk-get-content-list
-r-xr-xr-x  1 root  wheel      2299 Oct 10 22:20 
/usr/local/bin/pamstretch-gen*
-r-x------  1 wam   wheel   4140184 Dec  7 07:39 
/usr/local/bin/BFC.opteron.TEST.static.R8*
-r-x------  1 wam   wheel   4038096 Dec  7 07:39 
/usr/local/bin/BFC.opteron.TEST.static.R4*
-r-x------  1 wam   wheel   4033688 Dec  7 07:39 
/usr/local/bin/BFC.bdver1.TEST.static.R8*
-r-x------  1 wam   wheel   4047376 Dec  7 07:39 
/usr/local/bin/BFC.bdver1.TEST.static.R4*
lrwxr-xr-x  1 root  wheel        30 Dec  7 07:39 
/usr/local/bin/PreBFCGL.TEST.static.R8@ -> PreBFCGL.bdver1.TEST.static.R8
lrwxr-xr-x  1 root  wheel        27 Dec  7 07:39 
/usr/local/bin/PreBFCGL.TEST.static@ -> PreBFCGL.bdver1.TEST.static
-r-xr-xr-x  1 wam   wheel   7694632 Dec  9 10:50 
/usr/local/bin/PreBFCGL.opteron.TEST.static*
-r-xr-xr-x  1 wam   wheel   7670440 Dec  9 10:50 
/usr/local/bin/PreBFCGL.opteron.TEST.static.R8*
-r-xr-xr-x  1 wam   wheel   7765384 Dec  9 10:50 
/usr/local/bin/PreBFCGL.barcelona.TEST.static*
-r-xr-xr-x  1 wam   wheel   7715496 Dec  9 10:50 
/usr/local/bin/PreBFCGL.barcelona.TEST.static.R8*
-r-xr-xr-x  1 wam   wheel   7679592 Dec  9 10:50 
/usr/local/bin/PreBFCGL.bdver1.TEST.static*
-r-xr-xr-x  1 wam   wheel   7617416 Dec  9 10:50 
/usr/local/bin/PreBFCGL.bdver1.TEST.static.R8*
USER   PID %CPU %MEM   VSZ   RSS TT  STAT STARTED    TIME COMMAND
wam  76840  0.0  0.0 16304  2168 32  R+   10:51AM 0:00.01 ps -Taux
wam  81998  0.0  0.1 91408 20712 32  I     1Nov15 0:45.31 xterm -sl 5000 
-maximized -rv
wam  95269  0.0  0.0 18616  4288 32  Ss   12Oct15 0:02.54 tcsh
FreeBSD kabini1.local 9.3-RELEASE-p24 FreeBSD 9.3-RELEASE-p24 #0: Sat 
Aug 22 01:54:44 UTC 2015 
root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
/sbin/hwclock: Command not found.
Wed Dec  9 10:51:48 MCST 2015
[wam@kabini1, ~, 10:51:48am] 917 % PreBFCGL.TEST
/lib/libgcc_s.so.1: version GCC_4.6.0 required by 
/usr/local/lib/gcc48/libgfortran.so.3 not found
[wam@kabini1, ~, 10:51:52am] 918 % PreBFCGL.TEST.static
/lib/libgcc_s.so.1: version GCC_4.6.0 required by 
/usr/local/lib/gcc48/libgfortran.so.3 not found
[wam@kabini1, ~, 10:52:02am] 919 % PreBFCGL.bdver1.TEST.static
/lib/libgcc_s.so.1: version GCC_4.6.0 required by 
/usr/local/lib/gcc48/libgfortran.so.3 not found
[wam@kabini1, ~, 10:52:04am] 920 % uname -a
FreeBSD kabini1.local 9.3-RELEASE-p24 FreeBSD 9.3-RELEASE-p24 #0: Sat 
Aug 22 01:54:44 UTC 2015 
root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
[wam@kabini1, ~, 10:52:07am] 921 %


I'm sure it's pilot error, but I (think I) have iterated all 
combinations of (-static)-libgcc, (-static)-libstdc++ 
(-static)libgfortran & nothing seems to work .... *Any* clues 
appreciated :-/ .... 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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56685C44.10802>