Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Apr 2003 03:46:44 +0200 (CEST)
From:      "Klaus-J.Wolf" <yanestra@web.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/50842: gcc-3.2.2_20030205 won't profile
Message-ID:  <20030412014644.4B28B26@golulu.seismic.de>
Resent-Message-ID: <200304120150.h3C1oC5Q010231@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         50842
>Category:       ports
>Synopsis:       gcc-3.2.2_20030205 won't profile
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 11 18:50:11 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Klaus-J. Wolf
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
>Environment:
System: FreeBSD golulu.logelhorst.xx 4.8-RELEASE FreeBSD 4.8-RELEASE #2: Fri Apr 11 18:31:15 GMT 2003 root@golulu.logelhorst.xx:/usr/src/sys/compile/GOLULU i386


>Description:

Given a one-liner as program code, the following compilation instruction
doesn't succeed:

$ gcc32 -fprofile-arcs -o xxx xxx.c                   

/var/tmp//ccGqFanl.o(.stab+0x14): undefined reference to `LPBX0'
collect2: ld returned 1 exit status

The verbose output is attached.
The same make script works under Linux with default gcc-3.2.

>How-To-Repeat:

I think you can use any program, but I used:

main()
{
  puts("moin.");
}


>Fix:

None known. ktrace(1) didn't offer any hint I could understand.

--- 0log.verbose begins here ---
Reading specs from /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.2/specs
Configured with: ./..//gcc-3.2.2/configure --disable-nls --with-gnu-as --with-gnu-ld --with-gxx-include-dir=/usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.2/include/g++-v3 --with-system-zlib --includedir=/usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.2/include/Java --disable-libgcj --disable-shared --prefix=/usr/local i386-portbld-freebsd4.8
Thread model: posix
gcc version 3.2.2
 /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.2/cc1 -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=2 -D__GXX_ABI_VERSION=102 -D__FreeBSD__=4 -Dunix -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -D__FreeBSD__=4 -D__unix__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -D__unix -Asystem=unix -Asystem=bsd -Asystem=FreeBSD -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i386__ -D__ELF__ xxx.c -quiet -dumpbase xxx.c -version -fprofile-arcs -o /var/tmp//ccWPdZt1.s
GNU CPP version 3.2.2 (cpplib) (i386 FreeBSD/ELF)
GNU C version 3.2.2 (i386-portbld-freebsd4.8)
	compiled by GNU C version 3.2.2.
ignoring nonexistent directory "/usr/local/i386-portbld-freebsd4.8/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.2/include
 /usr/include
End of search list.
 as -v -o /var/tmp//cceuFJaY.o /var/tmp//ccWPdZt1.s
GNU assembler version 2.12.1 [FreeBSD] 2002-07-20 (i386-obrien-freebsd5.0) using BFD version 2.12.1 [FreeBSD] 2002-07-20
 /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.2/collect2 -V -dynamic-linker /usr/libexec/ld-elf.so.1 -o xxx /usr/lib/crt1.o /usr/lib/crti.o /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.2/crtbegin.o -L/usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.2 -L/usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.2/../../.. /var/tmp//cceuFJaY.o -lgcc -lc -lgcc /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.2/crtend.o /usr/lib/crtn.o
/var/tmp//cceuFJaY.o(.stab+0x14): undefined reference to `LPBX0'
GNU ld version 2.12.1 [FreeBSD] 2002-07-20
  Supported emulations:
   elf_i386
collect2: ld returned 1 exit status
--- 0log.verbose ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030412014644.4B28B26>