public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/98616] New: Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS
@ 2021-01-10 14:50 tong__hui at 163 dot com
  2021-01-10 14:56 ` [Bug bootstrap/98616] " tong__hui at 163 dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: tong__hui at 163 dot com @ 2021-01-10 14:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98616

            Bug ID: 98616
           Summary: Compile gcc 10.2.0 error for loongson 2f CPU use MIPS
                    n32 ABI on Gentoo OS
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tong__hui at 163 dot com
  Target Milestone: ---

emerge --info '=sys-devel/gcc-10.2.0-r5::gentoo'
Portage 3.0.12 (python 3.8.6-final-0,
default/linux/mips/17.0/mipsel/multilib/n32, gcc-8.3.0, glibc-2.32-r2, 4.19.121
mips64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.19.121-mips64-ICT_Loongson-2_V0.3_FPU_V0.1-with-glibc2.2
KiB Mem:     1013280 total,     18496 free
KiB Swap:    3911808 total,   3837312 free
Timestamp of repository gentoo: Sat, 09 Jan 2021 00:45:01 +0000
sh bash 5.0_p18
ld GNU ld (Gentoo 2.30 p3) 2.30.0
ccache version 3.7.12 [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.5.7::gentoo, 3.6.12::gentoo,
3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo
dev-util/ccache:          3.7.12::gentoo
dev-util/cmake:           3.18.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo, 2.70::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.14.1::gentoo, 1.15.1-r1::gentoo,
1.16.3-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo, 2.30-r3::gentoo,
2.31.1-r4::gentoo, 2.32-r1::gentoo, 2.33.1::gentoo, 2.34::gentoo,
2.35.1-r1::gentoo
sys-devel/gcc:            4.8.3::gentoo, 5.4.0-r6::gentoo, 5.5.0::gentoo,
6.4.0-r5::gentoo, 7.3.0-r3::gentoo, 8.2.0-r6::gentoo, 8.3.0::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: webrsync
    sync-uri: https://mirrors.163.com/gentoo/
    priority: -1000
    sync-webrsync-verify-signature: yes

python
    location: /var/lib/layman/python
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="mips ~mips"
ACCEPT_LICENSE="*"
CBUILD="mips64el-unknown-linux-gnu"
CFLAGS="-O2 -march=loongson2f -Wa,-mfix-loongson2f-nop -pipe -fPIC"
CHOST="mips64el-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d
/etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/
/etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/
/etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/sandbox.d
/etc/terminfo"
CXXFLAGS="-O2 -march=loongson2f -Wa,-mfix-loongson2f-nop -pipe -fPIC"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB
PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME
XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs
config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox
merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox
preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict
unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv
usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirrors.tuna.tsinghua.edu.cn/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--omit-dir-times --compress --force --whole-file --delete --stats
--human-readable --timeout=180 --exclude=/distfiles --exclude=/local
--exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl alsa artworkextra avahi berkdb bzip2 cairo cli crypt cups dbus exif
ffmpeg flac gdbm gdu glchess gtk gtk3 gudev hwdb iconv id3tag ipv6 jpeg latex
lcms libglvnd libsamplerate lock math midi mips mp3 multilib ncurses nls nptl
openssl openxml ots pcre pic png policykit python readline seccomp session
soundtouch spell split-usr ssl startup-notification suid tcpd threads thunar
tiff twolame udev udisks unicode vamp vorbis wmf wordperfect xattr zlib"
ABI_MIPS="n32" ADA_TARGET="gnat_2018" ALSA_CARDS="au1x00"
APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias
auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm
authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache
cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter
file_cache filter headers include info log_config logio mem_cache mime
mime_magic negotiation rewrite setenvif speling status unique_id userdir
usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate
evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip
navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2
timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse"
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001
mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
presenter-minimizer" LLVM_TARGETS="Mips" LUA_SINGLE_TARGET="lua5-1"
LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3
php7-4" POSTGRES_TARGETS="postgres10 postgres11"
PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_8"
QEMU_SOFTMMU_TARGETS="arm x86_64 sparc" QEMU_USER_TARGETS="mips64el"
RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="fbdev"
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface
geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac
delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG,
LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

emerge -pqv '=sys-devel/gcc-10.2.0-r5::gentoo'
[ebuild  NS   ] sys-devel/gcc-10.2.0-r5 [4.8.3, 5.4.0-r6, 5.5.0, 6.4.0-r5,
7.3.0-r3, 8.2.0-r6, 8.3.0] USE="(cxx) fortran (multilib) nls nptl openmp pch
(pie) ssp (-ada) -d% -debug -doc -fixed-point -go -graphite (-hardened) -jit
(-libssp) -lto% -objc -objc++ -objc-gc -pgo (-sanitize) -systemtap -test
-vanilla (-vtv) -zstd% (-altivec%) (-mpx%)"

error build log:
checking whether ln -s works... yes
checking for mips64el-unknown-linux-gnu-gcc...
/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build/./gcc/
-B/usr/mips64el-unknown-linux-gnu/bin/ -B/usr/mips64el-unknown-linux-gnu/lib/
-isystem /usr/mips64el-unknown-linux-gnu/include -isystem
/usr/mips64el-unknown-linux-gnu/sys-include   -fno-checking
checking for suffix of object files... configure: error: in
`/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build/mips64el-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
make[2]: *** [Makefile:16845: configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory
'/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build'
make[1]: *** [Makefile:21857: stage1-bubble] Error 2
make[1]: Leaving directory
'/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build'
make: *** [Makefile:22189: bootstrap-lean] Error 2
 [31;01m*[0m ERROR: sys-devel/gcc-10.2.0-r5::gentoo failed (compile phase):
 [31;01m*[0m   emake failed

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/98616] Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS
  2021-01-10 14:50 [Bug bootstrap/98616] New: Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS tong__hui at 163 dot com
@ 2021-01-10 14:56 ` tong__hui at 163 dot com
  2021-01-25  3:50 ` paul.hua.gm at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: tong__hui at 163 dot com @ 2021-01-10 14:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98616

--- Comment #1 from tong__hui at 163 dot com <tong__hui at 163 dot com> ---
Created attachment 49929
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49929&action=edit
gcc-build-logs

gcc build logs

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/98616] Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS
  2021-01-10 14:50 [Bug bootstrap/98616] New: Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS tong__hui at 163 dot com
  2021-01-10 14:56 ` [Bug bootstrap/98616] " tong__hui at 163 dot com
@ 2021-01-25  3:50 ` paul.hua.gm at gmail dot com
  2021-01-25 16:08 ` mikpelinux at gmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: paul.hua.gm at gmail dot com @ 2021-01-25  3:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98616

Paul Hua <paul.hua.gm at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paul.hua.gm at gmail dot com

--- Comment #2 from Paul Hua <paul.hua.gm at gmail dot com> ---
Hi,

The error message show:

---------------------------------------------------------------------
 configure: error: in
`/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build/mips64el-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
make[2]: *** [Makefile:16845: configure-stage1-target-libgcc] Error 1
-----------------------------------------------------------------------

please see config.log for more details.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/98616] Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS
  2021-01-10 14:50 [Bug bootstrap/98616] New: Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS tong__hui at 163 dot com
  2021-01-10 14:56 ` [Bug bootstrap/98616] " tong__hui at 163 dot com
  2021-01-25  3:50 ` paul.hua.gm at gmail dot com
@ 2021-01-25 16:08 ` mikpelinux at gmail dot com
  2021-07-24 20:27 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mikpelinux at gmail dot com @ 2021-01-25 16:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98616

--- Comment #3 from Mikael Pettersson <mikpelinux at gmail dot com> ---
> cat mips64el-unknown-linux-gnu/libgcc/config.log
...
configure:3778: checking for suffix of object files
configure:3800: /var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build/./gcc/
-B/usr/mips64el-unknown-linux-gnu/bin/ -B/usr/mips64el-unknown-linux-gnu/lib/
-isystem /usr/mips64el-unknown-linux-gnu/include -isystem
/usr/mips64el-unknown-linux-gnu/sys-include   -fno-checking -c -g
-march=loongson2f -Wa,-mfix-loongson2f-nop -pipe -fPIC -O2 -minterlink-mips16 
conftest.c >&5
/usr/mips64el-unknown-linux-gnu/bin/as: unrecognized option '-mloongson-mmi'
configure:3804: $? = 2
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3818: error: in
`/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build/mips64el-unknown-linux-gnu/libgcc':
configure:3820: error: cannot compute suffix of object files: cannot compile

You have a clear discrepancy between gcc and binutils. As you're using Gentoo
sources and build procedure I suggest you report the bug to them.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/98616] Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS
  2021-01-10 14:50 [Bug bootstrap/98616] New: Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS tong__hui at 163 dot com
                   ` (2 preceding siblings ...)
  2021-01-25 16:08 ` mikpelinux at gmail dot com
@ 2021-07-24 20:27 ` pinskia at gcc dot gnu.org
  2021-07-28 11:58 ` tong__hui at 163 dot com
  2021-07-28 12:32 ` schwab@linux-m68k.org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-24 20:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98616

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
-mloongson-mmi was added to gcc in r9-3891.  While it was added to binutils in
2.32.

Basically if you are going to bootstrap GCC 9 or 10 with -march=loongson2f you
need a newer binutils than you currently have selected.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/98616] Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS
  2021-01-10 14:50 [Bug bootstrap/98616] New: Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS tong__hui at 163 dot com
                   ` (3 preceding siblings ...)
  2021-07-24 20:27 ` pinskia at gcc dot gnu.org
@ 2021-07-28 11:58 ` tong__hui at 163 dot com
  2021-07-28 12:32 ` schwab@linux-m68k.org
  5 siblings, 0 replies; 7+ messages in thread
From: tong__hui at 163 dot com @ 2021-07-28 11:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98616

tong__hui at 163 dot com <tong__hui at 163 dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED
         Resolution|INVALID                     |WORKSFORME

--- Comment #5 from tong__hui at 163 dot com <tong__hui at 163 dot com> ---
I switch binutils to 2.36.1, and compiled successfully. Thank you!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/98616] Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS
  2021-01-10 14:50 [Bug bootstrap/98616] New: Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS tong__hui at 163 dot com
                   ` (4 preceding siblings ...)
  2021-07-28 11:58 ` tong__hui at 163 dot com
@ 2021-07-28 12:32 ` schwab@linux-m68k.org
  5 siblings, 0 replies; 7+ messages in thread
From: schwab@linux-m68k.org @ 2021-07-28 12:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98616

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WORKSFORME                  |INVALID

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-07-28 12:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-10 14:50 [Bug bootstrap/98616] New: Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS tong__hui at 163 dot com
2021-01-10 14:56 ` [Bug bootstrap/98616] " tong__hui at 163 dot com
2021-01-25  3:50 ` paul.hua.gm at gmail dot com
2021-01-25 16:08 ` mikpelinux at gmail dot com
2021-07-24 20:27 ` pinskia at gcc dot gnu.org
2021-07-28 11:58 ` tong__hui at 163 dot com
2021-07-28 12:32 ` schwab@linux-m68k.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).