Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Bing, Sogou

Members: 0
Guests: 3
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWFOTE FUSS » Compiling on Amazon EC2 Linux...
Forum Rules | Mark all | Recent Posts

Compiling on Amazon EC2 Linux Instance
< Newer Topic :: Older Topic > Running into some issues

Pages:<< prev 1 next >>
* #1 Feb 9, 2011, 9:03 am
Go to the top of the page
Go to the bottom of the page

Daiimus
Fledgling
GroupMembers
Posts13
JoinedFeb 26, 2006

I'm running into some errors when I compile on an Amazon EC2 instance. Any ideas?

make -s swr
  Compiling o/imc.o....
  Compiling o/11.o....
  Compiling o/act_comm.o....
  Compiling o/act_info.o....
  Compiling o/act_move.o....
cc1plus: warnings being treated as errors
act_move.c: In function ‘short int encumbrance(CHAR_DATA*, short int)’:
act_move.c:449: warning: converting to ‘short int’ from ‘double’
act_move.c:453: warning: converting to ‘short int’ from ‘double’
act_move.c:457: warning: converting to ‘short int’ from ‘double’
make[1]: *** [o/act_move.o] Error 1
make: *** [all] Error 2
[ec2-user@ip-10-196-55-97 src]$ 


Thanks in advance.
       
Post is unread #2 Feb 9, 2011, 9:13 am
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

Don't know if this is right or not, but simply change the short int's to double? :innocent:
       
Post is unread #3 Feb 9, 2011, 11:42 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Or, if there's a -WConversion flag in the C_FLAGS, remove it.
       
Post is unread #4 Feb 9, 2011, 2:55 pm
Go to the top of the page
Go to the bottom of the page

Daiimus
Fledgling
GroupMembers
Posts13
JoinedFeb 26, 2006

I feel kinda ridiculous but after looking at the comment in the downloads I took the -Werror flag out of the makefile and that resolved it. Thanks for you replies!
       
Post is unread #5 Feb 10, 2011, 12:31 pm
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005


Daiimus said:

I feel kinda ridiculous but after looking at the comment in the downloads I took the -Werror flag out of the makefile and that resolved it. Thanks for you replies!
The -Werror flag causes the compiler to treat warnings as errors. Removing it hid the problem, not fixed it.
       
Post is unread #6 Feb 10, 2011, 12:37 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Well it didn't even hide it, just allowed the spam to pollute the screen. Dropping the -WConversion flag would have removed the spam. Most of the warnings it's trying to give aren't critical to fix.
       
Post is unread #7 Feb 10, 2011, 12:56 pm
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005


Samson said:

Well it didn't even hide it, just allowed the spam to pollute the screen. Dropping the -WConversion flag would have removed the spam. Most of the warnings it's trying to give aren't critical to fix.
After Kayle showed me those flags, I cleaned up my code so it'd compile with it on, so I'm a bit anal about keeping them on and clean. I figure it's crying about something so I may as well fix it.
       
Post is unread #8 Feb 10, 2011, 1:34 pm
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

I don't use -WConversion. >.>
       
Post is unread #9 Feb 10, 2011, 1:47 pm
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

I don't use it either. Sometimes I disable features in a function and then I get those unused/uninitialized warnings for variables that were used in that section.

I know what the warnings mean, rather not have them stop me from compiling.
       
Pages:<< prev 1 next >>