From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.2 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by inbox.vuxu.org (OpenSMTPD) with SMTP id 42ac6155 for ; Tue, 3 Mar 2020 20:26:13 +0000 (UTC) Received: (qmail 30447 invoked by uid 550); 3 Mar 2020 20:26:11 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 30416 invoked from network); 3 Mar 2020 20:26:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=MHvYegakXLXYJsxMeXcfjHYEF2tVNVkEhfCz55m+cXY=; b=qTNU7B0b/rOUM0+cQIrs+zk/vDE87+XrQuqZ1TiZZ8WzUJSL/LOmqsZwrZRCJTRoFP Je5EVh3WD8BhesrafsjP9x7WdqCn/UlpWB7eLYhd3Iwef+sMlUiYHI0tN3plt/GAhASA MQgiahxIEOjfzLUt6cCUMLxEGD9q/EPq/9xHEHp+ZeaOR2Ql8ZOR4Fj7puRnsDB+WSFL rXlFZAvwKug1HVltHjsHfgBrvvMHlzzZ4nnVPVuTyix+cEo+Q3KxwkzHYjjRufU1PIvx +d+anhAot52HvOONG3oxh2JzoJ+2/ezXMIBCkWqXvbDLFR4rkV/P9XPM1VOxU70lX6ZM NVVQ== 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=MHvYegakXLXYJsxMeXcfjHYEF2tVNVkEhfCz55m+cXY=; b=CTpjejsce4X5Ds6M2rqtT7R/UHkolF2nUNm21Dwfwr9ce2gnoMtvXz2+QEXsZ2TJcA qSUg3iFes+GJJaNq3s0oLNHsAoInwLsTZsQBOKx9Smsuk9QvLAW1Ma5wNGYE13OD7O91 DVYNEXBZN8GAGCrIhDOvo1GGlFbfsV2eczLRx37NKIT9K2uz3ts+xBwq25wWRGExmuUf xi48huhGM2Mxw4MLbKXa5wRQ3pEUtqi/U0wb1qkHT+oJcozQ4NexAw+TF3vBCpUnFhja vUmw0w5LSMsfPh0xOkZKhxxy/JGd/Z9ZRWdY/PyrtCclk1+UkpW6yZluamPx5stwshLa U92A== X-Gm-Message-State: ANhLgQ0vHseUBp1V4G25AbXXp8mTyAwBXY8XEXk+rsCT8TJarEwbp8ub JE7K0FYkX8NE0CiSPSCUCzDoP5E8i+8o7hhQHGFcSCeW X-Google-Smtp-Source: ADFU+vvw/F86JRsq+JvZb3MIleVpq3g5BRcv+UwOxY7qvWGPo2GiQaM7fwxubEIkVM3V1xxKyzhcENMY8sYr8y8vLL4= X-Received: by 2002:a02:a492:: with SMTP id d18mr5473914jam.40.1583267158529; Tue, 03 Mar 2020 12:25:58 -0800 (PST) MIME-Version: 1.0 From: Yuseok Date: Tue, 3 Mar 2020 15:25:47 -0500 Message-ID: To: musl@lists.openwall.com Content-Type: multipart/alternative; boundary="000000000000919b02059ff91c7e" Subject: [musl] Build error with -flto option --000000000000919b02059ff91c7e Content-Type: text/plain; charset="UTF-8" Hi all, I got a below error message during building the musl with clang and -flto option. - my build option was ./configure CC=clang CFLAGS="-fPIC -flto -O2". - I also tried building with "CFLAGS="-flto -O2". However, the result was the same. - I used clang 9. This was my error message. > ................................... > j/src/unistd/setuid.o obj/src/unistd/setxid.o obj/src/unistd/sleep.o > obj/src/unistd/symlink.o obj/src/unistd/symlinkat.o obj/src/unistd/sync.o > obj/src/unistd/tcgetpgrp.o obj/src/unistd/tcsetpgrp.o > obj/src/unistd/truncate.o obj/src/unistd/ttyname.o > obj/src/unistd/ttyname_r.o obj/src/unistd/ualarm.o obj/src/unistd/unlink.o > obj/src/unistd/unlinkat.o obj/src/unistd/usleep.o obj/src/unistd/write.o > obj/src/unistd/writev.o > ranlib lib/libc.a > > */usr/bin/ld: error: /tmp/lto-llvm-200919.o: requires dynamic > R_X86_64_PC32 reloc against '__dls2' which may overflow at runtime; > recompile with -fPIC*/tmp/lto-llvm-200919.o:ld-temp.o:function > _dlstart_c: error: undefined reference to '__dls2' > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > make: *** [Makefile:161: lib/libc.so] Error 1 Could you please advise how I should handle this error? --000000000000919b02059ff91c7e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

I got a below error = message during building the musl with clang and -flto option.=C2=A0
- my build option was=C2=A0./configure CC=3Dclang CFLAGS=3D"-fPIC -= flto -O2".
- I also tried building with "CFLAGS=3D"= ;-flto -O2". However, the result was the same.
- I used clan= g 9.=C2=A0

This was my error=C2=A0message.
...........................= ........
j/src/unistd/setuid.o obj/src/unistd/setxid.o obj/src/unistd/sl= eep.o obj/src/unistd/symlink.o obj/src/unistd/symlinkat.o obj/src/unistd/sy= nc.o obj/src/unistd/tcgetpgrp.o obj/src/unistd/tcsetpgrp.o obj/src/unistd/t= runcate.o obj/src/unistd/ttyname.o obj/src/unistd/ttyname_r.o obj/src/unist= d/ualarm.o obj/src/unistd/unlink.o obj/src/unistd/unlinkat.o obj/src/unistd= /usleep.o obj/src/unistd/write.o obj/src/unistd/writev.o
ranlib lib/lib= c.a
/usr/bin/ld: error: /tmp/lto-llvm-200919.o: requires dynamic R= _X86_64_PC32 reloc against '__dls2' which may overflow at runtime; = recompile with -fPIC
/tmp/lto-llvm-200919.o:ld-temp.o:function _= dlstart_c: error: undefined reference to '__dls2'
clang: error: = linker command failed with exit code 1 (use -v to see invocation)
make: = *** [Makefile:161: lib/libc.so] Error 1

Cou= ld you please advise how I should handle this error?
--000000000000919b02059ff91c7e--