[OpenIndiana-discuss] gccgo issue

russell stream at willows7.myzen.co.uk
Mon Oct 23 06:41:05 UTC 2023


Hi

Tried installing pkg:/developer/gcc-10 at 10.5.0-2023.0.0.1

# pkg install pkg:/developer/gcc-10 at 10.5.0-2023.0.0.1
No updates necessary for this image.

Kind Regards

Russell

On 10/23/23 07:12, russell wrote:
>
> Hi
>
> I have the package pkg:/developer/gcc-10 at 10.5.0-2023.0.0.1 installed 
> but the /usr/gcc/10/bin/go which is apart of the pkg is not installed
> Do I need to re-install the pkg:/developer/gcc-10 at 10.5.0-2023.0.0.1 
> package?
>
> Kind Regards
>
> Russell
>
> On 10/22/23 19:17, russell wrote:
>>
>>
>> Update my desktop around 10 mins ago, getting the same error after update
>>
>> $ uname -a
>> SunOS tesla 5.11 illumos-9fbdb45a98 i86pc i386 i86pc
>>
>> $ gccgo -v
>> Using built-in specs.
>> COLLECT_GCC=gccgo
>> COLLECT_LTO_WRAPPER=/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/lto-wrapper
>> Target: x86_64-pc-solaris2.11
>> Configured with: 
>> /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.5.0/configure 
>> CC=/usr/gcc/10/bin/gcc CXX=/usr/gcc/10/bin/g++ 
>> F77=/usr/gcc/10/bin/gfortran FC=/usr/gcc/10/bin/gfortran CFLAGS=-O2 
>> CXXFLAGS=-O2 FFLAGS='  -O3 ' FCFLAGS=-O2 LDFLAGS=-m64 
>> PKG_CONFIG_PATH=/usr/openssl/3.1/lib/64/pkgconfig:/usr/mariadb/10.6/lib/amd64/pkgconfig:/usr/lib/amd64/pkgconfig:/usr/lib/pkgconfig 
>> --prefix=/usr/gcc/10 --mandir=/usr/gcc/10/share/man 
>> --bindir=/usr/gcc/10/bin --libdir=/usr/gcc/10/lib 
>> --sbindir=/usr/gcc/10/sbin --sbindir=/usr/gcc/10/bin 
>> --libdir=/usr/gcc/10/lib --libexecdir=/usr/gcc/10/lib --host 
>> x86_64-pc-solaris2.11 --build x86_64-pc-solaris2.11 --target 
>> x86_64-pc-solaris2.11 --with-pkgversion='OpenIndiana 10.5.0-oi-1' 
>> --with-bugurl=https://bugs.openindiana.org --without-gnu-ld 
>> --with-ld=/usr/bin/ld 
>> --with-build-time-tools=/usr/gnu/x86_64-pc-solaris2.11/bin 
>> --disable-bootstrap --with-gnu-as --with-as=/usr/bin/gas 
>> LDFLAGS=-R/usr/gcc/10/lib --with-diagnostics-urls=auto-if-env 
>> --enable-plugins --enable-objc-gc 
>> --enable-languages=c,c++,fortran,go,lto,objc --disable-libitm 
>> enable_frame_pointer=yes
>> Thread model: posix
>> Supported LTO compression algorithms: zlib zstd
>> gcc version 10.5.0 (OpenIndiana 10.5.0-oi-1)
>> COMPILER_PATH=/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/:/usr/ccs/bin/
>> LIBRARY_PATH=/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/../../../amd64/:/lib/amd64/:/usr/lib/amd64/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/../../../:/lib/:/usr/lib/
>> COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' 
>> '-march=x86-64'
>>  /usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/collect2 -V -M 
>> /usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/../../../libgcc-unwind.map 
>> -Y P,/usr/gcc/10/lib/amd64:/lib/amd64:/usr/lib/amd64 -R 
>> /usr/gcc/10/lib/amd64 -L /usr/gcc/10/lib/amd64 -Qy 
>> /usr/lib/amd64/crt1.o 
>> /usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/crtp.o 
>> /usr/lib/amd64/crti.o /usr/lib/amd64/values-Xa.o 
>> /usr/lib/amd64/values-xpg6.o 
>> /usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/crtbegin.o 
>> -L/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0 
>> -L/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/../../../amd64 
>> -L/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/../../.. -t 
>> -lgcc_s -lgcc -lc -lgcc_s -lgcc 
>> /usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/crtend.o 
>> /usr/lib/amd64/crtn.o
>> ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1790 
>> (illumos)
>> Undefined                       first referenced
>>  symbol                             in file
>> main                                /usr/lib/amd64/crt1.o
>> ld: fatal: symbol referencing errors. No output written to a.out
>> collect2: error: ld returned 1 exit status
>>
>> Other gcc compilers work
>>
>> $ gcc -v
>> Using built-in specs.
>> COLLECT_GCC=gcc
>> COLLECT_LTO_WRAPPER=/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/lto-wrapper
>> Target: x86_64-pc-solaris2.11
>> Configured with: 
>> /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.5.0/configure 
>> CC=/usr/gcc/10/bin/gcc CXX=/usr/gcc/10/bin/g++ 
>> F77=/usr/gcc/10/bin/gfortran FC=/usr/gcc/10/bin/gfortran CFLAGS=-O2 
>> CXXFLAGS=-O2 FFLAGS='  -O3 ' FCFLAGS=-O2 LDFLAGS=-m64 
>> PKG_CONFIG_PATH=/usr/openssl/3.1/lib/64/pkgconfig:/usr/mariadb/10.6/lib/amd64/pkgconfig:/usr/lib/amd64/pkgconfig:/usr/lib/pkgconfig 
>> --prefix=/usr/gcc/10 --mandir=/usr/gcc/10/share/man 
>> --bindir=/usr/gcc/10/bin --libdir=/usr/gcc/10/lib 
>> --sbindir=/usr/gcc/10/sbin --sbindir=/usr/gcc/10/bin 
>> --libdir=/usr/gcc/10/lib --libexecdir=/usr/gcc/10/lib --host 
>> x86_64-pc-solaris2.11 --build x86_64-pc-solaris2.11 --target 
>> x86_64-pc-solaris2.11 --with-pkgversion='OpenIndiana 10.5.0-oi-1' 
>> --with-bugurl=https://bugs.openindiana.org --without-gnu-ld 
>> --with-ld=/usr/bin/ld 
>> --with-build-time-tools=/usr/gnu/x86_64-pc-solaris2.11/bin 
>> --disable-bootstrap --with-gnu-as --with-as=/usr/bin/gas 
>> LDFLAGS=-R/usr/gcc/10/lib --with-diagnostics-urls=auto-if-env 
>> --enable-plugins --enable-objc-gc 
>> --enable-languages=c,c++,fortran,go,lto,objc --disable-libitm 
>> enable_frame_pointer=yes
>> Thread model: posix
>> Supported LTO compression algorithms: zlib zstd
>> gcc version 10.5.0 (OpenIndiana 10.5.0-oi-1)
>>
>> $ g++ -v
>> Using built-in specs.
>> COLLECT_GCC=g++
>> COLLECT_LTO_WRAPPER=/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/lto-wrapper
>> Target: x86_64-pc-solaris2.11
>> Configured with: 
>> /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.5.0/configure 
>> CC=/usr/gcc/10/bin/gcc CXX=/usr/gcc/10/bin/g++ 
>> F77=/usr/gcc/10/bin/gfortran FC=/usr/gcc/10/bin/gfortran CFLAGS=-O2 
>> CXXFLAGS=-O2 FFLAGS='  -O3 ' FCFLAGS=-O2 LDFLAGS=-m64 
>> PKG_CONFIG_PATH=/usr/openssl/3.1/lib/64/pkgconfig:/usr/mariadb/10.6/lib/amd64/pkgconfig:/usr/lib/amd64/pkgconfig:/usr/lib/pkgconfig 
>> --prefix=/usr/gcc/10 --mandir=/usr/gcc/10/share/man 
>> --bindir=/usr/gcc/10/bin --libdir=/usr/gcc/10/lib 
>> --sbindir=/usr/gcc/10/sbin --sbindir=/usr/gcc/10/bin 
>> --libdir=/usr/gcc/10/lib --libexecdir=/usr/gcc/10/lib --host 
>> x86_64-pc-solaris2.11 --build x86_64-pc-solaris2.11 --target 
>> x86_64-pc-solaris2.11 --with-pkgversion='OpenIndiana 10.5.0-oi-1' 
>> --with-bugurl=https://bugs.openindiana.org --without-gnu-ld 
>> --with-ld=/usr/bin/ld 
>> --with-build-time-tools=/usr/gnu/x86_64-pc-solaris2.11/bin 
>> --disable-bootstrap --with-gnu-as --with-as=/usr/bin/gas 
>> LDFLAGS=-R/usr/gcc/10/lib --with-diagnostics-urls=auto-if-env 
>> --enable-plugins --enable-objc-gc 
>> --enable-languages=c,c++,fortran,go,lto,objc --disable-libitm 
>> enable_frame_pointer=yes
>> Thread model: posix
>> Supported LTO compression algorithms: zlib zstd
>> gcc version 10.5.0 (OpenIndiana 10.5.0-oi-1)
>>
>>
>> Kind Regards
>>
>> Russell
>>
>> On 10/22/23 10:50, russell wrote:
>>>
>>> Hi,
>>>
>>> Updated last night to illumos-9fbdb45a98 and repeated the same test
>>>
>>> $ gccgo -v
>>> Using built-in specs.
>>> COLLECT_GCC=gccgo
>>> COLLECT_LTO_WRAPPER=/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/lto-wrapper
>>> Target: x86_64-pc-solaris2.11
>>> Configured with: 
>>> /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.5.0/configure 
>>> CC=/usr/gcc/10/bin/gcc CXX=/usr/gcc/10/bin/g++ 
>>> F77=/usr/gcc/10/bin/gfortran FC=/usr/gcc/10/bin/gfortran CFLAGS=-O2 
>>> CXXFLAGS=-O2 FFLAGS='  -O3 ' FCFLAGS=-O2 LDFLAGS=-m64 
>>> PKG_CONFIG_PATH=/usr/openssl/1.1/lib/64/pkgconfig:/usr/mariadb/10.6/lib/amd64/pkgconfig:/usr/lib/amd64/pkgconfig:/usr/lib/pkgconfig 
>>> --prefix=/usr/gcc/10 --mandir=/usr/gcc/10/share/man 
>>> --bindir=/usr/gcc/10/bin --libdir=/usr/gcc/10/lib 
>>> --sbindir=/usr/gcc/10/sbin --sbindir=/usr/gcc/10/bin 
>>> --libdir=/usr/gcc/10/lib --libexecdir=/usr/gcc/10/lib --host 
>>> x86_64-pc-solaris2.11 --build x86_64-pc-solaris2.11 --target 
>>> x86_64-pc-solaris2.11 --with-pkgversion='OpenIndiana 10.5.0-oi-0' 
>>> --with-bugurl=https://bugs.openindiana.org --without-gnu-ld 
>>> --with-ld=/usr/bin/ld 
>>> --with-build-time-tools=/usr/gnu/x86_64-pc-solaris2.11/bin 
>>> --with-gnu-as --with-as=/usr/bin/gas LDFLAGS=-R/usr/gcc/10/lib 
>>> --with-diagnostics-urls=auto-if-env --enable-plugins 
>>> --enable-objc-gc --enable-languages=c,c++,fortran,go,lto,objc 
>>> --disable-libitm enable_frame_pointer=yes
>>> Thread model: posix
>>> Supported LTO compression algorithms: zlib zstd
>>> gcc version 10.5.0 (OpenIndiana 10.5.0-oi-0)
>>> COMPILER_PATH=/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/:/usr/ccs/bin/
>>> LIBRARY_PATH=/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/../../../amd64/:/lib/amd64/:/usr/lib/amd64/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/../../../:/lib/:/usr/lib/
>>> COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' 
>>> '-march=x86-64'
>>>  /usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/collect2 -V -M 
>>> /usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/../../../libgcc-unwind.map 
>>> -Y P,/usr/gcc/10/lib/amd64:/lib/amd64:/usr/lib/amd64 -R 
>>> /usr/gcc/10/lib/amd64 -L /usr/gcc/10/lib/amd64 -Qy 
>>> /usr/lib/amd64/crt1.o 
>>> /usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/crtp.o 
>>> /usr/lib/amd64/crti.o /usr/lib/amd64/values-Xa.o 
>>> /usr/lib/amd64/values-xpg6.o 
>>> /usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/crtbegin.o 
>>> -L/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0 
>>> -L/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/../../../amd64 
>>> -L/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/../../.. -t 
>>> -lgcc_s -lgcc -lc -lgcc_s -lgcc 
>>> /usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/crtend.o 
>>> /usr/lib/amd64/crtn.o
>>> ld: Software Generation Utilities - Solaris Link Editors: 
>>> 5.11-1.1790 (illumos)
>>> Undefined                       first referenced
>>>  symbol                             in file
>>> main                                /usr/lib/amd64/crt1.o
>>> ld: fatal: symbol referencing errors. No output written to a.out
>>> collect2: error: ld returned 1 exit status
>>>
>>>
>>> On 10/20/23 19:19, russell wrote:
>>>>
>>>> Hi
>>>>
>>>> When I run  gccgo -v
>>>>
>>>> $ gccgo -v
>>>> Using built-in specs.
>>>> COLLECT_GCC=gccgo
>>>> COLLECT_LTO_WRAPPER=/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/lto-wrapper
>>>> Target: x86_64-pc-solaris2.11
>>>> Configured with: 
>>>> /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.5.0/configure 
>>>> CC=/usr/gcc/10/bin/gcc CXX=/usr/gcc/10/bin/g++ 
>>>> F77=/usr/gcc/10/bin/gfortran FC=/usr/gcc/10/bin/gfortran CFLAGS=-O2 
>>>> CXXFLAGS=-O2 FFLAGS='  -O3 ' FCFLAGS=-O2 LDFLAGS=-m64 
>>>> PKG_CONFIG_PATH=/usr/openssl/1.1/lib/64/pkgconfig:/usr/mariadb/10.6/lib/amd64/pkgconfig:/usr/lib/amd64/pkgconfig:/usr/lib/pkgconfig 
>>>> --prefix=/usr/gcc/10 --mandir=/usr/gcc/10/share/man 
>>>> --bindir=/usr/gcc/10/bin --libdir=/usr/gcc/10/lib 
>>>> --sbindir=/usr/gcc/10/sbin --sbindir=/usr/gcc/10/bin 
>>>> --libdir=/usr/gcc/10/lib --libexecdir=/usr/gcc/10/lib --host 
>>>> x86_64-pc-solaris2.11 --build x86_64-pc-solaris2.11 --target 
>>>> x86_64-pc-solaris2.11 --with-pkgversion='OpenIndiana 10.5.0-oi-0' 
>>>> --with-bugurl=https://bugs.openindiana.org --without-gnu-ld 
>>>> --with-ld=/usr/bin/ld 
>>>> --with-build-time-tools=/usr/gnu/x86_64-pc-solaris2.11/bin 
>>>> --with-gnu-as --with-as=/usr/bin/gas LDFLAGS=-R/usr/gcc/10/lib 
>>>> --with-diagnostics-urls=auto-if-env --enable-plugins 
>>>> --enable-objc-gc --enable-languages=c,c++,fortran,go,lto,objc 
>>>> --disable-libitm enable_frame_pointer=yes
>>>> Thread model: posix
>>>> Supported LTO compression algorithms: zlib zstd
>>>> gcc version 10.5.0 (OpenIndiana 10.5.0-oi-0)
>>>> COMPILER_PATH=/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/:/usr/ccs/bin/
>>>> LIBRARY_PATH=/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/../../../amd64/:/lib/amd64/:/usr/lib/amd64/:/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/../../../:/lib/:/usr/lib/
>>>> COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' 
>>>> '-march=x86-64'
>>>>  /usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/collect2 -V -M 
>>>> /usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/../../../libgcc-unwind.map 
>>>> -Y P,/usr/gcc/10/lib/amd64:/lib/amd64:/usr/lib/amd64 -R 
>>>> /usr/gcc/10/lib/amd64 -L /usr/gcc/10/lib/amd64 -Qy 
>>>> /usr/lib/amd64/crt1.o 
>>>> /usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/crtp.o 
>>>> /usr/lib/amd64/crti.o /usr/lib/amd64/values-Xa.o 
>>>> /usr/lib/amd64/values-xpg6.o 
>>>> /usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/crtbegin.o 
>>>> -L/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0 
>>>> -L/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/../../../amd64 
>>>> -L/usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/../../.. -t 
>>>> -lgcc_s -lgcc -lc -lgcc_s -lgcc 
>>>> /usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.5.0/crtend.o 
>>>> /usr/lib/amd64/crtn.o
>>>> ld: Software Generation Utilities - Solaris Link Editors: 
>>>> 5.11-1.1790 (illumos)
>>>> Undefined                       first referenced
>>>>  symbol                             in file
>>>> main /usr/lib/amd64/crt1.o
>>>> ld: fatal: symbol referencing errors. No output written to a.out
>>>> collect2: error: ld returned 1 exit status
>>>>
>>>>
>>>> Currently running  5.11 illumos-0ba72251d9 i86pc i386 i86pc which I 
>>>> updated on 2023-10-14 08:17
>>>>
>>>>
>>>> Kind Regards
>>>>
>>>> Russell
>>>>


More information about the openindiana-discuss mailing list