On 6/6/19 4:38 AM, Vineet Jain wrote:
Hello LFS Team
Vineet Jain
On Wed, 5 Jun, 2019, 21:36 Pierre Labastie, <[email protected]
<mailto:[email protected]>> wrote:
On 05/06/2019 15:07, Vineet Jain wrote:
> Hello LFS Team
>
> Getting the following error while compiling the Python module.
>
> gcc -pthread -c -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g
> -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result
> -Wno-unused-parameter -Wno-missing-field-initializers
> -Wno-cast-function-type -Werror=implicit-function-declaration -I.
> -I./Include -DPy_BUIL
> D_CORE -o Modules/_math.o Modules/_math.c
> CC='gcc -pthread' LDSHARED='gcc -pthread -shared '
OPT='-DNDEBUG -g
> -fwrapv -O3 -Wall' _TCLTK_INCLUDES='' _TCLTK_LIBS=''
> ./python -E ./setup.py build
> File "./setup.py", line 467
> t return
> ^
> IndentationError: expected an indented block
> make: *** [Makefile:626: sharedmods] Error 1
>
> So it looked like to me the sed wasn't correctly doing a replacement
> and I manually added in a return stmt on the next line after "def
> add_multiarch_paths(self):"
> I guess we need to skip the method execution as it contained
hardcoded
> path to the host systems.
Yes. The "t" shouldn't be there (typo in sed?)...
There was no typo in the command I used. I had typed it out as it is
from the pdf but instead of a tab I had to substitute it with spaces.
Don't use the pdf version of LFS for building. It leads to problems
when copying instructions with the mouse. Use the html version.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style