Bug 230194 - [powerpc] cross-compiling GENERIC64 fails if trying to use kernel-toolchain instead of full buildworld.
Summary: [powerpc] cross-compiling GENERIC64 fails if trying to use kernel-toolchain i...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: powerpc Any
: --- Affects Some People
Assignee: Justin Hibbits
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-30 18:19 UTC by Sean Bruno
Modified: 2018-07-30 18:43 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Bruno freebsd_committer freebsd_triage 2018-07-30 18:19:58 UTC
Trying to shortcut a full buildworld this morning and did a kernel-toolchain build.  It looks like this is insufficient to build a kernel.


--------------------------------------------------------------
>>> stage 3.1: building everything
--------------------------------------------------------------
ERROR: ctfconvert: t4fw_cfg.c: Couldn't read ehdr: Invalid argument
ERROR: ctfconvert: t5fw_cfg.c: Couldn't read ehdr: Invalid argument
ERROR: ctfconvert: t6fw_cfg.c: Couldn't read ehdr: Invalid argument
ERROR: ctfconvert: file does not contain dwarf type data (try compiling with -g)
In file included from /home/sbruno/fbsd_head/sys/dev/ipmi/ipmi_opal.c:45:
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:38:24: error: ofw_bus_if.h: No such file or directory
cc1: warnings being treated as errors
In file included from /home/sbruno/fbsd_head/sys/dev/ipmi/ipmi_opal.c:45:
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h: In function 'ofw_bus_get_compat':
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:44: warning: implicit declaration of function 'OFW_BUS_GET_COMPAT'
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:44: warning: nested extern declaration of 'OFW_BUS_GET_COMPAT' [-Wnested-externs]
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:44: warning: return makes pointer from integer without a cast
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h: In function 'ofw_bus_get_model':
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:51: warning: implicit declaration of function 'OFW_BUS_GET_MODEL'
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:51: warning: nested extern declaration of 'OFW_BUS_GET_MODEL' [-Wnested-externs]
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:51: warning: return makes pointer from integer without a cast
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h: In function 'ofw_bus_get_name':
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:58: warning: implicit declaration of function 'OFW_BUS_GET_NAME'
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:58: warning: nested extern declaration of 'OFW_BUS_GET_NAME' [-Wnested-externs]
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:58: warning: return makes pointer from integer without a cast
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h: In function 'ofw_bus_get_node':
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:65: warning: implicit declaration of function 'OFW_BUS_GET_NODE'
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:65: warning: nested extern declaration of 'OFW_BUS_GET_NODE' [-Wnested-externs]
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h: In function 'ofw_bus_get_type':
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:72: warning: implicit declaration of function 'OFW_BUS_GET_TYPE'
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:72: warning: nested extern declaration of 'OFW_BUS_GET_TYPE' [-Wnested-externs]
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:72: warning: return makes pointer from integer without a cast
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h: In function 'ofw_bus_map_intr':
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:78: warning: implicit declaration of function 'OFW_BUS_MAP_INTR'
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus.h:78: warning: nested extern declaration of 'OFW_BUS_MAP_INTR' [-Wnested-externs]
In file included from /home/sbruno/fbsd_head/sys/dev/ipmi/ipmi_opal.c:46:
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus_subr.h: At top level:
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus_subr.h:73: warning: 'struct ofw_bus_devinfo' declared inside parameter list
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus_subr.h:73: warning: its scope is only this definition or declaration, which is probably not what you want
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus_subr.h:74: warning: 'struct ofw_bus_devinfo' declared inside parameter list
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus_subr.h:76: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ofw_bus_gen_get_compat'
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus_subr.h:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ofw_bus_gen_get_model'
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus_subr.h:78: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ofw_bus_gen_get_name'
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus_subr.h:79: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ofw_bus_gen_get_node'
/home/sbruno/fbsd_head/sys/dev/ofw/ofw_bus_subr.h:80: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ofw_bus_gen_get_type'
--- ipmi_opal.o ---
*** [ipmi_opal.o] Error code 1
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-07-30 18:29:26 UTC
A commit references this bug:

Author: jhibbits
Date: Mon Jul 30 18:29:20 UTC 2018
New revision: 336925
URL: https://svnweb.freebsd.org/changeset/base/336925

Log:
  Add ofw_bus_if.h to the SRCS list for ipmi module on powerpc64

  PR:		230194
  Reported by:	sbruno

Changes:
  head/sys/modules/ipmi/Makefile
Comment 2 Justin Hibbits freebsd_committer freebsd_triage 2018-07-30 18:31:38 UTC
Sorry about that.  Should be fixed now.
Comment 3 Sean Bruno freebsd_committer freebsd_triage 2018-07-30 18:43:08 UTC
thanks.  This definitely fix0red things.