Bug 31142 - Build with "CC='gcc -pg'" fails
Summary: Build with "CC='gcc -pg'" fails
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-11 23:21 UTC by Tobias Schlüter
Modified: 2014-11-08 20:55 UTC (History)
2 users (show)

See Also:
Host:
Target: i386-darwin
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Schlüter 2007-03-11 23:21:52 UTC
Configuring with
 ../configure --enable-languages=c,fortran --with-gmp=/sw CC='gcc -pg'
and optionally --disable-botstrap fails with
# @multilib_dir@ is not really necessary, but sometimes it has
# more uses than just a directory name.
/bin/sh ../../../../libgcc/../mkinstalldirs x86_64
/Users/tobi/src/pristine/profile/./gcc/xgcc -B/Users/tobi/src/pristine/profile
/gcc/ -B/usr/local/i386-apple-darwin8.8.3/bin/ -B/usr/local/i386-apple-darwin8
.3/lib/ -isystem /usr/local/i386-apple-darwin8.8.3/include -isystem /usr/local
386-apple-darwin8.8.3/sys-include -O2  -O2 -g -O2  -DIN_GCC    -W -Wall -Wwrit
strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isys
m ./include  -fPIC -pipe -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT
EEDED  -dynamiclib -nodefaultlibs -install_name /usr/local/lib/libgcc_s`if tes
x86_64 = ppc64 ; then echo _x86_64 ; fi`.1.dylib -single_module -o x86_64/libg
_s.1.dylib.tmp -Wl,-exported_symbols_list,libgcc.map -compatibility_version 1 
urrent_version 1.0 -g -fkeep-inline-functions -m64 -B./ _muldi3_s.o _negdi2_s.
_lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s
 _enable_execute_stack_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.
_addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o 
egvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.
_clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcou
di2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _
witf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_
o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _fixunssfsi_s.o _fixunsd
i_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixtfdi_s.o _fix
ssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _fixunstfdi_s.o _floatdisf_s.o _floa
idf_s.o _floatdixf_s.o _floatditf_s.o _floatundisf_s.o _floatundidf_s.o _float
dixf_s.o _floatunditf_s.o _fixsfti_s.o _fixdfti_s.o _fixxfti_s.o _fixtfti_s.o 
ixunssfti_s.o _fixunsdfti_s.o _fixunsxfti_s.o _fixunstfti_s.o _floattisf_s.o _
oattidf_s.o _floattixf_s.o _floattitf_s.o _floatuntisf_s.o _floatuntidf_s.o _f
atuntixf_s.o _floatuntitf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.
_udiv_w_sdiv_s.o _udivmoddi4_s.o darwin-64_s.o unwind-dw2_s.o unwind-dw2-fde-d
win_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o -lc
i686-apple-darwin8-gcc-4.0.1: 1: No such file or directory
i686-apple-darwin8-gcc-4.0.1: 1.0: No such file or directory
i686-apple-darwin8-gcc-4.0.1: /usr/local/lib/libgcc_s.1.dylib: No such file or
irectory
i686-apple-darwin8-gcc-4.0.1: 10.4: No such file or directory
collect2: ld returned 1 exit status
make[5]: *** [libgcc_s.dylib] Error 1
make[4]: *** [multi-do] Error 1
make[3]: *** [all-multi] Error 2
make[2]: *** [all-stage1-target-libgcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2
[1]-  Done                    xchat  (wd: ~)
(wd now: ~/src/pristine/profile)
tobias-schluters-computer:~/src/pristine/profile tobi$
Comment 1 Tobias Schlüter 2007-03-11 23:23:46 UTC
A few version numbers:
tobias-schluters-computer:~/src/pristine/profile tobi$ make --version
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
tobias-schluters-computer:~/src/pristine/profile tobi$ ld -v
Apple Computer, Inc. version cctools-622.3.obj~2
tobias-schluters-computer:~/src/pristine/profile tobi$ gcc -v
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5363.obj~28/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5363)
tobias-schluters-computer:~/src/pristine/profile tobi$
Comment 2 Andrew Pinski 2007-03-11 23:24:53 UTC
--disable-botstrap does not work on the mainline after toplevel libgcc.

Also if you are doing profiling on Darwin, can I suggest you use Shark which is part of the CHUD tools from Apple.
Comment 3 Francois-Xavier Coudert 2014-11-08 20:55:34 UTC
This bug does not exist on current trunk, which bootstraps fine with CC='gcc -pg'.
Closing as part of a clean-up effort :)