public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/58768] New: lib path confusing for vms cross compiler -- dots vs. underscores, and ld vs. wrapper
@ 2013-10-17 10:00 jay.krell at cornell dot edu
  2013-10-17 10:50 ` [Bug driver/58768] " jay.krell at cornell dot edu
  0 siblings, 1 reply; 2+ messages in thread
From: jay.krell at cornell dot edu @ 2013-10-17 10:00 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58768

            Bug ID: 58768
           Summary: lib path confusing for vms cross compiler -- dots vs.
                    underscores, and ld vs. wrapper
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jay.krell at cornell dot edu

jbook2:gcc.1 jay$ uname -a
Darwin jbook2.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT
2009; root:xnu-1228.15.4~1/RELEASE_I386 i386


target=alpha-dec-vms

builds and installs ok, then attempt to use it:


 /usr/local/libexec/gcc/alpha-dec-vms/4_8_2/collect2 vms-dwarf2eh.o -v crt0.o
crtbegin.o -L/usr/local/lib/gcc/alpha-dec-vms/4_8_2
-L/usr/local/lib/gcc/alpha-dec-vms/4_8_2/../../../../alpha-dec-vms/lib
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc9WN55p.obj -lgcc crtend.o
collect2 version 4.8.2
/usr/local/libexec/gcc/alpha-dec-vms/4_8_2/ld vms-dwarf2eh.o -v crt0.o
crtbegin.o -L/usr/local/lib/gcc/alpha-dec-vms/4_8_2
-L/usr/local/lib/gcc/alpha-dec-vms/4_8_2/../../../../alpha-dec-vms/lib
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//cc9WN55p.obj -lgcc crtend.o
Couldn't locate library: libgcc.exe, libgcc.a or libgcc.olb
collect2: error: ld returned 1 exit status
jbook2:~ jay$ find /usr/local | grep libgcc.a
/usr/local/gcc-4.5.1/lib/gcc/i386-apple-darwin9.8.0/4.5.1/libgcc.a
/usr/local/gcc-4.5.1/lib/gcc/i386-apple-darwin9.8.0/4.5.1/x86_64/libgcc.a
/usr/local/lib/gcc/alpha-dec-vms/4.8.2/ev6/libgcc.a
/usr/local/lib/gcc/alpha-dec-vms/4.8.2/libgcc.a


see the problem -- dots and underscores confused.
The underscores are likely for a VMS host.
So I symlinked the files..then I get:

/usr/local/libexec/gcc/alpha-dec-vms/4_8_2/ld
/usr/local/lib/gcc/alpha-dec-vms/4_8_2/vms-dwarf2eh.o -v
/usr/local/lib/gcc/alpha-dec-vms/4_8_2/crt0.o
/usr/local/lib/gcc/alpha-dec-vms/4_8_2/crtbegin.o
-L/usr/local/lib/gcc/alpha-dec-vms/4_8_2
-L/usr/local/lib/gcc/alpha-dec-vms/4_8_2/../../../../alpha-dec-vms/lib
/var/folders/QG/QGSTvYqCGfSGxXo0rUMOX++++TI/-Tmp-//ccsriNyt.obj -lgcc
/usr/local/lib/gcc/alpha-dec-vms/4_8_2/crtend.o
$ link /exe=a_out.exe a_out.opt_tmpfile/opt
sh: $: command not found
collect2: error: ld returned 1 exit status


So this is some host/target confusion.
It should be running the GNU ld that I already have installed, not this
wrapper.

The 4.5.0 was simple, like:
Configured with: /src/gcc-4.5.0/configure -target=alpha64-dec-vms
-build=i686-darwin -disable-werror -enable-target-optspace -disable-nls
-disable-shared -disable-multilib -verbose

I'll go try that again.



I had this all working with 4.5.0 but accidentally deleted part of the
install..


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug driver/58768] lib path confusing for vms cross compiler -- dots vs. underscores, and ld vs. wrapper
  2013-10-17 10:00 [Bug driver/58768] New: lib path confusing for vms cross compiler -- dots vs. underscores, and ld vs. wrapper jay.krell at cornell dot edu
@ 2013-10-17 10:50 ` jay.krell at cornell dot edu
  0 siblings, 0 replies; 2+ messages in thread
From: jay.krell at cornell dot edu @ 2013-10-17 10:50 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58768

--- Comment #1 from Jay <jay.krell at cornell dot edu> ---
It looks like configure -with-gnu-ld will fix this.
I'm still testing.


It seems to me that you always want -with-gnu-ld here, to trigger    
config.gcc:tmake_file="$tmake_file vms/t-vmsnative", to get you the vms-ld.c
wrapper.


Unless somewhere else gcc knows how to invoke native VMS link.


But I'm building a cross compiler from Darwin here.
So VMS link isn't an option.
Granted, maybe I wrote my own third linker (I didn't).


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-17 10:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-17 10:00 [Bug driver/58768] New: lib path confusing for vms cross compiler -- dots vs. underscores, and ld vs. wrapper jay.krell at cornell dot edu
2013-10-17 10:50 ` [Bug driver/58768] " jay.krell at cornell dot edu

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).