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

Failes to compile on arch #18

Open
stratosgear opened this issue Sep 2, 2020 · 4 comments
Open

Failes to compile on arch #18

stratosgear opened this issue Sep 2, 2020 · 4 comments

Comments

@stratosgear
Copy link

make gives:

$  make
  CXXLD    cc-tool
/usr/bin/ld: /usr/bin/ld: DWARF error: could not find variable specification at offset 68b2
/usr/bin/ld: DWARF error: could not find variable specification at offset 692d
/usr/bin/ld: DWARF error: could not find variable specification at offset 69b4
/usr/bin/ld: DWARF error: could not find variable specification at offset 20800
/usr/bin/ld: DWARF error: could not find variable specification at offset 2080c
/usr/bin/ld: DWARF error: could not find variable specification at offset 20e29
/usr/bin/ld: DWARF error: could not find variable specification at offset 20e70
/usr/bin/ld: DWARF error: could not find variable specification at offset 20eb7
/usr/bin/ld: DWARF error: could not find variable specification at offset 214ae
/usr/bin/ld: DWARF error: could not find variable specification at offset 214dd
/usr/bin/ld: DWARF error: could not find variable specification at offset 21518
/usr/bin/ld: DWARF error: could not find variable specification at offset 21524
/usr/bin/ld: DWARF error: could not find variable specification at offset 2155f
/usr/bin/ld: DWARF error: could not find variable specification at offset 2156b
/usr/bin/ld: DWARF error: could not find variable specification at offset 2b9c7
/usr/bin/ld: DWARF error: could not find variable specification at offset 2ba33
/usr/bin/ld: DWARF error: could not find variable specification at offset 29c87
/usr/bin/ld: DWARF error: could not find variable specification at offset 29c94
/usr/bin/ld: DWARF error: could not find variable specification at offset 29ce6
/usr/bin/ld: DWARF error: could not find variable specification at offset 29d29
/usr/bin/ld: DWARF error: could not find variable specification at offset 29d36
/usr/bin/ld: DWARF error: could not find variable specification at offset 29d8b
/usr/bin/ld: DWARF error: could not find variable specification at offset 29dd0
/usr/bin/ld: DWARF error: could not find variable specification at offset 29ddd
/usr/bin/ld: DWARF error: could not find variable specification at offset 29e36
/usr/bin/ld: DWARF error: could not find variable specification at offset 29e7d
/usr/bin/ld: DWARF error: could not find variable specification at offset 29e8a
/usr/bin/ld: DWARF error: could not find variable specification at offset 29eec
/usr/bin/ld: DWARF error: could not find variable specification at offset 29f37
/usr/bin/ld: DWARF error: could not find variable specification at offset 29f44
/usr/bin/ld: DWARF error: could not find variable specification at offset 29fa6
/usr/bin/ld: DWARF error: could not find variable specification at offset 38020
/usr/bin/ld: DWARF error: could not find variable specification at offset 37fce
/usr/bin/ld: DWARF error: could not find variable specification at offset 38093
/usr/bin/ld: DWARF error: could not find variable specification at offset 38165
/usr/bin/ld: DWARF error: could not find variable specification at offset 381f3
/usr/bin/ld: DWARF error: could not find variable specification at offset 3827f
/usr/bin/ld: DWARF error: could not find variable specification at offset 2be89
/usr/bin/ld: DWARF error: could not find variable specification at offset 2be98
/usr/bin/ld: DWARF error: could not find variable specification at offset 2bea7
/usr/bin/ld: DWARF error: could not find variable specification at offset 2beb6
/usr/bin/ld: DWARF error: could not find variable specification at offset 2bec5
/usr/bin/ld: DWARF error: could not find variable specification at offset 3811f
/usr/bin/ld: DWARF error: could not find variable specification at offset 380d9
/usr/bin/ld: DWARF error: could not find variable specification at offset 38239
/usr/bin/ld: DWARF error: could not find variable specification at offset 382c5
/usr/bin/ld: DWARF error: could not find variable specification at offset 3830b
/usr/bin/ld: DWARF error: could not find variable specification at offset 38351
/usr/bin/ld: DWARF error: could not find variable specification at offset 38397
/usr/bin/ld: DWARF error: could not find variable specification at offset 383dd
/usr/bin/ld: DWARF error: could not find variable specification at offset 38423
/usr/bin/ld: DWARF error: could not find variable specification at offset 32b23
/usr/bin/ld: DWARF error: could not find variable specification at offset 3317c
/usr/bin/ld: DWARF error: could not find variable specification at offset 331e8
/usr/bin/ld: DWARF error: could not find variable specification at offset 33254
/usr/bin/ld: DWARF error: could not find variable specification at offset 332c0
/usr/bin/ld: DWARF error: could not find variable specification at offset 381ad
/usr/bin/ld: DWARF error: could not find variable specification at offset 38469
/usr/bin/ld: DWARF error: could not find variable specification at offset 38653
/usr/bin/ld: DWARF error: could not find variable specification at offset 3860d
/usr/bin/ld: DWARF error: could not find variable specification at offset 386df
/usr/bin/ld: DWARF error: could not find variable specification at offset 38725
/usr/bin/ld: DWARF error: could not find variable specification at offset 3876b
/usr/bin/ld: DWARF error: could not find variable specification at offset 387b1
/usr/bin/ld: DWARF error: could not find variable specification at offset 34a59
/usr/bin/ld: DWARF error: could not find variable specification at offset 34a84
/usr/bin/ld: DWARF error: could not find variable specification at offset 38699
/usr/bin/ld: DWARF error: could not find variable specification at offset 379a5
src/programmer/cc_253x_254x.o: in function `boost::re_detail_106800::perl_matcher<char const*, std::allocator<boost::sub_match<char const*> >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::unwind_extra_block(bool)':
/usr/include/boost/regex/v4/perl_matcher_non_recursive.hpp:1368: undefined reference to `boost::re_detail_106800::put_mem_block(void*)'
/usr/bin/ld: src/programmer/cc_253x_254x.o: in function `boost::re_detail_106800::cpp_regex_traits_implementation<char>::error_string[abi:cxx11](boost::regex_constants::error_type) const':
/usr/include/boost/regex/v4/cpp_regex_traits.hpp:449: undefined reference to `boost::re_detail_106800::get_default_error_string(boost::regex_constants::error_type)'
/usr/bin/ld: src/programmer/cc_253x_254x.o: in function `void boost::re_detail_106800::raise_error<boost::regex_traits_wrapper<boost::regex_traits<char, boost::cpp_regex_traits<char> > > >(boost::regex_traits_wrapper<boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::error_type)':
/usr/include/boost/regex/pattern_except.hpp:75: undefined reference to `boost::re_detail_106800::raise_runtime_error(std::runtime_error const&)'
/usr/bin/ld: src/programmer/cc_253x_254x.o: in function `boost::re_detail_106800::perl_matcher<char const*, std::allocator<boost::sub_match<char const*> >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::extend_stack()':
/usr/include/boost/regex/v4/perl_matcher_non_recursive.hpp:233: undefined reference to `boost::re_detail_106800::get_mem_block()'
/usr/bin/ld: src/programmer/cc_253x_254x.o: in function `boost::cpp_regex_traits<char>::transform_primary[abi:cxx11](char const*, char const*) const':
/usr/include/boost/regex/v4/cpp_regex_traits.hpp:966: undefined reference to `boost::re_detail_106800::cpp_regex_traits_implementation<char>::transform_primary[abi:cxx11](char const*, char const*) const'
/usr/bin/ld: src/programmer/cc_253x_254x.o: in function `boost::cpp_regex_traits<char>::transform[abi:cxx11](char const*, char const*) const':
/usr/include/boost/regex/v4/cpp_regex_traits.hpp:962: undefined reference to `boost::re_detail_106800::cpp_regex_traits_implementation<char>::transform[abi:cxx11](char const*, char const*) const'
/usr/bin/ld: src/programmer/cc_253x_254x.o: in function `boost::re_detail_106800::save_state_init::save_state_init(boost::re_detail_106800::saved_state**, boost::re_detail_106800::saved_state**)':
/usr/include/boost/regex/v4/perl_matcher_non_recursive.hpp:107: undefined reference to `boost::re_detail_106800::get_mem_block()'
/usr/bin/ld: src/programmer/cc_253x_254x.o: in function `boost::re_detail_106800::perl_matcher<char const*, std::allocator<boost::sub_match<char const*> >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::match_imp()':
/usr/include/boost/regex/v4/perl_matcher_common.hpp:219: undefined reference to `boost::re_detail_106800::verify_options(unsigned int, boost::regex_constants::_match_flags)'
/usr/bin/ld: src/programmer/cc_253x_254x.o: in function `boost::re_detail_106800::save_state_init::~save_state_init()':
/usr/include/boost/regex/v4/perl_matcher_non_recursive.hpp:115: undefined reference to `boost::re_detail_106800::put_mem_block(void*)'
/usr/bin/ld: /usr/include/boost/regex/v4/perl_matcher_non_recursive.hpp:115: undefined reference to `boost::re_detail_106800::put_mem_block(void*)'
collect2: error: ld returned 1 exit status
make: *** [Makefile:542: cc-tool] Error 1

This is on:

$ uname -a
Linux serenity 5.8.5-arch1-1 #1 SMP PREEMPT Thu, 27 Aug 2020 18:53:02 +0000 x86_64 GNU/Linux

Bootstrap and configure seem to run correctly (??)

./bootstrap gives:

$ ./bootstrap
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:8: installing './compile'
configure.ac:5: installing './missing'
autoreconf: Leaving directory `.'

and ./configure:

$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for Boost headers version >= 1.39.0... yes
checking for Boost's header version... 1_72
checking for the toolset name used by Boost for g++... configure: WARNING: could not figure out which toolset name to use for g++

checking boost/program_options.hpp usability... yes
checking boost/program_options.hpp presence... yes
checking for boost/program_options.hpp... yes
checking for the Boost program_options library... yes
checking boost/system/error_code.hpp usability... yes
checking boost/system/error_code.hpp presence... yes
checking for boost/system/error_code.hpp... yes
checking for the Boost system library... (cached) yes
checking boost/regex.hpp usability... yes
checking boost/regex.hpp presence... yes
checking for boost/regex.hpp... yes
checking for the Boost regex library... (cached) yes
checking for boost/system/error_code.hpp... (cached) yes
checking for the Boost system library... (cached) yes
checking boost/filesystem/path.hpp usability... yes
checking boost/filesystem/path.hpp presence... yes
checking for boost/filesystem/path.hpp... yes
checking for the Boost filesystem library... (cached) yes
checking boost/foreach.hpp usability... yes
checking boost/foreach.hpp presence... yes
checking for boost/foreach.hpp... yes
checking boost/scoped_ptr.hpp usability... yes
checking boost/scoped_ptr.hpp presence... yes
checking for boost/scoped_ptr.hpp... yes
checking boost/shared_ptr.hpp usability... yes
checking boost/shared_ptr.hpp presence... yes
checking for boost/shared_ptr.hpp... yes
checking boost/algorithm/string.hpp usability... yes
checking boost/algorithm/string.hpp presence... yes
checking for boost/algorithm/string.hpp... yes
checking boost/signals2.hpp usability... yes
checking boost/signals2.hpp presence... yes
checking for boost/signals2.hpp... yes
checking boost/crc.hpp usability... yes
checking boost/crc.hpp presence... yes
checking for boost/crc.hpp... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBUSB... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing libtool commands

How can I debug this?

Thanks!

@dashesy
Copy link
Owner

dashesy commented Sep 2, 2020

Is boost built with the same g++ ABI that you are using?

@stratosgear
Copy link
Author

hmm, how would I know that if I haven't manually compiled anything prior to the make of cc-tool?

All packages were installed through pacman (arch's package manager)

@Buddy-Matt
Copy link

Same issue here.

However, the AUR version seems to work without issue. No idea what they've done to get it working though!

$ yay -Syu cc-tool

@stratosgear
Copy link
Author

Wow, yeah!!!

You are partially right. cc-tool from aur though was giving me troubles when actually using it:

Error occured: libusb_control_transfer (out) failed, Pipe error

but the cc-tools-git package did work.

It seems that the build script is passing some extra arguments to the .configure command. See: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=cc-tool-git

Thanks for pointing me out in the right direction @Buddy-Matt... :)

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

3 participants