[llvm-commits] [llvm] r67469 - /llvm/trunk/Makefile.rules

Bill Wendling isanbard at gmail.com
Thu Mar 26 13:07:24 PDT 2009


Hi Arnold,

Please put VERBOSE=1 on the "make" command line and send me what
command it's using to try to build LLVMHello.dylib.

Thanks
-bw

On Thu, Mar 26, 2009 at 8:50 AM, Arnold Schwaighofer
<arnold.schwaighofer at gmail.com> wrote:
> Hello Bill,
>
> this change seems to prevent llvm from building on Mac OS X 10.4.11 on
> x86 and apparently ppc (http://llvm.org/bugs/show_bug.cgi?id=3867)
> with the following error message.
>
> llvm[3]: Linking Debug Loadable Module LLVMHello.dylib
> /usr/bin/ld: /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../crt1.o
> LC_LOAD_DYLINKER load command in object file (should not be in an
> input file to the link editor for the output file type MH_DYLIB)
> collect2: ld returned 1 exit status
>
> If i revert r67469 llvm builds again. But ld will complain about
> referenced symbols that are not exported.
>
> lvm[2]: Linking Debug executable llvm-as
> /usr/bin/ld: warning symbol: _NXArgc referenced dynamically and must be exported
> ...
>
> Reverting r67468 will get rid of those warnings.
>
> regards arnold
>
> On Sun, Mar 22, 2009 at 9:56 AM, Bill Wendling <isanbard at gmail.com> wrote:
>> Author: void
>> Date: Sun Mar 22 03:56:15 2009
>> New Revision: 67469
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=67469&view=rev
>> Log:
>> Really should pass -dylib to the linker...
>>
>> Modified:
>>    llvm/trunk/Makefile.rules
>>
>> Modified: llvm/trunk/Makefile.rules
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=67469&r1=67468&r2=67469&view=diff
>>
>> ==============================================================================
>> --- llvm/trunk/Makefile.rules (original)
>> +++ llvm/trunk/Makefile.rules Sun Mar 22 03:56:15 2009
>> @@ -435,7 +435,7 @@
>>   # 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/')
>>
>> -  SharedLinkOptions=-Wl,-flat_namespace -Wl,-undefined -Wl,suppress -dylib \
>> +  SharedLinkOptions=-Wl,-flat_namespace -Wl,-undefined -Wl,suppress -Wl,-dylib \
>>                     -mmacosx-version-min=$(DARWIN_VERSION)
>>   CompileCommonOpts += -mmacosx-version-min=$(DARWIN_VERSION)
>>  else
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>




More information about the llvm-commits mailing list