public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/15186] New: ucblib isn't linked in correctly in 64bit mode
@ 2004-04-28 6:48 lloyd at must-have-coffee dot gen dot nz
2004-04-28 12:56 ` [Bug target/15186] -compat-bsd -m64 does not pick up the 64bit libraries pinskia at gcc dot gnu dot org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: lloyd at must-have-coffee dot gen dot nz @ 2004-04-28 6:48 UTC (permalink / raw)
To: gcc-bugs
When compiling with "-compat-bsd -m64", /usr/ucblib is put on the shared library
search path instead of /usr/ucblib/sparcv9. This doesn't work so well.
bash-2.03$ gcc -compat-bsd -m64 foo.c
bash-2.03$ ldd a.out
libucb.so.1 => /usr/ucblib/libucb.so.1 - wrong ELF class: ELFCLASS32
libsocket.so.1 => /usr/lib/64/libsocket.so.1
libnsl.so.1 => /usr/lib/64/libnsl.so.1
libelf.so.1 => /usr/lib/64/libelf.so.1
libaio.so.1 => /usr/lib/64/libaio.so.1
libc.so.1 => /usr/lib/64/libc.so.1
libdl.so.1 => /usr/lib/64/libdl.so.1
libmp.so.2 => /usr/lib/64/libmp.so.2
/usr/platform/SUNW,Ultra-5_10/lib/sparcv9/libc_psr.so.1
bash-2.03$
--
Summary: ucblib isn't linked in correctly in 64bit mode
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lloyd at must-have-coffee dot gen dot nz
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15186
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/15186] -compat-bsd -m64 does not pick up the 64bit libraries
2004-04-28 6:48 [Bug target/15186] New: ucblib isn't linked in correctly in 64bit mode lloyd at must-have-coffee dot gen dot nz
@ 2004-04-28 12:56 ` pinskia at gcc dot gnu dot org
2004-04-29 6:29 ` lloyd at must-have-coffee dot gen dot nz
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-28 12:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-28 11:44 -------
Confirmed, the issue is that -compat-bsd comes before -m64.
Can you try the opposite way: -m64 -compat-bsd, that should work.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2004-04-28 11:44:50
date| |
Summary|ucblib isn't linked in |-compat-bsd -m64 does not
|correctly in 64bit mode |pick up the 64bit libraries
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15186
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/15186] -compat-bsd -m64 does not pick up the 64bit libraries
2004-04-28 6:48 [Bug target/15186] New: ucblib isn't linked in correctly in 64bit mode lloyd at must-have-coffee dot gen dot nz
2004-04-28 12:56 ` [Bug target/15186] -compat-bsd -m64 does not pick up the 64bit libraries pinskia at gcc dot gnu dot org
@ 2004-04-29 6:29 ` lloyd at must-have-coffee dot gen dot nz
2004-05-03 4:40 ` lloyd at must-have-coffee dot gen dot nz
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: lloyd at must-have-coffee dot gen dot nz @ 2004-04-29 6:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lloyd at must-have-coffee dot gen dot nz 2004-04-29 04:22 -------
Nobody should be using -compat-bsd because the ucblib stuff is so awful. Anybody
using the (old) ucblib stuff with (new-ish) 64bit code needs their head read. I
only spotted this bug while looking at something else.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15186
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/15186] -compat-bsd -m64 does not pick up the 64bit libraries
2004-04-28 6:48 [Bug target/15186] New: ucblib isn't linked in correctly in 64bit mode lloyd at must-have-coffee dot gen dot nz
2004-04-28 12:56 ` [Bug target/15186] -compat-bsd -m64 does not pick up the 64bit libraries pinskia at gcc dot gnu dot org
2004-04-29 6:29 ` lloyd at must-have-coffee dot gen dot nz
@ 2004-05-03 4:40 ` lloyd at must-have-coffee dot gen dot nz
2004-05-03 4:50 ` [Bug driver/15186] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: lloyd at must-have-coffee dot gen dot nz @ 2004-05-03 4:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lloyd at must-have-coffee dot gen dot nz 2004-05-03 04:39 -------
(In reply to comment #1)
> Confirmed, the issue is that -compat-bsd comes before -m64.
I'm afraid that's not correct. The spec file doesn't seem to have a way of
determining the order of parameters on the command line. I tested this to be
sure and I can confirm that "-m64 -compat-bsd" works just the same as
"-compat-bsd -m64" (i.e. neither of them work).
Cheers,
Lloyd
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15186
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug driver/15186] -compat-bsd -m64 does not pick up the 64bit libraries
2004-04-28 6:48 [Bug target/15186] New: ucblib isn't linked in correctly in 64bit mode lloyd at must-have-coffee dot gen dot nz
` (2 preceding siblings ...)
2004-05-03 4:40 ` lloyd at must-have-coffee dot gen dot nz
@ 2004-05-03 4:50 ` pinskia at gcc dot gnu dot org
2004-05-04 3:38 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-03 4:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-03 04:50 -------
Well suspending as to fix this requires huge changes in the way multilib/driver works, see PR 3985
which is basically the same problem but for a different target and a different type of option.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |3985
Status|NEW |SUSPENDED
Component|target |driver
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15186
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug driver/15186] -compat-bsd -m64 does not pick up the 64bit libraries
2004-04-28 6:48 [Bug target/15186] New: ucblib isn't linked in correctly in 64bit mode lloyd at must-have-coffee dot gen dot nz
` (3 preceding siblings ...)
2004-05-03 4:50 ` [Bug driver/15186] " pinskia at gcc dot gnu dot org
@ 2004-05-04 3:38 ` pinskia at gcc dot gnu dot org
2004-05-06 22:58 ` [Bug target/15186] " pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-04 3:38 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |15275
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15186
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/15186] -compat-bsd -m64 does not pick up the 64bit libraries
2004-04-28 6:48 [Bug target/15186] New: ucblib isn't linked in correctly in 64bit mode lloyd at must-have-coffee dot gen dot nz
` (4 preceding siblings ...)
2004-05-04 3:38 ` pinskia at gcc dot gnu dot org
@ 2004-05-06 22:58 ` pinskia at gcc dot gnu dot org
2004-07-12 16:43 ` ebotcazou at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-06 22:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-06 22:58 -------
Oh, you are right, I must have looked into target files right, can you send your patch to gcc-patches
with a changelog ___after___ reading <http://gcc.gnu.org/contribute.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|SUSPENDED |NEW
Component|driver |target
Last reconfirmed|2004-04-28 11:44:50 |2004-05-06 22:58:13
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15186
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/15186] -compat-bsd -m64 does not pick up the 64bit libraries
2004-04-28 6:48 [Bug target/15186] New: ucblib isn't linked in correctly in 64bit mode lloyd at must-have-coffee dot gen dot nz
` (5 preceding siblings ...)
2004-05-06 22:58 ` [Bug target/15186] " pinskia at gcc dot gnu dot org
@ 2004-07-12 16:43 ` ebotcazou at gcc dot gnu dot org
2004-07-13 11:16 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-07-12 16:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-07-12 16:43 -------
I'll take care of the patch.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |ebotcazou at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15186
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/15186] -compat-bsd -m64 does not pick up the 64bit libraries
2004-04-28 6:48 [Bug target/15186] New: ucblib isn't linked in correctly in 64bit mode lloyd at must-have-coffee dot gen dot nz
` (6 preceding siblings ...)
2004-07-12 16:43 ` ebotcazou at gcc dot gnu dot org
@ 2004-07-13 11:16 ` cvs-commit at gcc dot gnu dot org
2004-07-13 11:18 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-07-13 11:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-07-13 11:16 -------
Subject: Bug 15186
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: ebotcazou@gcc.gnu.org 2004-07-13 11:16:35
Modified files:
gcc : ChangeLog
gcc/config/sparc: sol2-bi.h
Log message:
PR target/15186
* config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
/usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.4502&r2=2.4503
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/sol2-bi.h.diff?cvsroot=gcc&r1=1.18&r2=1.19
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15186
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/15186] -compat-bsd -m64 does not pick up the 64bit libraries
2004-04-28 6:48 [Bug target/15186] New: ucblib isn't linked in correctly in 64bit mode lloyd at must-have-coffee dot gen dot nz
` (7 preceding siblings ...)
2004-07-13 11:16 ` cvs-commit at gcc dot gnu dot org
@ 2004-07-13 11:18 ` cvs-commit at gcc dot gnu dot org
2004-07-13 11:21 ` cvs-commit at gcc dot gnu dot org
2004-07-13 11:23 ` ebotcazou at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-07-13 11:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-07-13 11:18 -------
Subject: Bug 15186
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: ebotcazou@gcc.gnu.org 2004-07-13 11:18:44
Modified files:
gcc : ChangeLog
gcc/config/sparc: sol2-bi.h
Log message:
PR target/15186
* config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
/usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.553&r2=2.2326.2.554
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/sol2-bi.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.14.4.3&r2=1.14.4.4
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15186
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/15186] -compat-bsd -m64 does not pick up the 64bit libraries
2004-04-28 6:48 [Bug target/15186] New: ucblib isn't linked in correctly in 64bit mode lloyd at must-have-coffee dot gen dot nz
` (8 preceding siblings ...)
2004-07-13 11:18 ` cvs-commit at gcc dot gnu dot org
@ 2004-07-13 11:21 ` cvs-commit at gcc dot gnu dot org
2004-07-13 11:23 ` ebotcazou at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-07-13 11:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-07-13 11:21 -------
Subject: Bug 15186
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: ebotcazou@gcc.gnu.org 2004-07-13 11:21:19
Modified files:
gcc : ChangeLog
gcc/config/sparc: sol2-bi.h
Log message:
PR target/15186
* config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
/usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.999&r2=1.16114.2.1000
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/sol2-bi.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.8.4.2&r2=1.8.4.3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15186
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/15186] -compat-bsd -m64 does not pick up the 64bit libraries
2004-04-28 6:48 [Bug target/15186] New: ucblib isn't linked in correctly in 64bit mode lloyd at must-have-coffee dot gen dot nz
` (9 preceding siblings ...)
2004-07-13 11:21 ` cvs-commit at gcc dot gnu dot org
@ 2004-07-13 11:23 ` ebotcazou at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-07-13 11:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-07-13 11:23 -------
See http://gcc.gnu.org/ml/gcc-patches/2004-07/msg01330.html
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Keywords|wrong-code |
Resolution| |FIXED
Target Milestone|--- |3.3.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15186
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2004-07-13 11:23 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-28 6:48 [Bug target/15186] New: ucblib isn't linked in correctly in 64bit mode lloyd at must-have-coffee dot gen dot nz
2004-04-28 12:56 ` [Bug target/15186] -compat-bsd -m64 does not pick up the 64bit libraries pinskia at gcc dot gnu dot org
2004-04-29 6:29 ` lloyd at must-have-coffee dot gen dot nz
2004-05-03 4:40 ` lloyd at must-have-coffee dot gen dot nz
2004-05-03 4:50 ` [Bug driver/15186] " pinskia at gcc dot gnu dot org
2004-05-04 3:38 ` pinskia at gcc dot gnu dot org
2004-05-06 22:58 ` [Bug target/15186] " pinskia at gcc dot gnu dot org
2004-07-12 16:43 ` ebotcazou at gcc dot gnu dot org
2004-07-13 11:16 ` cvs-commit at gcc dot gnu dot org
2004-07-13 11:18 ` cvs-commit at gcc dot gnu dot org
2004-07-13 11:21 ` cvs-commit at gcc dot gnu dot org
2004-07-13 11:23 ` ebotcazou 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).