This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Native OpenBSD 3.4 gcc 3.3.2 build


I now OpenBSD is unsuported target but I still need to build it.
I need ony c and c++ languages.

I have preinstalled binutils 2.14 openbsd port (it installs files into
/usr/local/i386-unknown-openbsd3.4/ ):


I use preisntalled gcc to build it:
# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.4/2.95.3/specs
gcc version 2.95.3 20010125 (prerelease, propolice)

I configured with:
# ../gcc-3.3.2/configure --enable-languages=c,c++ --prefix=~/myroot

Here is how build fails:

-------------------
checking whether the C compiler ( /home/nedko/sandbox/gcc-3.3.2-build/gcc/xgcc -B/home/nedko/sandbox/gcc-3.3.2-build/gcc/ -B~/myroot/i386-unknown-openbsd3.4/bin/ -B~/myroot/i386-unknown-openbsd3.4/lib/ -isystem ~/myroot/i386-unknown-openbsd3.4/include -O2 -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
-------------------

Here is what config log says:

-------------------
configure:2392: checking whether the C compiler ( /home/nedko/sandbox/gcc-3.3.2-build/gcc/xgcc -B/home/nedko/sandbox/gcc-3.3.2-build/gcc/ -B~/myroot/i386-unknown-openbsd3.4/bin/ -B~/myroot/i386-unknown-openbsd3.4/lib/ -isystem ~/myroot/i386-unknown-openbsd3.4/include -O2 -g -O2 ) works
configure:2408:  /home/nedko/sandbox/gcc-3.3.2-build/gcc/xgcc -B/home/nedko/sandbox/gcc-3.3.2-build/gcc/ -B~/myroot/i386-unknown-openbsd3.4/bin/ -B~/myroot/i386-unknown-openbsd3.4/lib/ -isystem ~/myroot/i386-unknown-openbsd3.4/include -o conftest -O2 -g -O2   conftest.c  1>&5
/usr/local/i386-unknown-openbsd3.4/bin/ld: warning: cannot find entry symbol start; defaulting to 1c000310
/usr/lib/crt0.o(.text+0x8b): In function `___start':
: undefined reference to `__init'
/usr/lib/crt0.o(.text+0x9d): In function `___start':
: undefined reference to `main'
/home/nedko/sandbox/gcc-3.3.2-build/gcc/libgcc.a(__main.o)(.text+0x57): In function `__do_global_ctors':
/home/nedko/sandbox/gcc-3.3.2-build/gcc/../../gcc-3.3.2/gcc/libgcc2.c:1879: undefined reference to `_atexit'
collect2: ld returned 1 exit status
configure: failed program was:

#line 2403 "configure"
#include "confdefs.h"

main(){return(0);}
-------------------

Any ideas ?
May be OpenBSD 3.4 preinstalled libc is not compatible with gcc 3.3.2 ?

-- 
Nedko Arnaudov



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]