This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/26710] New: build failure on mactel: non-relocatable subtraction error for compile_options.c
- From: "ccb at dl dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Mar 2006 10:41:20 -0000
- Subject: [Bug libfortran/26710] New: build failure on mactel: non-relocatable subtraction error for compile_options.c
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
For the released 4.1.0, building runtime/compile_options.c (and others) fail on
i386 os x with a non-relocatable subtraction error. A simple short term
workaround is to use -fno-common when building
Output from cut and pasted line:
/Users/Shared/gcc/./gcc/xgcc -B/Users/Shared/gcc/./gcc/
-B/usr/local/i386-apple-darwin8.5.1/bin/
-B/usr/local/i386-apple-darwin8.5.1/lib/ -isystem
/usr/local/i386-apple-darwin8.5.1/include -isystem
/usr/local/i386-apple-darwin8.5.1/sys-include -DHAVE_CONFIG_H -I.
-I../../../gcc-4.1.0/libgfortran -I. -iquote../../../gcc-4.1.0/libgfortran/io
-I../../../gcc-4.1.0/libgfortran/../gcc
-I../../../gcc-4.1.0/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE
-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wextra -Wwrite-strings -c
../../../gcc-4.1.0/libgfortran/runtime/compile_options.c -o compile_options.o
/var/tmp//ccMDk2iK.s:46:non-relocatable subtraction expression,
"__gfortrani_compile_options" minus "L00000000003$pb"
/var/tmp//ccMDk2iK.s:46:symbol: "__gfortrani_compile_options" can't be
undefined in a subtraction expression
/var/tmp//ccMDk2iK.s:34:non-relocatable subtraction expression,
"__gfortrani_compile_options" minus "L00000000002$pb"
After a successful build the specs are:
Using built-in specs.
Target: i386-apple-darwin8.5.1
Configured with: ../gcc-4.1.0/configure --enable-languages=c,c++,fortran,java
Thread model: posix
gcc version 4.1.0
- does not occur under ppc-apple-darwin8.5.0, even if the command line is cut
and pasted across.
--
Summary: build failure on mactel: non-relocatable subtraction
error for compile_options.c
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ccb at dl dot ac dot uk
GCC build triplet: i386-apple-darwin8.5.1
GCC host triplet: i386-apple-darwin8.5.1
GCC target triplet: i386-apple-darwin8.5.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26710