Solved make: sh: cc: not found

make(1) does not work following a system update.

Probably a stupid question, is this because my /etc/make.conf had WITHOUT_TOOLCHAIN=yes before I built world?

<https://www.freebsd.org/status/report-2021-07-2021-09/#_current_compilation_time_analysis>

Code:
root@mowa219-gjp4-8570p-freebsd:~ # poudriere jail -u -j main
[00:00:00] Upgrading using src=/usr/src
[00:00:00] Copying /usr/src to /usr/local/poudriere/jails/main/usr/src... done
[00:01:52] Starting make installworld
sh: cc: not found
make: "/usr/src/share/mk/bsd.compiler.mk" line 201: warning: "cc -v 2>&1 | grep "gcc version"" returned non-zero status
make: "/usr/src/share/mk/bsd.compiler.mk" line 205: Unable to determine compiler type for CC=/usr/local/bin/ccache cc.  Consider setting COMPILER_TYPE.

make: stopped in /usr/src
[00:01:52] Error: Failed to 'make installworld'
root@mowa219-gjp4-8570p-freebsd:~ #
 
Last edited by a moderator:
02:29,

… because my /etc/make.conf had WITHOUT_TOOLCHAIN=yes

07:33 after a fresh build that did not include the toolchain-related configuration, I created, activated then booted a new environment. Subsequent installations of kernel and world produced a usable make.

Solved, PEBKAM.



(Now I vaguely understand the significance of a toolchain.)

Code:
% bectl list -c creation
BE                    Active Mountpoint Space Created
n250511-5f73b3338ee-d -      -          4.94G 2021-11-13 15:43
n251923-4bae154fe8c-d -      -          1.10G 2022-01-05 15:27
n252255-78beb051a26-a -      -          46.4M 2022-01-07 07:33
n252255-78beb051a26-b NR     /          89.1G 2022-01-07 17:10
% sudo bectl destroy -o n252255-78beb051a26-a
grahamperrin's password:
% cd ~/dev
% gh repo clone freebsd/drm-kmod
Cloning into 'drm-kmod'...
remote: Enumerating objects: 218553, done.
remote: Counting objects: 100% (146/146), done.
remote: Compressing objects: 100% (109/109), done.
remote: Total 218553 (delta 54), reused 83 (delta 22), pack-reused 218407
Receiving objects: 100% (218553/218553), 61.86 MiB | 4.49 MiB/s, done.
Resolving deltas: 100% (146841/146841), done.
Updating files: 100% (2347/2347), done.
% cd drm-kmod
% git branch
* master
% git checkout 5.6-stable
Updating files: 100% (234/234), done.
Branch '5.6-stable' set up to track remote branch '5.6-stable' from 'origin'.
Switched to a new branch '5.6-stable'
% gh repo sync
✓ Synced the "master" branch from freebsd/drm-kmod to local repository
% git branch
* 5.6-stable
  master
% make clean
===> linuxkpi (clean)
rm -f export_syms machine x86 linuxkpi_gplv2.ko linuxkpi_gplv2.kld linux_kmod_gplv2.o linux_compat.o linux_hdmi.o linux_i2c.o linux_interval_tree.o linux_irq.o linux_mtrr.o linux_notifier.o linux_rbtree.o linux_sort.o dma-buf.o dma-fence-array.o dma-fence-chain.o dma-fence.o dma-resv.o sync_file.o opt_acpi.h opt_global.h vnode_if.h vnode_if_newproto.h vnode_if_typedef.h bus_if.h device_if.h pci_if.h pci_iov_if.h
===> ttm (clean)
rm -f ttm.ko.full ttm.ko.debug export_syms machine x86 ttm.ko ttm.kld ttm_bo.o ttm_bo_manager.o ttm_bo_util.o ttm_bo_vm.o ttm_execbuf_util.o ttm_memory.o ttm_module.o ttm_page_alloc.o ttm_page_alloc_dma.o ttm_tt.o ttm_agp_backend.o opt_drm.h opt_vm.h opt_compat.h opt_syscons.h opt_global.h vnode_if.h vnode_if_newproto.h vnode_if_typedef.h device_if.h bus_if.h pci_if.h pci_iov_if.h device_if.h iicbus_if.h
===> drm (clean)
rm -f drm.ko.full drm.ko.debug export_syms machine x86 drm.ko drm.kld drm_atomic.o drm_atomic_helper.o drm_atomic_state_helper.o drm_atomic_uapi.o drm_auth.o drm_blend.o drm_bridge.o drm_cache.o drm_client.o drm_client_modeset.o drm_color_mgmt.o drm_connector.o drm_crtc.o drm_crtc_helper.o drm_damage_helper.o drm_dp_dual_mode_helper.o drm_dp_helper.o drm_dp_mst_topology.o drm_drv.o drm_dsc.o drm_dumb_buffers.o drm_edid.o drm_encoder.o drm_encoder_slave.o drm_fb_helper_freebsd.o drm_file.o drm_flip_work.o drm_fourcc.o drm_framebuffer.o drm_gem.o drm_gem_framebuffer_helper.o drm_hashtab.o drm_ioctl.o drm_info.o drm_irq.o drm_lease.o drm_memory.o drm_mm.o drm_modes.o drm_mode_config.o drm_mode_object.o drm_modeset_lock.o drm_modeset_helper.o drm_os_freebsd.o drm_panel.o drm_pci.o drm_plane.o drm_plane_helper.o drm_print.o drm_prime.o drm_probe_helper.o drm_property.o drm_rect.o drm_self_refresh_helper.o drm_scdc_helper.o drm_syncobj.o drm_sysctl_freebsd.o drm_sysfs.o drm_vblank.o drm_vma_manager.o drm_writeback.o linux_fb.o tainted_linux_fb.o drm_fb_helper.o drm_agpsupport.o ati_pcigart.o drm_legacy_misc.o drm_bufs.o drm_context.o drm_dma.o drm_scatter.o drm_lock.o drm_ioc32.o drm_vm.o drm_mipi_dsi.o drm_panel_orientation_quirks.o sched_main.o sched_fence.o sched_entity.o opt_teken.h opt_splash.h opt_syscons.h opt_drm.h opt_vm.h opt_compat.h opt_syscons.h opt_global.h vnode_if.h vnode_if_newproto.h vnode_if_typedef.h device_if.h bus_if.h pci_if.h pci_iov_if.h device_if.h iicbus_if.h
===> amd (clean)
===> amd/amdgpu (clean)
rm -f amdgpu.ko.full amdgpu.ko.debug export_syms machine x86 amdgpu.ko amdgpu.kld acp_hw.o amdgpu_afmt.o amdgpu_amdkfd.o amdgpu_atombios.o amdgpu_atomfirmware.o amdgpu_benchmark.o amdgpu_bios.o amdgpu_bo_list.o amdgpu_cgs.o amdgpu_connectors.o amdgpu_cs.o amdgpu_csa.o amdgpu_ctx.o amdgpu_device.o amdgpu_discovery.o amdgpu_display.o amdgpu_dpm.o amdgpu_drv.o amdgpu_encoders.o amdgpu_fb.o amdgpu_fence.o amdgpu_freebsd.o amdgpu_gart.o amdgpu_gem.o amdgpu_gfx.o amdgpu_gmc.o amdgpu_gtt_mgr.o amdgpu_i2c.o amdgpu_ib.o amdgpu_ids.o amdgpu_ih.o amdgpu_ioc32.o amdgpu_irq.o amdgpu_job.o amdgpu_jpeg.o amdgpu_kms.o amdgpu_mmhub.o amdgpu_nbio.o amdgpu_object.o amdgpu_pll.o amdgpu_pm.o amdgpu_dma_buf.o amdgpu_psp.o amdgpu_ring.o amdgpu_ras.o amdgpu_ras_eeprom.o amdgpu_rlc.o amdgpu_sa.o amdgpu_sched.o amdgpu_sdma.o amdgpu_sync.o amdgpu_test.o amdgpu_trace_points.o amdgpu_ttm.o amdgpu_ucode.o amdgpu_umc.o amdgpu_uvd.o amdgpu_vce.o amdgpu_vcn.o amdgpu_vf_error.o amdgpu_virt.o amdgpu_vm.o amdgpu_vm_cpu.o amdgpu_vm_sdma.o amdgpu_vram_mgr.o amdgpu_xgmi.o arct_reg_init.o athub_v1_0.o athub_v2_0.o atom.o atombios_crtc.o atombios_dp.o atombios_encoders.o atombios_i2c.o cik_ih.o cik_sdma.o cik.o cz_ih.o dce_v10_0.o dce_v11_0.o dce_v6_0.o dce_v8_0.o dce_virtual.o df_v1_7.o df_v3_6.o emu_soc.o gfx_v6_0.o gfx_v7_0.o gfx_v8_0.o gfx_v9_0.o gfx_v9_4.o gfx_v10_0.o gfxhub_v1_0.o gfxhub_v1_1.o gfxhub_v2_0.o gmc_v6_0.o gmc_v7_0.o gmc_v8_0.o gmc_v9_0.o gmc_v10_0.o iceland_ih.o jpeg_v1_0.o jpeg_v2_0.o jpeg_v2_5.o kv_dpm.o kv_smc.o mes_v10_1.o mmhub_v1_0.o mmhub_v2_0.o mmhub_v9_4.o mxgpu_ai.o mxgpu_nv.o mxgpu_vi.o navi10_reg_init.o navi12_reg_init.o navi14_reg_init.o nbio_v2_3.o nbio_v6_1.o nbio_v7_0.o nbio_v7_4.o navi10_ih.o nv.o psp_v3_1.o psp_v10_0.o psp_v11_0.o psp_v12_0.o sdma_v2_4.o sdma_v3_0.o sdma_v4_0.o sdma_v5_0.o si_dma.o si_dpm.o si_ih.o si_smc.o si.o soc15.o tonga_ih.o umc_v6_0.o umc_v6_1.o uvd_v4_2.o uvd_v5_0.o uvd_v6_0.o uvd_v7_0.o vce_v2_0.o vce_v3_0.o vce_v4_0.o vcn_v1_0.o vcn_v2_0.o vcn_v2_5.o vega10_ih.o vega10_reg_init.o vega20_reg_init.o vi.o amdgpu_dm_color.o amdgpu_dm_helpers.o amdgpu_dm_irq.o amdgpu_dm_mst_types.o amdgpu_dm_pp_smu.o amdgpu_dm_services.o amdgpu_dm.o conversion.o dc_common.o fixpt31_32.o log_helpers.o vector.o bios_parser_common.o bios_parser_helper.o bios_parser_interface.o bios_parser.o bios_parser2.o command_table_helper.o command_table_helper2.o command_table.o command_table2.o command_table_helper2_dce112.o command_table_helper_dce110.o command_table_helper_dce112.o command_table_helper_dce80.o bw_fixed.o custom_float.o dce_calcs.o dc_debug.o dc_hw_sequencer.o dc_link_ddc.o dc_link_dp.o dc_link_hwss.o dc_link.o dc_resource.o dc_sink.o dc_stream.o dc_surface.o dc.o dce_abm.o dce_audio.o dce_aux.o dce_clock_source.o dce_dmcu.o dce_hwseq.o dce_i2c_hw.o dce_i2c_sw.o dce_i2c.o dce_ipp.o dce_link_encoder.o dce_mem_input.o dce_opp.o dce_scl_filters.o dce_stream_encoder.o dce_transform.o dce100_hw_sequencer.o dce100_resource.o dce110_compressor.o dce110_hw_sequencer.o dce110_mem_input_v.o dce110_opp_csc_v.o dce110_opp_regamma_v.o dce110_opp_v.o dce110_resource.o dce110_timing_generator.o dce110_timing_generator_v.o dce110_transform_v.o dce112_compressor.o dce112_hw_sequencer.o dce112_resource.o dce120_hw_sequencer.o dce120_resource.o dce120_timing_generator.o dce80_hw_sequencer.o dce80_resource.o dce80_timing_generator.o clk_mgr.o dce_clk_mgr.o dce110_clk_mgr.o dce112_clk_mgr.o dce120_clk_mgr.o rv1_clk_mgr.o rv1_clk_mgr_vbios_smu.o rv2_clk_mgr.o dcn10_cm_common.o dcn10_dpp.o dcn10_dpp_cm.o dcn10_dpp_dscl.o dcn10_hubbub.o dcn10_hubp.o dcn10_hw_sequencer.o dcn10_hw_sequencer_debug.o dcn10_init.o dcn10_ipp.o dcn10_link_encoder.o dcn10_mpc.o dcn10_opp.o dcn10_optc.o dcn10_resource.o dcn10_stream_encoder.o dcn20_dccg.o dcn20_dpp_cm.o dcn20_dpp.o dcn20_dsc.o dcn20_dwb_scl.o dcn20_dwb.o dcn20_hubbub.o dcn20_hubp.o dcn20_hwseq.o dcn20_init.o dcn20_link_encoder.o dcn20_mmhubbub.o dcn20_mpc.o dcn20_opp.o dcn20_optc.o dcn20_resource.o dcn20_stream_encoder.o dcn20_vmid.o display_rq_dlg_calc_20v2.o display_mode_vba_20v2.o dcn21_hubbub.o dcn21_hubp.o dcn21_hwseq.o dcn21_init.o dcn21_link_encoder.o dcn21_resource.o dc_vm_helper.o dcn20_clk_mgr.o rn_clk_mgr.o rn_clk_mgr_vbios_smu.o rc_calc.o rc_calc_dpi.o dc_dsc.o display_mode_lib.o display_mode_vba.o display_mode_vba_20.o display_mode_vba_21.o display_rq_dlg_helpers.o display_rq_dlg_calc_20.o display_rq_dlg_calc_21.o dml_common_defs.o dml1_display_rq_dlg_calc.o gpio_base.o gpio_service.o hw_ddc.o hw_factory.o hw_generic.o hw_gpio.o hw_hpd.o hw_translate.o hw_factory_dce110.o hw_factory_dce120.o hw_factory_dce80.o hw_factory_dcn10.o hw_factory_dcn20.o hw_factory_dcn21.o hw_factory_diag.o hw_translate_dce110.o hw_translate_dce120.o hw_translate_dce80.o hw_translate_dcn10.o hw_translate_dcn20.o hw_translate_dcn21.o hw_translate_diag.o irq_service.o irq_service_dce110.o irq_service_dce120.o irq_service_dce80.o irq_service_dcn10.o irq_service_dcn20.o irq_service_dcn21.o virtual_link_encoder.o virtual_stream_encoder.o color_gamma.o freesync.o info_packet.o power_helpers.o dc_helper.o dc_dmub_srv.o dmub_dcn20.o dmub_dcn21.o dmub_reg.o dmub_srv.o amdgpu_acpi.o amdgpu_atpx_handler.o dcn_calc_auto.o dcn_calc_math.o dcn_calcs.o amd_powerplay.o amdgpu_smu.o arcturus_ppt.o common_baco.o ci_smumgr.o ci_baco.o fiji_smumgr.o fiji_baco.o hardwaremanager.o hwmgr.o iceland_smumgr.o navi10_ppt.o renoir_ppt.o polaris10_smumgr.o polaris_baco.o pp_overdriver.o pp_psm.o ppatomctrl.o ppatomfwctrl.o pppcielanes.o process_pptables_v1_0.o processpptables.o smu7_baco.o smu7_clockpowergating.o smu7_hwmgr.o smu7_powertune.o smu7_smumgr.o smu7_thermal.o smu8_hwmgr.o smu8_smumgr.o smu9_baco.o smu9_smumgr.o smu10_hwmgr.o smu10_smumgr.o smu_v11_0.o smu_v11_0_i2c.o smu_v12_0.o smu_helper.o smumgr.o tonga_baco.o tonga_smumgr.o vega10_baco.o vega10_hwmgr.o vega10_powertune.o vega10_processpptables.o vega10_smumgr.o vega10_thermal.o vega12_baco.o vega12_hwmgr.o vega12_processpptables.o vega12_smumgr.o vega12_thermal.o vega20_baco.o vega20_hwmgr.o vega20_powertune.o vega20_ppt.o vega20_processpptables.o vega20_smumgr.o vega20_thermal.o vegam_smumgr.o opt_drm.h opt_vm.h opt_compat.h opt_syscons.h opt_acpi.h opt_global.h vnode_if.h vnode_if_newproto.h vnode_if_typedef.h device_if.h bus_if.h pci_if.h pci_iov_if.h device_if.h iicbus_if.h
===> radeon (clean)
rm -f radeonkms.ko.full radeonkms.ko.debug export_syms machine x86 radeonkms.ko radeonkms.kld atom.o atombios_crtc.o atombios_dp.o atombios_encoders.o atombios_i2c.o btc_dpm.o cayman_blit_shaders.o ci_dpm.o ci_smc.o cik.o cik_blit_shaders.o cik_sdma.o cypress_dpm.o dce3_1_afmt.o dce6_afmt.o evergreen.o evergreen_blit_shaders.o evergreen_cs.o evergreen_dma.o evergreen_hdmi.o kv_dpm.o kv_smc.o ni.o ni_dma.o ni_dpm.o r100.o r200.o r300.o r420.o r520.o r600.o r600_blit_shaders.o r600_cs.o r600_dma.o r600_dpm.o r600_hdmi.o radeon_agp.o radeon_asic.o radeon_atombios.o radeon_audio.o radeon_benchmark.o radeon_bios.o radeon_clocks.o radeon_combios.o radeon_connectors.o radeon_cs.o radeon_cursor.o radeon_device.o radeon_display.o radeon_dp_auxch.o radeon_dp_mst.o radeon_drv.o radeon_encoders.o radeon_fb.o radeon_fence.o radeon_freebsd.o radeon_gart.o radeon_gem.o radeon_i2c.o radeon_ib.o radeon_irq_kms.o radeon_kms.o radeon_legacy_crtc.o radeon_legacy_encoders.o radeon_legacy_tv.o radeon_object.o radeon_pm.o radeon_prime.o radeon_ring.o radeon_sa.o radeon_semaphore.o radeon_sync.o radeon_test.o radeon_trace_points.o radeon_ttm.o radeon_ucode.o radeon_uvd.o radeon_vce.o radeon_vm.o rs400.o rs600.o rs690.o rs780_dpm.o rv515.o rv6xx_dpm.o rv730_dpm.o rv740_dpm.o rv770.o rv770_dma.o rv770_dpm.o rv770_smc.o si.o si_blit_shaders.o si_dma.o si_dpm.o si_smc.o sumo_dpm.o sumo_smc.o trinity_dpm.o trinity_smc.o uvd_v1_0.o uvd_v2_2.o uvd_v3_1.o uvd_v4_2.o vce_v1_0.o vce_v2_0.o radeon_acpi.o radeon_atpx_handler.o opt_acpi.h opt_drm.h opt_vm.h opt_compat.h opt_syscons.h opt_global.h vnode_if.h vnode_if_newproto.h vnode_if_typedef.h device_if.h bus_if.h pci_if.h pci_iov_if.h device_if.h iicbus_if.h
===> i915 (clean)
rm -f i915kms.ko.full i915kms.ko.debug export_syms machine x86 i915kms.ko i915kms.kld i915_active.o i915_buddy.o i915_cmd_parser.o i915_drv.o i915_getparam.o i915_gem.o i915_gem_client_blt.o i915_gem_evict.o i915_gem_fence_reg.o i915_gem_gtt.o i915_gem_object_blt.o i915_globals.o i915_irq.o i915_memcpy.o i915_mm.o i915_params.o i915_pci.o i915_query.o i915_request.o i915_scatterlist.o i915_scheduler.o i915_suspend.o i915_sw_fence.o i915_sw_fence_work.o i915_switcheroo.o i915_syncmap.o i915_sysfs.o i915_trace_points.o i915_user_extensions.o i915_vgpu.o i915_vma.o intel_acpi.o intel_atomic.o intel_atomic_plane.o intel_audio.o intel_bw.o intel_bios.o intel_cdclk.o intel_color.o intel_combo_phy.o intel_connector.o intel_csr.o intel_device_info.o intel_display.o intel_display_power.o intel_dpio_phy.o intel_dpll_mgr.o intel_fbc.o intel_fifo_underrun.o intel_freebsd.o intel_frontbuffer.o intel_hdcp.o intel_hotplug.o intel_memory_region.o intel_opregion.o intel_overlay.o intel_pch.o intel_pm.o intel_psr.o intel_quirks.o intel_region_lmem.o intel_runtime_pm.o intel_sideband.o intel_sprite.o intel_uncore.o i915_utils.o intel_wakeref.o intel_wopcm.o dvo_ch7017.o dvo_ch7xxx.o dvo_ivch.o dvo_ns2501.o dvo_sil164.o dvo_tfp410.o icl_dsi.o intel_crt.o intel_ddi.o intel_dp.o intel_dp_aux_backlight.o intel_dp_link_training.o intel_dp_mst.o intel_dsi.o intel_dsi_dcs_backlight.o intel_dsi_vbt.o intel_dsb.o intel_dvo.o intel_gmbus.o intel_hdmi.o intel_lspcon.o intel_lvds.o intel_panel.o intel_sdvo.o intel_tc.o intel_tv.o intel_vdsc.o intel_vga.o vlv_dsi.o vlv_dsi_pll.o debugfs_engines.o debugfs_gt.o debugfs_gt_pm.o gen6_ppgtt.o gen6_renderstate.o gen7_renderstate.o gen8_ppgtt.o gen8_renderstate.o gen9_renderstate.o intel_breadcrumbs.o intel_context.o intel_engine_cs.o intel_engine_heartbeat.o intel_engine_pm.o intel_engine_pool.o intel_engine_user.o intel_ggtt.o intel_gt.o intel_gt_irq.o intel_gt_pm.o intel_gt_pm_irq.o intel_gt_requests.o intel_gtt.o intel_llc.o intel_lrc.o intel_mocs.o intel_ppgtt.o intel_rc6.o intel_renderstate.o intel_reset.o intel_ring.o intel_ring_submission.o intel_rps.o intel_sseu.o intel_timeline.o intel_workarounds.o intel_guc.o intel_guc_ads.o intel_guc_ct.o intel_guc_fw.o intel_guc_log.o intel_guc_submission.o intel_huc.o intel_huc_fw.o intel_uc.o intel_uc_fw.o i915_gem_busy.o i915_gem_clflush.o i915_gem_context.o i915_gem_domain.o i915_gem_dmabuf.o i915_gem_execbuffer.o i915_gem_fence.o i915_gem_internal.o i915_gem_lmem.o i915_gem_mman.o i915_gem_object.o i915_gem_pages.o i915_gem_phys.o i915_gem_pm.o i915_gem_region.o i915_gem_shmem.o i915_gem_shrinker.o i915_gem_stolen.o i915_gem_throttle.o i915_gem_tiling.o i915_gem_userptr.o i915_gem_wait.o i915_oa_bdw.o i915_oa_cflgt3.o i915_oa_glk.o i915_oa_kblgt2.o i915_oa_sklgt3.o i915_oa_bxt.o i915_oa_chv.o i915_oa_hsw.o i915_oa_kblgt3.o i915_oa_sklgt4.o i915_oa_cflgt2.o i915_oa_cnl.o i915_oa_icl.o i915_oa_sklgt2.o i915_oa_tgl.o i915_ioc32.o intel_fbdev.o i915_gpu_error.o opt_acpi.h opt_compat.h opt_drm.h opt_syscons.h opt_global.h vnode_if.h vnode_if_newproto.h vnode_if_typedef.h acpi_if.h bus_if.h fb_if.h device_if.h pci_if.h pci_iov_if.h
%
 
I don't know about you, but I only have a bunch of crap (pens, USB sticks, lighters) lying between my keyboard and monitor.
But what if you mirror your displays, and sit turned around, using your computer only via a mirror on a wall opposite of the monitor?

It could apply then. :)
 
Back
Top