Bug 107670 - compile error with gcc; OK with gcc32
compile error with gcc; OK with gcc32
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-10-21 17:11 EDT by Gene Czarcinski
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-10-21 17:20:28 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
source code for module getting compile error (9.66 KB, text/plain)
2003-10-21 17:12 EDT, Gene Czarcinski
no flags Details

  None (edit)
Description Gene Czarcinski 2003-10-21 17:11:24 EDT
Description of problem:
I am getting a compile error trying to build the rss_glx-0.7.4 rpm.  If I set
CC=gcc32, then the package build.  I can supply everything include the full rpm
but you can probably get it quicker/better from sourceforge.

The error messages are:

if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../src  -O2 -g -pipe
-march=i386 -mcpu=i686  -I/usr/X11R6/include  -O2 -g -pipe -march=i386
-mcpu=i686  -I/usr/X11R6/include -MT rsMath.o -MD -MP -MF ".deps/rsMath.Tpo" \
  -c -o rsMath.o `test -f 'rsMath.c' || echo './'`rsMath.c; \
then mv -f ".deps/rsMath.Tpo" ".deps/rsMath.Po"; \
else rm -f ".deps/rsMath.Tpo"; exit 1; \
fi
rsMath.c:40:9: missing terminating " character
rsMath.c: In function `rsCPUDetect':
rsMath.c:41: error: syntax error before "xor"
rsMath.c:69:9: missing terminating " character
rsMath.c:89:17: missing terminating " character
rsMath.c: In function `rsVec_normalize':
rsMath.c:90: error: syntax error before "femms"
rsMath.c:130:17: missing terminating " character
rsMath.c:142:17: missing terminating " character
rsMath.c:143: error: syntax error before "movups"
rsMath.c:162:17: missing terminating " character
rsMath.c:190:17: missing terminating " character
rsMath.c: In function `rsVec_cross':
rsMath.c:191: error: syntax error before "femms"
rsMath.c:224:17: missing terminating " character
rsMath.c:236:17: missing terminating " character
rsMath.c:237: error: syntax error before "movups"
rsMath.c:253:17: missing terminating " character
make[3]: *** [rsMath.o] Error 1


I will attach the corresponding source code for rsMath.c
Comment 1 Gene Czarcinski 2003-10-21 17:12:54 EDT
Created attachment 95361 [details]
source code for module getting compile error
Comment 2 Jakub Jelinek 2003-10-21 17:20:28 EDT
See http://gcc.gnu.org/gcc-3.3/changes.html
* The preprocessor no longer accepts multi-line string literals. They were deprecated in 3.0, 3.1, and 3.2.
Which means you need to fix the code if you want to compile it with gcc 3.3 and later.
Either by adding \ at the end of each line in multi-line string, like:
"foo\
bar\
baz"
or by concatenating one-line strings:
"foo\n"
"bar\n"
"baz\n"
Comment 3 Gene Czarcinski 2003-10-21 17:26:29 EDT
Oops ... pilot error ... sort of.

The problem still exists with gcc32 since it is using g++ to compile.

However, this compiles OK on RHL9.

Note You need to log in before you can comment on or make changes to this bug.