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

Julien Lerouge jlerouge at apple.com
Thu Mar 26 23:18:30 PDT 2009


Here is the output on ppc, it seems to be the same thing on intel.

g++ -I/Users/buildbot/buildbot/llvm-src/include -I/Users/buildbot/buildbot/llvm-src/lib/Transforms/Hello -I/Users/buildbot/buildbot/llvm/llvm-build/include -I/Users/buildbot/buildbot/llvm/llvm-build/lib/Transforms/Hello  -D_DEBUG  -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3  -fno-exceptions -fno-common  -Woverloaded-virtual  -mmacosx-version-min=10.4  -pedantic -Wall -W -Wwrite-strings -Wno-long-long -Wunused -Wno-unused-parameter  -fstrict-aliasing -Wstrict-aliasing -O3  -module -L/Users/buildbot/buildbot/llvm/llvm-build/Release/lib -L/Users/buildbot/buildbot/llvm/llvm-build/Release/lib  -Wl,-flat_namespace -Wl,-undefined -Wl,suppress -Wl,-dylib -mmacosx-version-min=10.4 -o /Users/buildbot/buildbot/llvm/llvm-build/Release/lib/LLVMHello.dylib /Users/buildbot/buildbot/llvm/llvm-build/lib/Transforms/Hello/Release/Hello.o \

/usr/bin/ld: /usr/lib/gcc/powerpc-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
make[3]: *** [/Users/buildbot/buildbot/llvm/llvm-build/Release/lib/LLVMHello.dylib] Error 1

Running with -v:

Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5367)
 /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/collect2 -dynamic -arch ppc -macosx_version_min 10.4 -macosx_version_min 10.4 -multiply_defined suppress -weak_reference_mismatches non-weak -o /Users/buildbot/buildbot/llvm/llvm-build/Release/lib/LLVMHello.dylib -lcrt1.o /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/crt3.o -L/Users/buildbot/buildbot/llvm/llvm-build/Release/lib -L/Users/buildbot/buildbot/llvm/llvm-build/Release/lib -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1 -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1 -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../.. -flat_namespace -undefined suppress -dylib /Users/buildbot/buildbot/llvm/llvm-build/lib/Transforms/Hello/Release/Hello.o -lstdc++ -lgcc_s.10.4 -lgcc -lSystemStubs -lSystem
/usr/bin/ld: /usr/lib/gcc/powerpc-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

Thanks,
Julien

On Thu, Mar 26, 2009 at 01:07:24PM -0700, Bill Wendling wrote:
> 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
> >
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
-- 
Julien Lerouge
PGP Key Id: 0xB1964A62
PGP Fingerprint: 392D 4BAD DB8B CE7F 4E5F FA3C 62DB 4AA7 B196 4A62
PGP Public Key from: keyserver.pgp.com



More information about the llvm-commits mailing list