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]

Re: Nit: False 'file path prefix never used' warning


On Thu, Jul 29, 1999 at 05:32:25PM -0600, Jeffrey A Law wrote:
>   > drow:~$ c++ -fPIC -shared segvtest.o -B/usr/local/binutils/bin
>   > c++: file path prefix `/usr/local/binutils/bin' never used
> You forgot the trailing slash on your -B argument.

Doesn't make a difference here:

drow:~$ c++ -fPIC -shared segvtest.o -B/usr/local/binutils/bin/
c++: file path prefix `/usr/local/binutils/bin/' never used
drow:~$ c++ -fPIC -shared segvtest.o -B/usr/local/binutils/bin
c++: file path prefix `/usr/local/binutils/bin' never used
drow:~$ c++ -fPIC -shared segvtest.o
collect2: ld terminated with signal 11 [Segmentation fault], core dumped


Out of curiousity, what difference does the presence/absence of the
trailing slash usually have?

Another interesting nit I noticed while debugging this:

drow:/drow# ulimit -c 0
drow:/drow# c++ -fPIC -shared segvtest.o
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
drow:/drow# ls -l core
ls: core: No such file or directory

drow:/drow# ulimit -c unlimited
drow:/drow# c++ -fPIC -shared segvtest.o
collect2: ld terminated with signal 11 [Segmentation fault]
drow:/drow# ls -l core
-rw-------   1 root     root      1634304 Jul 29 20:23 core

Apparently collect2 is misinterpreting the exit status of ld, reversing
the meaning of "core dumped".

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan@debian.org         |  |       dmj+@andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/


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