From owner-freebsd-mips@freebsd.org Sun Sep 20 22:07:58 2020 Return-Path: Delivered-To: freebsd-mips@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ED9173F3831; Sun, 20 Sep 2020 22:07:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BvhXF37xYz4c6X; Sun, 20 Sep 2020 22:07:57 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qk1-f177.google.com with SMTP id d20so13112299qka.5; Sun, 20 Sep 2020 15:07:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=f2hLBm1lKyRaOQPLtVD4G9y8mKiSxUdgOuYCoQ/Zz+s=; b=bVqkdhWpxjT7aEJdH7LuDadMBESX6p+R+s8CRuCENZi1qwDetAFH6zthU5VWJ9NXHh SVBgqXThcXWT4h6HtHRl50zG8iQ6IVxvr5ZAx6zcXMuB0JX+2XdOcvzvNumfrmtRFrEH qbOD1ceMwFXmLy3hMibwLq9Yp0sD930RHCivYdPsf15pUlscQSA9QRFmkDQe3A1VdNuX k+mRx/mZkybGM6BbzO7IfEZvCzd7yk+RqXAtKzRTnW7G0b61vIUEiKzf5vHkhmjA+lFZ WNEkNev/FFImtXYgk5hSz9dg2acg2c5BfQWZryA3butvCE/DGqxwddNNcnF0W8jOcGi1 OOVA== X-Gm-Message-State: AOAM531EOoNhSnd6NhNjwGkpTOGrT2OwFR7gb41sHZ6F/szPoWx5VBGe vn5XxjJprHkoAVTJ6ODbdse8whnvMGpZip4PAIxN5d43zjOiSA== X-Google-Smtp-Source: ABdhPJwIQBfeWQFmRwG4S+iA+LD0tYF+A2qbidSVNxpVC8+WJEzINyjFHMfBETnqGtQZJfLvgRQ9kDZPu9gz5rqPmWA= X-Received: by 2002:a37:96c7:: with SMTP id y190mr489712qkd.152.1600639674952; Sun, 20 Sep 2020 15:07:54 -0700 (PDT) MIME-Version: 1.0 From: Adrian Chadd Date: Sun, 20 Sep 2020 15:07:43 -0700 Message-ID: Subject: mips32 + gcc9 -- still broken To: freebsd-current , "freebsd-mips@freebsd.org" X-Rspamd-Queue-Id: 4BvhXF37xYz4c6X X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 209.85.222.177 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-2.46 / 15.00]; FROM_NEQ_ENVFROM(0.00)[adrian@freebsd.org,adrianchadd@gmail.com]; MAILMAN_DEST(0.00)[freebsd-current,freebsd-mips]; TO_DN_EQ_ADDR_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; ARC_NA(0.00)[]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_LONG(-1.01)[-1.011]; NEURAL_HAM_MEDIUM(-0.98)[-0.984]; NEURAL_HAM_SHORT(-0.47)[-0.469]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[209.85.222.177:from]; FORGED_SENDER(0.30)[adrian@freebsd.org,adrianchadd@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.222.177:from]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Sep 2020 22:07:59 -0000 hi! So mips32 and gcc9 is broken, and things have been broken with mips32+gcc for months now. I've been poking slowly at the various build failures and they're getting slowly fixed, but this one deep in linker fun is stumping me: === /usr/local/bin/mips-unknown-freebsd13.0-gcc9 --sysroot=/usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp -B/usr/local/mips-unknown-freebsd13.0/bin/ -O -pipe -fno-common -DATJOB_DIR=\"/var/at/jobs/\" -DLFILE=\"/var/at/jobs/.lockfile\" -DLOADAVG_MX=1.5 -DATSPOOL_DIR=\"/var/at/spool\" -DDAEMON_UID=1 -DDAEMON_GID=1 -DDEFAULT_BATCH_QUEUE=\'E\' -DDEFAULT_AT_QUEUE=\'c\' -DPERM_PATH=\"/var/at/\" -I/usr/home/adrian/work/freebsd/head-embedded/src/usr.bin/at -I/usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun -DLOGIN_CAP -DPAM -G0 -EB -mabi=32 -msoft-float -march=mips32 -g -std=gnu99 -Wno-format-zero-length -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-error=address -Wno-error=array-bounds -Wno-error=attributes -Wno-error=bool-compare -Wno-error=cast-align -Wno-error=clobbered -Wno-error=deprecated-declarations -Wno-error=enum-compare -Wno-error=extra -Wno-error=inline -Wno-error=logical-not-parentheses -Wno-error=strict-aliasing -Wno-error=uninitialized -Wno-error=unused-but-set-variable -Wno-error=unused-function -Wno-error=unused-value -Wno-error=empty-body -Wno-error=maybe-uninitialized -Wno-error=nonnull-compare -Wno-error=redundant-decls -Wno-error=shift-negative-value -Wno-error=tautological-compare -Wno-error=unused-const-variable -Wno-error=bool-operation -Wno-error=deprecated -Wno-error=expansion-to-defined -Wno-error=format-overflow -Wno-error=format-truncation -Wno-error=implicit-fallthrough -Wno-error=int-in-bool-context -Wno-error=memset-elt-size -Wno-error=noexcept-type -Wno-error=nonnull -Wno-error=pointer-compare -Wno-error=stringop-overflow -Wno-error=aggressive-loop-optimizations -Wno-error=cast-function-type -Wno-error=catch-value -Wno-error=multistatement-macros -Wno-error=restrict -Wno-error=sizeof-pointer-memaccess -Wno-error=stringop-truncation -Wno-error=empty-body -Wno-error=overflow -Wno-address-of-packed-member -EB -mabi=32 -o atrun.full atrun.o gloadavg.o -lpam -lutil /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/usr/lib/crt1.o: in function `__start': /usr/home/adrian/work/freebsd/head-embedded/src/lib/csu/mips/crt1_c.c:76: undefined reference to `_init_tls' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/src/lib/csu/mips/crt1_c.c:76: undefined reference to `_init_tls' /usr/local/bin/mips-unknown-freebsd13.0-ld: atrun.o: in function `perr': /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun/atrun.c:417: undefined reference to `vsyslog' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun/atrun.c:417: undefined reference to `vsyslog' /usr/local/bin/mips-unknown-freebsd13.0-ld: atrun.o: in function `perrx': /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun/atrun.c:433: undefined reference to `vsyslog' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun/atrun.c:433: undefined reference to `vsyslog' /usr/local/bin/mips-unknown-freebsd13.0-ld: atrun.o: in function `run_file': /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun/atrun.c:348: undefined reference to `waitpid' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun/atrun.c:348: undefined reference to `waitpid' /usr/local/bin/mips-unknown-freebsd13.0-ld: atrun.o: in function `main': /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun/atrun.c:478: undefined reference to `openlog' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun/atrun.c:478: undefined reference to `openlog' /usr/local/bin/mips-unknown-freebsd13.0-ld: atrun.o: in function `usage': /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun/atrun.c:590: undefined reference to `syslog' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun/atrun.c:590: undefined reference to `syslog' /usr/local/bin/mips-unknown-freebsd13.0-ld: atrun.o: in function `main': /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun/atrun.c:532: undefined reference to `time' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun/atrun.c:532: undefined reference to `time' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun/atrun.c:510: undefined reference to `sysctlbyname' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun/atrun.c:510: undefined reference to `sysctlbyname' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun/atrun.c:577: undefined reference to `closelog' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun/atrun.c:580: undefined reference to `closelog' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `sys_nsig' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `futx_to_utx' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `_waitpid' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/usr/lib/libpam.so: undefined reference to `sigfillset' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `_fixtelldir' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/usr/lib/libpam.so: undefined reference to `sysconf' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `_reclaim_telldir' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `sigismember' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `sl_init' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `sysctlnametomib' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `utx_to_futx' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `sigdelset' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `sl_add' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `sl_free' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/usr/lib/libutil.so: undefined reference to `tcsetsid' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/usr/lib/libpam.so: undefined reference to `tcsetattr' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/usr/lib/libutil.so: undefined reference to `sigaddset' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `sys_siglist' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/usr/lib/libutil.so: undefined reference to `sysctl' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/usr/lib/libutil.so: undefined reference to `sigemptyset' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `__libc_tcdrain' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/usr/lib/libutil.so: undefined reference to `sleep' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `signal' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `__tls_get_addr' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/usr/lib/libpam.so: undefined reference to `tcgetattr' /usr/local/bin/mips-unknown-freebsd13.0-ld: /usr/home/adrian/work/freebsd/head-embedded/obj/mips_ap/usr/home/adrian/work/freebsd/head-embedded/src/mips.mips/tmp/lib/libc.so.7: undefined reference to `longjmperror' collect2: error: ld returned 1 exit status *** Error code 1 Stop. make[2]: stopped in /usr/home/adrian/work/freebsd/head-embedded/src/libexec/atrun $ === I only get a few hours a weekend and a couple hours each night to poke at FreeBSD stuff, and I'd /really like/ to be focusing on MIPS fixes and WiFi work. I'd appreciate some help in figuring out who broke what and getting it fixed. Thanks! -adrian