pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

glib2/meson compile issues on Solarish



Hi,

as part of a pkg_rolling-replace(8) run, I am trying to build 
devel/glib2 on an OmniOS 151030 LTS installation. What I see is

% bmake -dx

[...]

ninja: Entering directory `output'
[1/1031] Linking static target glib/libcharset/libcharset.a
FAILED: glib/libcharset/libcharset.a 
rm -f glib/libcharset/libcharset.a && gcc-ar csr 
glib/libcharset/libcharset.a 
'glib/libcharset/6e4c96c@@charset@sta/localcharset.c.o'
ar: bad option: --
usage: ar -d[-SvV] archive file ...
       ar -m[-abiSvV] [posname] archive file ...
       ar -p[-vV][-sS] archive [file ...]
       ar -q[-cuvSV] [-abi] [posname] [file ...]
       ar -r[-cuvSV] [-abi] [posname] [file ...]
       ar -t[-vV][-sS] archive [file ...]
       ar -x[-vV][-sSCT] archive [file ...]
[4/1031] Compiling C object 'glib/4430778@@glib-2.0@sha/garray.c.o'
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
bmake[1]: stopped in /misc/pkgsrc/devel/glib2


Trying to understand where the offending double-dash came from, I ran

% sh -x /opt/local/bin/gcc-ar csr glib/libcharset/libcharset.a 
'glib/libcharset/6e4c96c@@charset@sta/localcharset.c.o'
+ wrapper=/opt/local/bin/gcc-ar
+ progname='gcc-ar (wrapper)'
+ '[' '!' -f /opt/local/libdata/pkg_alternatives/opt/local/bin/gcc-ar 
']'
++ /usr/xpg4/bin/id -un
+ '[' hf = root ']'
+ userfile=/home/hf/.pkg_alternatives//opt/local/bin/gcc-ar
++ cat /home/hf/.pkg_alternatives//opt/local/bin/gcc-ar 
/opt/local/etc/pkg_alternatives/opt/local/bin/gcc-ar 
/opt/local/libdata/pkg_alternatives/opt/local/bin/gcc-ar
++ grep -v '^#'
++ sed -e 's# #__dE/lImIt/Er__#g'
+ alternatives=/opt/local/gcc7/bin/gcc-ar
+ found=
+ for a in ${alternatives}
+ prog=/opt/local/gcc7/bin/gcc-ar
+ '[' -x /opt/local/gcc7/bin/gcc-ar ']'
++ echo /opt/local/gcc7/bin/gcc-ar
++ sed -e 's#__dE/lImIt/Er__# #g'
+ found=/opt/local/gcc7/bin/gcc-ar
+ break
+ '[' -z /opt/local/gcc7/bin/gcc-ar ']'
+ exec /opt/local/gcc7/bin/gcc-ar csr glib/libcharset/libcharset.a 
glib/libcharset/6e4c96c@@charset@sta/localcharset.c.o
ar: bad option: --
usage: ar -d[-SvV] archive file ...
       ar -m[-abiSvV] [posname] archive file ...
       ar -p[-vV][-sS] archive [file ...]
       ar -q[-cuvSV] [-abi] [posname] [file ...]
       ar -r[-cuvSV] [-abi] [posname] [file ...]
       ar -t[-vV][-sS] archive [file ...]
       ar -x[-vV][-sSCT] archive [file ...]
%

which, alas, didn't help me. I found

<https://github.com/omniosorg/omnios-build/issues/1487>
<https://github.com/mesonbuild/meson/issues/5351>

but apparently the pkgsrc meson has that patch, already.

Compiler is pkgsrc gcc 7.4, the ar(1) meson is using is from gcc, while 
the bin/gar from pkgsrc binutils gets ignored. There appears to be no 
entry for ar(1) in pkgsrc USE_TOOLS.

Has anybody else run into this, or is able to provide any insight?

Cheerio,
Hauke

(who is this >< close to migrating away from OmniOS, but that is a 
whole different story)

-- 
     The ASCII Ribbon Campaign                    Hauke Fath
()     No HTML/RTF in email            Institut für Nachrichtentechnik
/\     No Word docs in email                     TU Darmstadt
     Respect for open standards              Ruf +49-6151-16-21344


Home | Main Index | Thread Index | Old Index