[
https://issues.apache.org/jira/browse/HDFS-7774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Nauroth updated HDFS-7774:
--------------------------------
Resolution: Fixed
Fix Version/s: 2.7.0
Hadoop Flags: Reviewed
Status: Resolved (was: Patch Available)
+1 for the patch. I committed this to trunk and branch-2.
There was a minor formatting issue in pom.xml indenting by 4 spaces instead of
the standard 2. I corrected that before committing.
Thanks for the tip about heap sizing. I had forgotten that I had set
{{MAVEN_OPTS=-Xmx1G}}, so I suspect the Maven processes were taking RAM on my
VM that should have been dedicated to the test process. After I set
{{MAVEN_OPTS=-Xmx512M}} and {{LIBHDFS_OPTS=-Xmx512M}}, I got a clean test run.
bq. -1 tests included. The patch doesn't appear to include any new or modified
tests.
There are no new tests required, because this patch was enabling a new build
target.
> Unresolved symbols error while compiling HDFS on Windows 7/32 bit
> -----------------------------------------------------------------
>
> Key: HDFS-7774
> URL: https://issues.apache.org/jira/browse/HDFS-7774
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: build, native
> Affects Versions: 2.6.0
> Environment: Windows 7, 32 bit, Visual Studio 10.
> Windows PATH:
> PATH=C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\PIG\pig-0.13.0\bin;C:\PROGRA~1\JAVA\JDK1.7.0_71\bin;C:\Program
> Files\Microsoft Windows Performance
> Toolkit\;C:\GNUWIN32\GETGNUWIN32\BIN;C:\CYGWIN\BIN;D:\git\cmd;D:\GIT\BIN;D:\MAVEN-3-2-3\APACHE-MAVEN-3.2.3-BIN\apache-maven-3.2.3\bin;D:\UTILS;c:\windows\Microsoft.NET\Framework\v4.0.30319;D:\cmake\bin;c:\progra~1\Micros~1.0\vc\crt\src;
> SDK Path:
> PATH=C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Windows\Microsoft.NET\Framework\v3.5;;C:\Program
> Files\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files\Microsoft
> Visual Studio 10.0\Common7\Tools;;C:\Program Files\Microsoft Visual Studio
> 10.0\VC\Bin;C:\Program Files\Microsoft Visual Studio
> 10.0\VC\Bin\VCPackages;;C:\Program Files\Microsoft
> SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools;C:\Program Files\Microsoft
> SDKs\Windows\v7.1\Bin;;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\PIG\pig-0.13.0\bin;C:\PROGRA~1\JAVA\JDK1.7.0_71\bin;C:\Program
> Files\Microsoft Windows Performance
> Toolkit\;C:\GNUWIN32\GETGNUWIN32\BIN;C:\CYGWIN\BIN;D:\git\cmd;D:\GIT\BIN;D:\MAVEN-3-2-3\APACHE-MAVEN-3.2.3-BIN\apache-maven-3.2.3\bin;D:\UTILS;c:\windows\Microsoft.NET\Framework\v4.0.30319;D:\cmake\bin;c:\progra~1\Micros~1.0\vc\crt\src;
> Reporter: Venkatasubramaniam Ramakrishnan
> Assignee: Kiran Kumar M R
> Priority: Critical
> Labels: build
> Fix For: 2.7.0
>
> Attachments: HDFS-7774-001.patch, HDFS-7774-002.patch,
> Win32_Changes-temp.patch
>
>
> I am getting the following error in the hdfs module compilation:
> .
> .
> .
> [exec] ClCompile:
> [exec] All outputs are up-to-date.
> [exec] Lib:
> [exec] All outputs are up-to-date.
> [exec] hdfs_static.vcxproj ->
> D:\h\hadoop-2.6.0-src\hadoop-hdfs-project\hadoop-hdfs\target\native\target\bin\RelWithDebInfo\hdfs.lib
> [exec] FinalizeBuildStatus:
> [exec] Deleting file
> "hdfs_static.dir\RelWithDebInfo\hdfs_static.unsuccessfulbuild".
> [exec] Touching
> "hdfs_static.dir\RelWithDebInfo\hdfs_static.lastbuildstate".
> [exec] Done Building Project
> "D:\h\hadoop-2.6.0-src\hadoop-hdfs-project\hadoop-hdfs\target\native\hdfs_static.vcxproj"
> (default targets).
> [exec] Done Building Project
> "D:\h\hadoop-2.6.0-src\hadoop-hdfs-project\hadoop-hdfs\target\native\ALL_BUILD.vcxproj"
> (default targets) -- FAILED.
> [exec]
> [exec] Build FAILED.
> [exec]
> [exec]
> "D:\h\hadoop-2.6.0-src\hadoop-hdfs-project\hadoop-hdfs\target\native\ALL_BUILD.vcxproj"
> (default target) (1) ->
> [exec]
> "D:\h\hadoop-2.6.0-src\hadoop-hdfs-project\hadoop-hdfs\target\native\hdfs.vcxproj"
> (default target) (3) ->
> [exec] (Link target) ->
> [exec] thread_local_storage.obj : error LNK2001: unresolved external
> symbol _tls_used
> [D:\h\hadoop-2.6.0-src\hadoop-hdfs-project\hadoop-hdfs\target\native\hdfs.vcxproj]
> [exec] thread_local_storage.obj : error LNK2001: unresolved external
> symbol pTlsCallback
> [D:\h\hadoop-2.6.0-src\hadoop-hdfs-project\hadoop-hdfs\target\native\hdfs.vcxproj]
> [exec]
> D:\h\hadoop-2.6.0-src\hadoop-hdfs-project\hadoop-hdfs\target\native\target\bin\RelWithDebInfo\hdfs.dll
> : fatal error LNK1120: 2 unresolved externals
> [D:\h\hadoop-2.6.0-src\hadoop-hdfs-project\hadoop-hdfs\target\native\hdfs.vcxproj]
> [exec]
> [exec] 0 Warning(s)
> [exec] 3 Error(s)
> [exec]
> [exec] Time Elapsed 00:00:40.39
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Hadoop HDFS ................................. FAILURE [02:27
> min]
> [INFO] Apache Hadoop HttpFS ............................... SKIPPED
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)