twchapman / nativeclient-sdk

Automatically exported from code.google.com/p/nativeclient-sdk
0 stars 0 forks source link

Mac: calling nacl-g++ refers to a nonexisting nacl64-g++ executable. #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Unpack the Mac SDK.
2. Execute the $NACL_SDK/toolchain/mac_x86/bin/nacl-g++ executable.

What is the expected output? What do you see instead?
The following is printed:

bin/nacl-g++: line 3: 
/Users/millenomi/Downloads/native_client_sdk_0_1_358_0/toolchain/mac_x86/bin/nac
l64-
g++: No such file or directory
bin/nacl-g++: line 3: exec: 
/Users/millenomi/Downloads/native_client_sdk_0_1_358_0/toolchain/mac_x86/bin/nac
l64-
g++: cannot execute: No such file or directory

What version of the product are you using? On what operating system?
Using version whose directory unpacks as 'native_client_sdk_0_1_358_0'.

Please provide any additional information below.

Original issue reported on code.google.com by millen...@gmail.com on 12 May 2010 at 5:44

GoogleCodeExporter commented 9 years ago
A symlink named nacl64-g++ exists but is symlinked incorrectly:

nacl64-g++ -> native_client_sdk_0_1_358_0/toolchain/mac_x86/bin/nacl64-c++

causing the OS to look for it in 
$NACL_SDK/toolchain/mac_x86/bin/native_client_sdk_0_1_358_0/….

Original comment by millen...@gmail.com on 12 May 2010 at 5:46

GoogleCodeExporter commented 9 years ago
Cannot reproduce this in the latest version of the SDK 
(native_client_sdk_0_1_411_0).

Original comment by dsprin...@google.com on 10 Jun 2010 at 9:02

GoogleCodeExporter commented 9 years ago
In mac nacl sdk, goto and edit:
/examples/common.mk

than replace old lines with new:
CC = $(NACL_SDK_ROOT)/$(NACL_TOOLCHAIN_DIR)/bin/nacl-cpp
CPP = $(NACL_SDK_ROOT)/$(NACL_TOOLCHAIN_DIR)/bin/nacl64-c++

Original comment by shan...@gmail.com on 13 Oct 2010 at 11:34