Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 589152 - sys-devel/llvm-3.8.1 fails to compile due to empty -isysroot in FLAGS
Summary: sys-devel/llvm-3.8.1 fails to compile due to empty -isysroot in FLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-19 13:55 UTC by Fabian Groffen
Modified: 2016-09-10 08:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2016-07-19 13:55:38 UTC
Compiling llvm with cmake-3.6.0 fails due to "-isysroot -other-option".  After a warning about -other-option file not found, the compiler can't find the appropriate includes, hence breaks.  3.5.2 didn't have this problem, something changed here, which needs checking/fixing.
Comment 1 Fabian Groffen gentoo-dev 2016-07-19 13:59:16 UTC
Seems unrelated to cmake version afterall:

/Users/fabian/Gentoo-10.11/usr/bin/x86_64-apple-darwin15-clang  -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects/compiler-rt/lib/builtins -I/Users/fabian/Gentoo-10.11/var/tmp/portage/sys-devel/llvm-3.8.1/work/llvm-3.8.1.src/projects/compiler-rt/lib/builtins -Iinclude -I/Users/fabian/Gentoo-10.11/var/tmp/portage/sys-devel/llvm-3.8.1/work/llvm-3.8.1.src/include  -DNDEBUG -arch i386    -isysroot -mmacosx-version-min=10.5 -arch i386 -fPIC -O3 -fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -fomit-frame-pointer -MMD -MT projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.eprintf.dir/eprintf.c.o -MF projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.eprintf.dir/eprintf.c.o.d -o projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.eprintf.dir/eprintf.c.o -c /Users/fabian/Gentoo-10.11/var/tmp/portage/sys-devel/llvm-3.8.1/work/llvm-3.8.1.src/projects/compiler-rt/lib/builtins/eprintf.c
x86_64-apple-darwin15-clang-3.7: warning: no such sysroot directory: '-mmacosx-version-min=10.5'
/Users/fabian/Gentoo-10.11/var/tmp/portage/sys-devel/llvm-3.8.1/work/llvm-3.8.1.src/projects/compiler-rt/lib/builtins/eprintf.c:14:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^
1 error generated.
Comment 2 Fabian Groffen gentoo-dev 2016-09-10 08:32:14 UTC
I fixed this  a week or so ago