[Bug driver/58768] New: lib path confusing for vms cross compiler -- dots vs. underscores, and ld vs. wrapper

jay.krell at cornell dot edu gcc-bugzilla@gcc.gnu.org
Thu Oct 17 10:00:00 GMT 2013


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



More information about the Gcc-bugs mailing list