Bug 41205 - [4.5 Regression] Bootstrap broken on i686-apple-darwin9 by revision 151249
Summary: [4.5 Regression] Bootstrap broken on i686-apple-darwin9 by revision 151249
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: 4.5.0
Assignee: Dodji Seketeli
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-01 01:04 UTC by Dominique d'Humieres
Modified: 2009-10-05 22:07 UTC (History)
2 users (show)

See Also:
Host: i686-apple-darwin9
Target: i686-apple-darwin9
Build: i686-apple-darwin9
Known to work:
Known to fail:
Last reconfirmed: 2009-09-01 07:00:06


Attachments
Obvious fix candidate (913 bytes, patch)
2009-09-01 07:01 UTC, Dodji Seketeli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique d'Humieres 2009-09-01 01:04:41 UTC
Revision 151249 broke bootstrap on i686-apple-darwin9:

gcc  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -Wold-style-definition -fno-common  -DHAVE_CONFIG_H  -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-ppoutput.o c-cppbuiltin.o c-objc-common.o c-dump.o c-pch.o c-parser.o i386-c.o darwin-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o \
	  dummy-checksum.o main.o tree-browser.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ./../intl/libintl.a /usr/lib/libiconv.dylib  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a  -L/sw/lib -lcloog -L/sw/lib -lppl_c -lppl -lgmpxx -L/opt/mpc/build/lib -lmpc -L/sw/lib -lmpfr -lgmp  
Undefined symbols:
  "_strnlen", referenced from:
      _make_ith_pack_parameter_name in libbackend.a(dwarf2out.o)
Comment 1 Dominique d'Humieres 2009-09-01 01:09:41 UTC
From http://linux.die.net/man/3/strnlen:

...
Conforming to

This function is a GNU extension.
...
Comment 2 Dodji Seketeli 2009-09-01 07:01:15 UTC
Created attachment 18459 [details]
Obvious fix candidate

Could you please test this patch on darwin and see if it fixes bootstrap for you ?
I am sorry I don't have any darwin system at hand to test.

Thanks.
Comment 3 Dodji Seketeli 2009-09-01 08:46:05 UTC
Subject: Bug 41205

Author: dodji
Date: Tue Sep  1 08:45:38 2009
New Revision: 151262

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151262
Log:
Fix bootstrap after patch PR debug/30161

gcc/ChangeLog:
	PR bootstrap/41205
	Fix AIX bootstrap after PR debug/30161
	* dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
	that is a GNU extension.
	(tmpl_value_parm_die_table): Move the definition of this global
	outside #ifdef DWARF2_DEBUGGING_INFO region.

gcc/cp/ChangeLog:
	PR bootstrap/41205
	* pt.c (make_ith_pack_parameter_name): Don't use strnlen that is a
	GNU extension.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/dwarf2out.c

Comment 4 Dodji Seketeli 2009-09-01 08:55:48 UTC
Fixed in trunk.