Date: Thu, 27 Jun 2013 01:56:02 +0200 From: Michael Gmelin <freebsd@grem.de> To: Konstantin Belousov <kostikbel@gmail.com> Cc: Dimitry Andric <dim@FreeBSD.org>, Brooks Davis <brooks@FreeBSD.org>, David Chisnall <theraven@freebsd.org>, "freebsd-ports@freebsd.org Ports" <freebsd-ports@freebsd.org>, Matthias Andree <mandree@FreeBSD.org> Subject: Re: Global destructor order problems (was: Re: Are ports supposed to build and run on 10-CURRENT?) Message-ID: <20130627015602.7a437aad@bsd64.grem.de> In-Reply-To: <20130626212833.GB91021@kib.kiev.ua> References: <C1CC40FC-4489-4164-96B7-5E1A25DCB37F@FreeBSD.org> <20130626015508.426ab5b9@bsd64.grem.de> <51CAADB8.7090603@FreeBSD.org> <20130626133149.4835f14a@bsd64.grem.de> <7CD9075C-F8D6-41C1-8D21-8B10DF866ECE@FreeBSD.org> <20130626204521.GU91021@kib.kiev.ua> <6900C006-2A57-4EAF-B19A-629A85CBA001@FreeBSD.org> <20130626210534.GY91021@kib.kiev.ua> <A60BFADA-E358-4363-8BED-E154AB327C6B@FreeBSD.org> <20130626231741.497f7a9b@bsd64.grem.de> <20130626212833.GB91021@kib.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 27 Jun 2013 00:28:33 +0300 Konstantin Belousov <kostikbel@gmail.com> wrote: > On Wed, Jun 26, 2013 at 11:17:41PM +0200, Michael Gmelin wrote: > > Are you both on the same architecture? > > I tested both on amd64 and i386. For i386, it was -m32 for clang, and > native 32bit gcc 4.8.1, stock build from the tarball. > For completeness sake I tested once more using various compilers including gcc 4.8.1 on 10-CURRENT amd64 (see below). I provided all information I can at this point, if there is anything else I could do to help (objdumps, etc.) please let me know. - Michael uname -a FreeBSD srv 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r251129: Thu May 30 14:34:35 UTC 2013 root@srv:/usr/obj/usr/src/sys/GENERIC amd64 [root@srv ~/majortom]# CXX=g++ make clean run gcc version 4.2.1 20070831 patched [FreeBSD] g++ -pthread -c -fPIC out.cpp -I. -I/usr/local/include -o out.o g++ -pthread -shared -fPIC out.o -o libout.so g++ -pthread -c -fPIC main.cpp -I. -I/usr/local/include -o main.o g++ -pthread -L. -lout main.o -o example Ground | Outer::Outer Control | Inner::Inner to | main() Major | Inner::~Inner Tom | Outer::~Outer [root@srv ~/majortom]# CXX=g++48 make clean run gcc version 4.8.1 20130418 (prerelease) (FreeBSD Ports Collection) g++48 -pthread -c -fPIC out.cpp -I. -I/usr/local/include -o out.o g++48 -pthread -shared -fPIC out.o -o libout.so g++48 -pthread -c -fPIC main.cpp -I. -I/usr/local/include -o main.o g++48 -pthread -L. -lout main.o -o example Ground | Outer::Outer Control | Inner::Inner to | main() Tom | Outer::~Outer Major | Inner::~Inner [root@srv ~/majortom]# CXX=clang++ make clean run FreeBSD clang version 3.3 (trunk 178860) 20130405 Target: x86_64-unknown-freebsd10.0 Thread model: posix clang++ -pthread -c -fPIC out.cpp -I. -I/usr/local/include -o out.o clang++ -pthread -shared -fPIC out.o -o libout.so clang++ -pthread -c -fPIC main.cpp -I. -I/usr/local/include -o main.o clang++ -pthread -L. -lout main.o -o example Ground | Outer::Outer Control | Inner::Inner to | main() Tom | Outer::~Outer Major | Inner::~Inner [root@srv ~/majortom]# CXX=clang++33 make clean run clang version 3.3 (tags/RELEASE_33/final) Target: amd64-portbld-freebsd10.0 Thread model: posix clang++33 -pthread -c -fPIC out.cpp -I. -I/usr/local/include -o out.o clang++33 -pthread -shared -fPIC out.o -o libout.so clang++33 -pthread -c -fPIC main.cpp -I. -I/usr/local/include -o main.o clang++33 -pthread -L. -lout main.o -o example Ground | Outer::Outer Control | Inner::Inner to | main() Tom | Outer::~Outer Major | Inner::~Inner pkg info clang clang-3.3 C, Objective-C, and C++ compiler pkg info gcc gcc-4.8.1.20130418 GNU Compiler Collection 4.8 pkg info binutils binutils-2.23.1 GNU binary tools -- Michael Gmelin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130627015602.7a437aad>