pkgsrc-Users archive

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

Solaris 11.4 x86 devel/gettext-tools error



Forwarding entire message because regular emails to pkgsrc-users are
going to have a reduced audience
(File bugs at https://www.netbsd.org/cgi-bin/sendpr.cgi?gndb=netbsd )

----- Forwarded message from Astr0 <astr0b4by%gmail.com@localhost> -----

Date: Tue, 6 Aug 2019 06:54:12 -0700 (MST)
From: Astr0 <astr0b4by%gmail.com@localhost>
To: pkgsrc-bugs%netbsd.org@localhost
Subject: Solaris 11.4 x86 devel/gettext-tools error

/deve/gettext-tools from Q2-2019 fails to link on Solaris 11.4 x86 
SunOS solaris 5.11 11.4.0.15.0 i86pc i386 i86pc

Using pkgsrc built gcc 8.3 

root@solaris:/usr/pkgsrc/devel/gettext-tools# /usr/pkg/gcc8/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/pkg/gcc8/bin/gcc
COLLECT_LTO_WRAPPER=/usr/pkg/gcc8/libexec/gcc/i486-sun-solaris2.11/8.3.0/lto-wrapper
Target: i486-sun-solaris2.11
Configured with: ../gcc-8.3.0/configure --disable-libstdcxx-pch
--with-system-zlib --disable-nls --enable-__cxa_atexit
--with-gxx-include-dir=/usr/pkg/gcc8/include/c++/ --enable-libssp
--enable-languages='c obj-c++ objc fortran c++' --enable-shared
--enable-long-long --with-local-prefix=/usr/pkg/gcc8 --enable-threads=posix
--with-boot-ldflags='-static-libstdc++ -static-libgcc -Wl,-R/usr/pkg/lib '
--without-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as
--with-as=/usr/sfw/bin/gas --with-libiconv-prefix=/usr/pkg
--prefix=/usr/pkg/gcc8 --build=i486-sun-solaris2.11
--host=i486-sun-solaris2.11 --infodir=/usr/pkg/gcc8/info
--mandir=/usr/pkg/gcc8/man --enable-option-checking=yes
Thread model: posix
gcc version 8.3.0 (GCC)

or native Solaris GCC 7.3 
root@solaris:/usr/pkgsrc/devel/gettext-tools# /usr/gcc/7/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/gcc/7/bin/gcc
COLLECT_LTO_WRAPPER=/usr/gcc/7/lib/gcc/x86_64-pc-solaris2.11/7.3.0/lto-wrapper
Target: x86_64-pc-solaris2.11
Configured with:
/builds/ulhg/workspace/Solaris_11u4/Userland/full-build/02a-build-i386/components/gcc7/gcc-7.3.0/configure
--prefix=/usr/gcc/7 --mandir=/usr/gcc/7/share/man --bindir=/usr/gcc/7/bin
--sbindir=/usr/gcc/7/sbin --libdir=/usr/gcc/7/lib
--infodir=/usr/gcc/7/share/info --libexecdir=/usr/gcc/7/lib
--enable-languages=c,c++,fortran,objc --enable-shared
--enable-initfini-array --disable-rpath --with-system-zlib
--with-build-config=no --with-gmp-include=/usr/include
--with-mpfr-include=/usr/include --without-gnu-ld --with-ld=/usr/bin/ld
--with-gnu-as --with-as=/usr/gnu/bin/as --disable-bootstrap 'BOOT_CFLAGS=-g
-O2' x86_64-pc-solaris2.11
Thread model: posix
gcc version 7.3.0 (GCC) 



Making all in libtextstyle
/usr/pkg/bin/bmake  all-recursive
Making all in doc
Making all in lib
/usr/pkg/bin/bmake  all-am
/usr/bin/bash ../libtool  --tag=CC    --mode=link gcc   -O2 -O2
-D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/pkg/include/ncurses
-I/usr/include  -no-undefined      -lm    -lm     -L/usr/pkg/lib -lncurses
-R/usr/pkg/lib  -no-undefined -export-symbols libtextstyle.sym -version-info 
0:0:0 -rpath /usr/pkg/lib -L/usr/pkg/gcc8/lib/gcc/i486-sun-solaris2.11/8.3.0
-Wl,-R/usr/pkg/gcc8/lib/gcc/i486-sun-solaris2.11/8.3.0 -L/usr/pkg/gcc8/lib
-Wl,-R/usr/pkg/gcc8/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
-Wl,-R/usr/lib  -o libtextstyle.la -rpath /usr/pkg/lib gl_array_list.lo
binary-io.lo c-ctype.lo  c-strcasecmp.lo c-strncasecmp.lo concat-filename.lo 
dirname-lgpl.lo basename-lgpl.lo stripslash.lo exitfail.lo  fatal-signal.lo
fd-hook.lo fd-ostream.lo file-ostream.lo  full-write.lo getprogname.lo
hash.lo html-ostream.lo  html-styled-ostream.lo iconv-ostream.lo gl_list.lo
math.lo  memory-ostream.lo noop-styled-ostream.lo ostream.lo  safe-read.lo
safe-write.lo sig-handler.lo styled-ostream.lo  term-ostream.lo
term-style-control.lo term-styled-ostream.lo  unistd.lo unistr/u8-mbtouc.lo 
unistr/u8-mbtouc-aux.lo xmalloc.lo xstrdup.lo  xconcat-filename.lo
gl_xlist.lo xsize.lo xvasprintf.lo  xasprintf.lo color.lo misc.lo version.lo
asnprintf.lo error.lo obstack.lo printf-args.lo printf-parse.lo
vasnprintf.lo libcroco_rpl.la  libglib_rpl.la libxml_rpl.la  -lintl -liconv
libtool: link: gcc -shared  -fPIC -DPIC  .libs/gl_array_list.o
.libs/binary-io.o .libs/c-ctype.o .libs/c-strcasecmp.o .libs/c-strncasecmp.o
.libs/concat-filename.o .libs/dirname-lgpl.o .libs/basename-lgpl.o
.libs/stripslash.o .libs/exitfail.o .libs/fatal-signal.o .libs/fd-hook.o
.libs/fd-ostream.o .libs/file-ostream.o .libs/full-write.o
.libs/getprogname.o .libs/hash.o .libs/html-ostream.o
.libs/html-styled-ostream.o .libs/iconv-ostream.o .libs/gl_list.o
.libs/math.o .libs/memory-ostream.o .libs/noop-styled-ostream.o
.libs/ostream.o .libs/safe-read.o .libs/safe-write.o .libs/sig-handler.o
.libs/styled-ostream.o .libs/term-ostream.o .libs/term-style-control.o
.libs/term-styled-ostream.o .libs/unistd.o unistr/.libs/u8-mbtouc.o
unistr/.libs/u8-mbtouc-aux.o .libs/xmalloc.o .libs/xstrdup.o
.libs/xconcat-filename.o .libs/gl_xlist.o .libs/xsize.o .libs/xvasprintf.o
.libs/xasprintf.o .libs/color.o .libs/misc.o .libs/version.o
.libs/asnprintf.o .libs/error.o .libs/obstack.o .libs/printf-args.o
.libs/printf-parse.o .libs/vasnprintf.o  -Wl,--whole-archive
./.libs/libcroco_rpl.a ./.libs/libglib_rpl.a ./.libs/libxml_rpl.a
-Wl,--no-whole-archive  -Wl,-rpath
-Wl,/usr/pkgsrc/devel/gettext-tools/work/.buildlink/lib -Wl,-rpath
-Wl,/usr/pkgsrc/devel/gettext-tools/work/.buildlink/lib -lm
-L/usr/pkgsrc/devel/gettext-tools/work/.buildlink/lib
/usr/pkgsrc/devel/gettext-tools/work/.buildlink/lib/libncurses.so -L../lib
-L/usr/pkg/gcc8/lib/gcc/i486-sun-solaris2.11/8.3.0 -L/usr/pkg/gcc8/lib
/usr/pkgsrc/devel/gettext-tools/work/.buildlink/lib/libintl.so
/usr/pkgsrc/devel/gettext-tools/work/.buildlink/lib/libiconv.so  -O2 -O2
-Wl,-rpath -Wl,/usr/pkg/lib -Wl,-rpath
-Wl,/usr/pkg/gcc8/lib/gcc/i486-sun-solaris2.11/8.3.0 -Wl,-rpath
-Wl,/usr/pkg/gcc8/lib -Wl,-rpath -Wl,/usr/pkg/lib   -Wl,-soname
-Wl,libtextstyle.so.0 -Wl,-retain-symbols-file -Wl,libtextstyle.sym -o
.libs/libtextstyle.so.0.0.0
ld: fatal: option '-G' and option '-r' are incompatible
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
bmake[5]: stopped in
/usr/pkgsrc/devel/gettext-tools/work/gettext-0.20.1/libtextstyle/lib
*** Error code 1

Stop.
bmake[4]: stopped in
/usr/pkgsrc/devel/gettext-tools/work/gettext-0.20.1/libtextstyle/lib
*** Error code 1

Stop.
bmake[3]: stopped in
/usr/pkgsrc/devel/gettext-tools/work/gettext-0.20.1/libtextstyle
*** Error code 1

Stop.
bmake[2]: stopped in
/usr/pkgsrc/devel/gettext-tools/work/gettext-0.20.1/libtextstyle
*** Error code 1

Stop.
bmake[1]: stopped in /usr/pkgsrc/devel/gettext-tools/work/gettext-0.20.1
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/gettext-tools/work/gettext-0.20.1
*** Error code 1

Stop.
bmake[1]: stopped in /usr/pkgsrc/devel/gettext-tools

Any ideas ? 

----- End forwarded message -----

This looks like a big toolchain issue unrelated to the package, since it
doesn't use -G, so the problem is gcc8.
Do you have more than one 'ld', by the way?


Home | Main Index | Thread Index | Old Index