On FreeBSD platform, "$ make menuconfig" bombs pretty hard. Part of the problem seems like bash vs sh, but I doubt if that's the whole of it.
Is FreeBSD within consideration of working build platforms?
$ make menuconfig make: "/Makefile" line 33: Need an operator make: "/Makefile" line 34: Could not find .xcompile make: "/Makefile" line 59: Variable/Value missing from "export" make: "/Makefile" line 65: Missing dependency operator make: "/Makefile" line 66: Missing dependency operator make: "/Makefile" line 68: Need an operator make: "/Makefile" line 69: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 10: Missing dependency operator make: "util/kconfig/util/kconfig/Makefile" line 12: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 85: Missing dependency operator make: "util/kconfig/util/kconfig/Makefile" line 86: warning: duplicate script for target "ifeq" ignored make: "util/kconfig/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "util/kconfig/util/kconfig/Makefile" line 87: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 90: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 148: Missing dependency operator make: "util/kconfig/util/kconfig/Makefile" line 149: warning: duplicate script for target "ifeq" ignored make: "util/kconfig/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "util/kconfig/util/kconfig/Makefile" line 150: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 152: Missing dependency operator make: "util/kconfig/util/kconfig/Makefile" line 153: warning: duplicate script for target "ifeq" ignored make: "util/kconfig/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "util/kconfig/util/kconfig/Makefile" line 154: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 156: Missing dependency operator make: "util/kconfig/util/kconfig/Makefile" line 157: warning: duplicate script for target "ifeq" ignored make: "util/kconfig/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "util/kconfig/util/kconfig/Makefile" line 158: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 160: Missing dependency operator make: "util/kconfig/util/kconfig/Makefile" line 161: warning: duplicate script for target "ifeq" ignored make: "util/kconfig/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "util/kconfig/util/kconfig/Makefile" line 162: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 163: Missing dependency operator make: "util/kconfig/util/kconfig/Makefile" line 164: warning: duplicate script for target "ifeq" ignored make: "util/kconfig/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "util/kconfig/util/kconfig/Makefile" line 165: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 168: Missing dependency operator make: "util/kconfig/util/kconfig/Makefile" line 169: warning: duplicate script for target "ifeq" ignored make: "util/kconfig/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "util/kconfig/util/kconfig/Makefile" line 170: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 172: Missing dependency operator make: "util/kconfig/util/kconfig/Makefile" line 173: warning: duplicate script for target "ifeq" ignored make: "util/kconfig/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "util/kconfig/util/kconfig/Makefile" line 173: warning: duplicate script for target "(,1)" ignored make: "util/kconfig/util/kconfig/Makefile" line 169: warning: using previous script for "(,1)" defined here make: "util/kconfig/util/kconfig/Makefile" line 174: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 214: Missing dependency operator make: "util/kconfig/util/kconfig/Makefile" line 267: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 271: Missing dependency operator make: "util/kconfig/util/kconfig/Makefile" line 293: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 296: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 312: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 321: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 341: Need an operator make: "util/kconfig/util/kconfig/Makefile" line 374: warning: duplicate script for target "/%.moc" ignored make: "util/kconfig/util/kconfig/Makefile" line 304: warning: using previous script for "/%.moc" defined here make: "util/kconfig/util/kconfig/Makefile" line 376: warning: duplicate script for target "/lkc_defs.h" ignored make: "util/kconfig/util/kconfig/Makefile" line 307: warning: using previous script for "/lkc_defs.h" defined here make: "/Makefile" line 90: Missing dependency operator make: "/Makefile" line 92: Need an operator make: "/Makefile" line 93: Missing dependency operator make: "/Makefile" line 94: Missing dependency operator make: "/Makefile" line 96: Need an operator make: "/Makefile" line 97: Missing dependency operator make: "/Makefile" line 99: Need an operator make: "/Makefile" line 100: Need an operator make: "/Makefile" line 102: Missing dependency operator make: "/./Makefile.inc" line 28: Missing dependency operator make: "/./Makefile.inc" line 30: Missing dependency operator make: "/./Makefile.inc" line 32: Missing dependency operator make: "/./Makefile.inc" line 34: Need an operator make: "/./Makefile.inc" line 35: Missing dependency operator make: "/./Makefile.inc" line 36: Need an operator make: "/./Makefile.inc" line 37: Need an operator make: "/./Makefile.inc" line 38: Need an operator make: "/./Makefile.inc" line 39: Need an operator make: "/./Makefile.inc" line 44: Variable/Value missing from "export" make: "/./Makefile.inc" line 116: Missing dependency operator make: "/./Makefile.inc" line 118: Need an operator make: "/./Makefile.inc" line 119: Missing dependency operator make: "/./Makefile.inc" line 121: Need an operator make: "/./Makefile.inc" line 123: Missing dependency operator make: "/./Makefile.inc" line 125: Need an operator make: "/./Makefile.inc" line 136: Missing dependency operator make: "/./Makefile.inc" line 137: Missing dependency operator make: "/./Makefile.inc" line 139: Need an operator make: "/./Makefile.inc" line 140: Need an operator make: "/./Makefile.inc" line 149: Need an operator make: "/./Makefile.inc" line 158: Need an operator make: "/./Makefile.inc" line 178: Need an operator make: "/./Makefile.inc" line 204: Missing dependency operator make: "/./Makefile.inc" line 206: Need an operator make: "/./Makefile.inc" line 209: Missing dependency operator make: "/./Makefile.inc" line 211: Need an operator make: "/./Makefile.inc" line 213: Missing dependency operator make: "/./Makefile.inc" line 215: Need an operator make: "/./Makefile.inc" line 225: Missing dependency operator make: "/./Makefile.inc" line 227: Need an operator make: "/./Makefile.inc" line 276: Missing dependency operator make: "/./Makefile.inc" line 277: warning: duplicate script for target "ifeq" ignored make: "/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "/./Makefile.inc" line 278: Need an operator make: "/./Makefile.inc" line 279: Missing dependency operator make: "/./Makefile.inc" line 280: warning: duplicate script for target "ifeq" ignored make: "/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "/./Makefile.inc" line 281: Need an operator make: "/./Makefile.inc" line 448: Missing dependency operator make: "/./Makefile.inc" line 450: Need an operator make: "/./Makefile.inc" line 451: Missing dependency operator make: "/./Makefile.inc" line 453: Need an operator make: "/./Makefile.inc" line 454: Missing dependency operator make: "/./Makefile.inc" line 456: Need an operator make: "/./Makefile.inc" line 457: Missing dependency operator make: "/./Makefile.inc" line 459: Need an operator make: "/./Makefile.inc" line 463: Missing dependency operator make: "/./Makefile.inc" line 480: Need an operator make: "/./Makefile.inc" line 483: warning: duplicate script for target "/coreboot.pre1" ignored make: "/./Makefile.inc" line 479: warning: using previous script for "/coreboot.pre1" defined here make: "/./Makefile.inc" line 484: Need an operator make: "/./Makefile.inc" line 486: Missing dependency operator make: "/./Makefile.inc" line 487: Missing dependency operator make: "/./Makefile.inc" line 489: Need an operator make: "/./Makefile.inc" line 490: Missing dependency operator make: "/./Makefile.inc" line 492: Need an operator make: "/./Makefile.inc" line 493: Need an operator make: "/./Makefile.inc" line 495: Missing dependency operator make: "/./Makefile.inc" line 499: Need an operator make: "/./Makefile.inc" line 505: Missing dependency operator make: "/./Makefile.inc" line 506: warning: duplicate script for target "ifeq" ignored make: "/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "/./Makefile.inc" line 507: Need an operator make: "/./Makefile.inc" line 508: Missing dependency operator make: "/./Makefile.inc" line 511: Need an operator make: "/./Makefile.inc" line 512: Missing dependency operator make: "/./Makefile.inc" line 513: Missing dependency operator make: "/./Makefile.inc" line 514: warning: duplicate script for target "ifneq" ignored make: "/./Makefile.inc" line 510: warning: using previous script for "ifneq" defined here make: "/./Makefile.inc" line 515: warning: duplicate script for target "ifneq" ignored make: "/./Makefile.inc" line 510: warning: using previous script for "ifneq" defined here make: "/./Makefile.inc" line 516: Need an operator make: "/./Makefile.inc" line 517: Need an operator make: "/./Makefile.inc" line 518: Missing dependency operator make: "/./Makefile.inc" line 519: warning: duplicate script for target "ifeq" ignored make: "/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "/./Makefile.inc" line 519: warning: duplicate script for target "(,y)" ignored make: "/./Makefile.inc" line 506: warning: using previous script for "(,y)" defined here make: "/./Makefile.inc" line 523: warning: duplicate script for target "ifeq" ignored make: "/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "/./Makefile.inc" line 523: warning: duplicate script for target "(,y)" ignored make: "/./Makefile.inc" line 506: warning: using previous script for "(,y)" defined here make: "/./Makefile.inc" line 524: Need an operator make: "/./Makefile.inc" line 525: Missing dependency operator make: "/./Makefile.inc" line 526: warning: duplicate script for target "ifeq" ignored make: "/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "/./Makefile.inc" line 526: warning: duplicate script for target "(,y)" ignored make: "/./Makefile.inc" line 506: warning: using previous script for "(,y)" defined here make: "/./Makefile.inc" line 527: Need an operator make: "/./Makefile.inc" line 528: Missing dependency operator make: "/./Makefile.inc" line 529: warning: duplicate script for target "ifeq" ignored make: "/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "/./Makefile.inc" line 529: warning: duplicate script for target "(,y)" ignored make: "/./Makefile.inc" line 506: warning: using previous script for "(,y)" defined here make: "/./Makefile.inc" line 530: Need an operator make: "/./Makefile.inc" line 531: Missing dependency operator make: "/./Makefile.inc" line 532: warning: duplicate script for target "ifeq" ignored make: "/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "/./Makefile.inc" line 532: warning: duplicate script for target "(,y)" ignored make: "/./Makefile.inc" line 506: warning: using previous script for "(,y)" defined here make: "/./Makefile.inc" line 533: Need an operator make: "/./Makefile.inc" line 534: Missing dependency operator make: "/./Makefile.inc" line 535: Missing dependency operator make: "/./Makefile.inc" line 536: warning: duplicate script for target "ifeq" ignored make: "/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "/./Makefile.inc" line 536: warning: duplicate script for target "(,y)" ignored make: "/./Makefile.inc" line 506: warning: using previous script for "(,y)" defined here make: "/./Makefile.inc" line 537: warning: duplicate script for target "ifeq" ignored make: "/util/kconfig/Makefile" line 11: warning: using previous script for "ifeq" defined here make: "/./Makefile.inc" line 537: warning: duplicate script for target "(,y)" ignored make: "/./Makefile.inc" line 506: warning: using previous script for "(,y)" defined here make: "/./Makefile.inc" line 538: Need an operator make: "/./Makefile.inc" line 539: Need an operator make: "/./Makefile.inc" line 548: Missing dependency operator make: "/./Makefile.inc" line 550: Need an operator make: "/./Makefile.inc" line 551: Missing dependency operator make: "/./Makefile.inc" line 553: Need an operator make: "/Makefile" line 106: Need an operator make: "/Makefile" line 108: Could not find make: "/Makefile" line 110: Missing dependency operator make: "/Makefile" line 115: Missing dependency operator make: "/Makefile" line 117: Need an operator make: "/Makefile" line 131: Need an operator make: "/toolchain.inc" line 23: Missing dependency operator make: Unknown modifier ',' make: Unknown modifier ',' make: Unknown modifier ',' make: Unknown modifier ',' make: Unknown modifier ',' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: "/toolchain.inc" line 26: Missing dependency operator make: "/toolchain.inc" line 27: Need an operator make: "/toolchain.inc" line 28: Need an operator make: Unknown modifier ',' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: "/toolchain.inc" line 34: Need an operator make: Unknown modifier ',' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: Unknown modifier '/' make: "/toolchain.inc" line 39: Need an operator make: "/toolchain.inc" line 42: Missing dependency operator make: "/toolchain.inc" line 44: Missing dependency operator make: "/toolchain.inc" line 46: Need an operator make: "/toolchain.inc" line 49: Need an operator make: Unknown modifier ',' make: Unknown modifier '/' make: Unknown modifier '/' make: "/toolchain.inc" line 54: Need an operator make: "/toolchain.inc" line 90: Need an operator make: "/toolchain.inc" line 101: Need an operator make: "/toolchain.inc" line 112: Need an operator make: "/toolchain.inc" line 114: Need an operator make: "/Makefile" line 189: Need an operator make: "/Makefile" line 190: Missing dependency operator make: "/Makefile" line 191: Need an operator make: "/Makefile" line 192: Need an operator make: "/Makefile" line 195: Need an operator make: "/Makefile" line 198: Need an operator make: "/Makefile" line 205: Need an operator make: "/Makefile" line 212: Need an operator make: "/Makefile" line 217: Need an operator make: "/Makefile" line 218: Need an operator make: "/Makefile" line 222: Need an operator make: "/Makefile" line 223: Need an operator make: "/Makefile" line 224: Need an operator make: "/Makefile" line 229: Need an operator make: "/Makefile" line 232: Need an operator make: "/Makefile" line 245: Need an operator make: "/Makefile" line 247: Need an operator make: "/Makefile" line 248: Need an operator make: "/Makefile" line 249: Need an operator make: Fatal errors encountered -- cannot continue make: stopped
Am 28.06.2014 17:29, schrieb Beeblebrox:
On FreeBSD platform, "$ make menuconfig" bombs pretty hard. Part of the problem seems like bash vs sh, but I doubt if that's the whole of it.
Is FreeBSD within consideration of working build platforms?
The tree should be quite portable, even if I have to admit that it's been a while that I tested on Solaris, various BSDs, and Win32.
At least for me, portability is an asset, and I'll happily support portability improvement efforts.
That said,
$ make menuconfig
gnu make is a hard dependency.
If we stick to what _all_ makes can do (including some 386bsd make from the early 90s), I'd rather write build scripts and forgo make entirely.
Regards, Patrick
2014-06-28 17:29 GMT+02:00 Beeblebrox zaphod@berentweb.com:
On FreeBSD platform, "$ make menuconfig" bombs pretty hard. Part of the problem seems like bash vs sh, but I doubt if that's the whole of it.
Is FreeBSD within consideration of working build platforms?
I had no problems compiling on FreeBSD, however you need to replace make with gmake. Required ports/packages are gmake, flex, bison, vim (for xxd), and I'm sure I forgot one or two.
HTH,
Idwer
you need to replace make with gmake. Required ports/packages are gmake, flex, bison, vim
Yes, you are correct, I forget the make/gmake switch sometimes. I already have all needed ports on the system AFAIK. "$ gmake menuconfig" works, but a small adjustment may be necessary on some systems re GCC. Normally "$ gmake USE_GCC=any" should have worked but it did not. So I had to do /usr/local/bin > # ln -s gcc47 gcc && ln -s g++47 g++
The ncurses menu comes up now, although a bit strange looking. This is a flex-on-FreeBSD problem if I recall correctly. I have flex-2.5.39_1. $ which flex > /usr/local/bin/flex, this is flex from ports. flex from base (/usr/bin/flex) which is ancient was removed for testing but I got the same result.
Anyway, thanks for the help.
.config - coreboot configuration ┻ Mainboard ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ Mainboard @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@ Arrow keys navigate the menu. <Enter> selects submenus ---> (or empty ^@ submenus ----). Highlighted letters are hotkeys. Pressing <Y> includes, ^@ <N> excludes, <M> modularizes features. Press <Esc><Esc> to exit, <?> for ^@ Help, </> for Search. Legend: [*] built-in [ ] excluded <M> module < > ^@^@^@^^@^@^@^@@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^ Mainboard vendor (Emulation) ---> ^@ ^@^ Mainboard model (QEMU x86 i440fx/piix4 (aka qemu -M pc)) ---> ^@ ^@^ ROM chip size (256 KB) ---> ^@ ^@^ (123456789) SMBIOS Serial Number ^@ ^@^ (1.0) SMBIOS Version Number (NEW) ^@ ^@^ (Emulation) SMBIOS Manufacturer (NEW) ^@ ^@^ (QEMU x86 i440fx/piix4) SMBIOS Product name (NEW) ^@ ^@^@ ^@ ^@^@ ^@ ^@^@ ^@ ^@^@ ^@ ^@^@ ^@ ^@^@ ^@ ^@^@^@^^@^@^@^@@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@<Select>^@^@< Exit >^@^@< Help >^@^@< Save >^@^@< Load
^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^^