Re: Building ports with gcc46
On Thu, Dec 15, 2011 at 02:05, b. f. bf1...@googlemail.com wrote: If you are interested in applying them to a single port, use a test on .CURDIR, or, better yet, add the statement to any of the optional Makefiles that are automatically included by bsd.port.mk and were intended for that purpose -- ${MASTERDIR}/Makefile.local, for example. Unfortunatelly, the Makefile.local included too late for have any positive/intended effect (e.g. define port-specific WITH/WITHOUT knob, modify CONFIGURE_ARGS,...) in many cases/ports. Therefore, advise to use Makefile.local is unreliable. And we left in situation, where make.conf is the only one reasonable working solution :-( But yes, it should be properly conditionalized by .if/.endif -- Andrew W. Nosenko andrew.w.nose...@gmail.com ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Building ports with gcc46
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/15/11 9:37 AM, b. f. wrote: On 12/15/11, Andrew W. Nosenko andrew.w.nose...@gmail.com wrote: On Thu, Dec 15, 2011 at 02:05, b. f. bf1...@googlemail.com wrote: If you are interested in applying them to a single port, use a test on .CURDIR, or, better yet, add the statement to any of the optional Makefiles that are automatically included by bsd.port.mk and were intended for that purpose -- ${MASTERDIR}/Makefile.local, for example. Unfortunatelly, the Makefile.local included too late for have any positive/intended effect (e.g. define port-specific WITH/WITHOUT knob, modify CONFIGURE_ARGS,...) in many cases/ports. Therefore, advise to use Makefile.local is unreliable. And we left in situation, where make.conf is the only one reasonable working solution :-( Certainly Makefile.local is not included as early as make.conf, and so may not be used for every purpose for which make.conf may be used. But with regard to the topic of this thread, Makefile.local is included before options-handling, and the test for inclusion of bsd.gcc.mk. Why did you think otherwise? Using Makefile.local is generally safer because of its narrower scope, and because it cannot be included multiple times if make(1) is invoked recursively, unlike make.conf. b. Hi everyone, Thank you for the correction to placement of the USE_GCC directive. Clearly, I went for the hammer solution a little too quickly! Cheers, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7qXIYACgkQ0sRouByUApAruACfbbesKuJBXybzJamMxFwm18tE cfkAnA2VsTCB+VfChcWd3mHf+/mgibf8 =aKXZ -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Building ports with gcc46
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/14/11 9:35 PM, Ali Mashtizadeh wrote: That gives the same error as the one of my previous attempts. Any help with this would be great. libtool: link: g++46 -D_THREAD_SAFE -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -pipe -Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing -D_THREAD_SAFE -pthread -Wl,-rpath=/usr/local/lib/gcc46 -o .libs/protoc main.o ./.libs/libprotobuf.so ./.libs/libprotoc.so /usr/ports/devel/protobuf/work/protobuf-2.4.1/src/.libs/libprotobuf.so -lz -pthread -Wl,-rpath -Wl,/usr/local/lib/usr/local/bin/ld: .libs/protoc: hidden symbol `__dso_handle' in /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/crtbegin.o is referenced by DSO/usr/local/bin/ld: final link failed: Bad valuecollect2: ld returned 1 exit statusgmake[2]: *** [protoc] Error 1gmake[2]: Leaving directory `/usr/ports/devel/protobuf/work/protobuf-2.4.1/src'gmake[1]: *** [all-recursive] Error 1gmake[1]: Leaving directory `/usr/ports/devel/protobuf/work/protobuf-2.4.1'gmake: *** [all] Error 2*** Error code 1 Stop in /usr/ports/devel/protobuf. Hi Ali, I was able to successfully link protoc by hand by building main.o with - -fPIC and making sure that the -shared flag was used to compile all source files. Unfortunately, the executable core dumps immediately, and there's no useful stack frame in gdb. I'll have to defer to GCC experts at this point. Best of luck, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7qYW4ACgkQ0sRouByUApBCYACfUZCbqge2dP/PcQLq7xMyL83b g/AAoK1ZikafAsPfdvs6eBoSk4vTMS7R =eOnI -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Building ports with gcc46
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/14/11 1:44 PM, Ali Mashtizadeh wrote: Is there a way to build devel/protobuf with gcc46? Unfortunately I see a compatibility issue where the software I'm linking against it crashes because of the conflicting stdc++ librray versions. I've tried setting CC, CXX, LDFLAGS but I seem to be missing something else? Thanks, [NOTE: Redirecting to freebsd-ports@] Hi Ali, Have you tried adding the following to /etc/make.conf? USE_GCC=4.6 Note that the directive will bring in a lot of other dependencies with it, so you may also want to add WITHOUT_X11=yes to make.conf, if necessary. Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7pBUQACgkQ0sRouByUApD5iwCfZx+Z6P+NbSvz9o5iKkx1Wgsg ME4AoICCe4m+MIPOA1UXXvoKiirIaBUb =CbJJ -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Building ports with gcc46
Is there a way to build devel/protobuf with gcc46? Unfortunately I see a compatibility issue where the software I'm linking against it crashes because of the conflicting stdc++ librray versions. I've tried setting CC, CXX, LDFLAGS but I seem to be missing something else? Thanks, Hi Ali, Have you tried adding the following to /etc/make.conf? USE_GCC=4.6 Note that the directive will bring in a lot of other dependencies with it, so you may also want to add WITHOUT_X11=yes to make.conf, if necessary. USE_GCC is the right statement, but one should be careful about adding such statements to make.conf without conditions, because you can pollute every invocation of make(1). Here, you can cause cycles in your dependency graphs if you set USE_GCC=4.6 for any of the ports that are required by lang/gcc46. If you are interested in applying them to a single port, use a test on .CURDIR, or, better yet, add the statement to any of the optional Makefiles that are automatically included by bsd.port.mk and were intended for that purpose -- ${MASTERDIR}/Makefile.local, for example. Please be careful in what you add, or recommend that others add, to make.conf. b. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Building ports with gcc46
That gives the same error as the one of my previous attempts. Any help with this would be great. libtool: link: g++46 -D_THREAD_SAFE -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -pipe -Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing -D_THREAD_SAFE -pthread -Wl,-rpath=/usr/local/lib/gcc46 -o .libs/protoc main.o ./.libs/libprotobuf.so ./.libs/libprotoc.so /usr/ports/devel/protobuf/work/protobuf-2.4.1/src/.libs/libprotobuf.so -lz -pthread -Wl,-rpath -Wl,/usr/local/lib/usr/local/bin/ld: .libs/protoc: hidden symbol `__dso_handle' in /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/crtbegin.o is referenced by DSO/usr/local/bin/ld: final link failed: Bad valuecollect2: ld returned 1 exit statusgmake[2]: *** [protoc] Error 1gmake[2]: Leaving directory `/usr/ports/devel/protobuf/work/protobuf-2.4.1/src'gmake[1]: *** [all-recursive] Error 1gmake[1]: Leaving directory `/usr/ports/devel/protobuf/work/protobuf-2.4.1'gmake: *** [all] Error 2*** Error code 1 Stop in /usr/ports/devel/protobuf. On Wed, Dec 14, 2011 at 12:21 PM, Greg Larkin glar...@freebsd.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/14/11 1:44 PM, Ali Mashtizadeh wrote: Is there a way to build devel/protobuf with gcc46? Unfortunately I see a compatibility issue where the software I'm linking against it crashes because of the conflicting stdc++ librray versions. I've tried setting CC, CXX, LDFLAGS but I seem to be missing something else? Thanks, [NOTE: Redirecting to freebsd-ports@] Hi Ali, Have you tried adding the following to /etc/make.conf? USE_GCC=4.6 Note that the directive will bring in a lot of other dependencies with it, so you may also want to add WITHOUT_X11=yes to make.conf, if necessary. Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7pBUQACgkQ0sRouByUApD5iwCfZx+Z6P+NbSvz9o5iKkx1Wgsg ME4AoICCe4m+MIPOA1UXXvoKiirIaBUb =CbJJ -END PGP SIGNATURE- -- Ali Mashtizadeh علی مشتی زاده ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org