From owner-freebsd-x11@freebsd.org Mon Apr 13 14:58:18 2020 Return-Path: Delivered-To: freebsd-x11@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 B63C82C0857 for ; Mon, 13 Apr 2020 14:58:18 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) 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 491BZK72pJz3DGw for ; Mon, 13 Apr 2020 14:58:17 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qv1-xf31.google.com with SMTP id e5so3688286qvo.9 for ; Mon, 13 Apr 2020 07:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PBnqbFO+dqaVlxf6cYb1Hn5xYbLUBMnJT4T7EJ7WYLs=; b=kH0IX3yEeAFADM0oXtnGqpwUQt8dLca+QDDjRMgXHkHm6qZEb7z36wZ6oC9D/MVsUQ kZQeEtlNdB5VC34VuCEym8MKN0fRHUgKNVzdCltHjKlzqD8QaNz+eDEH17K80NhrXga/ LRO2mmybcIeC7wOW2Mg3G8z+suChW8IcAQLie1fnZ97PabcQMr5XBKpnjQWNTUqoHyDa i7PBluyhVBvvauwssVw+/pWmCV301bgQS0YbYfaUbAROFqvt7qv053nt3Adr6LaiIRVN H8XHZ7MqcK/tRVNxombCN8viZYXpwwVoyxyT42hfFqH48+FdgJgW3C+MY70IBJsob26/ c7Pw== 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=PBnqbFO+dqaVlxf6cYb1Hn5xYbLUBMnJT4T7EJ7WYLs=; b=I4ouqY5Mg4ZLYOko9TCb/0TwbIq9N3RRZnjvJlHz8uA5tmFKK2H8dztO7HV+vKFXBK 7kObsJyQweyUBuwDKqPiY+TsF/reUIk56UPgFi/3/loFJy3ssAXGvB+TNSEsA63uQAcP gszVkUp6eek5MS3mdE+qGFrnwO8kheT+HN8FuiP0EzSL3NRmSb14/4k/Nnmwcu10FRs6 wqXQWpGNxiYNXWfAxN0ZzM9DcfWdXy15btnE7CbpM1kay9OI9elfB5XI9xPJgRMvRx3R 8WFfUvY8oyh8BJGfO5MZKY+7oGyK8JRJh6byplsHfkdsb9Gx7D/OCBe3PJoi/fj9AgMC NivA== X-Gm-Message-State: AGi0PubClUgt0/6f12C1qKdGqaBPX7rs8lmenqjhKqIhAAPTZoi+ROF+ G3EY7Y15ylkkdLZo5f/yMgGjnluBHgCkCkuwaiXhguLKJ24= X-Google-Smtp-Source: APiQypIlji3cFqB/Fg8KoabIbcfoRezBJfivqSYtv0oSHhlJTKlBaoaGWo8672ImRf7dIFuc34mBJ+2JILvkfYFxV04= X-Received: by 2002:a0c:f8cf:: with SMTP id h15mr2132556qvo.22.1586789896491; Mon, 13 Apr 2020 07:58:16 -0700 (PDT) MIME-Version: 1.0 References: <202004131231.03DCVxkN022232@sdf.org> <202004131436.03DEaqZH020936@sdf.org> In-Reply-To: <202004131436.03DEaqZH020936@sdf.org> From: Warner Losh Date: Mon, 13 Apr 2020 08:58:05 -0600 Message-ID: Subject: Re: Radeon 5770, graphics/gpu-firmware-kmod, and graphics/drm-fbsd11.2-kmod To: Scott Bennett Cc: FreeBSD X11 mailing list X-Rspamd-Queue-Id: 491BZK72pJz3DGw X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=kH0IX3yE; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::f31) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-3.45 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[1.3.f.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-1.45)[ip: (-6.47), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.43), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Apr 2020 14:58:18 -0000 make[4]: "/usr/src/lib/libc/Makefile" line 188: amd64 libc requires linker ifunc support I'll look into this. I think you may need to upgrade to 12.0 and then to 12-stable, but it's within the normal expected to work zone. I'll see when that was added. Did you disable C++ on your 11.3 system and force the use of gcc-only? Otherwise my reading of the code (without trying it out, I'll grant) suggests that this upgrade should work. What's happening is that ifunc is now required for libc on amd64, even in 12. This means you need to have a LLD built, which requires clang or a C++11 compiler (which I don't think g++ 4.2.1 actually is). Or you need newer binutils and to build with that. However, a stock 11 system should have LLD unless you've force it to be bfd for some reason. Warner On Mon, Apr 13, 2020 at 8:36 AM Scott Bennett wrote: > Warner Losh wrote: > > > What's the 12 stable failure message? > > > Apparently, I neglected to save the typescript of the most recent > attempts, > but here is the end of one from 26 November 2019 at r355127. Thank you for > looking at it. > > > --- crti.o --- > /usr/local/libexec/ccache/world/cc -target x86_64-unknown-freebsd12.1 > --sysroot=/usr/obj/usr/src/amd64.amd64/tmp > -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe "-mtune=core2" > -I/usr/src/lib/csu/amd64 -I/usr/src/lib/csu/common > -I/usr/src/lib/libc/include -fno-omit-frame-pointer -DCRT_IRELOC_RELA > -march=core2 -g -MD -MF.depend.crti.o -MTcrti.o -std=gnu99 > -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type > -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter > -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls > -Wold-style-definition -Wno-pointer-sign -Wthread-safety -Wno-empty-body > -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments -c > /usr/src/lib/csu/amd64/crti.S -o crti.o > /usr/src/lib/csu/amd64/crti.S:29:2: warning: DWARF2 only supports one > section per compilation unit > .section .init,"ax",@progbits > ^ > /usr/src/lib/csu/amd64/crti.S:36:2: warning: DWARF2 only supports one > section per compilation unit > .section .fini,"ax",@progbits > ^ > /usr/src/lib/csu/amd64/crti.S:43:2: warning: DWARF2 only supports one > section per compilation unit > .section .note.GNU-stack,"",%progbits > ^ > ctfconvert -L VERSION -g crti.o > --- gnu/lib/csu__L --- > --- crtend.o --- > /usr/local/libexec/ccache/world/cc -target x86_64-unknown-freebsd12.1 > --sysroot=/usr/obj/usr/src/amd64.amd64/tmp > -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe "-mtune=core2" > -march=core2 -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -DDT_CONFIG -D__GLIBC__=3 > -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss > -fno-asynchronous-unwind-tables -fno-omit-frame-pointer > -I/usr/src/contrib/gcclibs/include -I/usr/src/contrib/gcc/config > -I/usr/src/contrib/gcc -I. -I/usr/src/gnu/usr.bin/cc/cc_tools -g > -std=gnu89 -Qunused-arguments -g0 -DCRT_END -c -o crtend.o > /usr/src/contrib/gcc/crtstuff.c > --- lib/csu__L --- > --- crtn.o --- > /usr/local/libexec/ccache/world/cc -target x86_64-unknown-freebsd12.1 > --sysroot=/usr/obj/usr/src/amd64.amd64/tmp > -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe "-mtune=core2" > -I/usr/src/lib/csu/amd64 -I/usr/src/lib/csu/common > -I/usr/src/lib/libc/include -fno-omit-frame-pointer -DCRT_IRELOC_RELA > -march=core2 -g -MD -MF.depend.crtn.o -MTcrtn.o -std=gnu99 > -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type > -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter > -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls > -Wold-style-definition -Wno-pointer-sign -Wthread-safety -Wno-empty-body > -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments -c > /usr/src/lib/csu/amd64/crtn.S -o crtn.o > --- lib/libc__L --- > make[4]: "/usr/src/lib/libc/Makefile" line 188: amd64 libc requires linker > ifunc support > *** [lib/libc__L] Error code 1 > > make[3]: stopped in /usr/src > --- gnu/lib/csu__L --- > A failure has been detected in another branch of the parallel make > > make[4]: stopped in /usr/src/gnu/lib/csu > *** [gnu/lib/csu__L] Error code 2 > > make[3]: stopped in /usr/src > --- lib/csu__L --- > /usr/src/lib/csu/amd64/crtn.S:29:2: warning: DWARF2 only supports one > section per compilation unit > .section .init,"ax",@progbits > ^ > /usr/src/lib/csu/amd64/crtn.S:33:2: warning: DWARF2 only supports one > section per compilation unit > .section .fini,"ax",@progbits > ^ > /usr/src/lib/csu/amd64/crtn.S:37:2: warning: DWARF2 only supports one > section per compilation unit > .section .note.GNU-stack,"",%progbits > ^ > ctfconvert -L VERSION -g crtn.o > A failure has been detected in another branch of the parallel make > > make[5]: stopped in /usr/src/lib/csu/amd64 > *** [all_subdir_lib/csu/amd64] Error code 2 > > make[4]: stopped in /usr/src/lib/csu > 1 error > > make[4]: stopped in /usr/src/lib/csu > *** [lib/csu__L] Error code 2 > > make[3]: stopped in /usr/src > 3 errors > > make[3]: stopped in /usr/src > *** [libraries] Error code 2 > > make[2]: stopped in /usr/src > 1 error > > make[2]: stopped in /usr/src > *** [_libraries] Error code 2 > > make[1]: stopped in /usr/src > 1 error > > make[1]: stopped in /usr/src > *** [buildworld] Error code 2 > > make: stopped in /usr/src > 1 error > > make: stopped in /usr/src > 541.085u 439.297s 33:49.49 48.3% 2806+219k 310342+310081io > 21429pf+11w > hellas# exit > exit > > Script done on Tue Nov 26 23:41:24 2019 > > Does gpu-firmware-kmod differ between the version for 11.3 and the one > for 12.1? If not, then upgrading to 12.1 won't help much because of the > bug that hangs the GPU. It *might* help for the more general problem of > the > kernel memory management bugs, though, because 12-CURRENT branch happened > long before 11.2 introduced the bugs, so they might never have existed in > 12. > > Scott Bennett >