This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: Ping^2: [Patch] PR 37454 - Fix -rdynamic check in gcc/configure


> This seems to break at least my existing trees like
>
> gcc  -g -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual
> -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
> -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
> -Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H -fPIC
> -shared -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 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 -ldl
> ../libcpp/libcpp.a   ../libiberty/libiberty.a
> ../libdecnumber/libdecnumber.a  -lcloog  -lppl_c -lppl -lgmpxx -lmpc
> -lmpfr -lgmp -rdynamic -ldl  -L../zlib -lz -lelf
> /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld:
> c-lang.o: relocation R_X86_64_32 against `.text' can not be used when
> making a shared object; recompile with -fPIC
> c-lang.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [cc1-dummy] Error 1
>
> (non-bootstrapped x86_64-linux).  Non-bootstrapped i?86 simply segfaults.

Here's the error we get for a bootstrapped c/c++/ada compiler:

./../xgcc -B../../ -c -DIN_GCC  
`echo -O2 -g -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -Wold-style-definition -Wc++-compat -fno-common  |
sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`  \
         -I. -I.. -I../.. -I/red.a/gnatmail-x/build-red/src/gcc/ada -I/red.a/gnatmail-x/build-red/src/gcc/../include -I/red.a/gnatmail-x/build-red/src/gcc 
\
        ../rts/targext.c -o targext.o
../../xgcc -B../../ -static-libgcc -I- -I../rts -I. -I/red.a/gnatmail-x/build-red/src/gcc/ada -DIN_GCC  
`echo -O2 -g -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -Wold-style-definition -Wc++-compat -fno-common  |
sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -fPIC -shared -o ../../gnatmake 
b_gnatm.o a-except.o ali.o ali-util.o s-casuti.o alloc.o atree.o binderr.o 
butil.o casing.o csets.o debug.o elists.o einfo.o erroutc.o errutil.o 
err_vars.o fmap.o fname.o fname-uf.o fname-sf.o gnatmake.o gnatvsn.o 
hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o make.o makeusg.o 
makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o mlib-tgt-specific.o 
mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o output.o prj.o prj-attr.o 
prj-attr-pm.o prj-com.o prj-dect.o prj-env.o prj-conf.o prj-pp.o prj-err.o 
prj-ext.o prj-nmsc.o prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o 
prj-util.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o scans.o 
scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o sinfo.o sinput.o 
sinput-c.o sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o 
validsw.o switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o 
uintp.o uname.o urealp.o usage.o widechar.o  \
            ../../prefix.o ../../version.o targext.o 
link.o ../rts/libgnat.a ../../../libiberty/libiberty.a   
/red.a/gnatmail-x/build-red/obj/ld: b_gnatm.o: relocation R_X86_64_32 against 
`system__restrictions__run_time_restrictions' can not be used when making a 
shared object; recompile with -fPIC
b_gnatm.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [../../gnatmake] Error 1
make[2]: Leaving directory `/red.a/gnatmail-x/build-red/obj/gcc/ada/tools'
make[1]: *** [gnattools1] Error 2
make[1]: Leaving directory `/red.a/gnatmail-x/build-red/obj/gcc/ada'
make: *** [gnattools] Error 2

-- 
Eric Botcazou


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