Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcc make exits with no warnings #24

Open
natedogs911 opened this issue Jul 28, 2017 · 5 comments
Open

gcc make exits with no warnings #24

natedogs911 opened this issue Jul 28, 2017 · 5 comments

Comments

@natedogs911
Copy link

natedogs911 commented Jul 28, 2017

Hello,

i'm running buildall.sh
and it appears on wrap make -j... when building gcc 4.9.2 that everything seems to max out for several minutes then the process will exit with status 2.
-j is getting 4 as the BUILD_THREADS.
Again, there is no error message it simply stops running. i've tried adding other flags to make but i get no output whatsoever.

it should be said that I'm running inside of a docker container on debian 9.

EDIT
i'm not sure why i didn't try this before, but i ran make from the build directory without the aid of the build scripts:

In file included from ./tm.h:27:0,
                 from ../../gcc-4.9.2/gcc/cp/except.c:27:
../../gcc-4.9.2/gcc/config/elfos.h:102:21: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
    fprintf ((FILE), "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
                     ^
../../gcc-4.9.2/gcc/config/elfos.h:170:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
       fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n",  \
                        ^
In file included from ./tm.h:45:0,
                 from ../../gcc-4.9.2/gcc/cp/except.c:27:
../../gcc-4.9.2/gcc/defaults.h:126:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
       fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n",  \
                        ^
In file included from ../../gcc-4.9.2/gcc/cp/except.c:1013:0:
cfns.gperf: In function ‘const char* libc_name_p(const char*, unsigned int)’:
cfns.gperf:101:1: error: ‘const char* libc_name_p(const char*, unsigned int)’ redeclared inline with ‘gnu_inline’ attribute
cfns.gperf:26:14: note: ‘const char* libc_name_p(const char*, unsigned int)’ previously declared here
cfns.gperf: At global scope:
cfns.gperf:26:14: warning: inline function ‘const char* libc_name_p(const char*, unsigned int)’ used but never defined
Makefile:1058: recipe for target 'cp/except.o' failed
make[3]: *** [cp/except.o] Error 1
make[3]: Leaving directory '/impala/native-toolchain/source/gcc/build-4.9.2/gcc'
Makefile:4233: recipe for target 'all-stage1-gcc' failed
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory '/impala/native-toolchain/source/gcc/build-4.9.2'
Makefile:22967: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/impala/native-toolchain/source/gcc/build-4.9.2'
Makefile:900: recipe for target 'all' failed
make: *** [all] Error 2
@timarmstrong
Copy link
Contributor

The output gets logged to various log files in check/ - hopefully the relevant output gets logged there.

We haven't tried to build the native toolchain yet on debian 9. We do build it on debian 8 and ubuntu 16.04, so I guess something changed there.

It looks like this may be a gcc bug - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69959

@HasanAmmori
Copy link

I can confirm, same issue persist on my Ubuntu 17.04
gcc 6.3

@jbapple-cloudera
Copy link

jbapple-cloudera commented Apr 8, 2018

I got past this error in Ubuntu 18.04 using gcc-5:

sudo apt install -y gcc-5 g++-5
sudo update-alternatives --remove-all cc
sudo update-alternatives --remove-all c++
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-5 10
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-5 10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 10

Then I hit another error:

In file included from ../../../gcc-4.9.2/libgcc/unwind-dw2.c:405:0: 
./md-unwind-support.h: In function 'x86_64_fallback_frame_state':  
./md-unwind-support.h:65:47: error: dereferencing pointer to incomplete type  
       sc = (struct sigcontext *) (void *) &uc_->uc_mcontext; 

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81712

@1Husin-Alhaj
Copy link

I have the same error on my Ubuntu 16.10 (trying to install gcc 4.6.3)
error

@timarmstrong
Copy link
Contributor

Building for Ubuntu 18.04 using the docker-based build definitely works. Not sure what's different when running outside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants