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

configure: line 3335: syntax error near unexpected token `LZ4,' #1

Closed
mvforell opened this issue Dec 28, 2017 · 7 comments
Closed

configure: line 3335: syntax error near unexpected token `LZ4,' #1

mvforell opened this issue Dec 28, 2017 · 7 comments

Comments

@mvforell
Copy link

mvforell commented Dec 28, 2017

After installing msys (standalone, not the one from devkitPro), devkitPro, devkitA64 and libnx on a Windows 10 Pro PC I wanted to build switch-tools so I ran autogen.sh and then configure.

configure gives me this output:

$ ./configure
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
./configure: line 3335: syntax error near unexpected token `LZ4,'
./configure: line 3335: `PKG_CHECK_MODULES(LZ4,'

To make sure this isn't a Windows error, I also tried building switch-tools on a Ubuntu 17.10 x64 virtual machine, but without installing libnx. Here the same error occurred.

I'm not really familiar with make, configure and the rest so I can not say what exactly the syntax error is or why it happens.

@yellows8
Copy link
Collaborator

pinging @WinterMute

@WinterMute
Copy link
Contributor

WinterMute commented Dec 29, 2017

Build and install liblz4 from https://github.com/lz4/lz4

FWIW, devkitPro is not something you can build or install. devkitPro is an organisation dedicated to providing homebrew toolchains.

@mvforell
Copy link
Author

mvforell commented Dec 30, 2017

Installing liblz4 did not fix this syntax error, neither on Windows nor on Ubuntu.

What I meant by "installing devkitPro" is that I ran the devkitPro installer (the script on Ubuntu) and installed devkitARM, just to be sure where to copy the devkitA64 folder.

@kapeas
Copy link

kapeas commented Jan 5, 2018

Hello,
Got the same issue here with last version of LZ4 (from github link repo WinterMute said) installed on Ubuntu 17.10.
Line failing at configure is (in my case) 3536. Message is the same.

checking dependency style of gcc... gcc3
./configure: line 3536: syntax error near unexpected token LZ4,' ./configure: line 3536: PKG_CHECK_MODULES(LZ4,'

Anything I can provide for further investigation?
Thanks for your effort.
Kapeas.

@WinterMute
Copy link
Contributor

sudo apt-get install pkg-config

@kapeas
Copy link

kapeas commented Jan 5, 2018

Thanks for the help. It worked :) Will keep testing the rest of the tools

@mvforell mvforell closed this as completed Jan 6, 2018
@sanelkukic
Copy link

I'm getting the same error, I tried running sudo apt-get install pkg-config and I even built liblz4 from source, but I'm still getting this syntax error.

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