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 From owner-freebsd-mips@freebsd.org Mon Sep 21 06:38:42 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 98E8F3E7366; Mon, 21 Sep 2020 06:38:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) (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 4BvvsY5RxDz3YKT; Mon, 21 Sep 2020 06:38:41 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qt1-f181.google.com with SMTP id r8so11345422qtp.13; Sun, 20 Sep 2020 23:38:41 -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:references:in-reply-to:from:date :message-id:subject:to; bh=eR1CRB24hVmFUwGNN2cmesZOS3U37MEzwjgPlMBct54=; b=GJ1FyVVaA3pR9mjB6saB+XlTtUYTSNOa0dZCILdpC6ZfUUdb8SNH5XWE4ZlbNdmV2n 8sh4LT0FhbKJQQWcwMX+90n9UyXSH0BBk0k5FG/XJFaB3zBlp73KnyHs/IjuG8tRQClA IZrJh5EKHKUGPDYGa8aK+S/nIJ+ppgI4OegvqOAF33tRBORUZA+kNbqVqVJA5kXeMXt7 sea1hcGMPGMxZpb74Xwz1rWe43+wHFqFa14u/d8V9AQureA1gZixpYhVG2qkX2uo+VYu NWaAhfsovyXS6MQ0P9Rrhno06Ex4xWl1CeP/ANPGkSYF3e9bWDCK7yI4dgyXz2pU+2VQ m71w== X-Gm-Message-State: AOAM5338ZOefp2wiHz0S6XeC0RCo1vS8c5ExgzP1QXOh48ma9gQKrcMK t7ZzxGn49gN++KyiDG18YcUGOJEmWsasufjFRX7Wq7LRElZaFQ== X-Google-Smtp-Source: ABdhPJwojBwdJOK3k4DajA7XMbGeQHhcFDYQ/asLezrIWP5qiA/zbRZXDvvycfSozRbb3nT+1VGdAqGi0sPo84xdT80= X-Received: by 2002:ac8:18da:: with SMTP id o26mr42380513qtk.92.1600670320192; Sun, 20 Sep 2020 23:38:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Sun, 20 Sep 2020 23:38:27 -0700 Message-ID: Subject: Re: mips32 + gcc9 -- still broken To: freebsd-current , "freebsd-mips@freebsd.org" X-Rspamd-Queue-Id: 4BvvsY5RxDz3YKT 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.160.181 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-2.23 / 15.00]; ARC_NA(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current,freebsd-mips]; FROM_NEQ_ENVFROM(0.00)[adrian@freebsd.org,adrianchadd@gmail.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[freebsd.org]; TO_DN_EQ_ADDR_SOME(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[209.85.160.181:from]; RCVD_TLS_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.997]; NEURAL_HAM_MEDIUM(-0.93)[-0.934]; NEURAL_HAM_SHORT(-0.29)[-0.295]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[209.85.160.181:from]; FORGED_SENDER(0.30)[adrian@freebsd.org,adrianchadd@gmail.com]; 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: Mon, 21 Sep 2020 06:38:42 -0000 So, the big list of unknown symbols was my fault! Whoops. i've gotten further using gcc-6.4 by fixing some of the warnings/issues that have crept up. Here's a review for one of them: https://reviews.freebsd.org/D26504 However, now I've hit: /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/libc++.so.1: undefined reference to `__atomic_fetch_sub_8' /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/libc++.so.1: undefined reference to `__atomic_load_8' /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/libc++.so.1: undefined reference to `__atomic_fetch_add_8' .. looks like we need some 64 bit atomics now in mips32 for libc++ / devd. -adrian From owner-freebsd-mips@freebsd.org Mon Sep 21 07:43:05 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 93D903E918F; Mon, 21 Sep 2020 07:43:05 +0000 (UTC) (envelope-from arichardson.kde@gmail.com) Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 4BvxHr2lz2z3cdx; Mon, 21 Sep 2020 07:43:04 +0000 (UTC) (envelope-from arichardson.kde@gmail.com) Received: by mail-ej1-f46.google.com with SMTP id p9so16305001ejf.6; Mon, 21 Sep 2020 00:43:04 -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:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RUOEmwn95QbJNL9wkB7JKdUyz2lAtuoZE830wg4gYUE=; b=JKrVMAyMQGX5JlIFUV1Xr82ocqAjBFDq+hoeDXkRAb79OAKuu2pzHOikI+OMTYlsIk 6c7npwZ7Cx2e1tbu6rO3ynuZx0JEpyh94AhTNyAnnz03jQvgMbayo+ODAgxhzkV6QPAn Kn0fG9bxOJQEFjSEtyMEJQz18lUqjRHhHh2G3OeevslVWfcg9pP080PbzTL7GP28qjrY Es8rV3zAsil3nFa5XoLoc4ZnlDLOKW1dEAt8B7rCiUkfLCJxLC9bVsfYkPxoxErr/pI3 SIBGyV64DX0diurx9ZcP/GIzyDSuOzTxi8WUwKbys5ItHccIFVPC/jTNl3aIs56EZqLn /XLQ== X-Gm-Message-State: AOAM532pDHcrqSCA+xFbu99bLmYBVsty9kRWtbavZayfaZ0+Bf+n9SCF dSQIIL6cpc+xhi7ZJ5msoJSQq4XyWVLs/w== X-Google-Smtp-Source: ABdhPJwcWBlXcmnmReqxFih/K6rQ10S9WuRAQQ+pcvGzD6UXMBjfvRca9JsosEh3lAuZpDpsCcTlAw== X-Received: by 2002:a17:906:4a07:: with SMTP id w7mr48302259eju.366.1600674182968; Mon, 21 Sep 2020 00:43:02 -0700 (PDT) Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com. [209.85.128.41]) by smtp.gmail.com with ESMTPSA id f21sm8064012edw.83.2020.09.21.00.43.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Sep 2020 00:43:02 -0700 (PDT) Received: by mail-wm1-f41.google.com with SMTP id y15so11471912wmi.0; Mon, 21 Sep 2020 00:43:02 -0700 (PDT) X-Received: by 2002:a1c:4b04:: with SMTP id y4mr28414427wma.111.1600674182409; Mon, 21 Sep 2020 00:43:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Richardson Date: Mon, 21 Sep 2020 08:42:49 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: mips32 + gcc9 -- still broken To: Adrian Chadd Cc: freebsd-current , freebsd-mips@freebsd.org X-Rspamd-Queue-Id: 4BvxHr2lz2z3cdx X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of arichardsonkde@gmail.com designates 209.85.218.46 as permitted sender) smtp.mailfrom=arichardsonkde@gmail.com X-Spamd-Result: default: False [-2.30 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DMARC_NA(0.00)[freebsd.org]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.995]; RCVD_COUNT_THREE(0.00)[4]; RWL_MAILSPIKE_GOOD(0.00)[209.85.218.46:from]; NEURAL_HAM_SHORT(-0.34)[-0.338]; RCVD_IN_DNSWL_NONE(0.00)[209.85.218.46:from]; NEURAL_HAM_MEDIUM(-0.97)[-0.966]; FORGED_SENDER(0.30)[arichardson@freebsd.org,arichardsonkde@gmail.com]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[arichardson@freebsd.org,arichardsonkde@gmail.com]; TAGGED_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current,freebsd-mips] 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: Mon, 21 Sep 2020 07:43:05 -0000 On Mon, 21 Sep 2020, 07:38 Adrian Chadd, wrote: > So, the big list of unknown symbols was my fault! Whoops. > > i've gotten further using gcc-6.4 by fixing some of the warnings/issues > that have crept up. > > Here's a review for one of them: > > https://reviews.freebsd.org/D26504 > > However, now I've hit: > > /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/libc++.so.1: > undefined reference to `__atomic_fetch_sub_8' > /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/libc++.so.1: > undefined reference to `__atomic_load_8' > /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/libc++.so.1: > undefined reference to `__atomic_fetch_add_8' > > .. looks like we need some 64 bit atomics now in mips32 for libc++ / devd > Those are now provided by compiler-rt when using clang. With GCC you'll have to link libatomic. I had a quick look at the code in libc++ that uses the 64-bit atomics a few weeks ago and I believe it's the futex fallback code. The best solution would probably be to port it to use umtx but for MIPS32 it might be fine to use a 32 bit atomic instead. Alex >