Share

Macaulay2

Tracker: Bugs

5 M2-0.9.10 (2006-07-10 svn checkout), gcc-4.1.1 build failure - ID: 1521380
Last Update: Comment added ( dangrayson )

g++ -O2 -g -pipe -Wall -Wshadow -Wcast-qual
-Wno-parentheses -Wno-sign-compare -DNDEBUG
-I../../../include -I../../util -I.. -c -o
MonomialTable.o MonomialTable.cpp -Wno-old-style-cast
../../d/M2types.h:8: error: previous declaration of
'char newline []' with 'C++' linkage
../text_io.hpp:15: error: conflicts with new
declaration with 'C' linkage


Rex Dieter ( rexdieter ) - 2006-07-12 18:28

5

Closed

Works For Me

Daniel R. Grayson

None

None

Public


Comments ( 11 )

Date: 2007-01-24 05:58
Sender: dangraysonProject Admin


Let me know if the problem recurs, I'm closing this...


Date: 2006-10-20 17:51
Sender: dangraysonProject Admin

Logged In: YES
user_id=494917

If this is still a problem I'd like to see the preprocessed
source code for that file. So add "-E" to the g++ command
line and change -o MonomialTable.o to -o MonomialTable.E and
send me the file MonomialTable.E as an attachment after
running g++ that way.

If it's not a problem still, let me know.


Date: 2006-07-13 15:14
Sender: rexdieter

Logged In: YES
user_id=205794

Yep, currently operating on stable/2006-07-04 (internally
versioned as Macaulay2-0.9.10).


Date: 2006-07-12 20:11
Sender: dangraysonProject Admin

Logged In: YES
user_id=494917

Also, please use only one of our stable branches for making
final distributions. They are at
svn://u123.math.uiuc.edu/Macaulay2/stable .



Date: 2006-07-12 20:10
Sender: dangraysonProject Admin

Logged In: YES
user_id=494917

umm, my style.hpp says this:

extern "C" char newline[];

if yours does, I don't see how you're getting the error


Date: 2006-07-12 19:39
Sender: rexdieter

Logged In: YES
user_id=205794

> Which variable in style.hpp?

Same one, newline. I just ended up commenting out the
newline defs since they were already defined in M2types.h

> My gcc 4.1.1 doesn't give an error. Why does yours??

Good question, mine's from Fedora Core 6 (test1), trying to
build the latest/greatest Macaulay2 for Fedora Extras. (:


Date: 2006-07-12 19:28
Sender: dangraysonProject Admin

Logged In: YES
user_id=494917

Which variable in style.hpp?


Date: 2006-07-12 19:27
Sender: dangraysonProject Admin

Logged In: YES
user_id=494917

My gcc 4.1.1 doesn't give an error. Why does yours??

I'll fix it, too.


Date: 2006-07-12 19:24
Sender: rexdieter

Logged In: YES
user_id=205794

FYI, Macaulay2/e/style.hpp has the same issue (if you hadn't
caught that already).


Date: 2006-07-12 19:21
Sender: dangraysonProject Admin

Logged In: YES
user_id=494917

Thanks for the report. All fixed.


Date: 2006-07-12 18:31
Sender: rexdieter

Logged In: YES
user_id=205794

Seems to me the simplistic fix would be to make the
declarations match, using either
extern "C" char newline[];
or
extern char newline[];



Attached File ( 1 )

Filename Description Download
Macaulay2-0.9.10-gcc41.patch patch I used to remove duplicate declarations Download

Changes ( 11 )

Field Old Value Date By
close_date - 2007-01-24 05:58 dangrayson
resolution_id None 2007-01-24 05:58 dangrayson
status_id Open 2007-01-24 05:58 dangrayson
File Added 184815: Macaulay2-0.9.10-gcc41.patch 2006-07-13 15:15 rexdieter
resolution_id Fixed 2006-07-12 19:27 dangrayson
status_id Closed 2006-07-12 19:27 dangrayson
close_date 2006-07-12 19:21 2006-07-12 19:27 dangrayson
status_id Open 2006-07-12 19:21 dangrayson
close_date - 2006-07-12 19:21 dangrayson
resolution_id None 2006-07-12 19:21 dangrayson
assigned_to nobody 2006-07-12 18:31 rexdieter