public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
[parent not found: <bug-23231-11102@http.gcc.gnu.org/bugzilla/>]
* [Bug target/23231] cross compiling fails for mips-sgi-irix6.5
[not found] <bug-23231-11102@http.gcc.gnu.org/bugzilla/>
@ 2005-11-09 18:35 ` pfl at iis dot fhg dot de
0 siblings, 0 replies; 6+ messages in thread
From: pfl at iis dot fhg dot de @ 2005-11-09 18:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pfl at iis dot fhg dot de 2005-11-09 18:35 -------
Ok, I switched to MacOSX.
There I have a /usr/gnu/build/gcc-4.0.2 diectory with the original sources.
Then I do a
../gcc-4.0.2/configure --cache-file=../mips-gcc-4.0.2.configure.cache
--prefix=/usr/gnu --bindir=/usr/gnu/bin --sbindir=/usr/gnu/sbin
--libdir=/usr/gnu/lib32 --disable-nls --disable-multilib --disable-intl
--enable-languages=c,c++ --target=mips-sgi-irix6.5
--program-prefix=mips-sgi-irix6.5- --with-libs=/usr/gnu/mips-sgi-irix6.5/lib
--with-gnu-ld --with-ld=/usr/gnu/bin/mips-sgi-irix6.5-ld --with-gnu-as
--with-as=/usr/gnu/bin/mips-sgi-irix6.5-as
in the directory: /usr/gnu/build/mips-gcc-4.0.2-compile
As preparation I did a:
> CFLAGS=-O1 CXXFLAGS=-O1 ./configure --cache-file=../binutils_configure.cache --prefix=/usr/gnu --bindir=/usr/gnu/bin --sbindir=/usr/gnu/sbin --libdir=/usr/gnu/lib32 --program-prefix=mips-sgi-irix6.5- --target=mips-sgi-irix6.5
> make
> make install
on the binutils-2.16.1 in: /usr/gnu/build/mips-binutils-2.16.1.
Furthermore, I copied the original libs from the SGI box (IRIX 6.5.25) to:
/usr/gnu/mips-sgi-irix6.5/lib and the headers to:
/usr/gnu/mips-sgi-irix6.5/sys-include
This it the contens of those directorys:
> pwd
/usr/gnu/mips-sgi-irix6.5/lib
> ls -l
total 14536
-rw-r--r-- 1 pfeil pfeil 30 Sep 11 23:13 COPIED
drwxr-xr-x 32 pfeil pfeil 1088 Sep 29 23:28 ldscripts
-r-xr-xr-x 1 pfeil pfeil 3322796 Sep 30 00:17 libc.so
-r-xr-xr-x 1 pfeil pfeil 3322796 Sep 11 23:30 libc.so.1
-r--r--r-- 1 pfeil pfeil 128088 Sep 11 23:30 libdisk.so
-r--r--r-- 1 pfeil pfeil 67600 Sep 11 23:30 libpam.so
-r--r--r-- 1 pfeil pfeil 25224 Sep 11 23:30 libpam_misc.so
-rwxr-xr-x 1 pfeil pfeil 555440 Sep 11 23:30 rld
> pwd
/usr/gnu/mips-sgi-irix6.5/sys-include
> ls
ABIinfo.h ieeefp.h resolv.h
FlexLexer.h internal rld_interface.h
MediaViewer inttypes.h rpc
Mrm invent.h rpcsvc
Sgm isam.h rsvp
SpeedShop iso646.h sac.h
Vk kmem.h sat.h
X11 ksys sched.h
Xm langinfo.h scncomment.h
a.out.h lastlog.h scnhdr.h
abi_mutex.h ldfcn.h search.h
aio.h libXlate.h semaphore.h
alloca.h libdwarf.h setjmp.h
aouthdr.h libelf.h sex.h
ar.h liberrno.h sgi_nl.h
archives.h libexc.h sgidefs.h
arcs libftn.h sgidlfcn.h
arpa libgen.h sgtty.h
asm.h libw.h shadow.h
assert.h limits.h shlib.h
auxv.h linenum.h sigfpe.h
bstring.h locale.h siginfo.h
cap_net.h locale_attr.h signal.h
capability.h make snmp
cblas.h malloc.h sock_extern.h
ckpt.h math.h ssdi.h
clearance.h math62.h stamp.h
clibdefs.h mdbm.h standards.h
cmplrs mediad.h std.h
compact_reloc.h memory.h stdarg.h
core.out.h mls.h stddef.h
cpio.h mntent.h stdio.h
cr1.h mon.h stdlib.h
cray monetary.h storclass.h
crypt.h mpc.h string.h
cs.h mpool.h strings.h
ctype.h mqueue.h stropts.h
curses.h msym.h stsupport.h
db.h mutex.h sum.h
dbm.h namefs svr4_math.h
deflt.h nan.h sym.h
devmgmt.h nanothread.h sym64.h
di_aux.h ndbm.h sym_aux.h
di_group.h net symconst.h
di_passwd.h netconfig.h syms.h
dial.h netdb.h sys
dirent.h netdir.h sys.s
disassembler.h netinet sysexits.h
dlfcn.h netman syslog.h
dslib.h netns tar.h
dwarf.h nl_types.h task.h
elf.h nlist.h tcpd.h
elf_abi.h ns_api.h term.h
elf_delta.h ns_daemon.h termio.h
elf_mips.h obj.h termios.h
elfaccess.h obj_ext.h time.h
emgr obj_list.h timers.h
errno.h obj_type.h tiuser.h
eventmonapi.h objlist.h tserialio.h
exception.h openssl ttymap.h
excpt.h opnames.h tzfile.h
exportent.h optional_sym.h ucontext.h
fam.h patchhdr.h udmalib.h
fcntl.h paths.h uil
fetchop.h pcp uldb.h
ffio.h pfmt.h ulimit.h
fifofs pipefs ulocks.h
filehdr.h pkgdev.h unctrl.h
float.h pkginfo.h unistd.h
fmtmsg.h pkglocs.h ustat.h
fnmatch.h pkgstrct.h utime.h
fortran.h pkgtrans.h utmp.h
fp_class.h poll.h utmpx.h
fsd.h procfs valtools.h
ftw.h proj.h values.h
getabi.h protocols varargs.h
getopt.h pthread.h vdComResPkt.h
getwidth.h pwd.h vme_dma_engine.h
glob.h rapi_err.h wait.h
grio.h rapi_lib.h wchar.h
grio2.h re_comp.h wctype.h
grp.h regdef.h whirl2c.h
gssapi regex.h widec.h
hostreg.h regexp.h wordexp.h
ia.h regexpr.h wsregexp.h
iconv.h reloc.h xti.h
Unfortunately, the make of the gcc-4.0.2 does not succed:
...
configure: Debug build flags set to -g3 -O0
checking for additional debug build... no
checking for extra compiler flags for building...
configure: error: No support for this host/target combination.
make: *** [configure-target-libstdc++-v3] Error 1
>
--
pfl at iis dot fhg dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://andreas.familie-
| |pfeil.com/unix/howto/compile
| |.php
Status|WAITING |UNCONFIRMED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23231
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/23231] New: cross compiling fails for mips-sgi-irix6.5
@ 2005-08-04 15:49 pfl at iis dot fhg dot de
2005-08-06 6:36 ` [Bug target/23231] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: pfl at iis dot fhg dot de @ 2005-08-04 15:49 UTC (permalink / raw)
To: gcc-bugs
when cross compiling the gcc 4.0.2 on a i686-pc-linux-gnu with
intel: binutils 2.16.1 - compiled with gcc 4.1.0
mips: binutils 2.16.1 - compiled with gcc 4.1.0
the following error occures:
/home/pfl/gnu/mips-sgi-irix6.5/bin/ld: unrecognized option '-_SYSTYPE_SVR4'
/home/pfl/gnu/mips-sgi-irix6.5/bin/ld: use the --help option for usage
information
collect2: ld returned 1 exit status
and the compilation exits.
The same problem occures when the binutils are:
intel: binutils 2.16.1 - compiled with gcc 4.0.2
mips: binutils 2.16.1 - compiled with gcc 4.0.2
I get also the same problem when compiling on an apple mac - tiger 10.4.2.
--
Summary: cross compiling fails for mips-sgi-irix6.5
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pfl at iis dot fhg dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: mips-sgi-irix6.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23231
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/23231] cross compiling fails for mips-sgi-irix6.5
2005-08-04 15:49 [Bug bootstrap/23231] New: " pfl at iis dot fhg dot de
@ 2005-08-06 6:36 ` pinskia at gcc dot gnu dot org
2005-08-06 23:57 ` wilson at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-06 6:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-06 06:36 -------
Hmm cross64.h is being used for crosses, why I don't know. That should be only used for crosses
which are on IRIX.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|bootstrap |target
Keywords| |build
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23231
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/23231] cross compiling fails for mips-sgi-irix6.5
2005-08-04 15:49 [Bug bootstrap/23231] New: " pfl at iis dot fhg dot de
2005-08-06 6:36 ` [Bug target/23231] " pinskia at gcc dot gnu dot org
@ 2005-08-06 23:57 ` wilson at gcc dot gnu dot org
2005-08-07 9:22 ` pfl at iis dot fhg dot de
2005-08-07 15:14 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 6+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-08-06 23:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From wilson at gcc dot gnu dot org 2005-08-06 23:57 -------
You need to add a --with-gnu-ld configure option.
GNU ld and Irix ld have incompatible options, and the toolchain naturally
defaults to assuming irix ld options, so you must specify GNU ld at configure
time for a binutils using cross.
It is possible that you may still run into problems. I don't know how good the
irix6 support is in the GNU linker. It probably doesn't support all of the
features of the native linker.
The cross64.h file has nothing to do with this. The file is no longer used and
should be deleted. I'll take care of that.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23231
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/23231] cross compiling fails for mips-sgi-irix6.5
2005-08-04 15:49 [Bug bootstrap/23231] New: " pfl at iis dot fhg dot de
2005-08-06 6:36 ` [Bug target/23231] " pinskia at gcc dot gnu dot org
2005-08-06 23:57 ` wilson at gcc dot gnu dot org
@ 2005-08-07 9:22 ` pfl at iis dot fhg dot de
2005-08-07 15:14 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 6+ messages in thread
From: pfl at iis dot fhg dot de @ 2005-08-07 9:22 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2643 bytes --]
------- Additional Comments From pfl at iis dot fhg dot de 2005-08-07 09:22 -------
I tried your suggestions with the following parameters:
I compilied with gcc-4.0.2 binutils 2.16.1 with:
CC="ccache i686-pc-linux-gnu-gcc-4.0" CXX="ccache i686-pc-linux-gnu-g++-4.0"
CFLAGS="-O1" CXXFLAGS="-O1" configure --cache-file=../binutils_configure-i686.
cache --prefix=/home/pfl/gnu --bindir=/home/pfl/gnu/bin --sbindir=/home/pfl/gnu/
sbin --libdir=/home/pfl/gnu/lib32 --program-prefix=i686-pc-linux-gnu-
Then I compiled gcc-4.0.2 with:
CC="ccache i686-pc-linux-gnu-gcc-4.0" CXX="ccache i686-pc-linux-gnu-g++-4.0"
CFLAGS="-O1" CXXFLAGS="-O1" ../gcc-4.0-20050728/configure --cache-file=../
gcc40_configure-mips.cache --prefix=/home/pfl/gnu --bindir=/home/pfl/gnu/bin --
sbindir=/home/pfl/gnu/sbin --libdir=/home/pfl/gnu/lib32 --disable-nls --disable-
multilib --disable-intl --enable-languages=c,c++ --target=mips-sgi-irix6.5 --
program-prefix=mips-sgi-irix6.5- --without-headers --with-newlib --with-gnu-ld -
-with-ld=/home/pfl/gnu/bin/mips-sgi-irix6.5-ld --with-gnu-as --with-as=/home/
pfl/gnu/bin/mips-pc-linux-gnu-as
This leads to:
...
/home/pfl/gnu/mips-sgi-irix6.5/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
...
Then I tried:
CC="ccache i686-pc-linux-gnu-gcc-4.0" CXX="ccache i686-pc-linux-gnu-g++-4.0"
CFLAGS="-O1" CXXFLAGS="-O1" ../gcc-4.0-20050728/configure --cache-file=../
gcc40_configure-mips.cache --prefix=/home/pfl/gnu --bindir=/home/pfl/gnu/bin --
sbindir=/home/pfl/gnu/sbin --libdir=/home/pfl/gnu/lib32 --disable-nls --disable-
multilib --disable-intl --enable-languages=c,c++ --target=mips-sgi-irix6.5 --
program-prefix=mips-sgi-irix6.5- --without-headers --with-newlib --with-gnu-ld
Which broke at the same line with:
...
/home/pfl/gnu/mips-sgi-irix6.5/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis »/home/pfl/gnu/build/mips-gcc-
4.0/gcc«
make[1]: *** [stmp-multilib] Fehler 2
rm gfdl.pod gcov.pod cpp.pod gpl.pod gcc.pod fsf-funding.pod
make[1]: Verlassen des Verzeichnisses Verzeichnis »/home/pfl/gnu/build/mips-gcc-
4.0/gcc«
make: *** [all-gcc] Fehler 2
If I manualy executed the line without -lc the line compiles/links. But the make
file tries to redo this step so I find myself in an endless loop of manual
compiling/linking and starting make.
I think the -lc linker switch could perhaps be removed from the Makefile.
I have a coupel of very fast machines and I am willing to try some parameter
constellations for you if you like.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23231
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/23231] cross compiling fails for mips-sgi-irix6.5
2005-08-04 15:49 [Bug bootstrap/23231] New: " pfl at iis dot fhg dot de
` (2 preceding siblings ...)
2005-08-07 9:22 ` pfl at iis dot fhg dot de
@ 2005-08-07 15:14 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-07 15:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-07 15:14 -------
(In reply to comment #3)
> I tried your suggestions with the following parameters:
No -lc is needed. Did you copy the libraries and headers from the IRIX box as you need both to get a
working cross compiler.
You might want to use --with-sysroot to make it easier for you.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23231
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-01-11 14:18 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-23231-4@http.gcc.gnu.org/bugzilla/>
2012-01-11 14:18 ` [Bug target/23231] cross compiling fails for mips-sgi-irix6.5 rguenth at gcc dot gnu.org
[not found] <bug-23231-11102@http.gcc.gnu.org/bugzilla/>
2005-11-09 18:35 ` pfl at iis dot fhg dot de
2005-08-04 15:49 [Bug bootstrap/23231] New: " pfl at iis dot fhg dot de
2005-08-06 6:36 ` [Bug target/23231] " pinskia at gcc dot gnu dot org
2005-08-06 23:57 ` wilson at gcc dot gnu dot org
2005-08-07 9:22 ` pfl at iis dot fhg dot de
2005-08-07 15:14 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).