pkgsrc-Bugs archive

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

pkg/56248: pkgsrc bootstrap fails on modern Ubuntu



>Number:         56248
>Category:       pkg
>Synopsis:       pkgsrc bootstrap fails on modern Ubuntu
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 15 14:25:00 +0000 2021
>Originator:     John Klos
>Release:        Linux UbuntuQemu 5.8.0-55-generic #62~20.04.1-Ubuntu SMP Wed Jun 2 08:55:04 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
>Organization:
	
>Environment:
	
	
System: Linux UbuntuQemu 5.8.0-55-generic #62~20.04.1-Ubuntu SMP Wed Jun 2 08:55:04 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Architecture: x86_64
Machine: x86_64
>Description:
Bootstrapping pkgsrc on Ubuntu Ubuntu 20.04.2 LTS fails with:

./bootstrap --prefix /usr/local --prefer-pkgsrc yes --make-jobs 4
...
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
checking for x86_64-debian-linux-gcc... cc
checking whether the C compiler works... no
configure: error: in `/usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/cwrappers-20180325':
configure: error: C compiler cannot create executables
See `config.log' for more details
*** Error code 77

Stop.
bmake[1]: stopped in /usr/pkgsrc/pkgtools/cwrappers
*** Error code 1

The relevant part of config.log:

Thread model: posix
gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) 
configure:2427: $? = 0
configure:2416: cc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2427: $? = 1
configure:2416: cc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:2427: $? = 1
configure:2447: checking whether the C compiler works
configure:2469: cc -O2 -D_GNU_SOURCE=1 -D_FORTIFY_SOURCE=2 -DHAVE_NBCOMPAT_H=1 -I/usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat -L/usr/pkgsrc/bootstrap/work/wrk/pkgtools/cwrappers/work/libnbcompat -Wl,-R/usr/local/lib conftest.c -lnbcompat >&5
/usr/bin/ld: cannot find -lnbcompat
collect2: error: ld returned 1 exit status

gcc is version 9.3.0:

cc --version
cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.

>How-To-Repeat:
	
>Fix:
	

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index