Skip to content

Instantly share code, notes, and snippets.

@dileks
Created April 12, 2011 08:38
Show Gist options
  • Select an option

  • Save dileks/915187 to your computer and use it in GitHub Desktop.

Select an option

Save dileks/915187 to your computer and use it in GitHub Desktop.
clang: error: unsupported option '-freg-struct-return'
$ clang --version
clang version 3.0 (https://github.com/lll-project/clang bd93bb8738e0313fe890e8159768a2dde250dc24)
Target: i386-pc-linux-gnu
Thread model: posix
$ LANG=C make CC='/opt/llvm/bin/clang -Wno-unused-arguments'
[: 1: Illegal number: 4.2.1
CC kernel/bounds.s
clang: error: unsupported option '-freg-struct-return'
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
$ LANG=C make CC=/opt/llvm/bin/clang KCFLAGS="-Wno-unused-arguments"
[: 1: Illegal number: 4.2.1
Makefile:604: "WARNING: Appending $KCFLAGS (-Wno-unused-arguments) from command line to kernel $CFLAGS"
CC kernel/bounds.s
clang: error: unsupported option '-freg-struct-return'
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment