Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile kernel menuconfig #1

Open
chaimleib opened this issue Jan 8, 2021 · 0 comments
Open

Cannot compile kernel menuconfig #1

chaimleib opened this issue Jan 8, 2021 · 0 comments

Comments

@chaimleib
Copy link
Owner

The instructions to compile Linux do not work yet. I get a linker error.

make mrproper
make -j8 ARCH=$LFS_ARCH CROSS_COMPILE=$LFS_TGT- menuconfig

Output:

  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/confdata.o
  LEX     scripts/kconfig/lexer.lex.c
  HOSTCC  scripts/kconfig/expr.o
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  UPD     scripts/kconfig/mconf-cfg
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/mconf.o
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
In file included from scripts/kconfig/mconf.c:23:
In file included from scripts/kconfig/lxdialog/dialog.h:8:
In file included from /Volumes/lfsdisk/cross-tools/include/sys/types.h:70:
/Volumes/lfsdisk/cross-tools/include/endian.h:26:25: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                       ~ ~~~~~~^~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:26:25: note: place parentheses around the '&'
      expression to silence this warning
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                               ^
                         (            )
/Volumes/lfsdisk/cross-tools/include/endian.h:26:41: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                       ~ ~~~~~~^~~~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:26:41: note: place parentheses around the '&'
      expression to silence this warning
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                               ^
                                         (              )
/Volumes/lfsdisk/cross-tools/include/endian.h:31:23: warning: operator '<<' has lower precedence
      than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
               ~~~~~~~~~~~~~~^~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:31:23: note: place parentheses around the '+'
      expression to silence this warning
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
                             ^
               (                  )
In file included from scripts/kconfig/mconf.c:23:
In file included from scripts/kconfig/lxdialog/dialog.h:19:
In file included from /Volumes/lfsdisk/cross-tools/include/ncursesw/ncurses.h:211:
/Volumes/lfsdisk/cross-tools/include/stddef.h:20:9: warning: 'offsetof' macro redefined
      [-Wmacro-redefined]
#define offsetof(type, member) __builtin_offsetof(type, member)
        ^
scripts/kconfig/list.h:10:9: note: previous definition is here
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
        ^
In file included from scripts/kconfig/lxdialog/checklist.c:11:
In file included from scripts/kconfig/lxdialog/dialog.h:8:
In file included from /Volumes/lfsdisk/cross-tools/include/sys/types.h:70:
/Volumes/lfsdisk/cross-tools/include/endian.h:26:25: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                       ~ ~~~~~~^~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:26:25: note: place parentheses around the '&'
      expression to silence this warning
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                               ^
                         (            )
/Volumes/lfsdisk/cross-tools/include/endian.h:26:41: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                       ~ ~~~~~~^~~~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:26:41: note: place parentheses around the '&'
      expression to silence this warning
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                               ^
                                         (              )
/Volumes/lfsdisk/cross-tools/include/endian.h:31:23: warning: operator '<<' has lower precedence
      than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
               ~~~~~~~~~~~~~~^~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:31:23: note: place parentheses around the '+'
      expression to silence this warning
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
                             ^
               (                  )
  HOSTCC  scripts/kconfig/lxdialog/inputbox.o
In file included from scripts/kconfig/lxdialog/inputbox.c:9:
In file included from scripts/kconfig/lxdialog/dialog.h:8:
In file included from /Volumes/lfsdisk/cross-tools/include/sys/types.h:70:
/Volumes/lfsdisk/cross-tools/include/endian.h:26:25: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                       ~ ~~~~~~^~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:26:25: note: place parentheses around the '&'
      expression to silence this warning
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                               ^
                         (            )
/Volumes/lfsdisk/cross-tools/include/endian.h:26:41: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                       ~ ~~~~~~^~~~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:26:41: note: place parentheses around the '&'
      expression to silence this warning
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                               ^
                                         (              )
/Volumes/lfsdisk/cross-tools/include/endian.h:31:23: warning: operator '<<' has lower precedence
      than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
               ~~~~~~~~~~~~~~^~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:31:23: note: place parentheses around the '+'
      expression to silence this warning
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
                             ^
               (                  )
3 warnings generated.
  HOSTCC  scripts/kconfig/lxdialog/menubox.o
  HOSTCC  scripts/kconfig/lxdialog/textbox.o
In file included from scripts/kconfig/lxdialog/menubox.c:46:
In file included from scripts/kconfig/lxdialog/dialog.h:8:
In file included from /Volumes/lfsdisk/cross-tools/include/sys/types.h:70:
/Volumes/lfsdisk/cross-tools/include/endian.h:26:25: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                       ~ ~~~~~~^~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:26:25: note: place parentheses around the '&'
      expression to silence this warning
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                               ^
                         (            )
/Volumes/lfsdisk/cross-tools/include/endian.h:26:41: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                       ~ ~~~~~~^~~~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:26:41: note: place parentheses around the '&'
      expression to silence this warning
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                               ^
                                         (              )
/Volumes/lfsdisk/cross-tools/include/endian.h:31:23: warning: operator '<<' has lower precedence
      than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
        return _In file included from scripts/kconfig/lxdialog/textbox.c:9:
In file included from scripts/kconfig/lxdialog/dialog.h:8:
In file included from /Volumes/lfsdisk/cross-tools/include/sys/types.h:70:
/Volumes/lfsdisk/cross-tools/include/endian.h:26:25: warning: '&' within '|'
_bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);      [-Wbitwise-op-parentheses]

               ~~~~~~~~~~~~~~^~~~~~~
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                       ~ ~~~~~~^~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:31:23: note: place parentheses around the '+'
      expression to silence this warning
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
                             ^
               (                  )
/Volumes/lfsdisk/cross-tools/include/endian.h:26:25: note: place parentheses around the '&'
      expression to silence this warning
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                               ^
                         (            )
/Volumes/lfsdisk/cross-tools/include/endian.h:26:41: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                       ~ ~~~~~~^~~~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:26:41: note: place parentheses around the '&'
      expression to silence this warning
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                               ^
                                         (              )
/Volumes/lfsdisk/cross-tools/include/endian.h:31:23: warning: operator '<<' has lower precedence
      than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
               ~~~~~~~~~~~~~~^~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:31:23: note: place parentheses around the '+'
      expression to silence this warning
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
                             ^
               (                  )
3 warnings generated.
  HOSTCC  scripts/kconfig/lxdialog/util.o
  HOSTCC  scripts/kconfig/lxdialog/yesno.o
4 warnings generated.
In file included from scripts/kconfig/lxdialog/util.c:11:
In file included from scripts/kconfig/lxdialog/dialog.h:8:
In file included from /Volumes/lfsdisk/cross-tools/include/sys/types.h:70:
/Volumes/lfsdisk/cross-tools/include/endian.h:26:25: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                       ~ ~~~~~~^~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:26:25: note: place parentheses around the '&'
      expression to silence this warning
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                               ^
                         (            )
/Volumes/lfsdisk/cross-tools/include/endian.h:26:41: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                       ~ ~~~~~~^~~~~~~~~In file included from
scripts/kconfig/lxdialog/yesno.c:9:
In file included from scripts/kconfig/lxdialog/dialog.h:8:
In file included from /Volumes/lfsdisk/cross-tools/include/sys/types.h:70:
/Volumes/lfsdisk/cross-tools/include/endian.h:26:25: warning: '&' within '|'
      [-Wbitwise-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;/Volumes/lfsdisk/cross-tools/include/endian.h
:26                       ~ ~~~~~~^~~~~~~:
41: note: place parentheses around the '&'
      expression to silence this warning
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                               ^
                                         (              )
/Volumes/lfsdisk/cross-tools/include/endian.h:26:25: note: place parentheses around the '&'
      expression to silence this warning
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                               ^
                         (            )
/Volumes/lfsdisk/cross-tools/include/endian.h:26:41:/Volumes/lfsdisk/cross-tools/include/endian.h :31:warning23: : '&' warningwithin:  '|'
operator       [-Wbitwise-op-parentheses]'<<'
has lower precedence
      than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                       ~ ~~~~~~^~~~~~~~~
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
               ~~~~~~~~~~~~~~^~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:26:41: note: place parentheses around the /Volumes/lfsdisk/cross-tools/include/endian.h'&':
31      :expression23 :to  silence notethis:  warningplace
parentheses around the '+'
      expression to silence this warning
        return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
                                               ^
                                         (              )
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
                             ^
               (                  )
/Volumes/lfsdisk/cross-tools/include/endian.h:31:23: warning: operator '<<' has lower precedence
      than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
               ~~~~~~~~~~~~~~^~~~~~~
/Volumes/lfsdisk/cross-tools/include/endian.h:31:23: note: place parentheses around the '+'
      expression to silence this warning
        return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
                             ^
               (                  )
3 warnings generated.
3 warnings generated.
3 warnings generated.
3 warnings generated.
  HOSTLD  scripts/kconfig/mconf
Undefined symbols for architecture x86_64:
  "_stderr", referenced from:
      _main.cold.1 in mconf.o
      _handle_exit.cold.1 in mconf.o
      _handle_exit.cold.2 in mconf.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [scripts/kconfig/mconf] Error 1
make[1]: *** [menuconfig] Error 2
make: *** [__sub-make] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant