Project

General

Profile

Actions

Emulator Issues #1150

closed

OS X Build-scons: building terminated because of errors- Atomic_GCC.h related

Added by shaneooconnor about 15 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What steps will reproduce the problem?

  1. entered cd dolphin-emu-read-only then scons in terminal after successfully completing
    previous steps for OS X 32-bit build
    2.
    3.

What is the expected output? What do you see instead?

scons: Reading SConscript files ...
Checking for pkg-config version > 0.15.0... (cached) yes
Looking for macports... (cached) Adding port lib and include path(cached) yes
Looking for fink... (cached) no
Checking for sdl lib version > 1.0.0... (cached) yes
Checking for bluez... (cached)
Looking for framework bluez... (cached)
Using pkg-config for bluez... (cached) no
Looking for lib bluez... (cached) no
Checking for ao... (cached)
Looking for framework ao... (cached)
Using pkg-config for ao... (cached) yes
Checking for openal... (cached)
Looking for framework openal... (cached) yes
Checking for sfml-network... (cached)
Looking for framework sfml-network... (cached)
Using pkg-config for sfml-network... (cached) no
Looking for lib sfml-network... (cached) no
Checking for wxWidgets >= 2.8... (cached) yes
Checking for OpenGL... (cached)
Looking for framework OpenGL... (cached) yes
Checking for Cg... (cached)
Looking for framework Cg... (cached) yes
Checking for GLEW... (cached)
Looking for framework GLEW... (cached)
Using pkg-config for glew... (cached) no
Looking for lib GLEW... (cached) yes
Plugin_PadSimpleEvnt Doesn't work without testgl
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: Build/Darwin-i386-release
Compiling Build/Darwin-i386-release/Source/Core/Core/Src/HW/CommandProcessor.o
Source/Core/Common/Src/Atomic_GCC.h: In function 'void Common::AtomicAdd(volatile u32&,
u32)':
Source/Core/Common/Src/Atomic_GCC.h:41: error: '__sync_add_and_fetch' was not declared in
this scope
Source/Core/Common/Src/Atomic_GCC.h: In function 'void Common::AtomicIncrement(volatile
u32&)':
Source/Core/Common/Src/Atomic_GCC.h:45: error: '__sync_add_and_fetch' was not declared in
this scope
Source/Core/Common/Src/Atomic_GCC.h: In function 'u32 Common::AtomicLoadAcquire(volatile
u32&)':
Source/Core/Common/Src/Atomic_GCC.h:52: error: '__sync_synchronize' was not declared in
this scope
Source/Core/Common/Src/Atomic_GCC.h: In function 'void
Common::AtomicStoreRelease(volatile u32&, u32)':
Source/Core/Common/Src/Atomic_GCC.h:60: error: '__sync_lock_test_and_set' was not declared
in this scope
scons: *** [Build/Darwin-i386-release/Source/Core/Core/Src/HW/CommandProcessor.o] Error 1
scons: building terminated because of errors.

What version of the product are you using? On what operating system?

OS-I'm using OS X 10.5.7
scons-v1.2.0.r3842
xcode-3.1.2

Please provide any additional information below.

I'm using a 15" MacBook Pro that's only a few days old.(I don't know if that's relevant)

Any addition information you need just ask. Please help.

Thanks in advance.

Actions #1

Updated by Anonymous about 15 years ago

  • Status changed from New to Duplicate

holy crap (&&% read

Actions #2

Updated by shaneooconnor about 15 years ago

What?

Actions #3

Updated by GCNWIIUploader about 15 years ago

It's been posted multiple times

Actions #4

Updated by shaneooconnor about 15 years ago

Right, the symbols next to it didn't make sense to me. "(&&%" ?
I thought it meant something.

Actions #5

Updated by GCNWIIUploader almost 15 years ago

nope

Actions #6

Updated by Anonymous almost 15 years ago

it meant expletive deleted.
the issue you duplicated was about an INCH above where this one was....jeez

Actions #7

Updated by celgilles almost 15 years ago

If you add the line: #include "Atomic.h" at the top of Source/Core/Core/Src/HW/CommandProcessor.h the
compilation should work. The same error-message will occur with Core.cpp etc. Simply add the Atomic.h header
again (Core.h) etc. At some point you'll need to add #include "Atomic.h" to "Common.h" since it is used in other
Header files too.
It will however stop to compile at AudioCommon.cpp... maybe we need to change the SConscript ....

Actions #8

Updated by shaneooconnor almost 15 years ago

Thanks, I'll be sure to try that. I actually got dolphin running on my Windows
partition. Does it run better on Windows XP or OS X? I'd think they're about the same.

Thanks again.

Actions #9

Updated by peter.schwarz almost 15 years ago

I tried this, and it works until I get to ActionReplay.h and ARDecrypt.h. At first,
ARDecrypt.o is built fine, but ActionReplay.o fails to build in a similar manner.
Adding the include to ActionReplay.h allows the .o file to build, but then ARDecrypt
fails to build. ARDecrypt.h references ActionReplay.h, so there some sort of
circular dependency here that's causing a problem.

Actions #10

Updated by peter.schwarz almost 15 years ago

Since all of the comments on are on this issue, can we reopen this one and close
#1141 as the dup.

Actions #11

Updated by GCNWIIUploader almost 15 years ago

@shaneooconnor
It runs much better on windows

Actions

Also available in: Atom PDF