From owner-freebsd-questions Thu May 6 13:27: 6 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dirac.pulsenet.com (a-cs6-59.tin.it [212.216.53.90]) by hub.freebsd.org (Postfix) with ESMTP id 18CBE14D9A for ; Thu, 6 May 1999 13:26:46 -0700 (PDT) (envelope-from gimatra@tin.it) Received: from tin.it (localhost [127.0.0.1]) by dirac.pulsenet.com (8.9.2/8.9.2) with ESMTP id AAA85144 for ; Fri, 7 May 1999 00:20:03 +0200 (CEST) (envelope-from gimatra@tin.it) Message-ID: <37321592.6CD18987@tin.it> Date: Fri, 07 May 1999 00:20:03 +0200 From: Ugo Matrangolo Organization: PULSEnet X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 3.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: egcs-1.1.2 Content-Type: multipart/mixed; boundary="------------C4BF0734D384A9B5C1F84106" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------C4BF0734D384A9B5C1F84106 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I have a FreeBSD3.1-RELEASE from walnut cdrom ; I have on it the egcs-1.1.1 port but i dloaded the egcs-1.1.2 port from the freebsd's site . After that the compilation fails and i have to make some "ln -s" to trick it . After all it works but i don't trust it ! Someone experinced problems compiling the egcs-1.1.2 port ? And why an hello.cc is about 78k long (stripped)!!!???? bye --------------C4BF0734D384A9B5C1F84106 Content-Type: text/plain; charset=us-ascii; name="msg" Content-Disposition: inline; filename="msg" Content-Transfer-Encoding: 7bit Hi, I have downloaded the egcs-1.1.2 on my FreeBSD 3.1 RELEASE box and compiled it using a port downloaded from the freebsd's www site . The compilation failes 'cause it doesn't find a i386-portbld-freebsd3.1-gcc executable in my /usr/local/bin but i solved (?) with a "ln -s" against the i386-unknown-freebsd3.1-gcc exec founded there . After , i repeated this process with all execs in the /usr/local/lib/gcc-lib/i386-portbld-freebsd3.1/egcs{...}/{cc1,etc,etc} and it worked . Now i have this problem : > /usr/local/bin/eg++ misc/hello.cc -o bin/hello Reading specs from /usr/local/lib/gcc-lib/i386-unknown-freebsd3.1/egcs-2.91.66/specs gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release) /usr/local/lib/gcc-lib/i386-unknown-freebsd3.1/egcs-2.91.66/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -Di386 -D__ELF__ -Dunix -D__FreeBSD__=3 -D__i386__ -D__ELF__ -D__unix__ -D__FreeBSD__=3 -D__i386 -D__unix -Acpu(i386) -Amachine(i386) -Asystem(unix) -Asystem(FreeBSD) -D__EXCEPTIONS -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ misc/hello.cc /var/tmp/cca1LtIa.ii GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (i386 FreeBSD/ELF) #include "..." search starts here: #include <...> search starts here: /usr/local/lib/gcc-lib/i386-portbld-freebsd3.1/egcs-2.91.66/include/g++ /usr/local/include /usr/local/i386-unknown-freebsd3.1/include /usr/local/lib/gcc-lib/i386-unknown-freebsd3.1/egcs-2.91.66/include /usr/include End of search list. /usr/local/lib/gcc-lib/i386-unknown-freebsd3.1/egcs-2.91.66/cc1plus /var/tmp/cca1LtIa.ii -quiet -dumpbase hello.cc -version -o /var/tmp/ccekTsTe.s GNU C++ version egcs-2.91.66 19990314 (egcs-1.1.2 release) (i386-unknown-freebsd3.1) compiled by GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release). as -V -Qy -o /var/tmp/ccYgQ9tU.o /var/tmp/ccekTsTe.s GNU assembler version 2.9.1 (i386-unknown-freebsdelf), using BFD version 2.9.1 /usr/local/lib/gcc-lib/i386-unknown-freebsd3.1/egcs-2.91.66/collect2 -m elf_i386 -dynamic-linker /usr/libexec/ld-elf.so.1 -o bin/hello /usr/lib/crt1.o /usr/lib/crti.o /usr/local/lib/gcc-lib/i386-unknown-freebsd3.1/egcs-2.91.66/crtbegin.o -L/usr/local/lib/gcc-lib/i386-unknown-freebsd3.1/egcs-2.91.66 -L/usr/local/i386-unknown-freebsd3.1/lib -L/usr/local/lib /var/tmp/ccYgQ9tU.o -lstdc++ -lm -lgcc -lc -lgcc /usr/local/lib/gcc-lib/i386-unknown-freebsd3.1/egcs-2.91.66/crtend.o /usr/lib/crtn.o /usr/lib/libstdc++.so: undefined reference to `__unwind_function' /usr/lib/libstdc++.so: undefined reference to `__find_first_exception_table_match' /usr/lib/libstdc++.so: undefined reference to `__register_exceptions' collect2: ld returned 1 exit status What happened? hint : i used a port for the 3.1-stable but i have the RELEASE-3.1 (wc cdrom) : is this a problem ? I mean : i have the egcs-1.1.1 port on the cdrom but i dled the egcs-1.1.2 port from the net : can i do it ? The solution is to "ln -s" the stdc++ lib from i386-portbld-freebsd31 to i386-unknown-freebsd31 . Another problem is that the hello* is about 78k long (stripped) ! After that it seems to work well , but i do not trust it! What is the problem with all this boring soft links! bye. --------------C4BF0734D384A9B5C1F84106-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message