From owner-freebsd-hackers@freebsd.org Mon Mar 4 16:56:18 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 00FDC1519AF8 for ; Mon, 4 Mar 2019 16:56:18 +0000 (UTC) (envelope-from ap00@mail.ru) Received: from smtp29.i.mail.ru (smtp29.i.mail.ru [94.100.177.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8BB8F72DDE for ; Mon, 4 Mar 2019 16:56:15 +0000 (UTC) (envelope-from ap00@mail.ru) Received: by smtp29.i.mail.ru with esmtpa (envelope-from ) id 1h0qsn-0002la-WD for freebsd-hackers@freebsd.org; Mon, 04 Mar 2019 19:56:06 +0300 Date: Mon, 4 Mar 2019 19:56:02 +0300 From: Anthony Pankov X-Priority: 3 (Normal) Message-ID: <1122478880.20190304195602@mail.ru> To: Anthony Pankov via freebsd-hackers Subject: Re: building with WITHOUT_SSP side effect In-Reply-To: <434119194.20190304190732@mail.ru> References: <434119194.20190304190732@mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-77F55803: BBE463BEF7A60BD05A78504BD2AC294173B5FE5E8078F296209616C39EACCCB9268608C7137D5E2FF74DF7540681202C X-7FA49CB5: 0D63561A33F958A56A3B061B6E4F86418CD123DFA0DB66FE4A423FDB79F1A4D78941B15DA834481FA18204E546F3947CEDCF5861DED71B2F389733CBF5DBD5E9C8A9BA7A39EFB7666BA297DBC24807EA117882F44604297287769387670735209ECD01F8117BC8BEA471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249668B94F0A65C3A0C3AA81AA40904B5D9CF19DD082D7633A0E7DDDDC251EA7DABD81D268191BDAD3D78DA827A17800CE7542AF255F21831B5CD04E86FAF290E2D40A5AABA2AD3711975ECD9A6C639B01B78DA827A17800CE77FA89C872EA2218695742EC39967965D75ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC85D9B7C4F32B44FF57285124B2A10EEC6C00306258E7E6ABB4E4A6367B16DE6309 X-Mailru-Sender: D8D48EF70163D79D00784CDFC8FD31072CC0BE42E31726121943B29DF3553A1CFBA4D9A6C41392ED50D5CF8590B94F4EC77752E0C033A69E81198BD1A48777B793AC9912533B2342AE208404248635DF X-Mras: OK X-Rspamd-Queue-Id: 8BB8F72DDE X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.53 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:94.100.176.0/20]; FREEMAIL_FROM(0.00)[mail.ru]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mxs.mail.ru]; DKIM_TRACE(0.00)[mail.ru:+]; HAS_X_PRIO_THREE(0.00)[3]; NEURAL_HAM_SHORT(-0.47)[-0.468,0]; DMARC_POLICY_ALLOW(-0.50)[mail.ru,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[89.177.100.94.list.dnswl.org : 127.0.5.1]; ASN(0.00)[asn:47764, ipnet:94.100.176.0/20, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[mail.ru.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[mail.ru]; R_DKIM_ALLOW(-0.20)[mail.ru:s=mail2]; NEURAL_HAM_MEDIUM(-0.98)[-0.980,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.03)[ipnet: 94.100.176.0/20(0.08), asn: 47764(0.05), country: RU(0.00)]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Mar 2019 16:56:18 -0000 It seems that world builded with WITHOUT_SSP=yes loose ability to build anything. # cc -v test.c FreeBSD clang version 7.0.1 (tags/RELEASE_701/final 349250) (based on LLVM 7.0.1) Target: x86_64-unknown-freebsd11.2 Thread model: posix InstalledDir: /usr/bin "/usr/bin/cc" -cc1 -triple x86_64-unknown-freebsd11.2 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name test.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -v -resource-dir /usr/lib/clang/7.0.1 -fdebug-compilation-dir /root/test -ferror-limit 19 -fmessage-length 90 -fobjc-runtime=gnustep -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/test-d853d1.o -x c test.c -faddrsig clang -cc1 version 7.0.1 based upon LLVM 7.0.1 default target x86_64-unknown-freebsd11.2 #include "..." search starts here: #include <...> search starts here: /usr/lib/clang/7.0.1/include /usr/include End of search list. "/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=both --enable-new-dtags -o a.out /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib /tmp/test-d853d1.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o /usr/bin/ld: cannot find /usr/lib/libssp_nonshared.a > Greetings, > I've builded 11-stable ( 11.2-STABLE r344696) from source with option > WITHOUT_SSP="yes" in src.conf. > Installing kernel and world was OK. But when I tried to build from port it give me an error: > configure: error: in `/usr/ports/ports-mgmt/pkg/work/pkg-1.10.5': > configure: error: C compiler cannot create executables > config.log: > ... > configure:3555: cc -v >&5 > FreeBSD clang version 7.0.1 (tags/RELEASE_701/final 349250) (based on LLVM 7.0.1) > Target: x86_64-unknown-freebsd11.2 > ... > configure:3608: cc -O2 -pipe -Wno-error -fno-strict-aliasing conftest.c >&5 > /usr/bin/ld: cannot find /usr/lib/libssp_nonshared.a > cc: error: linker command failed with exit code 1 (use -v to see invocation) > And yes, there is SSP_UNSAFE=yes in make.conf > Is this a bug or feature? -- Best regards, Anthony Pankov mailto:ap00@mail.ru