Ok, if this is fixed in upstream we can cherry-pick it for now. We do plan
to rebase on upstream but that might not happen in the near future.

- Alon



On Sun, Jun 29, 2014 at 6:15 AM, Floh <[email protected]> wrote:

> I think I found the relevant change in llvm (
> http://llvm.org/svn/llvm-project/llvm/trunk):
>
> FlohOfWoe:llvm floh$ svn log -r 194719
> ------------------------------------------------------------------------
> r194719 | gribozavr | 2013-11-14 19:31:30 +0100 (Thu, 14 Nov 2013) | 2
> lines
>
> Fix regular expression to work with multiple-digit version numbers
>
> Here's the diff for Makefile.rules (a '+' was missing in 2 places):
>
> FlohOfWoe:emscripten-fastcomp floh$ git diff Makefile.rules
> diff --git a/Makefile.rules b/Makefile.rules
> index 060bda3..d6b942c 100644
> --- a/Makefile.rules
> +++ b/Makefile.rules
> @@ -571,9 +571,9 @@ ifeq ($(HOST_OS),Darwin)
>    DARWIN_VERSION := `sw_vers -productVersion`
>   endif
>    # Strip a number like 10.4.7 to 10.4
> -  DARWIN_VERSION := $(shell echo $(DARWIN_VERSION)| sed -E
> 's/(10.[0-9]).*/\1/')
> +  DARWIN_VERSION := $(shell echo $(DARWIN_VERSION)| sed -E
> 's/(10.[0-9]+).*/\1/')
>    # Get "4" out of 10.4 for later pieces in the makefile.
> -  DARWIN_MAJVERS := $(shell echo $(DARWIN_VERSION)| sed -E
> 's/10.([0-9]).*/\1/')
> +  DARWIN_MAJVERS := $(shell echo $(DARWIN_VERSION)| sed -E
> 's/10.([0-9]+).*/\1/')
>
>    LoadableModuleOptions := -Wl,-flat_namespace -Wl,-undefined,suppress
>    SharedLinkOptions := -dynamiclib
>
> Currently still compiling, will report back if I find any further errors.
>
> Cheers,
> -Floh.
>
> Am Sonntag, 29. Juni 2014 14:00:19 UTC+2 schrieb Floh:
>
>> PS: I'm currently compiling the latest vanilla llvm/clang from trunk, if
>> this works I'll see if I can find out something...
>> -Floh.
>>
>> Am Sonntag, 29. Juni 2014 13:26:23 UTC+2 schrieb Floh:
>>>
>>> I stumbled over an interesting problem where the emscripten-fastcomp
>>> build process thinks it is running on OSX10.1, but this is OSX10.10:
>>>
>>> ld: -rpath can only be used when targeting Mac OS X 10.5 or later
>>>
>>> The entire command line is below (note the -mmacosx-version-min=10.1).
>>> The problem seems to be in the Options.inc file, but I haven't dug yet into
>>> clangs build files enough.
>>>
>>> tools/clang/include/clang/Driver/Options.inc:OPTION(prefix_1,
>>> "mmacosx-version-min=", mmacosx_version_min_EQ, Joined, m_Group, INVALID,
>>> 0, 0, 0, 0)
>>>
>>> Anybody had the same problem and found a fix?
>>>
>>> Here's the linker command line that fails:
>>>
>>> #             c.f. llvm/tools/gold/Makefile
>>> clang++ 
>>> -I/Users/floh/projects/oryol/sdks/osx/emscripten-fastcomp/build/include
>>> -I/Users/floh/projects/oryol/sdks/osx/emscripten-fastcomp/build/lib/Transforms/Hello
>>> -I/Users/floh/projects/oryol/sdks/osx/emscripten-fastcomp/include
>>> -I/Users/floh/projects/oryol/sdks/osx/emscripten-fastcomp/lib/Transforms/Hello
>>>  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
>>> -D__STDC_LIMIT_MACROS -O3  -fvisibility-inlines-hidden -fno-exceptions
>>> -fno-rtti -fno-common -Woverloaded-virtual -Wcast-qual  -O3 -Wl,-rpath
>>> -Wl,@executable_path/../lib -L/Users/floh/projects/oryol/
>>> sdks/osx/emscripten-fastcomp/build/Release/lib
>>> -L/Users/floh/projects/oryol/sdks/osx/emscripten-fastcomp/build/Release/lib
>>>  -m64  -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter
>>> -Wwrite-strings  -Wcovered-switch-default -Wno-uninitialized
>>>  -Wno-missing-field-initializers  -Wl,-flat_namespace
>>> -Wl,-undefined,suppress -dynamiclib -mmacosx-version-min=10.1 -o
>>> /Users/floh/projects/oryol/sdks/osx/emscripten-fastcomp/
>>> build/Release/lib/LLVMHello.dylib /Users/floh/projects/oryol/
>>> sdks/osx/emscripten-fastcomp/build/lib/Transforms/Hello/Release/Hello.o
>>> \
>>>        -Wl,-exported_symbols_list,/Users/floh/projects/oryol/
>>> sdks/osx/emscripten-fastcomp/build/lib/Transforms/Hello/Release/Hello.exports.sed
>>> -lz -lpthread -lm
>>> ld: -rpath can only be used when targeting Mac OS X 10.5 or later
>>> clang: error: linker command failed with exit code 1 (use -v to see
>>> invocation)
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to