Micro Python Make Error In The unix Directory

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
KamalDissa
Posts: 3
Joined: Wed Jun 25, 2014 10:40 am

Micro Python Make Error In The unix Directory

Post by KamalDissa » Wed Jun 25, 2014 10:49 am

Hello,

I Tried To Make On SLES, But Failed Giving Following Error.

.........................................................................
make V=1
CPP ../py/qstrdefs.h
gcc -E -I. -I../py -Ibuild -Wall -Werror -Wno-error=cpp -ansi -std=gnu99 -DUNIX -DMICROPY_USE_READLINE=1 -DMICROPY_PY_TIME=1 -DMICROPY_PY_FFI=1 -Os ../py/qstrdefs.h -o build/genhdr/qstrdefs.preprocessed.h
cc1: error: -Werror=cpp: No option -Wcpp
make: *** [build/genhdr/qstrdefs.generated.h] Error 1

.................................................................................

Please Help Me With This.

Thanks,

Kamal

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Micro Python Make Error In The unix Directory

Post by dhylands » Wed Jun 25, 2014 3:49 pm

Which version of gcc are you using? (i.e. what's the output of gcc --version)

As a quick hack, you could try editing unix/Makefile and find the line that says:

Code: Select all

CWARN = -Wall -Werror -Wno-error=cpp
and remove the -Wno-error=cpp option.

KamalDissa
Posts: 3
Joined: Wed Jun 25, 2014 10:40 am

Re: Micro Python Make Error In The unix Directory

Post by KamalDissa » Thu Jun 26, 2014 3:48 am

Thanks Dave,

I Will Try Yor Suggestions And Let You Know The Out Come.

This Is The gcc -v Out Put On My Machine

Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.3 --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=x86_64-suse-linux
Thread model: posix
gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux)


Thanks,
Kamal

KamalDissa
Posts: 3
Joined: Wed Jun 25, 2014 10:40 am

Re: Micro Python Make Error In The unix Directory

Post by KamalDissa » Thu Jun 26, 2014 6:39 am

Thanks Dave,

Your Suggestion Worked On SUSE Linux Enterprise Server 11 (x86_64).

Kamal

Post Reply