cryptomilk opened a new issue, #7158:
URL: https://github.com/apache/opendal/issues/7158

   ### Describe the bug
   
   I'm wanted to package opendal 0.55 for Fedora, but I'm running into the 
following failing test on x86_64:
   
   ```
   ---- tests::assert_size stdout ----                                          
                                                                                
                   
                                                                                
                                                                                
                   
   thread 'tests::assert_size' (4438) panicked at src/lib.rs:183:9:
   assertion `left == right` failed                                             
                                                                                
                   
     left: 360                                                                  
                                                                                
                   
    right: 336
   ```
   
   ### Steps to Reproduce
   
   The following is executed in the RPM spec %check section:
   
   ```
   + cd /builddir/build/BUILD/rust-opendal-0.55.0-build
   + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g 
-grecord-gcc-switches -pipe -Wall -Werror=format-security 
-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_AS
   SERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 
-march=x86-64 -mtune=generic -fasynchronous
   -unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  '
   + export CFLAGS
   + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g 
-grecord-gcc-switches -pipe -Wall -Werror=format-security 
-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_
   ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 
-march=x86-64 -mtune=generic -fasynchrono
   us-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  '
   + export CXXFLAGS
   + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g 
-grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib
   /rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong 
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 
-mtune=generic -fasynchronous-unwind-tables -fstack-c
   lash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer 
-mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules  '
   + export FFLAGS
   + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g 
-grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/li
   b/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong 
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 
-mtune=generic -fasynchronous-unwind-tables -fstack-
   clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer 
-mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules  '
   + export FCFLAGS
   + VALAFLAGS=-g
   + export VALAFLAGS
   + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none 
-Cforce-frame-pointers=yes 
-Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn'
   + export RUSTFLAGS
   + LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs 
-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld 
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld-erro
   rs -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 
-specs=/usr/lib/rpm/redhat/redhat-package-notes  '
   + export LDFLAGS
   + LT_SYS_LIBRARY_PATH=/usr/lib64:
   + export LT_SYS_LIBRARY_PATH
   + CC=gcc
   + export CC
   + CXX=g++
   + export CXX
   + cd opendal-0.55.0
   + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 
-Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes 
-Clink-arg=-specs=/usr/lib/r
   pm/redhat/redhat-package-notes --cap-lints=warn' /usr/bin/cargo test -j12 -Z 
avoid-dev-deps --profile rpm --no-fail-fast --lib
   ```
   
   ### Expected Behavior
   
   The test should pass.
   
   ### Additional Context
   
   _No response_
   
   ### Are you willing to submit a PR to fix this bug?
   
   - [x] Yes, I would like to submit a PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to