Bitcoin Forum
May 10, 2015, 08:23:58 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Latest stable version of Bitcoin Core:
0.10.1
[
Torrent
] (
New!
)
Home
Help
Search
Donate
Login
Register
Bitcoin Forum
>
Bitcoin
>
Development & Technical Discussion
(Moderator:
gmaxwell
) >
Can't Build r80 from SVN
Pages: [
1
]
« previous topic
next topic »
Print
Author
Topic: Can't Build r80 from SVN (Read 2078 times)
lachesis
Full Member
Offline
Activity: 210
Ignore
Can't Build r80 from SVN
June 05, 2010, 01:03:34 AM
#1
I can't build r80 from the SVN with -O2 in the makefile. I'm running Ubuntu 10.04 LTS 64-bit on an Intel Core 2. If I remove -O2 (switch back to -O0), it builds fine.
The problem seems to be line 15 of net.h. My googling suggests that statement-expressions, some non-standard, GCC-only extension to C++, are not allowed outside of functions at that level of optimization. htons is implemented as a statement-expression for linux. I managed to get it to build by replacing the htos(8333) with 0x8D20, which is 8333 in network byte order. This compiles and runs fine on my Intel processor, but probably wouldn't work on a big endian processor like a PowerPC.
Is anybody else experiencing this bug?
Also, I'm somewhat disappointed. -O2 didn't help me generate hashes any faster. Perhaps I'll try -O3.
Bitcoin Calculator
|
Scallion
|
GPG Key
|
WoT Rating
| 1AFTbit16o6FNg2msnAbXVR2G3EVTWefmc
Vanity .onion address service
- <8 character addresses free!
1431289438
Hero Member
Offline
Posts: 1431289438
Ignore
1431289438
1431289438
#2
1431289438
Report to moderator
coin palace
Get
BONUS UP TO 1 BTC!
Limited offer!
CLAIM NOW!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Advertise here.
1431289438
Hero Member
Offline
Posts: 1431289438
Ignore
1431289438
1431289438
#2
1431289438
Report to moderator
1431289438
Hero Member
Offline
Posts: 1431289438
Ignore
1431289438
1431289438
#2
1431289438
Report to moderator
1431289438
Hero Member
Offline
Posts: 1431289438
Ignore
1431289438
1431289438
#2
1431289438
Report to moderator
1431289438
Hero Member
Offline
Posts: 1431289438
Ignore
1431289438
1431289438
#2
1431289438
Report to moderator
laszlo
Full Member
Offline
Activity: 199
Ignore
Re: Can't Build r80 from SVN
June 05, 2010, 03:12:48 AM
#2
You did the right thing.. none of it works on big endian anyway.
BC: 157fRrqAKrDyGHr1Bx3yDxeMv8Rh45aUet
D҉ataWraith
Member
Offline
Activity: 60
Ignore
Re: Can't Build r80 from SVN
June 05, 2010, 04:36:11 PM
#3
Quote from: lachesis on June 05, 2010, 01:03:34 AM
Is anybody else experiencing this bug?
Also, I'm somewhat disappointed. -O2 didn't help me generate hashes any faster. Perhaps I'll try -O3.
Yeah, I had the same problem.
BtW: If you look at the makefile, sha.{h,cpp} are already compiled -O3; using a higher optimization level for the remainder of the program is probably not going to help much.
1NvcPV6xi6yqo5yg8aWSkNdasPSAsGtt1m
laszlo
Full Member
Offline
Activity: 199
Ignore
Re: Can't Build r80 from SVN
June 05, 2010, 06:32:13 PM
#4
-O2 is generally the preferred optimization for gcc, -O3 can produce larger code which is slower, but you should experiment around with it.. it also seems to depend on the time of day or the phases of the moon for me at least, some days I'm getting a lot more hashes per second.
BC: 157fRrqAKrDyGHr1Bx3yDxeMv8Rh45aUet
Xunie
Full Member
Offline
Activity: 132
Ignore
Re: Can't Build r80 from SVN
June 05, 2010, 07:05:24 PM
#5
Please note that revision 77 is buildable (by default) and 78 isn't I believe.
And can you next time wait for your answer in IRC?
I mean, you asked your question twice, we're just not in the room 24/7!
Thank me for this post here: 1PyNKEyqtDFB4HBG8ueDVxdPZfgwC6gAqw
Caffeinism -- a toxic condition caused by excessive ingestion of coffee and other caffeine-containing beverage.
lachesis
Full Member
Offline
Activity: 210
Ignore
Re: Can't Build r80 from SVN
June 05, 2010, 07:40:54 PM
#6
I'm not in the room 24/7 either. I decided to go off IRC and to the forums so I wouldn't need to wait around all day.
I need to learn some more C++. There are a lot of things that would improve bitcoin like encrypted wallet files, built-in performance monitoring, RPC extension, etc. Is there any system for submitting patches for inclusion in the SVN and/or default builds?
I don't mean to come accross as confrontational. I love Bitcoin and just want to help improve it.
Bitcoin Calculator
|
Scallion
|
GPG Key
|
WoT Rating
| 1AFTbit16o6FNg2msnAbXVR2G3EVTWefmc
Vanity .onion address service
- <8 character addresses free!
laszlo
Full Member
Offline
Activity: 199
Ignore
Re: Can't Build r80 from SVN
June 06, 2010, 06:55:31 PM
#7
Some notes on how to build the linux client. I used a 64 bit system but the process is almost identical for i386 linux.
http://heliacal.net/~solar/bitcoin/bitcoin-linuxbuild.pdf
BC: 157fRrqAKrDyGHr1Bx3yDxeMv8Rh45aUet
lachesis
Full Member
Offline
Activity: 210
Ignore
Re: Can't Build r80 from SVN
June 06, 2010, 10:57:43 PM
#8
Quote from: laszlo on June 06, 2010, 06:55:31 PM
Some notes on how to build the linux client. I used a 64 bit system but the process is almost identical for i386 linux.
That's my process as well, although I apply a variety of patches to things before hand. And I have boost and I think libdb from Ubuntu's repos.
Bitcoin Calculator
|
Scallion
|
GPG Key
|
WoT Rating
| 1AFTbit16o6FNg2msnAbXVR2G3EVTWefmc
Vanity .onion address service
- <8 character addresses free!
satoshi
Founder
Sr. Member
Offline
Activity: 364
Ignore
Re: Can't Build r80 from SVN
June 14, 2010, 10:40:14 PM
#9
Sorry, I didn't test compile on linux the last few revisions.
Reverted makefile.unix.
Pages: [
1
]
Print
Bitcoin Forum
>
Bitcoin
>
Development & Technical Discussion
(Moderator:
gmaxwell
) >
Can't Build r80 from SVN
« previous topic
next topic »
Jump to:
Please select a destination:
-----------------------------
Bitcoin
-----------------------------
=> Bitcoin Discussion
===> Legal
===> Press
===> Meetups
===> Important Announcements
=> Development & Technical Discussion
===> Alternative clients
=====> MultiBit
=====> Electrum
=====> Bitcoin Wallet for Android
=====> BitcoinJ
=====> Armory
=> Mining
===> Mining support
===> Pools
===> Mining software (miners)
===> Hardware
=====> Group buys
===> Mining speculation
=> Technical Support
=> Project Development
-----------------------------
Economy
-----------------------------
=> Economics
===> Speculation
=> Marketplace
===> Goods
=====> Computer hardware
=====> Digital goods
===> Services
===> Currency exchange
===> Gambling
=====> Games and rounds
=====> Investor-based games
===> Lending
=====> Long-term offers
===> Securities
===> Auctions
===> Service Announcements
=====> Micro Earnings
===> Service Discussion
=> Trading Discussion
===> Scam Accusations
===> Reputation
-----------------------------
Other
-----------------------------
=> Meta
===> New forum software
===> Bitcoin Wiki
=> Politics & Society
=> Beginners & Help
=> Off-topic
=> Archival
===> CPU/GPU Bitcoin mining hardware
===> Chinese students
===> Obsolete (buying)
===> Obsolete (selling)
-----------------------------
Alternate cryptocurrencies
-----------------------------
=> Altcoin Discussion
=> Announcements (Altcoins)
=> Mining (Altcoins)
===> Pools (Altcoins)
=> Marketplace (Altcoins)
===> Service Announcements (Altcoins)
===> Service Discussion (Altcoins)
-----------------------------
Local
-----------------------------
=> Bahasa Indonesia (Indonesian)
===> Jual Beli
===> Mining (Bahasa Indonesia)
===> Altcoins (Bahasa Indonesia)
=> Español (Spanish)
===> Mercado y Economía
=====> Servicios
=====> Trading y especulación
===> Hardware y Minería
===> Esquina Libre
===> Mercadillo
=====> Mexico
=====> Argentina
=====> España
=====> Centroamerica y Caribe
===> Primeros pasos y ayuda
===> Altcoins (criptomonedas alternativas)
=====> Minería de altcoins
=====> Servicios
=> 中文 (Chinese)
===> 跳蚤市场
===> 山寨币
===> 媒体
===> 挖矿
===> 离题万里
=> Hrvatski (Croatian)
=> Deutsch (German)
===> Biete
===> Suche
===> Anfänger und Hilfe
===> Mining (Deutsch)
===> Trading und Spekulation
===> Projektentwicklung
===> Off-Topic (Deutsch)
===> Treffen
===> Presse
===> Auktionen
===> Altcoins (Deutsch)
=> Ελληνικά (Greek)
===> Αγορά
===> Mining (Ελληνικά)
===> Altcoins (Ελληνικά)
=> עברית (Hebrew)
=> Français
===> Actualité et News
===> Débutants
===> Discussions générales et utilisation du Bitcoin
===> Mining et Hardware
===> Économie et spéculation
===> Place de marché
=====> Échanges
=====> Produits et services
=====> Petites annonces
===> Le Bitcoin et la loi
===> Wiki, documentation et traduction
===> Développement et technique
===> Vos sites et projets
===> Hors-sujet
===> Altcoins (Français)
=> India
===> Mining (India)
===> Marketplace (India)
===> Regional Languages (India)
===> Press & News from India
===> Alt Coins (India)
===> Buyer/ Seller Reputations (India)
===> Off-Topic (India)
=> Italiano (Italian)
===> Guide (Italiano)
===> Progetti
===> Discussioni avanzate e sviluppo
===> Trading, analisi e speculazione
===> Mercato
=====> Mercato valute
=====> Beni
=====> Servizi
=====> Esercizi commerciali
=====> Hardware/Mining (Italiano)
=====> Gambling (Italiano)
===> Accuse scam/truffe
===> Mining (Italiano)
===> Alt-Currencies (Italiano)
=====> Annunci
===> Raduni/Meeting (Italiano)
===> Crittografia e decentralizzazione
===> Off-Topic (Italiano)
=> Nederlands (Dutch)
===> Markt
===> Gokken/lotterijen
===> Mining (Nederlands)
===> Beurzen
===> Alt Coins (Nederlands)
===> Off-topic (Nederlands)
===> Meetings (Nederlands)
=> 한국어 (Korean)
===> 대체코인 Alt Coins (한국어)
=> Polski
===> Tablica ogłoszeń
===> Alternatywne kryptowaluty
=> Português (Portuguese)
===> Primeiros Passos (Iniciantes)
===> Economia & Mercado
===> Mineração em Geral
===> Desenvolvimento & Discussões Técnicas
===> Criptomoedas Alternativas
===> Brasil
===> Portugal
=> Русский (Russian)
===> Новички
===> Новости
===> Бизнес
===> Идеи
===> Кодеры
===> Майнеры
===> Политика
===> Трейдеры
===> Форки
===> Хайпы
===> Юристы
===> Работа
===> Разное
===> Корзина
=> Română (Romanian)
===> Anunturi importante
===> Offtopic
===> Market
===> Minat
===> Tutoriale
===> Bine ai venit!
===> Presa
===> Altcoins (Monede Alternative)
=> Skandinavisk
=> Türkçe (Turkish)
===> Bitcoin Haberleri
===> Pazar Alanı
===> Madencilik
===> Ekonomi
===> Servisler
===> Alternatif Kripto-Paralar
===> Konu Dışı
===> Yeni Başlayanlar & Yardım
=> Other languages/locations
Sponsored by
Private Internet Access
, a Bitcoin-accepting
VPN
.
Loading...