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

Build fails on Windows at [launch4j]: undefined reference to `__mingw_glob' #3062

Closed
JakubValtar opened this Issue Jan 25, 2015 · 8 comments

Comments

Projects
None yet
2 participants
@JakubValtar
Contributor

JakubValtar commented Jan 25, 2015

I'm on Windows 8.1 x64.

E:\>java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

E:\>ant -version
Apache Ant(TM) version 1.9.4 compiled on April 29 2014

I'm getting this error when running ant run:

[launch4j] E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\crt2.o:crt1.c:(.text+0x376):
undefined reference to `__mingw_glob'
[launch4j] E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\crt2.o:crt1.c:(.text+0x47d):
undefined reference to `__mingw_glob'

In context:

assemble:
     [copy] Copying 66 files to E:\Projekty\GitHub\processing\build\windows\work\tools
     [copy] Copying 448 files to E:\Projekty\GitHub\processing\build\windows\work\modes\java
     [copy] Copied 119 empty directories to 1 empty directory under E:\Projekty\GitHub\processing\build\windows\work\modes\java
     [copy] Copying 527 files to E:\Projekty\GitHub\processing\build\windows\work\modes\java\examples
      [get] Getting: http://download.processing.org/reference.zip
      [get] To: E:\Projekty\GitHub\processing\java\reference.zip
    [unzip] Expanding: E:\Projekty\GitHub\processing\java\reference.zip into E:\Projekty\GitHub\processing\build\windows\work\modes\java
     [move] Moving 1 file to E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\bin
     [move] Moving 1 file to E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\bin
 [launch4j] Compiling resources
 [launch4j] Linking
 [launch4j] E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\crt2.o:crt1.c:(.text+0x376): undefined reference to `__mingw_glob'
 [launch4j] E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\crt2.o:crt1.c:(.text+0x47d): undefined reference to `__mingw_glob'

BUILD FAILED
E:\Projekty\GitHub\processing\build\build.xml:239: The following error occurred while executing this line:
E:\Projekty\GitHub\processing\build\build.xml:934: net.sf.launch4j.BuilderException: net.sf.launch4j.ExecException: Exec failed (1): E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\bin\ld.exe -mi386pe --oformat pei-i386 --dynamicbase --nxcompat --no-seh --subsystem windows -s E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\crt2.o E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\head\guihead.o E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\head\head.o C:\Users\Kuba\AppData\Local\Temp\launch4j6716652191915669635o E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\libmingw32.a E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\libgcc.a E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\libmsvcrt.a E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\libkernel32.a E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\libuser32.a E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\libadvapi32.a E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\libshell32.a -o E:\Projekty\GitHub\processing\build\windows\work\processing.exe
        at net.sf.launch4j.Builder.build(Builder.java:146)
        at net.sf.launch4j.ant.Launch4jTask.execute(Launch4jTask.java:111)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
        at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
        at org.apache.tools.ant.Main.runBuild(Main.java:851)
        at org.apache.tools.ant.Main.startAnt(Main.java:235)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: net.sf.launch4j.ExecException: Exec failed (1): E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\bin\ld.exe -mi386pe --oformat pei-i386 --dynamicbase --nxcompat --no-seh --subsystem windows -s E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\crt2.o E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\head\guihead.o E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\head\head.o C:\Users\Kuba\AppData\Local\Temp\launch4j6716652191915669635o E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\libmingw32.a E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\libgcc.a E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\libmsvcrt.a E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\libkernel32.a E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\libuser32.a E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\libadvapi32.a E:\Projekty\GitHub\processing\build\windows\work\modes\java\application\launch4j\w32api\libshell32.a -o E:\Projekty\GitHub\processing\build\windows\work\processing.exe
        at net.sf.launch4j.Util.exec(Util.java:156)
        at net.sf.launch4j.Cmd.exec(Builder.java:212)
        at net.sf.launch4j.Builder.build(Builder.java:114)
        ... 30 more

I've tried deleting everything and cloning the repository again. Am I doing something wrong?

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Jan 26, 2015

Member

No, something is wrong with the new launch4j release I dropped in there, and I haven't had a chance to debug it. It may be that one of the new files isn't being copied (the previous release had fewer libs) in the dist, or it may be that it was a bad release. Just haven't had time to track it down. Fighting through things on OS X and blowing up the GUI, then gonna come back to these other build/dist issues.

Member

benfry commented Jan 26, 2015

No, something is wrong with the new launch4j release I dropped in there, and I haven't had a chance to debug it. It may be that one of the new files isn't being copied (the previous release had fewer libs) in the dist, or it may be that it was a bad release. Just haven't had time to track it down. Fighting through things on OS X and blowing up the GUI, then gonna come back to these other build/dist issues.

@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar Jan 26, 2015

Contributor

Alright, now I know where the problem can be since you changed launch4j version. I will try to fix it in the meantime.

Contributor

JakubValtar commented Jan 26, 2015

Alright, now I know where the problem can be since you changed launch4j version. I will try to fix it in the meantime.

@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar Jan 28, 2015

Contributor

@benfry Should be fixed in #3066, please review when you have time.

Contributor

JakubValtar commented Jan 28, 2015

@benfry Should be fixed in #3066, please review when you have time.

@benfry benfry closed this in #3066 Jan 28, 2015

benfry added a commit that referenced this issue Jan 28, 2015

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Jan 28, 2015

Member

I'll update those other files as well once I get the GUI building again.

Member

benfry commented Jan 28, 2015

I'll update those other files as well once I get the GUI building again.

@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar Jan 28, 2015

Contributor

Which files do you mean? I checked all files in launch4j folder and they all seem to be 3.6.

Contributor

JakubValtar commented Jan 28, 2015

Which files do you mean? I checked all files in launch4j folder and they all seem to be 3.6.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Jan 28, 2015

Member

These fellas:
https://github.com/processing/processing/tree/master/java/application/launch4j/bin
https://github.com/processing/processing/tree/master/java/application/launch4j/lib

Or maybe they haven't changed in 3.6, so nothing was checked in... I coulda sworn I replaced them...

Member

benfry commented Jan 28, 2015

These fellas:
https://github.com/processing/processing/tree/master/java/application/launch4j/bin
https://github.com/processing/processing/tree/master/java/application/launch4j/lib

Or maybe they haven't changed in 3.6, so nothing was checked in... I coulda sworn I replaced them...

@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar Jan 28, 2015

Contributor

I checked all of them and they are all 3.6, so you don't have to worry about this anymore. They probably haven't changed.

Contributor

JakubValtar commented Jan 28, 2015

I checked all of them and they are all 3.6, so you don't have to worry about this anymore. They probably haven't changed.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Jan 28, 2015

Member

Cool, thanks for checking.

Member

benfry commented Jan 28, 2015

Cool, thanks for checking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment