V2 EPIA compilation problem

Dave Reader dave at undone.org.uk
Mon Jan 12 09:22:01 CET 2004


Hi,

Having built V1 for epia, I wanted to try V2.

I'm hitting the following problem with romcc segfaulting when trying to
build.

The buildhost is Debian Stable on a P4 machine. I have upgraded binutils
to 2.14.90 & gcc to 3.3 in case the problem lie there, but i still have
this problem.

I've seperated out the gcc options show below for readability.

What am I doing wrong?

Thanks,
d.


dave at dr:~/LinuxBIOS/freebios2/targets/via/epia/epia$ make
if (cd normal; \
        make linuxbios.rom)\
then true; else exit 1; fi;
make[1]: Entering directory
`/home/dave/LinuxBIOS/freebios2/targets/via/epia/epia/normal'
cp /home/dave/LinuxBIOS/freebios2/src/arch/i386/config/crt0.base crt0.S
gcc-3.3 -no-gcc -x assembler-with-cpp 
 -DASSEMBLY -E
 -I/home/dave/LinuxBIOS/freebios2/src 
 -D__ROMCC__=0 
 -D__ROMCC_MINOR__=37
 -I/home/dave/LinuxBIOS/freebios2/src/include
 -I/home/dave/LinuxBIOS/freebios2/src/arch/i386/include
 -I/usr/lib/gcc-lib/i486-linux/3.3.3/include -DARCH='i386' -Di586='1'
 -Di686='1' 
 -DCPU_FIXUP='1' 
 -DCROSS_COMPILE 
 -DCC='gcc-3.3' 
 -DHOSTCC='gcc'
 -DOBJCOPY='objcopy' 
 -DLINUXBIOS_VERSION='1.1.5'
 -DLINUXBIOS_EXTRA_VERSION='.0Normal' 
 -DLINUXBIOS_BUILD='Mon Jan 12 14:23:13 GMT 2004'
 -DLINUXBIOS_COMPILE_TIME='14:23:13'
 -DLINUXBIOS_COMPILE_BY='dave' 
 -DLINUXBIOS_COMPILE_HOST='dr'
 -DLINUXBIOS_COMPILE_DOMAIN 
 -DLINUXBIOS_COMPILER='gcc version 3.3.3 20031206 (prerelease) (Debian SSP - skx at debian.org)'
 -DLINUXBIOS_LINKER='GNU ld version 2.14.90.0.7 20031029 Debian GNU/Linux'
 -DLINUXBIOS_ASSEMBLER='GNU assembler version 2.14.90.0.7 (i386-linux) using BFD version 2.14.90.0.7 20031029 Debian GNU/Linux'
 -DCONFIG_CHIP_CONFIGURE='1' 
 -DCONFIG_USE_INIT='0'
 -DHAVE_FALLBACK_BOOT='1'
 -DUSE_FALLBACK_IMAGE='0' 
 -DFALLBACK_SIZE='0x20000' 
 -DROM_SIZE='0x40000'
 -DROM_IMAGE_SIZE='0x10000' 
 -DROM_SECTION_SIZE='0x20000'
 -DROM_SECTION_OFFSET='0x20000' 
 -DPAYLOAD_SIZE='0x10000'
 -D_ROMBASE='0xffff0000' 
 -D_RESET='0xffff0000'
 -D_EXCEPTION_VECTORS='0xffff0100' 
 -DSTACK_SIZE='0x2000'
 -DHEAP_SIZE='0x4000' 
 -D_RAMBASE='0x4000' 
 -DXIP_ROM_BASE='0xffff0000'
 -DXIP_ROM_SIZE='0x10000' 
 -DCONFIG_COMPRESS='1' 
 -DCONFIG_UNCOMPRESSED='0'
 -DHAVE_OPTION_TABLE='1' 
 -DUSE_OPTION_TABLE='0'
 -DCRT0='/home/dave/LinuxBIOS/freebios2/src/arch/i386/config/crt0.base'
 -DDEBUG='1' 
 -DCONFIG_CONSOLE_VGA='0' 
 -DCONFIG_CONSOLE_LOGBUF='0'
 -DCONFIG_CONSOLE_SROM='0' 
 -DCONFIG_CONSOLE_SERIAL8250='1'
 -DDEFAULT_CONSOLE_LOGLEVEL='7' 
 -DMAXIMUM_CONSOLE_LOGLEVEL='7'
 -DTTYS0_BASE='0x3f8' 
 -DTTYS0_BAUD='19200' 
 -DTTYS0_LCS='0x3'
 -DMAINBOARD='/home/dave/LinuxBIOS/freebios2/src/mainboard/via/epia'
 -DMAINBOARD_PART_NUMBER='epia' 
 -DMAINBOARD_VENDOR='via'
 -DCONFIG_KEYBOARD='1' 
 -DCONFIG_LEGACY_VGABIOS='0' 
 -DCONFIG_SMP='0'
 -DCONFIG_MAX_CPUS='1' 
 -DCONFIG_MAX_PHYSICAL_CPUS='1'
 -DCONFIG_LOGICAL_CPUS='0' 
 -DHAVE_MP_TABLE='0' 
 -DCONFIG_IDE_STREAM='0'
 -DCONFIG_ROM_STREAM='1' 
 -DCONFIG_ROM_STREAM_START='0xfffe0000'
 -DHAVE_PIRQ_TABLE='1' 
 -DIRQ_SLOT_COUNT='5' 
 -DIDE_BOOT_DRIVE='0'
 -DIDE_OFFSET='0' 
 -DHAVE_HARD_RESET='1' 
 -DMAX_REBOOT_CNT='3'
 -DINTEL_PPRO_MTRR='1' 
 -DCONFIG_UDELAY_TSC='0' 
 -DFAKE_SPDROM='0'
/home/dave/LinuxBIOS/freebios2/src/mainboard/via/epia/auto.c > ./auto.E
gcc -g -Os -Wall -DVERSION='"0.37"' -DRELEASE_DATE='"21 October 2003"'
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c -o romcc
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:20: warning: #warning
"FIXME boundary cases with small types in larger registers"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:21: warning: #warning
"FIXME give clear error messages about unused variables"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:22: warning: #warning
"FIXME properly handle multi dimensional arrays"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:208: warning: #warning
"FIXME this assumes 32bit x86 is the destination"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:3679: warning: #warning
"FIXME multiple #elif and #else in an #if do not work properly"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:3782: warning: #warning
"FIXME macros with arguments not supported"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:3992: warning: #warning
"FIXME do not hardcode the include paths"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:4741: warning: #warning
"FIXME can I just cast all operands like this?"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:5018: warning: #warning
"CHECK_ME is this the right place to transform arrays to pointers?"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:7947: warning: #warning
"Extend relational exprs to work on more than arithmetic types"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:7990: warning: #warning
"Extend equality exprs to work on more than arithmetic types"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:8444: warning: #warning
"FIXME implement a more general excess branch elimination"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:9177: warning: #warning
"FIXME implement bitfields to reduce register usage"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:9639: warning: #warning
"FIXME more consistent initializer handling (where should eval_const_expr
go?"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:12902: warning: #warning
"FIXME is this O(N^2) algorithm bad?"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:13931: warning: #warning
"FIXME should this be a merge instead of a splice?"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:14481: warning: #warning
"WISHLIST visit just those blocks that need it *"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:14534: warning: #warning
"WISHLIST recalculate all affected instructions colors"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:14672: warning: #warning
"FIXME ignore cases that cannot be fixed (a definition followed by a use)"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:14708: warning: #warning
"FIXME should I call find_constrained_def here only if no previous
constrained def was found?"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:14752: warning: #warning
"WISHLIST implement live range splitting..."
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:15948: warning: #warning
"FIXME see if simplify does anything bad"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:16005: warning: #warning
"FIXME constant propogate through expressions with multiple left hand
sides"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:16069: warning: #warning
"FIXME do I need to do something here?"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:16605: warning: #warning
"WISHLIST implement single use constants (least possible register
pressure)"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:16606: warning: #warning
"WISHLIST implement induction variable elimination"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:16789: warning: #warning
"WISHLIST figure out how to use pinsrw and pextrw to better use extended
regs"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:17339: warning: #warning
"FIXME force types smaller (if legal) before I get here"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:19154: warning: #warning
"FIXME I have observed instructions between the test and branch
instructions"
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c: In function
`mask_uint':
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:4115: warning: left
shift count >= width of type
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c: At top level:
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:4126: warning: `short_type'
defined but not used
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:4138: warning: `void_func_type'
defined but not used
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:5829: warning: `bit_count'
defined but not used
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:6058: warning: `check_lhs'
defined but not used
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:9525: warning: `isdecl_specifier'
defined but not used
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:12775: warning: `unin_triple'
defined but not used
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:12784: warning: `unout_triple'
defined but not used
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:13828: warning: `different_colored'
defined but not used
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:14196: warning: `verify_graph_ins'
defined but not used
/home/dave/LinuxBIOS/freebios2/util/romcc/romcc.c:19443: warning: `print_tokens'
defined but not used
./romcc   -O -mcpu=c3 ./auto.E 
make[1]: *** [auto.inc] Segmentation fault
make[1]: *** Deleting file `auto.inc'
make[1]: Leaving directory
`/home/dave/LinuxBIOS/freebios2/targets/via/epia/epia/normal'
make: *** [normal-rom] Error 1
dave at dr:~/LinuxBIOS/freebios2/targets/via/epia/epia$ 






More information about the coreboot mailing list