NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/56555: NetBSD/current fails to crossbuild to MacOS Monterey (Intel)



>Number:         56555
>Category:       toolchain
>Synopsis:       NetBSD/current fails to crossbuild to MacOS Monterey (Intel)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 19 15:40:01 +0000 2021
>Originator:     Chris Pinnock
>Release:        NetBSD-current
>Organization:
>Environment:
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: x86_64-apple-darwin21.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Machine: amd64
>Description:

./build.sh -U -u -O ../objects/amd64 -m amd64 build
The tools build fine. During a make build, the build fails in GCC 
external/gpl3/gcc/usr.bin/backend and it looks as if the host compiler is
being called instead of the toolchain:

/Volumes/Builds/NetBSD/src/../objects/amd64/tooldir.Darwin-21.2.0-x86_64/bin/nbmake-amd64
#      link  backend/gencondmd
c++ -std=gnu++98 -I/Volumes/Builds/NetBSD/src/../objects/amd64/external/gpl3/gcc/usr.bin/backend -I/Volumes/Builds/NetBSD/src/../objects/amd64/external/gpl3/gcc/usr.bin/host-libiberty/libiberty -I. -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/usr.bin/backend/../gcc/arch/x86_64 -DIN_GCC -DHAVE_CONFIG_H -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/dist/gcc -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/dist/gcc/. -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/dist/gcc/../include -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/dist/gcc/../libcpp/include -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/dist/gcc/../libdecnumber -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/dist/gcc/../libdecnumber/dpd -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/dist/gcc/../libbacktrace -DGENERATOR_FILE -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/usr.bin/backend/..  -o gencondmd gencondmd.lo build-rtl.lo read-rtl.lo build-ggc-none.lo vec.lo min-insn-modes.lo gensupport.lo build-print-rtl.lo hash-ta
 ble.lo sort.lo read-md.lo build-errors.lo -L/Volumes/Builds/NetBSD/src/../objects/amd64/tooldir.Darwin-21.2.0-x86_64/lib -lnbcompat /Volumes/Builds/NetBSD/src/../objects/amd64/external/gpl3/gcc/usr.bin/host-libiberty/libiberty/libiberty.a  build-sort.lo
Undefined symbols for architecture x86_64:
  "_cfun", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_const_int_rtx", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_const_tiny_rtx", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_epilogue_completed", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_flag_cf_protection", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_flag_finite_math_only", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_flag_fp_int_builtin_inexact", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_flag_pic", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_flag_rounding_math", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_flag_trapping_math", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_flag_unsafe_math_optimizations", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_insn", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
     (maybe you meant: hash_table<default_hash_traits<rtx_insn*>, false, xcallocator>::iterator::iterator(rtx_insn**, rtx_insn**), hash_table<default_hash_traits<rtx_insn*>, false, xcallocator>::iterator::iterator() , pointer_hash<rtx_insn>::is_deleted(rtx_insn*) , pointer_hash<rtx_insn>::is_empty(rtx_insn*) , hash_table<default_hash_traits<rtx_insn*>, false, xcallocator>::is_empty(rtx_insn*&) , hash_table<default_hash_traits<rtx_insn*>, false, xcallocator>::iterator::iterator(rtx_insn**, rtx_insn**) , vec<rtx_insn*, va_heap, vl_ptr>::operator[](unsigned int) const , rtx_insn* is_a_helper<rtx_insn*>::cast<rtx_def>(rtx_def*) , rtx_insn const* as_a<rtx_insn const*, rtx_def const>(rtx_def const*) , debug_rtx_find(rtx_insn const*, int) , rtx_insn* safe_as_a<rtx_insn*, rtx_def>(rtx_def*) , get_num_insn_codes() , debug_rtx_list(rtx_insn const*, int) , debug(hash_set<rtx_insn*, false, default_hash_traits<rtx_insn*> >*) , debug(hash_set<rtx_insn*, false, default_hash_traits<rtx_insn*> >&) , 
 hash_table<default_hash_traits<rtx_insn*>, false, xcallocator>::iterator::operator!=(hash_table<default_hash_traits<rtx_insn*>, false, xcallocator>::iterator const&) const , hash_set<rtx_insn*, false, default_hash_traits<rtx_insn*> >::iterator::iterator(hash_table<default_hash_traits<rtx_insn*>, false, xcallocator>::iterator const&) , void debug_helper<rtx_insn*>(hash_set<rtx_insn*, false, default_hash_traits<rtx_insn*> >&) , hash_table<default_hash_traits<rtx_insn*>, false, xcallocator>::is_deleted(rtx_insn*&) , debug(vec<rtx_insn*, va_gc, vl_embed>*) , debug(vec<rtx_insn*, va_gc, vl_embed>&) , hash_set<rtx_insn*, false, default_hash_traits<rtx_insn*> >::iterator::operator!=(hash_set<rtx_insn*, false, default_hash_traits<rtx_insn*> >::iterator const&) const , debug(vec<rtx_insn*, va_heap, vl_ptr>&) , vec<rtx_insn*, va_gc, vl_embed>::length() const , vec<rtx_insn*, va_gc, vl_embed>::operator[](unsigned int) , void debug_helper<rtx_insn*>(vec<rtx_insn*, va_gc, vl_embed>&) , vec<rtx_i
 nsn*, va_heap, vl_embed>::operator[](unsigned int) , void debug_helper<rtx_insn*>(vec<rtx_insn*, va_heap, vl_ptr>&) , bool is_a_helper<rtx_insn const*>::test<rtx_def const>(rtx_def const*) , NEXT_INSN(rtx_insn const*) , hash_set<rtx_insn*, false, default_hash_traits<rtx_insn*> >::end() const , debug(vec<rtx_insn*, va_heap, vl_ptr>*) , get_insn_name(int) , hash_set<rtx_insn*, false, default_hash_traits<rtx_insn*> >::iterator::operator++() , _insn_elision , hash_set<rtx_insn*, false, default_hash_traits<rtx_insn*> >::begin() const , PREV_INSN(rtx_insn const*) , debug_rtx_range(rtx_insn const*, rtx_insn const*) , bool is_a<rtx_insn const*, rtx_def const>(rtx_def const*) , hash_table<default_hash_traits<rtx_insn*>, false, xcallocator>::begin() const , print_rtx_insn_vec(__sFILE*, vec<rtx_insn*, va_heap, vl_ptr> const&) , hash_table<default_hash_traits<rtx_insn*>, false, xcallocator>::iterator::iterator() , _note_insn_name , vec<rtx_insn*, va_heap, vl_ptr>::length() const , hash_set<rtx_
 insn*, false, default_hash_traits<rtx_insn*> >::iterator::operator*() , hash_table<default_hash_traits<rtx_insn*>, false, xcallocator>::iterator::operator*() , hash_table<default_hash_traits<rtx_insn*>, false, xcallocator>::iterator::slide() , hash_table<default_hash_traits<rtx_insn*>, false, xcallocator>::iterator::operator++() , rtx_insn const* is_a_helper<rtx_insn const*>::cast<rtx_def const>(rtx_def const*) , hash_table<default_hash_traits<rtx_insn*>, false, xcallocator>::end() const , classify_insn(rtx_def*) , hash_set<rtx_insn*, false, default_hash_traits<rtx_insn*> >::iterator::iterator(hash_table<default_hash_traits<rtx_insn*>, false, xcallocator>::iterator const&) , rtx_insn* as_a<rtx_insn*, rtx_def>(rtx_def*) , vec<rtx_insn*, va_heap, vl_embed>::length() const , vec<rtx_insn*, va_heap, vl_ptr>::operator[](unsigned int) )
  "_ix86_arch_features", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_ix86_cmodel", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_ix86_excess_precision", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_ix86_fpmath", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_ix86_indirect_branch_register", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_ix86_isa_flags", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_ix86_isa_flags2", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_ix86_pmode", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_ix86_tls_dialect", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_ix86_tune_features", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_ix86_unsafe_math_optimizations", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_operands", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_reload_completed", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_reload_in_progress", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
  "_x86_prefetch_sse", referenced from:
      ___cxx_global_var_init.101 in gencondmd.lo
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

*** Failed target:  gencondmd
*** Failed command: c++ -std=gnu++98 -I/Volumes/Builds/NetBSD/src/../objects/amd64/external/gpl3/gcc/usr.bin/backend -I/Volumes/Builds/NetBSD/src/../objects/amd64/external/gpl3/gcc/usr.bin/host-libiberty/libiberty -I. -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/usr.bin/backend/../gcc/arch/x86_64 -DIN_GCC -DHAVE_CONFIG_H -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/dist/gcc -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/dist/gcc/. -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/dist/gcc/../include -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/dist/gcc/../libcpp/include -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/dist/gcc/../libdecnumber -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/dist/gcc/../libdecnumber/dpd -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/dist/gcc/../libbacktrace -DGENERATOR_FILE -I/Volumes/Builds/NetBSD/src/external/gpl3/gcc/usr.bin/backend/.. -o gencondmd gencondmd.lo build-rtl.lo read-rtl.lo build-ggc-none.lo vec.lo min-insn-modes.lo gensupport.lo build-p
 rint-rtl.lo hash-table.lo sort.lo read-md.lo build-errors.lo -L/Volumes/Builds/NetBSD/src/../objects/amd64/tooldir.Darwin-21.2.0-x86_64/lib -lnbcompat /Volumes/Builds/NetBSD/src/../objects/amd64/external/gpl3/gcc/usr.bin/host-libiberty/libiberty/libiberty.a build-sort.lo

>How-To-Repeat:

On MacOS Monterey on an intel Mac:
./build.sh -U -u -O ../objects/amd64 -m amd64 build

>Fix:
n/a



Home | Main Index | Thread Index | Old Index