You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Pavel Janík <Pa...@Janik.cz> on 2013/11/20 08:32:39 UTC
trunk build failure: ld: library not found for -lc++ in comphelper
Hi,
current trunk on unxmacxi:
Pavel-Janiks-MacBook-Pro:comphelper pavel$ make
[ build LNK ] Library/libcomphelpgcc3.dylib
R=/Users/pavel/BUILD/BuildDir && S=$R/ooo_trunk_src && O=$S/solver/410/unxmacxi.pro && W=$O/workdir && mkdir -p $W/LinkTarget/Library/ && DYLIB_FILE=`/usr/bin/mktemp -t gbuild.` && /usr/bin/perl $S/solenv/bin/macosx-dylib-link-list.pl -dynamiclib -single_module -install_name '@__________________________________________________OOO/libcomphelpgcc3.dylib' -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -L$O/lib -L/usr/lib -luno_sal -luno_cppuhelpergcc3 -luno_cppu -lucbhelper4gcc3 -lvos3gcc3 -lc++ > ${DYLIB_FILE} && ccache /usr/bin/g++-4.0 -dynamiclib -single_module -install_name '@__________________________________________________OOO/libcomphelpgcc3.dylib' -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -L$O/lib -L/usr/lib -luno_sal -luno_cppuhelpergcc3 -luno_cppu -lucbhelper4gcc3 -lvos3gcc3 -lc++ $W/CxxObject/comphelper/source/compare/AnyCompareFactory.o $W/CxxObject/comphelper/source/container/IndexedPropertyValuesContainer.o $W/CxxObject/comphelper/source/container/NamedPropertyValuesContainer.o ... $W/CxxObject/comphelper/source/xml/attributelist.o $W/CxxObject/comphelper/source/xml/ofopxmlhelper.o -o $W/LinkTarget/Library/libcomphelpgcc3.dylib `cat ${DYLIB_FILE}` && /usr/bin/perl $S/solenv/bin/macosx-change-install-names.pl Library OOO $W/LinkTarget/Library/libcomphelpgcc3.dylib && ln -sf $W/LinkTarget/Library/libcomphelpgcc3.dylib $W/LinkTarget/Library/libcomphelpgcc3.jnilib && rm -f ${DYLIB_FILE}
ld: library not found for -lc++
collect2: ld returned 1 exit status
make: *** [/Users/pavel/BUILD/BuildDir/ooo_trunk_src/solver/410/unxmacxi.pro/workdir/LinkTarget/Library/libcomphelpgcc3.dylib] Error 1
Pavel-Janiks-MacBook-Pro:comphelper pavel$
--
Pavel Janík
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: trunk build failure: ld: library not found for -lc++ in comphelper
Posted by Pavel Janík <Pa...@Janik.cz>.
> we are planning to switch to the 10.6 SDK and 64 bit soon and don't plan
> to support older platforms or 32 bit any longer. The overhead is huge
> and I personally believe that most systems are upgraded anyway.
>
> What's your opinion, do you see a problem here?
I can only agree. My build system is quite old (10.6.8) and supporting older machines is nonsense. So +1.
--
Pavel Janík
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: trunk build failure: ld: library not found for -lc++ in comphelper
Posted by Jürgen Schmidt <jo...@gmail.com>.
On 11/22/13 9:14 AM, Pavel Janík wrote:
>> Ah, now that you mention it:
>> Such a replacement is done if MACOSX_DEPLOYMENT_TARGET!=10.4. The unxmacx.* target is for the 10.4 SDK, but the newer mac targets for more recent SDKs use libc++ as their native STL.
>>
>> So if you adjusted the check in main/RepositoryFixes.mk:50 to your use of the 10.5 SDK instead of the intended 10.4 SDK then everything should work again in your environment.
>
> Looks like this is it, thanks!
>
> /me should have mentioned his strange build env ;-)
>
we are planning to switch to the 10.6 SDK and 64 bit soon and don't plan
to support older platforms or 32 bit any longer. The overhead is huge
and I personally believe that most systems are upgraded anyway.
What's your opinion, do you see a problem here?
Juergen
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: trunk build failure: ld: library not found for -lc++ in comphelper
Posted by Herbert Duerr <hd...@apache.org>.
On 22.11.2013 09:14, Pavel Janík wrote:
>> Ah, now that you mention it:
>> Such a replacement is done if MACOSX_DEPLOYMENT_TARGET!=10.4. The unxmacx.* target is for the 10.4 SDK, but the newer mac targets for more recent SDKs use libc++ as their native STL.
>>
>> So if you adjusted the check in main/RepositoryFixes.mk:50 to your use of the 10.5 SDK instead of the intended 10.4 SDK then everything should work again in your environment.
>
> Looks like this is it, thanks!
A better test would have checked for less-than 10.6 SDK, but gnu make
only supports the equal/not-equal check. Since the 10.4 SDK was listed
as build requirement for the original mac build it was the only version
checked for.
Even better tests would have been possible, e.g. make it dependent on
the XCode>=4 clang environment, etc. but if an ifeq check suffices for
normal build environments then putting too much thought into it to cover
all eventual corner cases would be a bit of overkill.
> /me should have mentioned his strange build env ;-)
We figured it out and learned from it.
It's great that we/our community build in so many different
environments. It's inevitable that problems show up then. If we solve
them and it helps to make our code base better then its worth it.
Herbert
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: trunk build failure: ld: library not found for -lc++ in comphelper
Posted by Pavel Janík <Pa...@Janik.cz>.
> Ah, now that you mention it:
> Such a replacement is done if MACOSX_DEPLOYMENT_TARGET!=10.4. The unxmacx.* target is for the 10.4 SDK, but the newer mac targets for more recent SDKs use libc++ as their native STL.
>
> So if you adjusted the check in main/RepositoryFixes.mk:50 to your use of the 10.5 SDK instead of the intended 10.4 SDK then everything should work again in your environment.
Looks like this is it, thanks!
/me should have mentioned his strange build env ;-)
--
Pavel Janík
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: trunk build failure: ld: library not found for -lc++ in comphelper
Posted by Herbert Duerr <hd...@apache.org>.
On 22.11.2013 08:17, Pavel Janík wrote:
>> From where is -lc++ generated?
>>
>> I forgot to mention that I do not use 4u sdk, but MacOSX10.5.sdk only.
>
> The same issue later in module unoxml.
>
> Looks like something somewhere is doing s/-lstdc++/-lc++/ ie. removing the string std from the lib name. Hints?
Ah, now that you mention it:
Such a replacement is done if MACOSX_DEPLOYMENT_TARGET!=10.4. The
unxmacx.* target is for the 10.4 SDK, but the newer mac targets for more
recent SDKs use libc++ as their native STL.
So if you adjusted the check in main/RepositoryFixes.mk:50 to your use
of the 10.5 SDK instead of the intended 10.4 SDK then everything should
work again in your environment.
Hope that helps!
Herbert
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: trunk build failure: ld: library not found for -lc++ in comphelper
Posted by Pavel Janík <Pa...@Janik.cz>.
> From where is -lc++ generated?
>
> I forgot to mention that I do not use 4u sdk, but MacOSX10.5.sdk only.
The same issue later in module unoxml.
Looks like something somewhere is doing s/-lstdc++/-lc++/ ie. removing the string std from the lib name. Hints?
--
Pavel Janík
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: trunk build failure: ld: library not found for -lc++ in comphelper
Posted by Pavel Janík <Pa...@Janik.cz>.
Hi,
> I have made a non pro build on my Mac and it worked. I built with SDK
> and had to make minor changes in autodoc (already in svn now) and it
> built completely.
>
> I recommend to use a new clean shell and configure again, do a clean
> build from scratch.
I always build from scratch. Even the current tree has the same issue.
I "fixed" it by the following:
cd comphelper
make
... it printed command to run which errors...
... I changed -lc++ to -lstdc++
and it works.
From where is -lc++ generated?
I forgot to mention that I do not use 4u sdk, but MacOSX10.5.sdk only.
--
Pavel Janík
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: trunk build failure: ld: library not found for -lc++ in comphelper
Posted by Jürgen Schmidt <jo...@gmail.com>.
On 11/20/13 10:58 AM, Pavel Janík wrote:
> Hi,
>
>> Please update your trunk checkout (r1543407 or newer) and restart doing a clean build.
>
> the same. I already had up-to-date tree.
>
Hi Pavel,
I have made a non pro build on my Mac and it worked. I built with SDK
and had to make minor changes in autodoc (already in svn now) and it
built completely.
I recommend to use a new clean shell and configure again, do a clean
build from scratch.
Juergen
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: trunk build failure: ld: library not found for -lc++ in comphelper
Posted by Pavel Janík <Pa...@Janik.cz>.
Hi,
> Please update your trunk checkout (r1543407 or newer) and restart doing a clean build.
the same. I already had up-to-date tree.
--
Pavel Janík
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: trunk build failure: ld: library not found for -lc++ in comphelper
Posted by Herbert Duerr <hd...@apache.org>.
Hi Pavel,
> current trunk on unxmacxi:
>
> Pavel-Janiks-MacBook-Pro:comphelper pavel$ make
> [ build LNK ] Library/libcomphelpgcc3.dylib
> R=/Users/pavel/BUILD/BuildDir && S=$R/ooo_trunk_src && O=$S/solver/410/unxmacxi.pro && W=$O/workdir && mkdir -p $W/LinkTarget/Library/ && DYLIB_FILE=`/usr/bin/mktemp -t gbuild.` && /usr/bin/perl $S/solenv/bin/macosx-dylib-link-list.pl -dynamiclib -single_module -install_name '@__________________________________________________OOO/libcomphelpgcc3.dylib' -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -L$O/lib -L/usr/lib -luno_sal -luno_cppuhelpergcc3 -luno_cppu -lucbhelper4gcc3 -lvos3gcc3 -lc++ > ${DYLIB_FILE} && ccache /usr/bin/g++-4.0 -dynamiclib -single_module -install_name '@__________________________________________________OOO/libcomphelpgcc3.dylib' -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -L$O/lib -L/usr/lib -luno_sal -luno_cppuhelpergcc3 -luno_cppu -lucbhelper4gcc3 -lvos3gcc3 -lc++ $W/CxxObject/comphelper/source/compare/AnyCompareFactory.o $W/CxxObject/comphelper/source/container/IndexedPropertyValuesContainer.o $W/CxxObject/comphelper/source/container/NamedPr
opertyValuesContainer.o ... $W/CxxObject/comphelper/source/xml/attributelist.o $W/CxxObject/comphelper/source/xml/ofopxmlhelper.o -o $W/LinkTarget/Library/libcomphelpgcc3.dylib `cat ${DYLIB_FILE}` && /usr/bin/perl $S/solenv/bin/macosx-change-install-names.pl Library OOO $W/LinkTarget/Library/libcomphelpgcc3.dylib && ln -sf $W/LinkTarget/Library/libcomphelpgcc3.dylib $W/LinkTarget/Library/libcomphelpgcc3.jnilib && rm -f ${DYLIB_FILE}
> ld: library not found for -lc++
> collect2: ld returned 1 exit status
> make: *** [/Users/pavel/BUILD/BuildDir/ooo_trunk_src/solver/410/unxmacxi.pro/workdir/LinkTarget/Library/libcomphelpgcc3.dylib] Error 1
> Pavel-Janiks-MacBook-Pro:comphelper pavel$
>
Please update your trunk checkout (r1543407 or newer) and restart doing
a clean build.
Herbert
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org