The package rpms/cscppc.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/cscppc.git/commit/?id=f19ddde88b7....
Change:
+%ifnarch %{arm}
Thanks.
Full change:
============
commit f19ddde88b7075375ce88cba4749afe861ea0de4
Author: Kamil Dudka <kdudka(a)redhat.com>
Date: Thu Oct 18 16:07:50 2018 +0200
do not link glibc statically on ARM
The build against glibc-static-2.28.9000-9.fc30.armv7hl fails already
during CMake configuration phase:
+ /usr/bin/cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG
-DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr
-DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib
-DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share
-DBUILD_SHARED_LIBS:BOOL=ON ..
-- The C compiler identification is GNU 8.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /builddir/build/BUILD/cscppc-1.5.0/cscppc_build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/gmake" "cmTC_4d5df/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_4d5df.dir/build.make
CMakeFiles/cmTC_4d5df.dir/build
gmake[1]: Entering directory
'/builddir/build/BUILD/cscppc-1.5.0/cscppc_build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_4d5df.dir/testCCompiler.c.o
/usr/bin/cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=armv7-a -mfpu=vfpv3-d16
-mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard
-DPATH_TO_CSCPPC=\"/usr/lib/cscppc\"
-DPATH_TO_CSCLNG=\"/usr/lib/csclng\"
-DPATH_TO_CSMATCH=\"/usr/lib/csmatch\" -o
CMakeFiles/cmTC_4d5df.dir/testCCompiler.c.o -c
/builddir/build/BUILD/cscppc-1.5.0/cscppc_build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_4d5df
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4d5df.dir/link.txt
--verbose=1
/usr/bin/cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=armv7-a -mfpu=vfpv3-d16
-mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard
-DPATH_TO_CSCPPC=\"/usr/lib/cscppc\"
-DPATH_TO_CSCLNG=\"/usr/lib/csclng\"
-DPATH_TO_CSMATCH=\"/usr/lib/csmatch\" -O2 -g -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
-fstack-protector-strong -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=armv7-a -mfpu=vfpv3-d16
-mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard -static -pthread -rdynamic
CMakeFiles/cmTC_4d5df.dir/testCCompiler.c.o -o cmTC_4d5df
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(iofclose.o): in function
`_IO_fclose':
(.text+0x114): undefined reference to `_IO_un_link'
/usr/bin/ld: (.text+0x1fc): undefined reference to `_IO_free_backup_area'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(iofflush.o): in function
`fflush':
(.text+0x108): undefined reference to `_IO_flush_all'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(iofopen.o): in function
`__fopen_internal':
(.text+0x94): undefined reference to `_IO_no_init'
/usr/bin/ld: (.text+0x128): undefined reference to `_IO_un_link'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(wfileops.o): in function
`_IO_wfile_underflow':
(.text+0x2c4): undefined reference to `_IO_switch_to_get_mode'
/usr/bin/ld: (.text+0x6b0): undefined reference to `_IO_doallocbuf'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(wfileops.o): in function
`_IO_wfile_seekoff':
(.text+0xb14): undefined reference to `_IO_doallocbuf'
/usr/bin/ld: (.text+0xc04): undefined reference to `_IO_unsave_markers'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(wfileops.o): in function
`_IO_wfile_overflow':
(.text+0x17f8): undefined reference to `_IO_doallocbuf'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(wfileops.o):(__libc_IO_vtables+0x28):
undefined reference to `_IO_default_seekpos'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(wfileops.o):(__libc_IO_vtables+0x4c):
undefined reference to `_IO_default_showmanyc'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(wfileops.o):(__libc_IO_vtables+0x50):
undefined reference to `_IO_default_imbue'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(wfileops.o):(__libc_IO_vtables+0x7c):
undefined reference to `_IO_default_seekpos'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(wfileops.o):(__libc_IO_vtables+0xa0):
undefined reference to `_IO_default_showmanyc'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(wfileops.o):(__libc_IO_vtables+0xa4):
undefined reference to `_IO_default_imbue'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(wfileops.o):(__libc_IO_vtables+0xd0):
undefined reference to `_IO_default_seekpos'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(wfileops.o):(__libc_IO_vtables+0xf4):
undefined reference to `_IO_default_showmanyc'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(wfileops.o):(__libc_IO_vtables+0xf8):
undefined reference to `_IO_default_imbue'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(vasprintf.o): in function
`vasprintf':
(.text+0x50): undefined reference to `_IO_no_init'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(fileops.o): in function
`_IO_file_setbuf':
(.text+0x80): undefined reference to `_IO_default_setbuf'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(fileops.o): in function
`_IO_file_setbuf_mmap':
(.text+0xd4): undefined reference to `_IO_default_setbuf'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(fileops.o): in function
`new_do_write':
(.text+0x24c): undefined reference to `_IO_adjust_column'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(fileops.o): in function
`_IO_file_underflow':
(.text+0x3d4): undefined reference to `_IO_switch_to_get_mode'
/usr/bin/ld: (.text+0x4a8): undefined reference to `_IO_doallocbuf'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(fileops.o): in function
`decide_maybe_mmap':
(.text+0xa78): undefined reference to `_IO_setb'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(fileops.o): in function
`_IO_file_seekoff':
(.text+0xbe8): undefined reference to `_IO_switch_to_get_mode'
/usr/bin/ld: (.text+0xc88): undefined reference to `_IO_free_backup_area'
/usr/bin/ld: (.text+0xe60): undefined reference to `_IO_doallocbuf'
/usr/bin/ld: (.text+0xf00): undefined reference to `_IO_unsave_markers'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(fileops.o): in function
`_IO_file_xsgetn_mmap':
(.text+0x13c0): undefined reference to `_IO_switch_to_main_get_area'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(fileops.o): in function
`_IO_file_xsgetn':
(.text+0x15a0): undefined reference to `_IO_switch_to_main_get_area'
/usr/bin/ld: (.text+0x15f8): undefined reference to `__underflow'
/usr/bin/ld: (.text+0x1630): undefined reference to `_IO_doallocbuf'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(fileops.o): in function
`_IO_file_xsputn':
(.text+0x1a08): undefined reference to `_IO_default_xsputn'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(fileops.o): in function
`_IO_new_file_init_internal':
(.text+0x1a58): undefined reference to `_IO_link_in'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(fileops.o): in function
`_IO_file_init':
(.text+0x1a8c): undefined reference to `_IO_link_in'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(fileops.o): in function
`_IO_file_open':
(.text+0x1b68): undefined reference to `_IO_link_in'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(fileops.o): in function
`_IO_file_close_it':
(.text+0x1d0c): undefined reference to `_IO_unsave_markers'
/usr/bin/ld: (.text+0x1dbc): undefined reference to `_IO_setb'
/usr/bin/ld: (.text+0x1de0): undefined reference to `_IO_un_link'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(fileops.o): in function
`_IO_file_finish':
(.text+0x231c): undefined reference to `_IO_default_finish'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(fileops.o): in function
`_IO_file_overflow':
(.text+0x24cc): undefined reference to `_IO_doallocbuf'
/usr/bin/ld: (.text+0x24f4): undefined reference to `_IO_free_backup_area'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(fileops.o): in function
`.LANCHOR0':
(__libc_IO_vtables+0x14): undefined reference to `_IO_default_uflow'
/usr/bin/ld: (__libc_IO_vtables+0x18): undefined reference to
`_IO_default_pbackfail'
/usr/bin/ld: (__libc_IO_vtables+0x28): undefined reference to
`_IO_default_seekpos'
/usr/bin/ld: (__libc_IO_vtables+0x4c): undefined reference to
`_IO_default_showmanyc'
/usr/bin/ld: (__libc_IO_vtables+0x50): undefined reference to
`_IO_default_imbue'
/usr/bin/ld: (__libc_IO_vtables+0x68): undefined reference to
`_IO_default_uflow'
/usr/bin/ld: (__libc_IO_vtables+0x6c): undefined reference to
`_IO_default_pbackfail'
/usr/bin/ld: (__libc_IO_vtables+0x7c): undefined reference to
`_IO_default_seekpos'
/usr/bin/ld: (__libc_IO_vtables+0xa0): undefined reference to
`_IO_default_showmanyc'
/usr/bin/ld: (__libc_IO_vtables+0xa4): undefined reference to
`_IO_default_imbue'
/usr/bin/ld: (__libc_IO_vtables+0xbc): undefined reference to
`_IO_default_uflow'
/usr/bin/ld: (__libc_IO_vtables+0xc0): undefined reference to
`_IO_default_pbackfail'
/usr/bin/ld: (__libc_IO_vtables+0xd0): undefined reference to
`_IO_default_seekpos'
/usr/bin/ld: (__libc_IO_vtables+0xf4): undefined reference to
`_IO_default_showmanyc'
/usr/bin/ld: (__libc_IO_vtables+0xf8): undefined reference to
`_IO_default_imbue'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o): in function
`_IO_str_overflow':
(.text+0x114): undefined reference to `_IO_setb'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o): in function
`enlarge_userbuf':
(.text+0x228): undefined reference to `_IO_setb'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o): in function
`_IO_str_pbackfail':
(.text+0x620): undefined reference to `_IO_default_pbackfail'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o): in function
`_IO_str_finish':
(.text+0x65c): undefined reference to `_IO_default_finish'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o): in function
`_IO_str_init_static_internal':
(.text+0x6a0): undefined reference to `_IO_setb'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o):(__libc_IO_vtables+0x14):
undefined reference to `_IO_default_uflow'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o):(__libc_IO_vtables+0x1c):
undefined reference to `_IO_default_xsputn'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o):(__libc_IO_vtables+0x20):
undefined reference to `_IO_default_xsgetn'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o):(__libc_IO_vtables+0x28):
undefined reference to `_IO_default_seekpos'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o):(__libc_IO_vtables+0x2c):
undefined reference to `_IO_default_setbuf'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o):(__libc_IO_vtables+0x30):
undefined reference to `_IO_default_sync'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o):(__libc_IO_vtables+0x34):
undefined reference to `_IO_default_doallocate'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o):(__libc_IO_vtables+0x38):
undefined reference to `_IO_default_read'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o):(__libc_IO_vtables+0x3c):
undefined reference to `_IO_default_write'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o):(__libc_IO_vtables+0x40):
undefined reference to `_IO_default_seek'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o):(__libc_IO_vtables+0x44):
undefined reference to `_IO_default_sync'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o):(__libc_IO_vtables+0x48):
undefined reference to `_IO_default_stat'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o):(__libc_IO_vtables+0x4c):
undefined reference to `_IO_default_showmanyc'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(strops.o):(__libc_IO_vtables+0x50):
undefined reference to `_IO_default_imbue'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(vfprintf.o): in function
`_IO_helper_overflow':
(.text+0x49c): undefined reference to `__overflow'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(vfprintf.o): in function
`printf_positional':
(.text+0xb9c): undefined reference to `__overflow'
/usr/bin/ld: (.text+0x1b90): undefined reference to `__overflow'
/usr/bin/ld: (.text+0x1e88): undefined reference to `__overflow'
/usr/bin/ld: (.text+0x1f78): undefined reference to `__overflow'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(vfprintf.o):(.text+0x217c):
more undefined references to `__overflow' follow
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(vfprintf.o): in function
`.LANCHOR1':
(__libc_IO_vtables+0x8): undefined reference to `_IO_default_finish'
/usr/bin/ld: (__libc_IO_vtables+0x10): undefined reference to
`_IO_default_underflow'
/usr/bin/ld: (__libc_IO_vtables+0x14): undefined reference to
`_IO_default_uflow'
/usr/bin/ld: (__libc_IO_vtables+0x18): undefined reference to
`_IO_default_pbackfail'
/usr/bin/ld: (__libc_IO_vtables+0x1c): undefined reference to
`_IO_default_xsputn'
/usr/bin/ld: (__libc_IO_vtables+0x20): undefined reference to
`_IO_default_xsgetn'
/usr/bin/ld: (__libc_IO_vtables+0x24): undefined reference to
`_IO_default_seekoff'
/usr/bin/ld: (__libc_IO_vtables+0x28): undefined reference to
`_IO_default_seekpos'
/usr/bin/ld: (__libc_IO_vtables+0x2c): undefined reference to
`_IO_default_setbuf'
/usr/bin/ld: (__libc_IO_vtables+0x30): undefined reference to
`_IO_default_sync'
/usr/bin/ld: (__libc_IO_vtables+0x34): undefined reference to
`_IO_default_doallocate'
/usr/bin/ld: (__libc_IO_vtables+0x38): undefined reference to
`_IO_default_read'
/usr/bin/ld: (__libc_IO_vtables+0x3c): undefined reference to
`_IO_default_write'
/usr/bin/ld: (__libc_IO_vtables+0x40): undefined reference to
`_IO_default_seek'
/usr/bin/ld: (__libc_IO_vtables+0x44): undefined reference to
`_IO_default_sync'
/usr/bin/ld: (__libc_IO_vtables+0x48): undefined reference to
`_IO_default_stat'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(printf_fp.o): in function
`__printf_fp_l':
(.text+0x16a8): undefined reference to `__overflow'
/usr/bin/ld: (.text+0x1860): undefined reference to `__overflow'
/usr/bin/ld: (.text+0x18fc): undefined reference to `__overflow'
/usr/bin/ld: (.text+0x1d4c): undefined reference to `__overflow'
/usr/bin/ld: (.text+0x221c): undefined reference to `__overflow'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(printf_fp.o):(.text+0x24b4):
more undefined references to `__overflow' follow
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(vfwprintf.o): in function
`.LANCHOR1':
(__libc_IO_vtables+0x10): undefined reference to `_IO_default_underflow'
/usr/bin/ld: (__libc_IO_vtables+0x14): undefined reference to
`_IO_default_uflow'
/usr/bin/ld: (__libc_IO_vtables+0x24): undefined reference to
`_IO_default_seekoff'
/usr/bin/ld: (__libc_IO_vtables+0x28): undefined reference to
`_IO_default_seekpos'
/usr/bin/ld: (__libc_IO_vtables+0x2c): undefined reference to
`_IO_default_setbuf'
/usr/bin/ld: (__libc_IO_vtables+0x30): undefined reference to
`_IO_default_sync'
/usr/bin/ld: (__libc_IO_vtables+0x38): undefined reference to
`_IO_default_read'
/usr/bin/ld: (__libc_IO_vtables+0x3c): undefined reference to
`_IO_default_write'
/usr/bin/ld: (__libc_IO_vtables+0x40): undefined reference to
`_IO_default_seek'
/usr/bin/ld: (__libc_IO_vtables+0x44): undefined reference to
`_IO_default_sync'
/usr/bin/ld: (__libc_IO_vtables+0x48): undefined reference to
`_IO_default_stat'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(filedoalloc.o): in function
`_IO_file_doallocate':
(.text+0xa4): undefined reference to `_IO_setb'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(iogetdelim.o): in function
`__getdelim':
(.text+0xf4): undefined reference to `__underflow'
/usr/bin/ld: (.text+0x244): undefined reference to `__underflow'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(iogetline.o): in function
`_IO_getline_info':
(.text+0xac): undefined reference to `__uflow'
/usr/bin/ld: (.text+0x15c): undefined reference to `_IO_sputbackc'
/usr/bin/ld:
/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/8/../../../libc.a(wgenops.o): in function
`_IO_wdefault_finish':
(.text+0x4b0): undefined reference to `_IO_un_link'
/usr/bin/ld: cmTC_4d5df: hidden symbol `_IO_link_in' isn't defined
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_4d5df.dir/build.make:87: cmTC_4d5df] Error 1
gmake[1]: Leaving directory
'/builddir/build/BUILD/cscppc-1.5.0/cscppc_build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_4d5df/fast] Error 2
CMake will not be able to correctly generate this project.
diff --git a/cscppc.spec b/cscppc.spec
index edad193..b083dfd 100644
--- a/cscppc.spec
+++ b/cscppc.spec
@@ -64,7 +64,9 @@ export CFLAGS="$RPM_OPT_FLAGS"
CFLAGS="$CFLAGS"' -DPATH_TO_CSCPPC=\"%{_libdir}/cscppc\"'
CFLAGS="$CFLAGS"' -DPATH_TO_CSCLNG=\"%{_libdir}/csclng\"'
CFLAGS="$CFLAGS"' -DPATH_TO_CSMATCH=\"%{_libdir}/csmatch\"'
+%ifnarch %{arm}
export LDFLAGS="$RPM_OPT_FLAGS -static -pthread"
+%endif
%cmake ..
make %{?_smp_mflags} VERBOSE=yes