On 4/4/14, 10:32 AM, Jens Kauffmann wrote:
> Hi,
>
> I have problems installing llvm-gcc42-shlibs on OSX 10.9.2. To my best 
> knowledge, Xcode and command line tools are up to date and I ran selfupdate.
>
>
> There is no clear error message. Here I copy the few lines closest to the 
> first message containing “error” I can find (and then continue the messages 
> to their end):
>
> […]
> ranlib 
> /sw/src/fink.build/llvm-gcc42-2336.11-7/objroot/obj-llvmCore/obj-llvm/Release+Debug-Asserts/lib/libLLVMCodeGen.a
> make[4]: Leaving directory 
> `/sw/src/fink.build/llvm-gcc42-2336.11-7/objroot/obj-llvmCore/obj-llvm/lib/CodeGen'
> make[3]: Leaving directory 
> `/sw/src/fink.build/llvm-gcc42-2336.11-7/objroot/obj-llvmCore/obj-llvm/lib'
> make[2]: *** [all] Error 1
> make[2]: Leaving directory 
> `/sw/src/fink.build/llvm-gcc42-2336.11-7/objroot/obj-llvmCore/obj-llvm'
> + '[' 2 '!=' 0 ']'
> + echo 'error: LLVM '\''make'\'' failed!'
> error: LLVM 'make' failed!
> + exit 1
> make[1]: *** [llvmCore] Error 1
> make: *** [install] Error 2
> ### execution of /tmp/fink.RQ1NZ failed, exit code 2
> ### execution of /tmp/fink.0MJyE failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> /sw/bin/dpkg-lockwait -r fink-buildlock-llvm-gcc42-2336.11-7
> (Reading database ... 148698 files and directories currently installed.)
> Removing fink-buildlock-llvm-gcc42-2336.11-7 ...
> Failed: phase installing: llvm-gcc42-2336.11-7 failed
>
>
> Here is general system information:
>
> Package manager version: 0.36.3.1
> Distribution version: selfupdate-rsync Fri Apr  4 18:45:02 2014, 10.9, x86_64
> Trees: local/main stable/main
> Xcode.app: 5.1
> Xcode command-line tools: 5.1.0.0.1.1393561416
>
>
> Any help appreciated!
>
>
> thanks
>
> Jens

Maybe it got lost in the scrollback, because in my own build attempt I 
found:

llvm[5]: Linking Release+Debug-Asserts Loadable Module LLVMHello.dylib
clang++ -pipe -stdlib=libstdc++ 
-I/sw/src/fink.build/llvm-gcc42-2336.11-7/objroot/obj-llvmCore/obj-llvm/include 
-I/sw/src/fink.build/llvm-gcc42-2336.11-7/objroot/obj-llvmCore/obj-llvm/lib/Transforms/Hello
 
-I/sw/src/fink.build/llvm-gcc42-2336.11-7/objroot/obj-llvmCore/src/include 
-I/sw/src/fink.build/llvm-gcc42-2336.11-7/objroot/obj-llvmCore/src/lib/Transforms/Hello
 
  -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS 
-O2  -g -fno-exceptions -fno-common -Woverloaded-virtual 
-DLLVM_VERSION_INFO='" Apple Build #2336-11"'  -mmacosx-version-min=10.9 
  -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter 
-Wwrite-strings  -arch x86_64 -O2 -g -module -Wl,-rpath 
-Wl,/sw/src/fink.build/llvm-gcc42-2336.11-7/objroot/obj-llvmCore/obj-llvm/Release+Debug-Asserts/lib
 
-L/sw/src/fink.build/llvm-gcc42-2336.11-7/objroot/obj-llvmCore/obj-llvm/Release+Debug-Asserts/lib
 
-L/sw/src/fink.build/llvm-gcc42-2336.11-7/objroot/obj-llvmCore/obj-llvm/Release+Debug-Asserts/lib
 
  -Wl,-flat_namespace -Wl,-undefined -Wl,suppress -dynamiclib 
-mmacosx-version-min=10.9 -o 
/sw/src/fink.build/llvm-gcc42-2336.11-7/objroot/obj-llvmCore/obj-llvm/Release+Debug-Asserts/lib/LLVMHello.dylib
 
/sw/src/fink.build/llvm-gcc42-2336.11-7/objroot/obj-llvmCore/obj-llvm/lib/Transforms/Hello/Release+Debug-Asserts/Hello.o
 
\
            -lpthread -lm
clang: error: unknown argument: '-module' 
[-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a 
warning) in the future
make[5]: *** 
[/sw/src/fink.build/llvm-gcc42-2336.11-7/objroot/obj-llvmCore/obj-llvm/Release+Debug-Asserts/lib/LLVMHello.dylib]
 
Error 1


I'm not sure why the package build operation continues after a failure.


Adding

   perl -pi -e 's/module/export_dynamic/' llvmCore/Makefile.rules
   perl -pi -e 's/-no-undefined//' llvmCore/tools/edis/Makefile 
llvmCore/tools/lto/Makefile

to the PatchScript block of 
/sw/fink/10.7/stable/main/finkinfo/languages/llvm-gcc42.info to get rid 
of some flags that are no longer allowed in the current clang allowed 
the build to work for me.

-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to