Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 756034 - sys-libs/compiler-rt-sanitizers-11.0.0:11.0.0/11.0.0::gentoo: compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:7:1: error: expected identifier or '('
Summary: sys-libs/compiler-rt-sanitizers-11.0.0:11.0.0/11.0.0::gentoo: compiler-rt/lib...
Status: RESOLVED DUPLICATE of bug 755824
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-22 08:41 UTC by Samuel Bernardo
Modified: 2021-06-16 11:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,674.13 KB, text/x-log)
2020-11-22 08:41 UTC, Samuel Bernardo
Details
emerge info (emerge.info,21.03 KB, text/plain)
2020-11-22 08:41 UTC, Samuel Bernardo
Details
emerge -pqv (emerge.pqv,483 bytes, text/plain)
2020-11-22 08:42 UTC, Samuel Bernardo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bernardo 2020-11-22 08:41:26 UTC
Created attachment 674251 [details]
build log

FAILED: lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_rtl_amd64.S.o                                                                                                                                                                                                         
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-clang  -I/var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/..  -x c -O2 -pipe -march=native -Wall -Wno-unused-parameter  -m64 -fno-lto -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fPIE -fno-rtti -msse3 -Wframe-larger-than=530 -Wglobal-constructors --sysroot=. -MD -MT lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_rtl_amd64.S.o -MF lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_rtl_amd64.S.o.d -o lib/tsan/CMakeFiles/clang_rt.tsan-x86_64.dir/rtl/tsan_rtl_amd64.S.o -c /var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S                                                                                                                                                                                                                                                        
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:7:1: error: expected identifier or '('                                                                                                                                       
.section .text                                                                                                                                                                                                                                                                      
^                                                                                                                                                                                                                                                                                   
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:16:5: error: invalid preprocessing directive                                                                                                                                 
  # Save scratch registers.                                                                                                               
    ^                                                                                                                                                                                                                                                                               
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:44:5: error: invalid preprocessing directive                                                                                                                                 
  # Align stack frame.                                                                                                                                                                                                                                                              
    ^                                          
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:55:5: error: invalid preprocessing directive                                                                                                                                 
  # Unalign stack frame back.                                                                                                                                                                                                                                                       
    ^                                                                                                                                                                                                                                                                               
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:60:5: error: invalid preprocessing directive                                                                                                                                 
  # Restore scratch registers.                                                                                                                                                                                                                                                      
    ^                                                                                                                                                                                                                                                                               
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:96:5: error: invalid preprocessing directive                                                                                                                                 
  # Save scratch registers.        
    ^                                                                                                                                                                                                                                                                               
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:124:5: error: invalid preprocessing directive                                                                                                                                
  # Align stack frame.                                                                                                                                                                                                                                                              
    ^                                                                                                                                                                                                                                                                               
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:135:5: error: invalid preprocessing directive                                                                                                                                
  # Unalign stack frame back.                                                                                                                                                                                                                                                       
    ^                                  
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-11.0.0/work/compiler-rt/lib/tsan/rtl/tsan_rtl_amd64.S:140:5: error: invalid preprocessing directive                                                                                                                                
  # Restore scratch registers.                                                                                                                                                                                                                                                      
    ^                                                                                                                                                                                                                                                                               
9 errors generated.
Comment 1 Samuel Bernardo 2020-11-22 08:41:47 UTC
Created attachment 674254 [details]
emerge info
Comment 2 Samuel Bernardo 2020-11-22 08:42:03 UTC
Created attachment 674257 [details]
emerge -pqv
Comment 3 Martin Gysel (bearsh) 2020-11-22 09:45:30 UTC
this is caused by a change in cmake
see also https://gitlab.kitware.com/cmake/cmake/-/issues/21469

a temporary fix for now is to downgrade cmake to something <3.19.0

it seems the cmake change would be reverted in cmake-3.19.1. furthermore compiler-rt-sanitizers has adjusted its buildsystem to the cmake change but that needs a backport of the fix to the 11.0. branch
Comment 4 Samuel Bernardo 2020-11-22 10:48:58 UTC
After temporary downgrade cmake to 3.18 it compiled as expected.
Created the following bug to ask for cmake slotting:
https://bugs.gentoo.org/756070
Comment 5 Martin Gysel (bearsh) 2020-11-25 19:49:16 UTC
with cmake-3.19.1, which is in ::gentoo now, it compiles...
Comment 6 James Beddek 2021-06-16 11:13:52 UTC

*** This bug has been marked as a duplicate of bug 755824 ***