[OmniOS-discuss] illumos-gate, perl & sunpro

Richard PALO richard at netbsd.org
Sun Jun 26 06:25:53 UTC 2016


Le 24/06/16 07:24, Richard PALO a écrit :
> since over a year I needed to use the following patch as already discusse here
> and on developer@:
>> richard at omnis:/home/richard/src/illumos-gate/usr/src/cmd/perl$ git diff illumos-omnios .
>> diff --git a/usr/src/cmd/perl/Makefile.perl b/usr/src/cmd/perl/Makefile.perl
>> index 0164546..b3944aa 100644
>> --- a/usr/src/cmd/perl/Makefile.perl
>> +++ b/usr/src/cmd/perl/Makefile.perl
>> @@ -55,3 +55,6 @@ XSUBPP64 = $(PERLDIR)/bin/$(MACH64)/perl $(PERLDIR)/lib/ExtUtils/xsubpp \
>>         -typemap $(PERLDIR)/lib/ExtUtils/typemap
>>  
>>  C99MODE = $(C99_ENABLE)
>> +
>> +CERRWARN += -_cc=-erroff=E_ATTRIBUTE_UNKNOWN
>> +CERRWARN += -_cc=-erroff=E_ATTRIBUTE_PARAM_UNDEFINED
>>
> 
> This is needed in order to simply build illumos-gate with the studio shadow compiler.
> 
> In the meanwhile, alp@ came up with a patch that seems to work
> for OpenIndiana/Hipster but I haven't seen it in omnios-build.
> 'oi-userland/components/perl/perl516/patches/sunpro.patch'
> 
> Any way to get consensus on one or the other?
> 
> (I'd try to apply it myself and do a pull request but it has
> been ages since I've had a working omnios-build, unfortunately,
> and perl is particularly broken on my machine also as already discussed
> prior in this forum)
> 
> cheers
> 

??? fetching and merging recent illumos-gate and after a pkg update on bloody, I can
no longer build the gate!  what's up?

> /usr/perl5/5.16.1/bin/amd64/perl /usr/perl5/5.16.1/lib/ExtUtils/xsubpp  -typemap /usr/perl5/5.16.1/lib/ExtUtils/typemap  Intrs.xs >amd64/Intrs.c
> /home/richard/src/illumos-gate/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/i386/cw -_gcc -O -m32 -xspace -Xa  -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -_gcc=-Wno-missing-braces -_gcc=-Wno-sign-compare -_gcc=-Wno-unknown-pragmas -_gcc=-Wno-unused-parameter -_gcc=-Wno-missing-field-initializers -_gcc=-Wno-array-bounds -_gcc=-Wno-unused -_gcc=-Wno-empty-body -_cc=-erroff=E_ATTRIBUTE_UNKNOWN -_cc=-erroff=E_ATTRIBUTE_PARAM_UNDEFINED -_gcc=-Wno-unused-variable -xc99=%all    -W0,-xglobalstatic -_gcc=-fno-inline-small-functions  -_gcc=-fno-inline-functions-called-once  -_gcc=-fno-ipa-cp     -DTEXT_DOMAIN=\"SUNW_OST_OSLIB\" -D_TS_ERRNO  -I/home/richard/src/illumos-gate/proto/root_i386-nd/usr/include      -c -m64 -DPERL_EUPXS_ALWAYS_EXPORT -D_LARGEFILE64_SOURCE  -DPERL_USE_SAFE_PUTENV -D_TS_ERRNO -K pic -I/usr/perl5/5.16.1/lib/i86pc-solaris-thread-multi-64/CORE amd64/Intrs.c -o amd64/Intrs.o
> Incompatible -xarch= and/or -m32/-m64 options used.
> *** Error code 2

now there's both '-m32' and '-m64' specified on the same command line!
-- 
Richard PALO



More information about the OmniOS-discuss mailing list