Thanks for getting back to me so quickly, Dmitry.
You are indeed correct: There is a libc.a on the system where it build under 
newlib:

gcc/build-accel/nvptx-none/newlib/libc.a

So, I need to figure out why my newlib did not built.

Thanks so much for this very good pointer!

Gabriele

From: Dmitry Mikushin <dmi...@kernelgen.org>
Date: Wednesday, October 3, 2018 at 5:00 PM
To: "Jost, Gabriele (ARC-TNC)[Supersmith]" <gabriele.j...@nasa.gov>
Cc: "gcc-h...@gcc.gnu.org" <gcc-h...@gcc.gnu.org>, GCC <gcc@gcc.gnu.org>
Subject: Re: gcc 8.1 + libc.a

First of, "error opening libc.a" message looks highly unusual. It's not the way 
ld typically complains about a missing library or wrong architecture. More 
likely, here it is rather some gcc-internal lib.a to be deployed in some 
special way, but was missing.

I would try two things:
1) Re-iterate the failing conftest manually, appending -v option to show what 
underlying ld command is being executed
2) Search for libc.a in the gcc build tree on another server, where the build 
was successful.

Good luck,
- Dmitry.


On Thu, Oct 4, 2018, 02:32 Jost, Gabriele (ARC-TNC)[Supersmith] via gcc 
<gcc@gcc.gnu.org<mailto:gcc@gcc.gnu.org>> wrote:
Hello,
I have successfully installed gcc 8.1 on one system. I had to build the 
accelerator on the front end, because the compute nodes did not have libc.a.
The build process seems to require a libc.a.
I am now struggling with trying to install it on a different system: Same 
concept, front end has libc.a, compute nodes don’t. But now I can’t even build 
the build the accelerator compiler, because of of the missing libc.a. But it 
lives in /usr/lib64, just like on the other system. Would you have any advise 
how I can get around this? Thanks in advance,
Gabriele


configure:3016: /nobackup/gcc_nvptx/gcc/build-accel/./gcc/xgcc 
-B/nobackup//gcc_nvptx/gcc/build-accel/./gcc/ 
-B/nobackup/gcc-8.1.0-install/nvptx-none/bin/ 
-B/nobackup/gcc-8.1.0-install/nvptx-none/lib/ -isystem 
/nobackup/gcc-8.1.0-install/nvptx-none/include -isystem 
/nobackup/gcc-8.1.0-install/nvptx-none/sys-include    -g -O2   conftest.c -lc 
>&5
error opening libc.a
collect2: error: ld returned 1 exit status
configure:3020: $? = 1
configure:3057: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "package-unused"
| #define PACKAGE_TARNAME "libbacktrace"
| #define PACKAGE_VERSION "version-unused"
| #define PACKAGE_STRING "package-unused version-unused"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }

Reply via email to