Project

General

Profile

Bug #1243

cw have issue with parse -YP,/lib/amd64 flag

Added by Igor Kozhukhov about 9 years ago. Updated about 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2011-07-23
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

/home/igor/illumos-libm4/illumos-gate/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/i386/cw -cc -xO3 -m64 -Ui386 -U_i386 -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all -W0,-xglobalstatic -Kpic -D__INLINE -xstrconst pics/locallibm.il -o libm.so.2 -G -hlibm.so.2 -ztext -zdefs -Bdirect -M/home/igor/illumos-libm4/illumos-gate/usr/src/lib/libm/amd64/mapfiles/libmv2-i386 -M/home/igor/illumos-libm4/illumos-gate/usr/src/common/mapfiles/common/map.pagealign -M/home/igor/illumos-libm4/illumos-gate/usr/src/common/mapfiles/common/map.noexdata -z redlocsym -z combreloc -YP,/lib/amd64 pics/_TBL_atan.o pics/_TBL_exp2.o pics/_TBL_log.o pics/_TBL_log2.o pics/__tan.o pics/__tanf.o pics/_TBL_tan.o pics/copysign.o pics/exp.o pics/fabs.o pics/fmod.o pics/ilogb.o pics/isnan.o pics/nextafter.o pics/remainder.o pics/rint.o pics/scalbn.o pics/__cos.o pics/__lgamma.o pics/__rem_pio2.o pics/__rem_pio2m.o pics/__sin.o pics/__sincos.o pics/__xpg6.o pics/_lib_version.o pics/_SVID_error.o pics/_TBL_ipio2.o pics/_TBL_sin.o pics/acos.o pics/acosh.o pics/asin.o pics/asinh.o pics/atan.o pics/atan2.o pics/atan2pi.o pics/atanh.o pics/cbrt.o pics/ceil.o pics/cos.o pics/cosh.o pics/erf.o pics/exp10.o pics/exp2.o pics/expm1.o pics/floor.o pics/gamma.o pics/gamma_r.o pics/hypot.o pics/j0.o pics/j1.o pics/jn.o pics/lgamma.o pics/lgamma_r.o pics/log.o pics/log10.o pics/log1p.o pics/log2.o pics/logb.o pics/matherr.o pics/pow.o pics/scalb.o pics/signgam.o pics/significand.o pics/sin.o pics/sincos.o pics/sincospi.o pics/sinh.o pics/sqrt.o pics/tan.o pics/tanh.o pics/isnanf.o pics/__cosf.o pics/__sincosf.o pics/__sinf.o pics/_TBL_r_atan_.o pics/acosf.o pics/acoshf.o pics/asinf.o pics/asinhf.o pics/atan2f.o pics/atan2pif.o pics/atanf.o pics/atanhf.o pics/besself.o pics/cbrtf.o pics/copysignf.o pics/cosf.o pics/coshf.o pics/erff.o pics/exp10f.o pics/exp2f.o pics/expf.o pics/expm1f.o pics/fabsf.o pics/floorf.o pics/fmodf.o pics/gammaf.o pics/gammaf_r.o pics/hypotf.o pics/ilogbf.o pics/lgammaf.o pics/lgammaf_r.o pics/log10f.o pics/log1pf.o pics/log2f.o pics/logbf.o pics/logf.o pics/nextafterf.o pics/powf.o pics/remainderf.o pics/rintf.o pics/scalbf.o pics/scalbnf.o pics/signgamf.o pics/significandf.o pics/sinf.o pics/sinhf.o pics/sincosf.o pics/sincospif.o pics/sqrtf.o pics/tanf.o pics/tanhf.o pics/finitel.o pics/isnanl.o pics/__cosl.o pics/__lgammal.o pics/__poly_libmq.o pics/__rem_pio2l.o pics/__sincosl.o pics/__sinl.o pics/__tanl.o pics/_TBL_cosl.o pics/_TBL_ipio2l.o pics/_TBL_sinl.o pics/_TBL_tanl.o pics/acoshl.o pics/acosl.o pics/asinhl.o pics/asinl.o pics/atan2l.o pics/atan2pil.o pics/atanhl.o pics/atanl.o pics/cbrtl.o pics/copysignl.o pics/coshl.o pics/cosl.o pics/erfl.o pics/exp10l.o pics/exp2l.o pics/expl.o pics/expm1l.o pics/fabsl.o pics/floorl.o pics/fmodl.o pics/gammal.o pics/gammal_r.o pics/hypotl.o pics/ieee_funcl.o pics/ilogbl.o pics/j0l.o pics/j1l.o pics/jnl.o pics/lgammal.o pics/lgammal_r.o pics/log10l.o pics/log1pl.o pics/log2l.o pics/logbl.o pics/logl.o pics/nextafterl.o pics/powl.o pics/remainderl.o pics/rintl.o pics/rndintl.o pics/scalbl.o pics/scalbnl.o pics/signgaml.o pics/significandl.o pics/sincosl.o pics/sincospil.o pics/sinhl.o pics/sinl.o pics/sinpil.o pics/sqrtl.o pics/tanhl.o pics/tanl.o pics/__swapFLAGS.o pics/__fex_sse.o pics/feprec.o pics/__fex_i386.o pics/__fex_hdlr.o pics/__fex_sym.o pics/fdim.o pics/fdimf.o pics/fdiml.o pics/feexcept.o pics/fenv.o pics/feround.o pics/fex_handler.o pics/fex_log.o pics/fma.o pics/fmaf.o pics/fmal.o pics/fmax.o pics/fmaxf.o pics/fmaxl.o pics/fmin.o pics/fminf.o pics/fminl.o pics/frexp.o pics/frexpf.o pics/frexpl.o pics/ldexp.o pics/ldexpf.o pics/ldexpl.o pics/llrint.o pics/llrintf.o pics/llrintl.o pics/llround.o pics/llroundf.o pics/llroundl.o pics/modf.o pics/modff.o pics/modfl.o pics/nan.o pics/nanf.o pics/nanl.o pics/nearbyint.o pics/nearbyintf.o pics/nearbyintl.o pics/nexttoward.o pics/nexttowardf.o pics/nexttowardl.o pics/remquo.o pics/remquof.o pics/remquol.o pics/round.o pics/roundf.o pics/roundl.o pics/scalbln.o pics/scalblnf.o pics/scalblnl.o pics/tgamma.o pics/tgammaf.o pics/tgammal.o pics/trunc.o pics/truncf.o pics/truncl.o pics/cabs.o pics/cabsf.o pics/cabsl.o pics/cacos.o pics/cacosf.o pics/cacosh.o pics/cacoshf.o pics/cacoshl.o pics/cacosl.o pics/carg.o pics/cargf.o pics/cargl.o pics/casin.o pics/casinf.o pics/casinh.o pics/casinhf.o pics/casinhl.o pics/casinl.o pics/catan.o pics/catanf.o pics/catanh.o pics/catanhf.o pics/catanhl.o pics/catanl.o pics/ccos.o pics/ccosf.o pics/ccosh.o pics/ccoshf.o pics/ccoshl.o pics/ccosl.o pics/cexp.o pics/cexpf.o pics/cexpl.o pics/cimag.o pics/cimagf.o pics/cimagl.o pics/clog.o pics/clogf.o pics/clogl.o pics/conj.o pics/conjf.o pics/conjl.o pics/cpow.o pics/cpowf.o pics/cpowl.o pics/cproj.o pics/cprojf.o pics/cprojl.o pics/creal.o pics/crealf.o pics/creall.o pics/csin.o pics/csinf.o pics/csinh.o pics/csinhf.o pics/csinhl.o pics/csinl.o pics/csqrt.o pics/csqrtf.o pics/csqrtl.o pics/ctan.o pics/ctanf.o pics/ctanh.o pics/ctanhf.o pics/ctanhl.o pics/ctanl.o pics/k_atan2.o pics/k_atan2l.o pics/k_cexp.o pics/k_cexpl.o pics/k_clog_r.o pics/k_clog_rl.o -L /home/igor/illumos-libm4/illumos-gate/proto/root_i386/usr/lib/amd64 -lc
cw: error: mapping failed at or near arg 'P,/lib/amd64'
+ /opt/SUNWspro/bin/cc -xO3 -m64 -Ui386 -U__i386 -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all -W0,-xglobalstatic -Kpic -D__INLINE -xstrconst pics/locallibm.il -o libm.so.2 -G -hlibm.so.2 -ztext -zdefs -Bdirect -M/home/igor/illumos-libm4/illumos-gate/usr/src/lib/libm/amd64/mapfiles/libmv2-i386 -M/home/igor/illumos-libm4/illumos-gate/usr/src/common/mapfiles/common/map.pagealign -M/home/igor/illumos-libm4/illumos-gate/usr/src/common/mapfiles/common/map.noexdata -z redlocsym -z combreloc -YP,/lib/amd64 pics/_TBL_atan.o pics/_TBL_exp2.o pics/_TBL_log.o pics/_TBL_log2.o pics/__tan.o pics/__tanf.o pics/_TBL_tan.o pics/copysign.o pics/exp.o pics/fabs.o pics/fmod.o pics/ilogb.o pics/isnan.o pics/nextafter.o pics/remainder.o pics/rint.o pics/scalbn.o pics/__cos.o pics/__lgamma.o pics/__rem_pio2.o pics/__rem_pio2m.o pics/__sin.o pics/__sincos.o pics/__xpg6.o pics/_lib_version.o pics/_SVID_error.o pics/_TBL_ipio2.o pics/_TBL_sin.o pics/acos.o pics/acosh.o pics/asin.o pics/asinh.o pics/atan.o pics/atan2.o pics/atan2pi.o pics/atanh.o pics/cbrt.o pics/ceil.o pics/cos.o pics/cosh.o pics/erf.o pics/exp10.o pics/exp2.o pics/expm1.o pics/floor.o pics/gamma.o pics/gamma_r.o pics/hypot.o pics/j0.o pics/j1.o pics/jn.o pics/lgamma.o pics/lgamma_r.o pics/log.o pics/log10.o pics/log1p.o pics/log2.o pics/logb.o pics/matherr.o pics/pow.o pics/scalb.o pics/signgam.o pics/significand.o pics/sin.o pics/sincos.o pics/sincospi.o pics/sinh.o pics/sqrt.o pics/tan.o pics/tanh.o pics/isnanf.o pics/__cosf.o pics/__sincosf.o pics/__sinf.o pics/_TBL_r_atan_.o pics/acosf.o pics/acoshf.o pics/asinf.o pics/asinhf.o pics/atan2f.o pics/atan2pif.o pics/atanf.o pics/atanhf.o pics/besself.o pics/cbrtf.o pics/copysignf.o pics/cosf.o pics/coshf.o pics/erff.o pics/exp10f.o pics/exp2f.o pics/expf.o pics/expm1f.o pics/fabsf.o pics/floorf.o pics/fmodf.o pics/gammaf.o pics/gammaf_r.o pics/hypotf.o pics/ilogbf.o pics/lgammaf.o pics/lgammaf_r.o pics/log10f.o pics/log1pf.o pics/log2f.o pics/logbf.o pics/logf.o pics/nextafterf.o pics/powf.o pics/remainderf.o pics/rintf.o pics/scalbf.o pics/scalbnf.o pics/signgamf.o pics/significandf.o pics/sinf.o pics/sinhf.o pics/sincosf.o pics/sincospif.o pics/sqrtf.o pics/tanf.o pics/tanhf.o pics/finitel.o pics/isnanl.o pics/__cosl.o pics/__lgammal.o pics/__poly_libmq.o pics/__rem_pio2l.o pics/__sincosl.o pics/__sinl.o pics/__tanl.o pics/_TBL_cosl.o pics/_TBL_ipio2l.o pics/_TBL_sinl.o pics/_TBL_tanl.o pics/acoshl.o pics/acosl.o pics/asinhl.o pics/asinl.o pics/atan2l.o pics/atan2pil.o pics/atanhl.o pics/atanl.o pics/cbrtl.o pics/copysignl.o pics/coshl.o pics/cosl.o pics/erfl.o pics/exp10l.o pics/exp2l.o pics/expl.o pics/expm1l.o pics/fabsl.o pics/floorl.o pics/fmodl.o pics/gammal.o pics/gammal_r.o pics/hypotl.o pics/ieee_funcl.o pics/ilogbl.o pics/j0l.o pics/j1l.o pics/jnl.o pics/lgammal.o pics/lgammal_r.o pics/log10l.o pics/log1pl.o pics/log2l.o pics/logbl.o pics/logl.o pics/nextafterl.o pics/powl.o pics/remainderl.o pics/rintl.o pics/rndintl.o pics/scalbl.o pics/scalbnl.o pics/signgaml.o pics/significandl.o pics/sincosl.o pics/sincospil.o pics/sinhl.o pics/sinl.o pics/sinpil.o pics/sqrtl.o pics/tanhl.o pics/tanl.o pics/__swapFLAGS.o pics/__fex_sse.o pics/feprec.o pics/__fex_i386.o pics/__fex_hdlr.o pics/__fex_sym.o pics/fdim.o pics/fdimf.o pics/fdiml.o pics/feexcept.o pics/fenv.o pics/feround.o pics/fex_handler.o pics/fex_log.o pics/fma.o pics/fmaf.o pics/fmal.o pics/fmax.o pics/fmaxf.o pics/fmaxl.o pics/fmin.o pics/fminf.o pics/fminl.o pics/frexp.o pics/frexpf.o pics/frexpl.o pics/ldexp.o pics/ldexpf.o pics/ldexpl.o pics/llrint.o pics/llrintf.o pics/llrintl.o pics/llround.o pics/llroundf.o pics/llroundl.o pics/modf.o pics/modff.o pics/modfl.o pics/nan.o pics/nanf.o pics/nanl.o pics/nearbyint.o pics/nearbyintf.o pics/nearbyintl.o pics/nexttoward.o pics/nexttowardf.o pics/nexttowardl.o pics/remquo.o pics/remquof.o pics/remquol.o pics/round.o pics/roundf.o pics/roundl.o pics/scalbln.o pics/scalblnf.o pics/scalblnl.o pics/tgamma.o pics/tgammaf.o pics/tgammal.o pics/trunc.o pics/truncf.o pics/truncl.o pics/cabs.o pics/cabsf.o pics/cabsl.o pics/cacos.o pics/cacosf.o pics/cacosh.o pics/cacoshf.o pics/cacoshl.o pics/cacosl.o pics/carg.o pics/cargf.o pics/cargl.o pics/casin.o pics/casinf.o pics/casinh.o pics/casinhf.o pics/casinhl.o pics/casinl.o pics/catan.o pics/catanf.o pics/catanh.o pics/catanhf.o pics/catanhl.o pics/catanl.o pics/ccos.o pics/ccosf.o pics/ccosh.o pics/ccoshf.o pics/ccoshl.o pics/ccosl.o pics/cexp.o pics/cexpf.o pics/cexpl.o pics/cimag.o pics/cimagf.o pics/cimagl.o pics/clog.o pics/clogf.o pics/clogl.o pics/conj.o pics/conjf.o pics/conjl.o pics/cpow.o pics/cpowf.o pics/cpowl.o pics/cproj.o pics/cprojf.o pics/cprojl.o pics/creal.o pics/crealf.o pics/creall.o pics/csin.o pics/csinf.o pics/csinh.o pics/csinhf.o pics/csinhl.o pics/csinl.o pics/csqrt.o pics/csqrtf.o pics/csqrtl.o pics/ctan.o pics/ctanf.o pics/ctanh.o pics/ctanhf.o pics/ctanhl.o pics/ctanl.o pics/k_atan2.o pics/k_atan2l.o pics/k_cexp.o pics/k_cexpl.o pics/k_clog_r.o pics/k_clog_rl.o -L /home/igor/illumos-libm4/illumos-gate/proto/root_i386/usr/lib/amd64 -lc
ld: fatal: symbol '__xpg6' is multiply-defined:
(file /usr/lib/64/values-xpg6.o type=OBJT; file pics/__xpg6.o type=OBJT);
ld: fatal: file processing errors. No output written to libm.so.2

History

#1

Updated by Rich Lowe about 9 years ago

cw(1) only knows how to parse flags we use in the build. If you add more out of the way flags, you normally have to extend cw to understand how to translate them for gcc.

In this case, though, I think use of -YP in this manner is actually wrong, since that'll force the default library path out of the proto, amongst other things.

Gordon?

#2

Updated by Igor Kozhukhov about 9 years ago

I can see LDLIBS32 and LDLIBS64 at Makefile.master, but I can't understand issue:
(file /usr/lib/64/values-xpg6.o type=OBJT; file pics/__xpg6.o type=OBJT);

why we have tried to find libs on local file system: /usr/lib/* ?

I think it is because we have crle - we are using LD_LIBRARY_PATH form crle config.
But I think that our build should be using $(ROOT)/lib/*:$(ROOT)/usr/lib/* for search libs ...

#3

Updated by Gordon Ross about 9 years ago

Using -YP /lib/amd64 looks wrong to me. That's asking explicitly to
link against libraries on the build system instead of our proto area.

#4

Updated by Igor Kozhukhov about 9 years ago

ше was example for using -YP,<dir> flag
as you can see we can't use it because we have problems with 'cw' wrapper.
I tried to use -YP,$(ROOTFS_LIBDIR64) - it is proto area $(ROOT)/lib/amd64 - but didn't work.
As can I see we have -YP flags re-assigned in next Makefiles.

Also available in: Atom PDF