Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make check fails with mold: error: undefined symbol: __wrap_stat #30

Open
Zopolis4 opened this issue Jul 11, 2024 · 0 comments
Open

make check fails with mold: error: undefined symbol: __wrap_stat #30

Zopolis4 opened this issue Jul 11, 2024 · 0 comments

Comments

@Zopolis4
Copy link

Checked out v3.0.15 from git:

  1. autoreconf -fvi
  2. CFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto" CXXFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto" FCFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto" FFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto" LD_LIBRARY_PATH="/usr/local/lib64" LDFLAGS="-flto=auto " ./configure --prefix=/usr/local --libdir=/usr/local/lib64 --mandir=/usr/local/share/man --disable-dependency-tracking --build=x86_64-cros-linux-gnu --host=x86_64-cros-linux-gnu --target=x86_64-cros-linux-gnu --program-prefix='' --program-suffix=''
  3. make -j8
  4. make check
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-cros-linux-gnu-gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -pipe -ffat-lto-objects -fPIC  -fuse-ld=mold  -flto=auto   -static-libtool-libs -Wl,--wrap,printf -Wl,--wrap,__printf_chk -Wl,--wrap,fprintf -Wl,--wrap,__fprintf_chk -Wl,--wrap,opendir -Wl,--wrap,readdir -Wl,--wrap,closedir -Wl,--wrap,stat -Wl,--wrap,__xstat -Wl,--wrap,dlopen -Wl,--wrap,dlsym -Wl,--wrap,dlclose -flto=auto  -o api_base_test api_base_test-api_base_test.o api_base_test-daq_test_module.o api_base_test-mock_stdio.o ../api/libdaq.la -ldl -lcmocka 
libtool: link: x86_64-cros-linux-gnu-gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -I../api -O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto -Wl,--wrap -Wl,printf -Wl,--wrap -Wl,__printf_chk -Wl,--wrap -Wl,fprintf -Wl,--wrap -Wl,__fprintf_chk -Wl,--wrap -Wl,opendir -Wl,--wrap -Wl,readdir -Wl,--wrap -Wl,closedir -Wl,--wrap -Wl,stat -Wl,--wrap -Wl,__xstat -Wl,--wrap -Wl,dlopen -Wl,--wrap -Wl,dlsym -Wl,--wrap -Wl,dlclose -flto=auto -o api_base_test api_base_test-api_base_test.o api_base_test-daq_test_module.o api_base_test-mock_stdio.o  ../api/.libs/libdaq.a -ldl -lcmocka
mold: error: undefined symbol: __wrap_stat
>>> referenced by <artificial>
>>>               /usr/local/tmp/cciLfe0g.ltrans0.ltrans.o:(daq_load_dynamic_modules)
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:641: api_base_test] Error 1
make[2]: Leaving directory '/home/chronos/user/libdaq/test'
make[1]: *** [Makefile:1017: check-am] Error 2
make[1]: Leaving directory '/home/chronos/user/libdaq/test'
make: *** [Makefile:567: check-recursive] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant